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

descriptor.pb.h 641 kB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: google/protobuf/descriptor.proto
  3. #ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fdescriptor_2eproto
  4. #define GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fdescriptor_2eproto
  5. #include <limits>
  6. #include <string>
  7. #include <google/protobuf/port_def.inc>
  8. #if PROTOBUF_VERSION < 3021000
  9. #error This file was generated by a newer version of protoc which is
  10. #error incompatible with your Protocol Buffer headers. Please update
  11. #error your headers.
  12. #endif
  13. #if 3021006 < PROTOBUF_MIN_PROTOC_VERSION
  14. #error This file was generated by an older version of protoc which is
  15. #error incompatible with your Protocol Buffer headers. Please
  16. #error regenerate this file with a newer version of protoc.
  17. #endif
  18. #include <google/protobuf/port_undef.inc>
  19. #include <google/protobuf/io/coded_stream.h>
  20. #include <google/protobuf/arena.h>
  21. #include <google/protobuf/arenastring.h>
  22. #include <google/protobuf/generated_message_util.h>
  23. #include <google/protobuf/metadata_lite.h>
  24. #include <google/protobuf/generated_message_reflection.h>
  25. #include <google/protobuf/message.h>
  26. #include <google/protobuf/repeated_field.h> // IWYU pragma: export
  27. #include <google/protobuf/extension_set.h> // IWYU pragma: export
  28. #include <google/protobuf/generated_enum_reflection.h>
  29. #include <google/protobuf/unknown_field_set.h>
  30. // @@protoc_insertion_point(includes)
  31. #include <google/protobuf/port_def.inc>
  32. #define PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fdescriptor_2eproto PROTOBUF_EXPORT
  33. PROTOBUF_NAMESPACE_OPEN
  34. namespace internal
  35. {
  36. class AnyMetadata;
  37. } // namespace internal
  38. PROTOBUF_NAMESPACE_CLOSE
  39. // Internal implementation detail -- do not use these members.
  40. struct PROTOBUF_EXPORT TableStruct_google_2fprotobuf_2fdescriptor_2eproto
  41. {
  42. static const uint32_t offsets[];
  43. };
  44. PROTOBUF_EXPORT extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fprotobuf_2fdescriptor_2eproto;
  45. PROTOBUF_NAMESPACE_OPEN
  46. class DescriptorProto;
  47. struct DescriptorProtoDefaultTypeInternal;
  48. PROTOBUF_EXPORT extern DescriptorProtoDefaultTypeInternal _DescriptorProto_default_instance_;
  49. class DescriptorProto_ExtensionRange;
  50. struct DescriptorProto_ExtensionRangeDefaultTypeInternal;
  51. PROTOBUF_EXPORT extern DescriptorProto_ExtensionRangeDefaultTypeInternal _DescriptorProto_ExtensionRange_default_instance_;
  52. class DescriptorProto_ReservedRange;
  53. struct DescriptorProto_ReservedRangeDefaultTypeInternal;
  54. PROTOBUF_EXPORT extern DescriptorProto_ReservedRangeDefaultTypeInternal _DescriptorProto_ReservedRange_default_instance_;
  55. class EnumDescriptorProto;
  56. struct EnumDescriptorProtoDefaultTypeInternal;
  57. PROTOBUF_EXPORT extern EnumDescriptorProtoDefaultTypeInternal _EnumDescriptorProto_default_instance_;
  58. class EnumDescriptorProto_EnumReservedRange;
  59. struct EnumDescriptorProto_EnumReservedRangeDefaultTypeInternal;
  60. PROTOBUF_EXPORT extern EnumDescriptorProto_EnumReservedRangeDefaultTypeInternal _EnumDescriptorProto_EnumReservedRange_default_instance_;
  61. class EnumOptions;
  62. struct EnumOptionsDefaultTypeInternal;
  63. PROTOBUF_EXPORT extern EnumOptionsDefaultTypeInternal _EnumOptions_default_instance_;
  64. class EnumValueDescriptorProto;
  65. struct EnumValueDescriptorProtoDefaultTypeInternal;
  66. PROTOBUF_EXPORT extern EnumValueDescriptorProtoDefaultTypeInternal _EnumValueDescriptorProto_default_instance_;
  67. class EnumValueOptions;
  68. struct EnumValueOptionsDefaultTypeInternal;
  69. PROTOBUF_EXPORT extern EnumValueOptionsDefaultTypeInternal _EnumValueOptions_default_instance_;
  70. class ExtensionRangeOptions;
  71. struct ExtensionRangeOptionsDefaultTypeInternal;
  72. PROTOBUF_EXPORT extern ExtensionRangeOptionsDefaultTypeInternal _ExtensionRangeOptions_default_instance_;
  73. class FieldDescriptorProto;
  74. struct FieldDescriptorProtoDefaultTypeInternal;
  75. PROTOBUF_EXPORT extern FieldDescriptorProtoDefaultTypeInternal _FieldDescriptorProto_default_instance_;
  76. class FieldOptions;
  77. struct FieldOptionsDefaultTypeInternal;
  78. PROTOBUF_EXPORT extern FieldOptionsDefaultTypeInternal _FieldOptions_default_instance_;
  79. class FileDescriptorProto;
  80. struct FileDescriptorProtoDefaultTypeInternal;
  81. PROTOBUF_EXPORT extern FileDescriptorProtoDefaultTypeInternal _FileDescriptorProto_default_instance_;
  82. class FileDescriptorSet;
  83. struct FileDescriptorSetDefaultTypeInternal;
  84. PROTOBUF_EXPORT extern FileDescriptorSetDefaultTypeInternal _FileDescriptorSet_default_instance_;
  85. class FileOptions;
  86. struct FileOptionsDefaultTypeInternal;
  87. PROTOBUF_EXPORT extern FileOptionsDefaultTypeInternal _FileOptions_default_instance_;
  88. class GeneratedCodeInfo;
  89. struct GeneratedCodeInfoDefaultTypeInternal;
  90. PROTOBUF_EXPORT extern GeneratedCodeInfoDefaultTypeInternal _GeneratedCodeInfo_default_instance_;
  91. class GeneratedCodeInfo_Annotation;
  92. struct GeneratedCodeInfo_AnnotationDefaultTypeInternal;
  93. PROTOBUF_EXPORT extern GeneratedCodeInfo_AnnotationDefaultTypeInternal _GeneratedCodeInfo_Annotation_default_instance_;
  94. class MessageOptions;
  95. struct MessageOptionsDefaultTypeInternal;
  96. PROTOBUF_EXPORT extern MessageOptionsDefaultTypeInternal _MessageOptions_default_instance_;
  97. class MethodDescriptorProto;
  98. struct MethodDescriptorProtoDefaultTypeInternal;
  99. PROTOBUF_EXPORT extern MethodDescriptorProtoDefaultTypeInternal _MethodDescriptorProto_default_instance_;
  100. class MethodOptions;
  101. struct MethodOptionsDefaultTypeInternal;
  102. PROTOBUF_EXPORT extern MethodOptionsDefaultTypeInternal _MethodOptions_default_instance_;
  103. class OneofDescriptorProto;
  104. struct OneofDescriptorProtoDefaultTypeInternal;
  105. PROTOBUF_EXPORT extern OneofDescriptorProtoDefaultTypeInternal _OneofDescriptorProto_default_instance_;
  106. class OneofOptions;
  107. struct OneofOptionsDefaultTypeInternal;
  108. PROTOBUF_EXPORT extern OneofOptionsDefaultTypeInternal _OneofOptions_default_instance_;
  109. class ServiceDescriptorProto;
  110. struct ServiceDescriptorProtoDefaultTypeInternal;
  111. PROTOBUF_EXPORT extern ServiceDescriptorProtoDefaultTypeInternal _ServiceDescriptorProto_default_instance_;
  112. class ServiceOptions;
  113. struct ServiceOptionsDefaultTypeInternal;
  114. PROTOBUF_EXPORT extern ServiceOptionsDefaultTypeInternal _ServiceOptions_default_instance_;
  115. class SourceCodeInfo;
  116. struct SourceCodeInfoDefaultTypeInternal;
  117. PROTOBUF_EXPORT extern SourceCodeInfoDefaultTypeInternal _SourceCodeInfo_default_instance_;
  118. class SourceCodeInfo_Location;
  119. struct SourceCodeInfo_LocationDefaultTypeInternal;
  120. PROTOBUF_EXPORT extern SourceCodeInfo_LocationDefaultTypeInternal _SourceCodeInfo_Location_default_instance_;
  121. class UninterpretedOption;
  122. struct UninterpretedOptionDefaultTypeInternal;
  123. PROTOBUF_EXPORT extern UninterpretedOptionDefaultTypeInternal _UninterpretedOption_default_instance_;
  124. class UninterpretedOption_NamePart;
  125. struct UninterpretedOption_NamePartDefaultTypeInternal;
  126. PROTOBUF_EXPORT extern UninterpretedOption_NamePartDefaultTypeInternal _UninterpretedOption_NamePart_default_instance_;
  127. PROTOBUF_NAMESPACE_CLOSE
  128. PROTOBUF_NAMESPACE_OPEN
  129. template<>
  130. PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::DescriptorProto* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::DescriptorProto>(Arena*);
  131. template<>
  132. PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange>(Arena*);
  133. template<>
  134. PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange>(Arena*);
  135. template<>
  136. PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto>(Arena*);
  137. template<>
  138. PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange>(Arena*);
  139. template<>
  140. PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::EnumOptions* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::EnumOptions>(Arena*);
  141. template<>
  142. PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto>(Arena*);
  143. template<>
  144. PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::EnumValueOptions* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::EnumValueOptions>(Arena*);
  145. template<>
  146. PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions>(Arena*);
  147. template<>
  148. PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto>(Arena*);
  149. template<>
  150. PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::FieldOptions* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::FieldOptions>(Arena*);
  151. template<>
  152. PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::FileDescriptorProto>(Arena*);
  153. template<>
  154. PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::FileDescriptorSet* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::FileDescriptorSet>(Arena*);
  155. template<>
  156. PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::FileOptions* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::FileOptions>(Arena*);
  157. template<>
  158. PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo>(Arena*);
  159. template<>
  160. PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation>(Arena*);
  161. template<>
  162. PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::MessageOptions* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::MessageOptions>(Arena*);
  163. template<>
  164. PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto>(Arena*);
  165. template<>
  166. PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::MethodOptions* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::MethodOptions>(Arena*);
  167. template<>
  168. PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto>(Arena*);
  169. template<>
  170. PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::OneofOptions* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::OneofOptions>(Arena*);
  171. template<>
  172. PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto>(Arena*);
  173. template<>
  174. PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::ServiceOptions* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::ServiceOptions>(Arena*);
  175. template<>
  176. PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::SourceCodeInfo>(Arena*);
  177. template<>
  178. PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location>(Arena*);
  179. template<>
  180. PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::UninterpretedOption>(Arena*);
  181. template<>
  182. PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart>(Arena*);
  183. PROTOBUF_NAMESPACE_CLOSE
  184. PROTOBUF_NAMESPACE_OPEN
  185. enum FieldDescriptorProto_Type : int
  186. {
  187. FieldDescriptorProto_Type_TYPE_DOUBLE = 1,
  188. FieldDescriptorProto_Type_TYPE_FLOAT = 2,
  189. FieldDescriptorProto_Type_TYPE_INT64 = 3,
  190. FieldDescriptorProto_Type_TYPE_UINT64 = 4,
  191. FieldDescriptorProto_Type_TYPE_INT32 = 5,
  192. FieldDescriptorProto_Type_TYPE_FIXED64 = 6,
  193. FieldDescriptorProto_Type_TYPE_FIXED32 = 7,
  194. FieldDescriptorProto_Type_TYPE_BOOL = 8,
  195. FieldDescriptorProto_Type_TYPE_STRING = 9,
  196. FieldDescriptorProto_Type_TYPE_GROUP = 10,
  197. FieldDescriptorProto_Type_TYPE_MESSAGE = 11,
  198. FieldDescriptorProto_Type_TYPE_BYTES = 12,
  199. FieldDescriptorProto_Type_TYPE_UINT32 = 13,
  200. FieldDescriptorProto_Type_TYPE_ENUM = 14,
  201. FieldDescriptorProto_Type_TYPE_SFIXED32 = 15,
  202. FieldDescriptorProto_Type_TYPE_SFIXED64 = 16,
  203. FieldDescriptorProto_Type_TYPE_SINT32 = 17,
  204. FieldDescriptorProto_Type_TYPE_SINT64 = 18
  205. };
  206. PROTOBUF_EXPORT bool FieldDescriptorProto_Type_IsValid(int value);
  207. constexpr FieldDescriptorProto_Type FieldDescriptorProto_Type_Type_MIN = FieldDescriptorProto_Type_TYPE_DOUBLE;
  208. constexpr FieldDescriptorProto_Type FieldDescriptorProto_Type_Type_MAX = FieldDescriptorProto_Type_TYPE_SINT64;
  209. constexpr int FieldDescriptorProto_Type_Type_ARRAYSIZE = FieldDescriptorProto_Type_Type_MAX + 1;
  210. PROTOBUF_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* FieldDescriptorProto_Type_descriptor();
  211. template<typename T>
  212. inline const std::string& FieldDescriptorProto_Type_Name(T enum_t_value)
  213. {
  214. static_assert(::std::is_same<T, FieldDescriptorProto_Type>::value || ::std::is_integral<T>::value, "Incorrect type passed to function FieldDescriptorProto_Type_Name.");
  215. return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
  216. FieldDescriptorProto_Type_descriptor(), enum_t_value
  217. );
  218. }
  219. inline bool FieldDescriptorProto_Type_Parse(
  220. ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, FieldDescriptorProto_Type* value
  221. )
  222. {
  223. return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<FieldDescriptorProto_Type>(
  224. FieldDescriptorProto_Type_descriptor(), name, value
  225. );
  226. }
  227. enum FieldDescriptorProto_Label : int
  228. {
  229. FieldDescriptorProto_Label_LABEL_OPTIONAL = 1,
  230. FieldDescriptorProto_Label_LABEL_REQUIRED = 2,
  231. FieldDescriptorProto_Label_LABEL_REPEATED = 3
  232. };
  233. PROTOBUF_EXPORT bool FieldDescriptorProto_Label_IsValid(int value);
  234. constexpr FieldDescriptorProto_Label FieldDescriptorProto_Label_Label_MIN = FieldDescriptorProto_Label_LABEL_OPTIONAL;
  235. constexpr FieldDescriptorProto_Label FieldDescriptorProto_Label_Label_MAX = FieldDescriptorProto_Label_LABEL_REPEATED;
  236. constexpr int FieldDescriptorProto_Label_Label_ARRAYSIZE = FieldDescriptorProto_Label_Label_MAX + 1;
  237. PROTOBUF_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* FieldDescriptorProto_Label_descriptor();
  238. template<typename T>
  239. inline const std::string& FieldDescriptorProto_Label_Name(T enum_t_value)
  240. {
  241. static_assert(::std::is_same<T, FieldDescriptorProto_Label>::value || ::std::is_integral<T>::value, "Incorrect type passed to function FieldDescriptorProto_Label_Name.");
  242. return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
  243. FieldDescriptorProto_Label_descriptor(), enum_t_value
  244. );
  245. }
  246. inline bool FieldDescriptorProto_Label_Parse(
  247. ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, FieldDescriptorProto_Label* value
  248. )
  249. {
  250. return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<FieldDescriptorProto_Label>(
  251. FieldDescriptorProto_Label_descriptor(), name, value
  252. );
  253. }
  254. enum FileOptions_OptimizeMode : int
  255. {
  256. FileOptions_OptimizeMode_SPEED = 1,
  257. FileOptions_OptimizeMode_CODE_SIZE = 2,
  258. FileOptions_OptimizeMode_LITE_RUNTIME = 3
  259. };
  260. PROTOBUF_EXPORT bool FileOptions_OptimizeMode_IsValid(int value);
  261. constexpr FileOptions_OptimizeMode FileOptions_OptimizeMode_OptimizeMode_MIN = FileOptions_OptimizeMode_SPEED;
  262. constexpr FileOptions_OptimizeMode FileOptions_OptimizeMode_OptimizeMode_MAX = FileOptions_OptimizeMode_LITE_RUNTIME;
  263. constexpr int FileOptions_OptimizeMode_OptimizeMode_ARRAYSIZE = FileOptions_OptimizeMode_OptimizeMode_MAX + 1;
  264. PROTOBUF_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* FileOptions_OptimizeMode_descriptor();
  265. template<typename T>
  266. inline const std::string& FileOptions_OptimizeMode_Name(T enum_t_value)
  267. {
  268. static_assert(::std::is_same<T, FileOptions_OptimizeMode>::value || ::std::is_integral<T>::value, "Incorrect type passed to function FileOptions_OptimizeMode_Name.");
  269. return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
  270. FileOptions_OptimizeMode_descriptor(), enum_t_value
  271. );
  272. }
  273. inline bool FileOptions_OptimizeMode_Parse(
  274. ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, FileOptions_OptimizeMode* value
  275. )
  276. {
  277. return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<FileOptions_OptimizeMode>(
  278. FileOptions_OptimizeMode_descriptor(), name, value
  279. );
  280. }
  281. enum FieldOptions_CType : int
  282. {
  283. FieldOptions_CType_STRING = 0,
  284. FieldOptions_CType_CORD = 1,
  285. FieldOptions_CType_STRING_PIECE = 2
  286. };
  287. PROTOBUF_EXPORT bool FieldOptions_CType_IsValid(int value);
  288. constexpr FieldOptions_CType FieldOptions_CType_CType_MIN = FieldOptions_CType_STRING;
  289. constexpr FieldOptions_CType FieldOptions_CType_CType_MAX = FieldOptions_CType_STRING_PIECE;
  290. constexpr int FieldOptions_CType_CType_ARRAYSIZE = FieldOptions_CType_CType_MAX + 1;
  291. PROTOBUF_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* FieldOptions_CType_descriptor();
  292. template<typename T>
  293. inline const std::string& FieldOptions_CType_Name(T enum_t_value)
  294. {
  295. static_assert(::std::is_same<T, FieldOptions_CType>::value || ::std::is_integral<T>::value, "Incorrect type passed to function FieldOptions_CType_Name.");
  296. return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
  297. FieldOptions_CType_descriptor(), enum_t_value
  298. );
  299. }
  300. inline bool FieldOptions_CType_Parse(
  301. ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, FieldOptions_CType* value
  302. )
  303. {
  304. return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<FieldOptions_CType>(
  305. FieldOptions_CType_descriptor(), name, value
  306. );
  307. }
  308. enum FieldOptions_JSType : int
  309. {
  310. FieldOptions_JSType_JS_NORMAL = 0,
  311. FieldOptions_JSType_JS_STRING = 1,
  312. FieldOptions_JSType_JS_NUMBER = 2
  313. };
  314. PROTOBUF_EXPORT bool FieldOptions_JSType_IsValid(int value);
  315. constexpr FieldOptions_JSType FieldOptions_JSType_JSType_MIN = FieldOptions_JSType_JS_NORMAL;
  316. constexpr FieldOptions_JSType FieldOptions_JSType_JSType_MAX = FieldOptions_JSType_JS_NUMBER;
  317. constexpr int FieldOptions_JSType_JSType_ARRAYSIZE = FieldOptions_JSType_JSType_MAX + 1;
  318. PROTOBUF_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* FieldOptions_JSType_descriptor();
  319. template<typename T>
  320. inline const std::string& FieldOptions_JSType_Name(T enum_t_value)
  321. {
  322. static_assert(::std::is_same<T, FieldOptions_JSType>::value || ::std::is_integral<T>::value, "Incorrect type passed to function FieldOptions_JSType_Name.");
  323. return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
  324. FieldOptions_JSType_descriptor(), enum_t_value
  325. );
  326. }
  327. inline bool FieldOptions_JSType_Parse(
  328. ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, FieldOptions_JSType* value
  329. )
  330. {
  331. return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<FieldOptions_JSType>(
  332. FieldOptions_JSType_descriptor(), name, value
  333. );
  334. }
  335. enum MethodOptions_IdempotencyLevel : int
  336. {
  337. MethodOptions_IdempotencyLevel_IDEMPOTENCY_UNKNOWN = 0,
  338. MethodOptions_IdempotencyLevel_NO_SIDE_EFFECTS = 1,
  339. MethodOptions_IdempotencyLevel_IDEMPOTENT = 2
  340. };
  341. PROTOBUF_EXPORT bool MethodOptions_IdempotencyLevel_IsValid(int value);
  342. constexpr MethodOptions_IdempotencyLevel MethodOptions_IdempotencyLevel_IdempotencyLevel_MIN = MethodOptions_IdempotencyLevel_IDEMPOTENCY_UNKNOWN;
  343. constexpr MethodOptions_IdempotencyLevel MethodOptions_IdempotencyLevel_IdempotencyLevel_MAX = MethodOptions_IdempotencyLevel_IDEMPOTENT;
  344. constexpr int MethodOptions_IdempotencyLevel_IdempotencyLevel_ARRAYSIZE = MethodOptions_IdempotencyLevel_IdempotencyLevel_MAX + 1;
  345. PROTOBUF_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* MethodOptions_IdempotencyLevel_descriptor();
  346. template<typename T>
  347. inline const std::string& MethodOptions_IdempotencyLevel_Name(T enum_t_value)
  348. {
  349. static_assert(::std::is_same<T, MethodOptions_IdempotencyLevel>::value || ::std::is_integral<T>::value, "Incorrect type passed to function MethodOptions_IdempotencyLevel_Name.");
  350. return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
  351. MethodOptions_IdempotencyLevel_descriptor(), enum_t_value
  352. );
  353. }
  354. inline bool MethodOptions_IdempotencyLevel_Parse(
  355. ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, MethodOptions_IdempotencyLevel* value
  356. )
  357. {
  358. return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<MethodOptions_IdempotencyLevel>(
  359. MethodOptions_IdempotencyLevel_descriptor(), name, value
  360. );
  361. }
  362. // ===================================================================
  363. class PROTOBUF_EXPORT FileDescriptorSet final :
  364. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.FileDescriptorSet) */
  365. {
  366. public:
  367. inline FileDescriptorSet() :
  368. FileDescriptorSet(nullptr)
  369. {
  370. }
  371. ~FileDescriptorSet() override;
  372. explicit PROTOBUF_CONSTEXPR FileDescriptorSet(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  373. FileDescriptorSet(const FileDescriptorSet& from);
  374. FileDescriptorSet(FileDescriptorSet&& from) noexcept
  375. :
  376. FileDescriptorSet()
  377. {
  378. *this = ::std::move(from);
  379. }
  380. inline FileDescriptorSet& operator=(const FileDescriptorSet& from)
  381. {
  382. CopyFrom(from);
  383. return *this;
  384. }
  385. inline FileDescriptorSet& operator=(FileDescriptorSet&& from) noexcept
  386. {
  387. if (this == &from)
  388. return *this;
  389. if (GetOwningArena() == from.GetOwningArena()
  390. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  391. && GetOwningArena() != nullptr
  392. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  393. )
  394. {
  395. InternalSwap(&from);
  396. }
  397. else
  398. {
  399. CopyFrom(from);
  400. }
  401. return *this;
  402. }
  403. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const
  404. {
  405. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  406. }
  407. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields()
  408. {
  409. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  410. }
  411. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor()
  412. {
  413. return GetDescriptor();
  414. }
  415. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor()
  416. {
  417. return default_instance().GetMetadata().descriptor;
  418. }
  419. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection()
  420. {
  421. return default_instance().GetMetadata().reflection;
  422. }
  423. static const FileDescriptorSet& default_instance()
  424. {
  425. return *internal_default_instance();
  426. }
  427. static inline const FileDescriptorSet* internal_default_instance()
  428. {
  429. return reinterpret_cast<const FileDescriptorSet*>(
  430. &_FileDescriptorSet_default_instance_
  431. );
  432. }
  433. static constexpr int kIndexInFileMessages =
  434. 0;
  435. friend void swap(FileDescriptorSet& a, FileDescriptorSet& b)
  436. {
  437. a.Swap(&b);
  438. }
  439. inline void Swap(FileDescriptorSet* other)
  440. {
  441. if (other == this)
  442. return;
  443. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  444. if (GetOwningArena() != nullptr &&
  445. GetOwningArena() == other->GetOwningArena())
  446. {
  447. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  448. if (GetOwningArena() == other->GetOwningArena())
  449. {
  450. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  451. InternalSwap(other);
  452. }
  453. else
  454. {
  455. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  456. }
  457. }
  458. void UnsafeArenaSwap(FileDescriptorSet* other)
  459. {
  460. if (other == this)
  461. return;
  462. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  463. InternalSwap(other);
  464. }
  465. // implements Message ----------------------------------------------
  466. FileDescriptorSet* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final
  467. {
  468. return CreateMaybeMessage<FileDescriptorSet>(arena);
  469. }
  470. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  471. void CopyFrom(const FileDescriptorSet& from);
  472. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  473. void MergeFrom(const FileDescriptorSet& from)
  474. {
  475. FileDescriptorSet::MergeImpl(*this, from);
  476. }
  477. private:
  478. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
  479. public:
  480. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  481. bool IsInitialized() const final;
  482. size_t ByteSizeLong() const final;
  483. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  484. uint8_t* _InternalSerialize(
  485. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  486. ) const final;
  487. int GetCachedSize() const final
  488. {
  489. return _impl_._cached_size_.Get();
  490. }
  491. private:
  492. void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
  493. void SharedDtor();
  494. void SetCachedSize(int size) const final;
  495. void InternalSwap(FileDescriptorSet* other);
  496. private:
  497. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  498. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName()
  499. {
  500. return "google.protobuf.FileDescriptorSet";
  501. }
  502. protected:
  503. explicit FileDescriptorSet(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false);
  504. public:
  505. static const ClassData _class_data_;
  506. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final;
  507. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  508. // nested types ----------------------------------------------------
  509. // accessors -------------------------------------------------------
  510. enum : int
  511. {
  512. kFileFieldNumber = 1,
  513. };
  514. // repeated .google.protobuf.FileDescriptorProto file = 1;
  515. int file_size() const;
  516. private:
  517. int _internal_file_size() const;
  518. public:
  519. void clear_file();
  520. ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto* mutable_file(int index);
  521. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::FileDescriptorProto>*
  522. mutable_file();
  523. private:
  524. const ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto& _internal_file(int index) const;
  525. ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto* _internal_add_file();
  526. public:
  527. const ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto& file(int index) const;
  528. ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto* add_file();
  529. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::FileDescriptorProto>&
  530. file() const;
  531. // @@protoc_insertion_point(class_scope:google.protobuf.FileDescriptorSet)
  532. private:
  533. class _Internal;
  534. template<typename T>
  535. friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  536. typedef void InternalArenaConstructable_;
  537. typedef void DestructorSkippable_;
  538. struct Impl_
  539. {
  540. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::FileDescriptorProto> file_;
  541. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  542. };
  543. union
  544. {
  545. Impl_ _impl_;
  546. };
  547. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  548. };
  549. // -------------------------------------------------------------------
  550. class PROTOBUF_EXPORT FileDescriptorProto final :
  551. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.FileDescriptorProto) */
  552. {
  553. public:
  554. inline FileDescriptorProto() :
  555. FileDescriptorProto(nullptr)
  556. {
  557. }
  558. ~FileDescriptorProto() override;
  559. explicit PROTOBUF_CONSTEXPR FileDescriptorProto(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  560. FileDescriptorProto(const FileDescriptorProto& from);
  561. FileDescriptorProto(FileDescriptorProto&& from) noexcept
  562. :
  563. FileDescriptorProto()
  564. {
  565. *this = ::std::move(from);
  566. }
  567. inline FileDescriptorProto& operator=(const FileDescriptorProto& from)
  568. {
  569. CopyFrom(from);
  570. return *this;
  571. }
  572. inline FileDescriptorProto& operator=(FileDescriptorProto&& from) noexcept
  573. {
  574. if (this == &from)
  575. return *this;
  576. if (GetOwningArena() == from.GetOwningArena()
  577. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  578. && GetOwningArena() != nullptr
  579. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  580. )
  581. {
  582. InternalSwap(&from);
  583. }
  584. else
  585. {
  586. CopyFrom(from);
  587. }
  588. return *this;
  589. }
  590. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const
  591. {
  592. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  593. }
  594. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields()
  595. {
  596. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  597. }
  598. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor()
  599. {
  600. return GetDescriptor();
  601. }
  602. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor()
  603. {
  604. return default_instance().GetMetadata().descriptor;
  605. }
  606. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection()
  607. {
  608. return default_instance().GetMetadata().reflection;
  609. }
  610. static const FileDescriptorProto& default_instance()
  611. {
  612. return *internal_default_instance();
  613. }
  614. static inline const FileDescriptorProto* internal_default_instance()
  615. {
  616. return reinterpret_cast<const FileDescriptorProto*>(
  617. &_FileDescriptorProto_default_instance_
  618. );
  619. }
  620. static constexpr int kIndexInFileMessages =
  621. 1;
  622. friend void swap(FileDescriptorProto& a, FileDescriptorProto& b)
  623. {
  624. a.Swap(&b);
  625. }
  626. inline void Swap(FileDescriptorProto* other)
  627. {
  628. if (other == this)
  629. return;
  630. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  631. if (GetOwningArena() != nullptr &&
  632. GetOwningArena() == other->GetOwningArena())
  633. {
  634. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  635. if (GetOwningArena() == other->GetOwningArena())
  636. {
  637. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  638. InternalSwap(other);
  639. }
  640. else
  641. {
  642. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  643. }
  644. }
  645. void UnsafeArenaSwap(FileDescriptorProto* other)
  646. {
  647. if (other == this)
  648. return;
  649. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  650. InternalSwap(other);
  651. }
  652. // implements Message ----------------------------------------------
  653. FileDescriptorProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final
  654. {
  655. return CreateMaybeMessage<FileDescriptorProto>(arena);
  656. }
  657. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  658. void CopyFrom(const FileDescriptorProto& from);
  659. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  660. void MergeFrom(const FileDescriptorProto& from)
  661. {
  662. FileDescriptorProto::MergeImpl(*this, from);
  663. }
  664. private:
  665. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
  666. public:
  667. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  668. bool IsInitialized() const final;
  669. size_t ByteSizeLong() const final;
  670. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  671. uint8_t* _InternalSerialize(
  672. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  673. ) const final;
  674. int GetCachedSize() const final
  675. {
  676. return _impl_._cached_size_.Get();
  677. }
  678. private:
  679. void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
  680. void SharedDtor();
  681. void SetCachedSize(int size) const final;
  682. void InternalSwap(FileDescriptorProto* other);
  683. private:
  684. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  685. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName()
  686. {
  687. return "google.protobuf.FileDescriptorProto";
  688. }
  689. protected:
  690. explicit FileDescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false);
  691. public:
  692. static const ClassData _class_data_;
  693. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final;
  694. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  695. // nested types ----------------------------------------------------
  696. // accessors -------------------------------------------------------
  697. enum : int
  698. {
  699. kDependencyFieldNumber = 3,
  700. kMessageTypeFieldNumber = 4,
  701. kEnumTypeFieldNumber = 5,
  702. kServiceFieldNumber = 6,
  703. kExtensionFieldNumber = 7,
  704. kPublicDependencyFieldNumber = 10,
  705. kWeakDependencyFieldNumber = 11,
  706. kNameFieldNumber = 1,
  707. kPackageFieldNumber = 2,
  708. kSyntaxFieldNumber = 12,
  709. kOptionsFieldNumber = 8,
  710. kSourceCodeInfoFieldNumber = 9,
  711. };
  712. // repeated string dependency = 3;
  713. int dependency_size() const;
  714. private:
  715. int _internal_dependency_size() const;
  716. public:
  717. void clear_dependency();
  718. const std::string& dependency(int index) const;
  719. std::string* mutable_dependency(int index);
  720. void set_dependency(int index, const std::string& value);
  721. void set_dependency(int index, std::string&& value);
  722. void set_dependency(int index, const char* value);
  723. void set_dependency(int index, const char* value, size_t size);
  724. std::string* add_dependency();
  725. void add_dependency(const std::string& value);
  726. void add_dependency(std::string&& value);
  727. void add_dependency(const char* value);
  728. void add_dependency(const char* value, size_t size);
  729. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& dependency() const;
  730. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_dependency();
  731. private:
  732. const std::string& _internal_dependency(int index) const;
  733. std::string* _internal_add_dependency();
  734. public:
  735. // repeated .google.protobuf.DescriptorProto message_type = 4;
  736. int message_type_size() const;
  737. private:
  738. int _internal_message_type_size() const;
  739. public:
  740. void clear_message_type();
  741. ::PROTOBUF_NAMESPACE_ID::DescriptorProto* mutable_message_type(int index);
  742. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::DescriptorProto>*
  743. mutable_message_type();
  744. private:
  745. const ::PROTOBUF_NAMESPACE_ID::DescriptorProto& _internal_message_type(int index) const;
  746. ::PROTOBUF_NAMESPACE_ID::DescriptorProto* _internal_add_message_type();
  747. public:
  748. const ::PROTOBUF_NAMESPACE_ID::DescriptorProto& message_type(int index) const;
  749. ::PROTOBUF_NAMESPACE_ID::DescriptorProto* add_message_type();
  750. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::DescriptorProto>&
  751. message_type() const;
  752. // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
  753. int enum_type_size() const;
  754. private:
  755. int _internal_enum_type_size() const;
  756. public:
  757. void clear_enum_type();
  758. ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* mutable_enum_type(int index);
  759. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto>*
  760. mutable_enum_type();
  761. private:
  762. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto& _internal_enum_type(int index) const;
  763. ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* _internal_add_enum_type();
  764. public:
  765. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto& enum_type(int index) const;
  766. ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* add_enum_type();
  767. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto>&
  768. enum_type() const;
  769. // repeated .google.protobuf.ServiceDescriptorProto service = 6;
  770. int service_size() const;
  771. private:
  772. int _internal_service_size() const;
  773. public:
  774. void clear_service();
  775. ::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto* mutable_service(int index);
  776. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto>*
  777. mutable_service();
  778. private:
  779. const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto& _internal_service(int index) const;
  780. ::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto* _internal_add_service();
  781. public:
  782. const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto& service(int index) const;
  783. ::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto* add_service();
  784. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto>&
  785. service() const;
  786. // repeated .google.protobuf.FieldDescriptorProto extension = 7;
  787. int extension_size() const;
  788. private:
  789. int _internal_extension_size() const;
  790. public:
  791. void clear_extension();
  792. ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* mutable_extension(int index);
  793. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto>*
  794. mutable_extension();
  795. private:
  796. const ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto& _internal_extension(int index) const;
  797. ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* _internal_add_extension();
  798. public:
  799. const ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto& extension(int index) const;
  800. ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* add_extension();
  801. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto>&
  802. extension() const;
  803. // repeated int32 public_dependency = 10;
  804. int public_dependency_size() const;
  805. private:
  806. int _internal_public_dependency_size() const;
  807. public:
  808. void clear_public_dependency();
  809. private:
  810. int32_t _internal_public_dependency(int index) const;
  811. const ::PROTOBUF_NAMESPACE_ID::RepeatedField<int32_t>&
  812. _internal_public_dependency() const;
  813. void _internal_add_public_dependency(int32_t value);
  814. ::PROTOBUF_NAMESPACE_ID::RepeatedField<int32_t>*
  815. _internal_mutable_public_dependency();
  816. public:
  817. int32_t public_dependency(int index) const;
  818. void set_public_dependency(int index, int32_t value);
  819. void add_public_dependency(int32_t value);
  820. const ::PROTOBUF_NAMESPACE_ID::RepeatedField<int32_t>&
  821. public_dependency() const;
  822. ::PROTOBUF_NAMESPACE_ID::RepeatedField<int32_t>*
  823. mutable_public_dependency();
  824. // repeated int32 weak_dependency = 11;
  825. int weak_dependency_size() const;
  826. private:
  827. int _internal_weak_dependency_size() const;
  828. public:
  829. void clear_weak_dependency();
  830. private:
  831. int32_t _internal_weak_dependency(int index) const;
  832. const ::PROTOBUF_NAMESPACE_ID::RepeatedField<int32_t>&
  833. _internal_weak_dependency() const;
  834. void _internal_add_weak_dependency(int32_t value);
  835. ::PROTOBUF_NAMESPACE_ID::RepeatedField<int32_t>*
  836. _internal_mutable_weak_dependency();
  837. public:
  838. int32_t weak_dependency(int index) const;
  839. void set_weak_dependency(int index, int32_t value);
  840. void add_weak_dependency(int32_t value);
  841. const ::PROTOBUF_NAMESPACE_ID::RepeatedField<int32_t>&
  842. weak_dependency() const;
  843. ::PROTOBUF_NAMESPACE_ID::RepeatedField<int32_t>*
  844. mutable_weak_dependency();
  845. // optional string name = 1;
  846. bool has_name() const;
  847. private:
  848. bool _internal_has_name() const;
  849. public:
  850. void clear_name();
  851. const std::string& name() const;
  852. template<typename ArgT0 = const std::string&, typename... ArgT>
  853. void set_name(ArgT0&& arg0, ArgT... args);
  854. std::string* mutable_name();
  855. PROTOBUF_NODISCARD std::string* release_name();
  856. void set_allocated_name(std::string* name);
  857. private:
  858. const std::string& _internal_name() const;
  859. inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
  860. std::string* _internal_mutable_name();
  861. public:
  862. // optional string package = 2;
  863. bool has_package() const;
  864. private:
  865. bool _internal_has_package() const;
  866. public:
  867. void clear_package();
  868. const std::string& package() const;
  869. template<typename ArgT0 = const std::string&, typename... ArgT>
  870. void set_package(ArgT0&& arg0, ArgT... args);
  871. std::string* mutable_package();
  872. PROTOBUF_NODISCARD std::string* release_package();
  873. void set_allocated_package(std::string* package);
  874. private:
  875. const std::string& _internal_package() const;
  876. inline PROTOBUF_ALWAYS_INLINE void _internal_set_package(const std::string& value);
  877. std::string* _internal_mutable_package();
  878. public:
  879. // optional string syntax = 12;
  880. bool has_syntax() const;
  881. private:
  882. bool _internal_has_syntax() const;
  883. public:
  884. void clear_syntax();
  885. const std::string& syntax() const;
  886. template<typename ArgT0 = const std::string&, typename... ArgT>
  887. void set_syntax(ArgT0&& arg0, ArgT... args);
  888. std::string* mutable_syntax();
  889. PROTOBUF_NODISCARD std::string* release_syntax();
  890. void set_allocated_syntax(std::string* syntax);
  891. private:
  892. const std::string& _internal_syntax() const;
  893. inline PROTOBUF_ALWAYS_INLINE void _internal_set_syntax(const std::string& value);
  894. std::string* _internal_mutable_syntax();
  895. public:
  896. // optional .google.protobuf.FileOptions options = 8;
  897. bool has_options() const;
  898. private:
  899. bool _internal_has_options() const;
  900. public:
  901. void clear_options();
  902. const ::PROTOBUF_NAMESPACE_ID::FileOptions& options() const;
  903. PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::FileOptions* release_options();
  904. ::PROTOBUF_NAMESPACE_ID::FileOptions* mutable_options();
  905. void set_allocated_options(::PROTOBUF_NAMESPACE_ID::FileOptions* options);
  906. private:
  907. const ::PROTOBUF_NAMESPACE_ID::FileOptions& _internal_options() const;
  908. ::PROTOBUF_NAMESPACE_ID::FileOptions* _internal_mutable_options();
  909. public:
  910. void unsafe_arena_set_allocated_options(
  911. ::PROTOBUF_NAMESPACE_ID::FileOptions* options
  912. );
  913. ::PROTOBUF_NAMESPACE_ID::FileOptions* unsafe_arena_release_options();
  914. // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
  915. bool has_source_code_info() const;
  916. private:
  917. bool _internal_has_source_code_info() const;
  918. public:
  919. void clear_source_code_info();
  920. const ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo& source_code_info() const;
  921. PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo* release_source_code_info();
  922. ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo* mutable_source_code_info();
  923. void set_allocated_source_code_info(::PROTOBUF_NAMESPACE_ID::SourceCodeInfo* source_code_info);
  924. private:
  925. const ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo& _internal_source_code_info() const;
  926. ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo* _internal_mutable_source_code_info();
  927. public:
  928. void unsafe_arena_set_allocated_source_code_info(
  929. ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo* source_code_info
  930. );
  931. ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo* unsafe_arena_release_source_code_info();
  932. // @@protoc_insertion_point(class_scope:google.protobuf.FileDescriptorProto)
  933. private:
  934. class _Internal;
  935. template<typename T>
  936. friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  937. typedef void InternalArenaConstructable_;
  938. typedef void DestructorSkippable_;
  939. struct Impl_
  940. {
  941. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  942. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  943. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> dependency_;
  944. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::DescriptorProto> message_type_;
  945. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto> enum_type_;
  946. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto> service_;
  947. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto> extension_;
  948. ::PROTOBUF_NAMESPACE_ID::RepeatedField<int32_t> public_dependency_;
  949. ::PROTOBUF_NAMESPACE_ID::RepeatedField<int32_t> weak_dependency_;
  950. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  951. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr package_;
  952. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr syntax_;
  953. ::PROTOBUF_NAMESPACE_ID::FileOptions* options_;
  954. ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo* source_code_info_;
  955. };
  956. union
  957. {
  958. Impl_ _impl_;
  959. };
  960. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  961. };
  962. // -------------------------------------------------------------------
  963. class PROTOBUF_EXPORT DescriptorProto_ExtensionRange final :
  964. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.DescriptorProto.ExtensionRange) */
  965. {
  966. public:
  967. inline DescriptorProto_ExtensionRange() :
  968. DescriptorProto_ExtensionRange(nullptr)
  969. {
  970. }
  971. ~DescriptorProto_ExtensionRange() override;
  972. explicit PROTOBUF_CONSTEXPR DescriptorProto_ExtensionRange(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  973. DescriptorProto_ExtensionRange(const DescriptorProto_ExtensionRange& from);
  974. DescriptorProto_ExtensionRange(DescriptorProto_ExtensionRange&& from) noexcept
  975. :
  976. DescriptorProto_ExtensionRange()
  977. {
  978. *this = ::std::move(from);
  979. }
  980. inline DescriptorProto_ExtensionRange& operator=(const DescriptorProto_ExtensionRange& from)
  981. {
  982. CopyFrom(from);
  983. return *this;
  984. }
  985. inline DescriptorProto_ExtensionRange& operator=(DescriptorProto_ExtensionRange&& from) noexcept
  986. {
  987. if (this == &from)
  988. return *this;
  989. if (GetOwningArena() == from.GetOwningArena()
  990. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  991. && GetOwningArena() != nullptr
  992. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  993. )
  994. {
  995. InternalSwap(&from);
  996. }
  997. else
  998. {
  999. CopyFrom(from);
  1000. }
  1001. return *this;
  1002. }
  1003. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const
  1004. {
  1005. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  1006. }
  1007. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields()
  1008. {
  1009. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1010. }
  1011. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor()
  1012. {
  1013. return GetDescriptor();
  1014. }
  1015. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor()
  1016. {
  1017. return default_instance().GetMetadata().descriptor;
  1018. }
  1019. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection()
  1020. {
  1021. return default_instance().GetMetadata().reflection;
  1022. }
  1023. static const DescriptorProto_ExtensionRange& default_instance()
  1024. {
  1025. return *internal_default_instance();
  1026. }
  1027. static inline const DescriptorProto_ExtensionRange* internal_default_instance()
  1028. {
  1029. return reinterpret_cast<const DescriptorProto_ExtensionRange*>(
  1030. &_DescriptorProto_ExtensionRange_default_instance_
  1031. );
  1032. }
  1033. static constexpr int kIndexInFileMessages =
  1034. 2;
  1035. friend void swap(DescriptorProto_ExtensionRange& a, DescriptorProto_ExtensionRange& b)
  1036. {
  1037. a.Swap(&b);
  1038. }
  1039. inline void Swap(DescriptorProto_ExtensionRange* other)
  1040. {
  1041. if (other == this)
  1042. return;
  1043. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  1044. if (GetOwningArena() != nullptr &&
  1045. GetOwningArena() == other->GetOwningArena())
  1046. {
  1047. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  1048. if (GetOwningArena() == other->GetOwningArena())
  1049. {
  1050. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  1051. InternalSwap(other);
  1052. }
  1053. else
  1054. {
  1055. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  1056. }
  1057. }
  1058. void UnsafeArenaSwap(DescriptorProto_ExtensionRange* other)
  1059. {
  1060. if (other == this)
  1061. return;
  1062. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  1063. InternalSwap(other);
  1064. }
  1065. // implements Message ----------------------------------------------
  1066. DescriptorProto_ExtensionRange* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final
  1067. {
  1068. return CreateMaybeMessage<DescriptorProto_ExtensionRange>(arena);
  1069. }
  1070. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  1071. void CopyFrom(const DescriptorProto_ExtensionRange& from);
  1072. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  1073. void MergeFrom(const DescriptorProto_ExtensionRange& from)
  1074. {
  1075. DescriptorProto_ExtensionRange::MergeImpl(*this, from);
  1076. }
  1077. private:
  1078. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
  1079. public:
  1080. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  1081. bool IsInitialized() const final;
  1082. size_t ByteSizeLong() const final;
  1083. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  1084. uint8_t* _InternalSerialize(
  1085. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  1086. ) const final;
  1087. int GetCachedSize() const final
  1088. {
  1089. return _impl_._cached_size_.Get();
  1090. }
  1091. private:
  1092. void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
  1093. void SharedDtor();
  1094. void SetCachedSize(int size) const final;
  1095. void InternalSwap(DescriptorProto_ExtensionRange* other);
  1096. private:
  1097. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  1098. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName()
  1099. {
  1100. return "google.protobuf.DescriptorProto.ExtensionRange";
  1101. }
  1102. protected:
  1103. explicit DescriptorProto_ExtensionRange(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false);
  1104. public:
  1105. static const ClassData _class_data_;
  1106. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final;
  1107. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  1108. // nested types ----------------------------------------------------
  1109. // accessors -------------------------------------------------------
  1110. enum : int
  1111. {
  1112. kOptionsFieldNumber = 3,
  1113. kStartFieldNumber = 1,
  1114. kEndFieldNumber = 2,
  1115. };
  1116. // optional .google.protobuf.ExtensionRangeOptions options = 3;
  1117. bool has_options() const;
  1118. private:
  1119. bool _internal_has_options() const;
  1120. public:
  1121. void clear_options();
  1122. const ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions& options() const;
  1123. PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* release_options();
  1124. ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* mutable_options();
  1125. void set_allocated_options(::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* options);
  1126. private:
  1127. const ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions& _internal_options() const;
  1128. ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* _internal_mutable_options();
  1129. public:
  1130. void unsafe_arena_set_allocated_options(
  1131. ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* options
  1132. );
  1133. ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* unsafe_arena_release_options();
  1134. // optional int32 start = 1;
  1135. bool has_start() const;
  1136. private:
  1137. bool _internal_has_start() const;
  1138. public:
  1139. void clear_start();
  1140. int32_t start() const;
  1141. void set_start(int32_t value);
  1142. private:
  1143. int32_t _internal_start() const;
  1144. void _internal_set_start(int32_t value);
  1145. public:
  1146. // optional int32 end = 2;
  1147. bool has_end() const;
  1148. private:
  1149. bool _internal_has_end() const;
  1150. public:
  1151. void clear_end();
  1152. int32_t end() const;
  1153. void set_end(int32_t value);
  1154. private:
  1155. int32_t _internal_end() const;
  1156. void _internal_set_end(int32_t value);
  1157. public:
  1158. // @@protoc_insertion_point(class_scope:google.protobuf.DescriptorProto.ExtensionRange)
  1159. private:
  1160. class _Internal;
  1161. template<typename T>
  1162. friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  1163. typedef void InternalArenaConstructable_;
  1164. typedef void DestructorSkippable_;
  1165. struct Impl_
  1166. {
  1167. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  1168. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  1169. ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* options_;
  1170. int32_t start_;
  1171. int32_t end_;
  1172. };
  1173. union
  1174. {
  1175. Impl_ _impl_;
  1176. };
  1177. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  1178. };
  1179. // -------------------------------------------------------------------
  1180. class PROTOBUF_EXPORT DescriptorProto_ReservedRange final :
  1181. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.DescriptorProto.ReservedRange) */
  1182. {
  1183. public:
  1184. inline DescriptorProto_ReservedRange() :
  1185. DescriptorProto_ReservedRange(nullptr)
  1186. {
  1187. }
  1188. ~DescriptorProto_ReservedRange() override;
  1189. explicit PROTOBUF_CONSTEXPR DescriptorProto_ReservedRange(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  1190. DescriptorProto_ReservedRange(const DescriptorProto_ReservedRange& from);
  1191. DescriptorProto_ReservedRange(DescriptorProto_ReservedRange&& from) noexcept
  1192. :
  1193. DescriptorProto_ReservedRange()
  1194. {
  1195. *this = ::std::move(from);
  1196. }
  1197. inline DescriptorProto_ReservedRange& operator=(const DescriptorProto_ReservedRange& from)
  1198. {
  1199. CopyFrom(from);
  1200. return *this;
  1201. }
  1202. inline DescriptorProto_ReservedRange& operator=(DescriptorProto_ReservedRange&& from) noexcept
  1203. {
  1204. if (this == &from)
  1205. return *this;
  1206. if (GetOwningArena() == from.GetOwningArena()
  1207. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  1208. && GetOwningArena() != nullptr
  1209. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  1210. )
  1211. {
  1212. InternalSwap(&from);
  1213. }
  1214. else
  1215. {
  1216. CopyFrom(from);
  1217. }
  1218. return *this;
  1219. }
  1220. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const
  1221. {
  1222. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  1223. }
  1224. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields()
  1225. {
  1226. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1227. }
  1228. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor()
  1229. {
  1230. return GetDescriptor();
  1231. }
  1232. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor()
  1233. {
  1234. return default_instance().GetMetadata().descriptor;
  1235. }
  1236. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection()
  1237. {
  1238. return default_instance().GetMetadata().reflection;
  1239. }
  1240. static const DescriptorProto_ReservedRange& default_instance()
  1241. {
  1242. return *internal_default_instance();
  1243. }
  1244. static inline const DescriptorProto_ReservedRange* internal_default_instance()
  1245. {
  1246. return reinterpret_cast<const DescriptorProto_ReservedRange*>(
  1247. &_DescriptorProto_ReservedRange_default_instance_
  1248. );
  1249. }
  1250. static constexpr int kIndexInFileMessages =
  1251. 3;
  1252. friend void swap(DescriptorProto_ReservedRange& a, DescriptorProto_ReservedRange& b)
  1253. {
  1254. a.Swap(&b);
  1255. }
  1256. inline void Swap(DescriptorProto_ReservedRange* other)
  1257. {
  1258. if (other == this)
  1259. return;
  1260. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  1261. if (GetOwningArena() != nullptr &&
  1262. GetOwningArena() == other->GetOwningArena())
  1263. {
  1264. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  1265. if (GetOwningArena() == other->GetOwningArena())
  1266. {
  1267. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  1268. InternalSwap(other);
  1269. }
  1270. else
  1271. {
  1272. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  1273. }
  1274. }
  1275. void UnsafeArenaSwap(DescriptorProto_ReservedRange* other)
  1276. {
  1277. if (other == this)
  1278. return;
  1279. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  1280. InternalSwap(other);
  1281. }
  1282. // implements Message ----------------------------------------------
  1283. DescriptorProto_ReservedRange* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final
  1284. {
  1285. return CreateMaybeMessage<DescriptorProto_ReservedRange>(arena);
  1286. }
  1287. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  1288. void CopyFrom(const DescriptorProto_ReservedRange& from);
  1289. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  1290. void MergeFrom(const DescriptorProto_ReservedRange& from)
  1291. {
  1292. DescriptorProto_ReservedRange::MergeImpl(*this, from);
  1293. }
  1294. private:
  1295. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
  1296. public:
  1297. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  1298. bool IsInitialized() const final;
  1299. size_t ByteSizeLong() const final;
  1300. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  1301. uint8_t* _InternalSerialize(
  1302. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  1303. ) const final;
  1304. int GetCachedSize() const final
  1305. {
  1306. return _impl_._cached_size_.Get();
  1307. }
  1308. private:
  1309. void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
  1310. void SharedDtor();
  1311. void SetCachedSize(int size) const final;
  1312. void InternalSwap(DescriptorProto_ReservedRange* other);
  1313. private:
  1314. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  1315. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName()
  1316. {
  1317. return "google.protobuf.DescriptorProto.ReservedRange";
  1318. }
  1319. protected:
  1320. explicit DescriptorProto_ReservedRange(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false);
  1321. public:
  1322. static const ClassData _class_data_;
  1323. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final;
  1324. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  1325. // nested types ----------------------------------------------------
  1326. // accessors -------------------------------------------------------
  1327. enum : int
  1328. {
  1329. kStartFieldNumber = 1,
  1330. kEndFieldNumber = 2,
  1331. };
  1332. // optional int32 start = 1;
  1333. bool has_start() const;
  1334. private:
  1335. bool _internal_has_start() const;
  1336. public:
  1337. void clear_start();
  1338. int32_t start() const;
  1339. void set_start(int32_t value);
  1340. private:
  1341. int32_t _internal_start() const;
  1342. void _internal_set_start(int32_t value);
  1343. public:
  1344. // optional int32 end = 2;
  1345. bool has_end() const;
  1346. private:
  1347. bool _internal_has_end() const;
  1348. public:
  1349. void clear_end();
  1350. int32_t end() const;
  1351. void set_end(int32_t value);
  1352. private:
  1353. int32_t _internal_end() const;
  1354. void _internal_set_end(int32_t value);
  1355. public:
  1356. // @@protoc_insertion_point(class_scope:google.protobuf.DescriptorProto.ReservedRange)
  1357. private:
  1358. class _Internal;
  1359. template<typename T>
  1360. friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  1361. typedef void InternalArenaConstructable_;
  1362. typedef void DestructorSkippable_;
  1363. struct Impl_
  1364. {
  1365. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  1366. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  1367. int32_t start_;
  1368. int32_t end_;
  1369. };
  1370. union
  1371. {
  1372. Impl_ _impl_;
  1373. };
  1374. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  1375. };
  1376. // -------------------------------------------------------------------
  1377. class PROTOBUF_EXPORT DescriptorProto final :
  1378. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.DescriptorProto) */
  1379. {
  1380. public:
  1381. inline DescriptorProto() :
  1382. DescriptorProto(nullptr)
  1383. {
  1384. }
  1385. ~DescriptorProto() override;
  1386. explicit PROTOBUF_CONSTEXPR DescriptorProto(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  1387. DescriptorProto(const DescriptorProto& from);
  1388. DescriptorProto(DescriptorProto&& from) noexcept
  1389. :
  1390. DescriptorProto()
  1391. {
  1392. *this = ::std::move(from);
  1393. }
  1394. inline DescriptorProto& operator=(const DescriptorProto& from)
  1395. {
  1396. CopyFrom(from);
  1397. return *this;
  1398. }
  1399. inline DescriptorProto& operator=(DescriptorProto&& from) noexcept
  1400. {
  1401. if (this == &from)
  1402. return *this;
  1403. if (GetOwningArena() == from.GetOwningArena()
  1404. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  1405. && GetOwningArena() != nullptr
  1406. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  1407. )
  1408. {
  1409. InternalSwap(&from);
  1410. }
  1411. else
  1412. {
  1413. CopyFrom(from);
  1414. }
  1415. return *this;
  1416. }
  1417. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const
  1418. {
  1419. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  1420. }
  1421. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields()
  1422. {
  1423. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1424. }
  1425. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor()
  1426. {
  1427. return GetDescriptor();
  1428. }
  1429. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor()
  1430. {
  1431. return default_instance().GetMetadata().descriptor;
  1432. }
  1433. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection()
  1434. {
  1435. return default_instance().GetMetadata().reflection;
  1436. }
  1437. static const DescriptorProto& default_instance()
  1438. {
  1439. return *internal_default_instance();
  1440. }
  1441. static inline const DescriptorProto* internal_default_instance()
  1442. {
  1443. return reinterpret_cast<const DescriptorProto*>(
  1444. &_DescriptorProto_default_instance_
  1445. );
  1446. }
  1447. static constexpr int kIndexInFileMessages =
  1448. 4;
  1449. friend void swap(DescriptorProto& a, DescriptorProto& b)
  1450. {
  1451. a.Swap(&b);
  1452. }
  1453. inline void Swap(DescriptorProto* other)
  1454. {
  1455. if (other == this)
  1456. return;
  1457. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  1458. if (GetOwningArena() != nullptr &&
  1459. GetOwningArena() == other->GetOwningArena())
  1460. {
  1461. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  1462. if (GetOwningArena() == other->GetOwningArena())
  1463. {
  1464. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  1465. InternalSwap(other);
  1466. }
  1467. else
  1468. {
  1469. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  1470. }
  1471. }
  1472. void UnsafeArenaSwap(DescriptorProto* other)
  1473. {
  1474. if (other == this)
  1475. return;
  1476. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  1477. InternalSwap(other);
  1478. }
  1479. // implements Message ----------------------------------------------
  1480. DescriptorProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final
  1481. {
  1482. return CreateMaybeMessage<DescriptorProto>(arena);
  1483. }
  1484. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  1485. void CopyFrom(const DescriptorProto& from);
  1486. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  1487. void MergeFrom(const DescriptorProto& from)
  1488. {
  1489. DescriptorProto::MergeImpl(*this, from);
  1490. }
  1491. private:
  1492. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
  1493. public:
  1494. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  1495. bool IsInitialized() const final;
  1496. size_t ByteSizeLong() const final;
  1497. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  1498. uint8_t* _InternalSerialize(
  1499. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  1500. ) const final;
  1501. int GetCachedSize() const final
  1502. {
  1503. return _impl_._cached_size_.Get();
  1504. }
  1505. private:
  1506. void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
  1507. void SharedDtor();
  1508. void SetCachedSize(int size) const final;
  1509. void InternalSwap(DescriptorProto* other);
  1510. private:
  1511. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  1512. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName()
  1513. {
  1514. return "google.protobuf.DescriptorProto";
  1515. }
  1516. protected:
  1517. explicit DescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false);
  1518. public:
  1519. static const ClassData _class_data_;
  1520. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final;
  1521. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  1522. // nested types ----------------------------------------------------
  1523. typedef DescriptorProto_ExtensionRange ExtensionRange;
  1524. typedef DescriptorProto_ReservedRange ReservedRange;
  1525. // accessors -------------------------------------------------------
  1526. enum : int
  1527. {
  1528. kFieldFieldNumber = 2,
  1529. kNestedTypeFieldNumber = 3,
  1530. kEnumTypeFieldNumber = 4,
  1531. kExtensionRangeFieldNumber = 5,
  1532. kExtensionFieldNumber = 6,
  1533. kOneofDeclFieldNumber = 8,
  1534. kReservedRangeFieldNumber = 9,
  1535. kReservedNameFieldNumber = 10,
  1536. kNameFieldNumber = 1,
  1537. kOptionsFieldNumber = 7,
  1538. };
  1539. // repeated .google.protobuf.FieldDescriptorProto field = 2;
  1540. int field_size() const;
  1541. private:
  1542. int _internal_field_size() const;
  1543. public:
  1544. void clear_field();
  1545. ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* mutable_field(int index);
  1546. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto>*
  1547. mutable_field();
  1548. private:
  1549. const ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto& _internal_field(int index) const;
  1550. ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* _internal_add_field();
  1551. public:
  1552. const ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto& field(int index) const;
  1553. ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* add_field();
  1554. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto>&
  1555. field() const;
  1556. // repeated .google.protobuf.DescriptorProto nested_type = 3;
  1557. int nested_type_size() const;
  1558. private:
  1559. int _internal_nested_type_size() const;
  1560. public:
  1561. void clear_nested_type();
  1562. ::PROTOBUF_NAMESPACE_ID::DescriptorProto* mutable_nested_type(int index);
  1563. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::DescriptorProto>*
  1564. mutable_nested_type();
  1565. private:
  1566. const ::PROTOBUF_NAMESPACE_ID::DescriptorProto& _internal_nested_type(int index) const;
  1567. ::PROTOBUF_NAMESPACE_ID::DescriptorProto* _internal_add_nested_type();
  1568. public:
  1569. const ::PROTOBUF_NAMESPACE_ID::DescriptorProto& nested_type(int index) const;
  1570. ::PROTOBUF_NAMESPACE_ID::DescriptorProto* add_nested_type();
  1571. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::DescriptorProto>&
  1572. nested_type() const;
  1573. // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
  1574. int enum_type_size() const;
  1575. private:
  1576. int _internal_enum_type_size() const;
  1577. public:
  1578. void clear_enum_type();
  1579. ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* mutable_enum_type(int index);
  1580. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto>*
  1581. mutable_enum_type();
  1582. private:
  1583. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto& _internal_enum_type(int index) const;
  1584. ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* _internal_add_enum_type();
  1585. public:
  1586. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto& enum_type(int index) const;
  1587. ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* add_enum_type();
  1588. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto>&
  1589. enum_type() const;
  1590. // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
  1591. int extension_range_size() const;
  1592. private:
  1593. int _internal_extension_range_size() const;
  1594. public:
  1595. void clear_extension_range();
  1596. ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange* mutable_extension_range(int index);
  1597. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange>*
  1598. mutable_extension_range();
  1599. private:
  1600. const ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange& _internal_extension_range(int index) const;
  1601. ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange* _internal_add_extension_range();
  1602. public:
  1603. const ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange& extension_range(int index) const;
  1604. ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange* add_extension_range();
  1605. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange>&
  1606. extension_range() const;
  1607. // repeated .google.protobuf.FieldDescriptorProto extension = 6;
  1608. int extension_size() const;
  1609. private:
  1610. int _internal_extension_size() const;
  1611. public:
  1612. void clear_extension();
  1613. ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* mutable_extension(int index);
  1614. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto>*
  1615. mutable_extension();
  1616. private:
  1617. const ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto& _internal_extension(int index) const;
  1618. ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* _internal_add_extension();
  1619. public:
  1620. const ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto& extension(int index) const;
  1621. ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* add_extension();
  1622. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto>&
  1623. extension() const;
  1624. // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
  1625. int oneof_decl_size() const;
  1626. private:
  1627. int _internal_oneof_decl_size() const;
  1628. public:
  1629. void clear_oneof_decl();
  1630. ::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto* mutable_oneof_decl(int index);
  1631. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto>*
  1632. mutable_oneof_decl();
  1633. private:
  1634. const ::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto& _internal_oneof_decl(int index) const;
  1635. ::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto* _internal_add_oneof_decl();
  1636. public:
  1637. const ::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto& oneof_decl(int index) const;
  1638. ::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto* add_oneof_decl();
  1639. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto>&
  1640. oneof_decl() const;
  1641. // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
  1642. int reserved_range_size() const;
  1643. private:
  1644. int _internal_reserved_range_size() const;
  1645. public:
  1646. void clear_reserved_range();
  1647. ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange* mutable_reserved_range(int index);
  1648. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange>*
  1649. mutable_reserved_range();
  1650. private:
  1651. const ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange& _internal_reserved_range(int index) const;
  1652. ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange* _internal_add_reserved_range();
  1653. public:
  1654. const ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange& reserved_range(int index) const;
  1655. ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange* add_reserved_range();
  1656. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange>&
  1657. reserved_range() const;
  1658. // repeated string reserved_name = 10;
  1659. int reserved_name_size() const;
  1660. private:
  1661. int _internal_reserved_name_size() const;
  1662. public:
  1663. void clear_reserved_name();
  1664. const std::string& reserved_name(int index) const;
  1665. std::string* mutable_reserved_name(int index);
  1666. void set_reserved_name(int index, const std::string& value);
  1667. void set_reserved_name(int index, std::string&& value);
  1668. void set_reserved_name(int index, const char* value);
  1669. void set_reserved_name(int index, const char* value, size_t size);
  1670. std::string* add_reserved_name();
  1671. void add_reserved_name(const std::string& value);
  1672. void add_reserved_name(std::string&& value);
  1673. void add_reserved_name(const char* value);
  1674. void add_reserved_name(const char* value, size_t size);
  1675. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& reserved_name() const;
  1676. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_reserved_name();
  1677. private:
  1678. const std::string& _internal_reserved_name(int index) const;
  1679. std::string* _internal_add_reserved_name();
  1680. public:
  1681. // optional string name = 1;
  1682. bool has_name() const;
  1683. private:
  1684. bool _internal_has_name() const;
  1685. public:
  1686. void clear_name();
  1687. const std::string& name() const;
  1688. template<typename ArgT0 = const std::string&, typename... ArgT>
  1689. void set_name(ArgT0&& arg0, ArgT... args);
  1690. std::string* mutable_name();
  1691. PROTOBUF_NODISCARD std::string* release_name();
  1692. void set_allocated_name(std::string* name);
  1693. private:
  1694. const std::string& _internal_name() const;
  1695. inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
  1696. std::string* _internal_mutable_name();
  1697. public:
  1698. // optional .google.protobuf.MessageOptions options = 7;
  1699. bool has_options() const;
  1700. private:
  1701. bool _internal_has_options() const;
  1702. public:
  1703. void clear_options();
  1704. const ::PROTOBUF_NAMESPACE_ID::MessageOptions& options() const;
  1705. PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::MessageOptions* release_options();
  1706. ::PROTOBUF_NAMESPACE_ID::MessageOptions* mutable_options();
  1707. void set_allocated_options(::PROTOBUF_NAMESPACE_ID::MessageOptions* options);
  1708. private:
  1709. const ::PROTOBUF_NAMESPACE_ID::MessageOptions& _internal_options() const;
  1710. ::PROTOBUF_NAMESPACE_ID::MessageOptions* _internal_mutable_options();
  1711. public:
  1712. void unsafe_arena_set_allocated_options(
  1713. ::PROTOBUF_NAMESPACE_ID::MessageOptions* options
  1714. );
  1715. ::PROTOBUF_NAMESPACE_ID::MessageOptions* unsafe_arena_release_options();
  1716. // @@protoc_insertion_point(class_scope:google.protobuf.DescriptorProto)
  1717. private:
  1718. class _Internal;
  1719. template<typename T>
  1720. friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  1721. typedef void InternalArenaConstructable_;
  1722. typedef void DestructorSkippable_;
  1723. struct Impl_
  1724. {
  1725. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  1726. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  1727. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto> field_;
  1728. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::DescriptorProto> nested_type_;
  1729. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto> enum_type_;
  1730. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange> extension_range_;
  1731. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto> extension_;
  1732. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto> oneof_decl_;
  1733. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange> reserved_range_;
  1734. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> reserved_name_;
  1735. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  1736. ::PROTOBUF_NAMESPACE_ID::MessageOptions* options_;
  1737. };
  1738. union
  1739. {
  1740. Impl_ _impl_;
  1741. };
  1742. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  1743. };
  1744. // -------------------------------------------------------------------
  1745. class PROTOBUF_EXPORT ExtensionRangeOptions final :
  1746. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.ExtensionRangeOptions) */
  1747. {
  1748. public:
  1749. inline ExtensionRangeOptions() :
  1750. ExtensionRangeOptions(nullptr)
  1751. {
  1752. }
  1753. ~ExtensionRangeOptions() override;
  1754. explicit PROTOBUF_CONSTEXPR ExtensionRangeOptions(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  1755. ExtensionRangeOptions(const ExtensionRangeOptions& from);
  1756. ExtensionRangeOptions(ExtensionRangeOptions&& from) noexcept
  1757. :
  1758. ExtensionRangeOptions()
  1759. {
  1760. *this = ::std::move(from);
  1761. }
  1762. inline ExtensionRangeOptions& operator=(const ExtensionRangeOptions& from)
  1763. {
  1764. CopyFrom(from);
  1765. return *this;
  1766. }
  1767. inline ExtensionRangeOptions& operator=(ExtensionRangeOptions&& from) noexcept
  1768. {
  1769. if (this == &from)
  1770. return *this;
  1771. if (GetOwningArena() == from.GetOwningArena()
  1772. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  1773. && GetOwningArena() != nullptr
  1774. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  1775. )
  1776. {
  1777. InternalSwap(&from);
  1778. }
  1779. else
  1780. {
  1781. CopyFrom(from);
  1782. }
  1783. return *this;
  1784. }
  1785. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const
  1786. {
  1787. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  1788. }
  1789. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields()
  1790. {
  1791. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1792. }
  1793. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor()
  1794. {
  1795. return GetDescriptor();
  1796. }
  1797. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor()
  1798. {
  1799. return default_instance().GetMetadata().descriptor;
  1800. }
  1801. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection()
  1802. {
  1803. return default_instance().GetMetadata().reflection;
  1804. }
  1805. static const ExtensionRangeOptions& default_instance()
  1806. {
  1807. return *internal_default_instance();
  1808. }
  1809. static inline const ExtensionRangeOptions* internal_default_instance()
  1810. {
  1811. return reinterpret_cast<const ExtensionRangeOptions*>(
  1812. &_ExtensionRangeOptions_default_instance_
  1813. );
  1814. }
  1815. static constexpr int kIndexInFileMessages =
  1816. 5;
  1817. friend void swap(ExtensionRangeOptions& a, ExtensionRangeOptions& b)
  1818. {
  1819. a.Swap(&b);
  1820. }
  1821. inline void Swap(ExtensionRangeOptions* other)
  1822. {
  1823. if (other == this)
  1824. return;
  1825. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  1826. if (GetOwningArena() != nullptr &&
  1827. GetOwningArena() == other->GetOwningArena())
  1828. {
  1829. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  1830. if (GetOwningArena() == other->GetOwningArena())
  1831. {
  1832. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  1833. InternalSwap(other);
  1834. }
  1835. else
  1836. {
  1837. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  1838. }
  1839. }
  1840. void UnsafeArenaSwap(ExtensionRangeOptions* other)
  1841. {
  1842. if (other == this)
  1843. return;
  1844. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  1845. InternalSwap(other);
  1846. }
  1847. // implements Message ----------------------------------------------
  1848. ExtensionRangeOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final
  1849. {
  1850. return CreateMaybeMessage<ExtensionRangeOptions>(arena);
  1851. }
  1852. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  1853. void CopyFrom(const ExtensionRangeOptions& from);
  1854. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  1855. void MergeFrom(const ExtensionRangeOptions& from)
  1856. {
  1857. ExtensionRangeOptions::MergeImpl(*this, from);
  1858. }
  1859. private:
  1860. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
  1861. public:
  1862. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  1863. bool IsInitialized() const final;
  1864. size_t ByteSizeLong() const final;
  1865. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  1866. uint8_t* _InternalSerialize(
  1867. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  1868. ) const final;
  1869. int GetCachedSize() const final
  1870. {
  1871. return _impl_._cached_size_.Get();
  1872. }
  1873. private:
  1874. void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
  1875. void SharedDtor();
  1876. void SetCachedSize(int size) const final;
  1877. void InternalSwap(ExtensionRangeOptions* other);
  1878. private:
  1879. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  1880. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName()
  1881. {
  1882. return "google.protobuf.ExtensionRangeOptions";
  1883. }
  1884. protected:
  1885. explicit ExtensionRangeOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false);
  1886. public:
  1887. static const ClassData _class_data_;
  1888. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final;
  1889. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  1890. // nested types ----------------------------------------------------
  1891. // accessors -------------------------------------------------------
  1892. enum : int
  1893. {
  1894. kUninterpretedOptionFieldNumber = 999,
  1895. };
  1896. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  1897. int uninterpreted_option_size() const;
  1898. private:
  1899. int _internal_uninterpreted_option_size() const;
  1900. public:
  1901. void clear_uninterpreted_option();
  1902. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* mutable_uninterpreted_option(int index);
  1903. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::UninterpretedOption>*
  1904. mutable_uninterpreted_option();
  1905. private:
  1906. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& _internal_uninterpreted_option(int index) const;
  1907. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* _internal_add_uninterpreted_option();
  1908. public:
  1909. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& uninterpreted_option(int index) const;
  1910. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* add_uninterpreted_option();
  1911. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::UninterpretedOption>&
  1912. uninterpreted_option() const;
  1913. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  1914. inline bool HasExtension(
  1915. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  1916. ExtensionRangeOptions,
  1917. _proto_TypeTraits,
  1918. _field_type,
  1919. _is_packed>& id
  1920. ) const
  1921. {
  1922. return _impl_._extensions_.Has(id.number());
  1923. }
  1924. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  1925. inline void ClearExtension(
  1926. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  1927. ExtensionRangeOptions,
  1928. _proto_TypeTraits,
  1929. _field_type,
  1930. _is_packed>& id
  1931. )
  1932. {
  1933. _impl_._extensions_.ClearExtension(id.number());
  1934. }
  1935. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  1936. inline int ExtensionSize(
  1937. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  1938. ExtensionRangeOptions,
  1939. _proto_TypeTraits,
  1940. _field_type,
  1941. _is_packed>& id
  1942. ) const
  1943. {
  1944. return _impl_._extensions_.ExtensionSize(id.number());
  1945. }
  1946. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  1947. inline typename _proto_TypeTraits::Singular::ConstType GetExtension(
  1948. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  1949. ExtensionRangeOptions,
  1950. _proto_TypeTraits,
  1951. _field_type,
  1952. _is_packed>& id
  1953. ) const
  1954. {
  1955. return _proto_TypeTraits::Get(id.number(), _impl_._extensions_, id.default_value());
  1956. }
  1957. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  1958. inline typename _proto_TypeTraits::Singular::MutableType MutableExtension(
  1959. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  1960. ExtensionRangeOptions,
  1961. _proto_TypeTraits,
  1962. _field_type,
  1963. _is_packed>& id
  1964. )
  1965. {
  1966. return _proto_TypeTraits::Mutable(id.number(), _field_type, &_impl_._extensions_);
  1967. }
  1968. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  1969. inline void SetExtension(
  1970. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  1971. ExtensionRangeOptions,
  1972. _proto_TypeTraits,
  1973. _field_type,
  1974. _is_packed>& id,
  1975. typename _proto_TypeTraits::Singular::ConstType value
  1976. )
  1977. {
  1978. _proto_TypeTraits::Set(id.number(), _field_type, value, &_impl_._extensions_);
  1979. }
  1980. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  1981. inline void SetAllocatedExtension(
  1982. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  1983. ExtensionRangeOptions,
  1984. _proto_TypeTraits,
  1985. _field_type,
  1986. _is_packed>& id,
  1987. typename _proto_TypeTraits::Singular::MutableType value
  1988. )
  1989. {
  1990. _proto_TypeTraits::SetAllocated(id.number(), _field_type, value, &_impl_._extensions_);
  1991. }
  1992. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  1993. inline void UnsafeArenaSetAllocatedExtension(
  1994. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  1995. ExtensionRangeOptions,
  1996. _proto_TypeTraits,
  1997. _field_type,
  1998. _is_packed>& id,
  1999. typename _proto_TypeTraits::Singular::MutableType value
  2000. )
  2001. {
  2002. _proto_TypeTraits::UnsafeArenaSetAllocated(id.number(), _field_type, value, &_impl_._extensions_);
  2003. }
  2004. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  2005. PROTOBUF_NODISCARD inline
  2006. typename _proto_TypeTraits::Singular::MutableType
  2007. ReleaseExtension(
  2008. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  2009. ExtensionRangeOptions,
  2010. _proto_TypeTraits,
  2011. _field_type,
  2012. _is_packed>& id
  2013. )
  2014. {
  2015. return _proto_TypeTraits::Release(id.number(), _field_type, &_impl_._extensions_);
  2016. }
  2017. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  2018. inline typename _proto_TypeTraits::Singular::MutableType
  2019. UnsafeArenaReleaseExtension(
  2020. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  2021. ExtensionRangeOptions,
  2022. _proto_TypeTraits,
  2023. _field_type,
  2024. _is_packed>& id
  2025. )
  2026. {
  2027. return _proto_TypeTraits::UnsafeArenaRelease(id.number(), _field_type, &_impl_._extensions_);
  2028. }
  2029. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  2030. inline typename _proto_TypeTraits::Repeated::ConstType GetExtension(
  2031. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  2032. ExtensionRangeOptions,
  2033. _proto_TypeTraits,
  2034. _field_type,
  2035. _is_packed>& id,
  2036. int index
  2037. ) const
  2038. {
  2039. return _proto_TypeTraits::Get(id.number(), _impl_._extensions_, index);
  2040. }
  2041. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  2042. inline typename _proto_TypeTraits::Repeated::MutableType MutableExtension(
  2043. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  2044. ExtensionRangeOptions,
  2045. _proto_TypeTraits,
  2046. _field_type,
  2047. _is_packed>& id,
  2048. int index
  2049. )
  2050. {
  2051. return _proto_TypeTraits::Mutable(id.number(), index, &_impl_._extensions_);
  2052. }
  2053. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  2054. inline void SetExtension(
  2055. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  2056. ExtensionRangeOptions,
  2057. _proto_TypeTraits,
  2058. _field_type,
  2059. _is_packed>& id,
  2060. int index,
  2061. typename _proto_TypeTraits::Repeated::ConstType value
  2062. )
  2063. {
  2064. _proto_TypeTraits::Set(id.number(), index, value, &_impl_._extensions_);
  2065. }
  2066. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  2067. inline typename _proto_TypeTraits::Repeated::MutableType AddExtension(
  2068. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  2069. ExtensionRangeOptions,
  2070. _proto_TypeTraits,
  2071. _field_type,
  2072. _is_packed>& id
  2073. )
  2074. {
  2075. typename _proto_TypeTraits::Repeated::MutableType to_add =
  2076. _proto_TypeTraits::Add(id.number(), _field_type, &_impl_._extensions_);
  2077. return to_add;
  2078. }
  2079. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  2080. inline void AddExtension(
  2081. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  2082. ExtensionRangeOptions,
  2083. _proto_TypeTraits,
  2084. _field_type,
  2085. _is_packed>& id,
  2086. typename _proto_TypeTraits::Repeated::ConstType value
  2087. )
  2088. {
  2089. _proto_TypeTraits::Add(id.number(), _field_type, _is_packed, value, &_impl_._extensions_);
  2090. }
  2091. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  2092. inline const typename _proto_TypeTraits::Repeated::RepeatedFieldType&
  2093. GetRepeatedExtension(
  2094. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  2095. ExtensionRangeOptions,
  2096. _proto_TypeTraits,
  2097. _field_type,
  2098. _is_packed>& id
  2099. ) const
  2100. {
  2101. return _proto_TypeTraits::GetRepeated(id.number(), _impl_._extensions_);
  2102. }
  2103. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  2104. inline typename _proto_TypeTraits::Repeated::RepeatedFieldType*
  2105. MutableRepeatedExtension(
  2106. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  2107. ExtensionRangeOptions,
  2108. _proto_TypeTraits,
  2109. _field_type,
  2110. _is_packed>& id
  2111. )
  2112. {
  2113. return _proto_TypeTraits::MutableRepeated(id.number(), _field_type, _is_packed, &_impl_._extensions_);
  2114. }
  2115. // @@protoc_insertion_point(class_scope:google.protobuf.ExtensionRangeOptions)
  2116. private:
  2117. class _Internal;
  2118. template<typename T>
  2119. friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  2120. typedef void InternalArenaConstructable_;
  2121. typedef void DestructorSkippable_;
  2122. struct Impl_
  2123. {
  2124. ::PROTOBUF_NAMESPACE_ID::internal::ExtensionSet _extensions_;
  2125. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::UninterpretedOption> uninterpreted_option_;
  2126. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  2127. };
  2128. union
  2129. {
  2130. Impl_ _impl_;
  2131. };
  2132. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  2133. };
  2134. // -------------------------------------------------------------------
  2135. class PROTOBUF_EXPORT FieldDescriptorProto final :
  2136. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.FieldDescriptorProto) */
  2137. {
  2138. public:
  2139. inline FieldDescriptorProto() :
  2140. FieldDescriptorProto(nullptr)
  2141. {
  2142. }
  2143. ~FieldDescriptorProto() override;
  2144. explicit PROTOBUF_CONSTEXPR FieldDescriptorProto(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  2145. FieldDescriptorProto(const FieldDescriptorProto& from);
  2146. FieldDescriptorProto(FieldDescriptorProto&& from) noexcept
  2147. :
  2148. FieldDescriptorProto()
  2149. {
  2150. *this = ::std::move(from);
  2151. }
  2152. inline FieldDescriptorProto& operator=(const FieldDescriptorProto& from)
  2153. {
  2154. CopyFrom(from);
  2155. return *this;
  2156. }
  2157. inline FieldDescriptorProto& operator=(FieldDescriptorProto&& from) noexcept
  2158. {
  2159. if (this == &from)
  2160. return *this;
  2161. if (GetOwningArena() == from.GetOwningArena()
  2162. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  2163. && GetOwningArena() != nullptr
  2164. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  2165. )
  2166. {
  2167. InternalSwap(&from);
  2168. }
  2169. else
  2170. {
  2171. CopyFrom(from);
  2172. }
  2173. return *this;
  2174. }
  2175. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const
  2176. {
  2177. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  2178. }
  2179. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields()
  2180. {
  2181. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2182. }
  2183. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor()
  2184. {
  2185. return GetDescriptor();
  2186. }
  2187. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor()
  2188. {
  2189. return default_instance().GetMetadata().descriptor;
  2190. }
  2191. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection()
  2192. {
  2193. return default_instance().GetMetadata().reflection;
  2194. }
  2195. static const FieldDescriptorProto& default_instance()
  2196. {
  2197. return *internal_default_instance();
  2198. }
  2199. static inline const FieldDescriptorProto* internal_default_instance()
  2200. {
  2201. return reinterpret_cast<const FieldDescriptorProto*>(
  2202. &_FieldDescriptorProto_default_instance_
  2203. );
  2204. }
  2205. static constexpr int kIndexInFileMessages =
  2206. 6;
  2207. friend void swap(FieldDescriptorProto& a, FieldDescriptorProto& b)
  2208. {
  2209. a.Swap(&b);
  2210. }
  2211. inline void Swap(FieldDescriptorProto* other)
  2212. {
  2213. if (other == this)
  2214. return;
  2215. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  2216. if (GetOwningArena() != nullptr &&
  2217. GetOwningArena() == other->GetOwningArena())
  2218. {
  2219. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  2220. if (GetOwningArena() == other->GetOwningArena())
  2221. {
  2222. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  2223. InternalSwap(other);
  2224. }
  2225. else
  2226. {
  2227. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  2228. }
  2229. }
  2230. void UnsafeArenaSwap(FieldDescriptorProto* other)
  2231. {
  2232. if (other == this)
  2233. return;
  2234. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  2235. InternalSwap(other);
  2236. }
  2237. // implements Message ----------------------------------------------
  2238. FieldDescriptorProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final
  2239. {
  2240. return CreateMaybeMessage<FieldDescriptorProto>(arena);
  2241. }
  2242. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  2243. void CopyFrom(const FieldDescriptorProto& from);
  2244. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  2245. void MergeFrom(const FieldDescriptorProto& from)
  2246. {
  2247. FieldDescriptorProto::MergeImpl(*this, from);
  2248. }
  2249. private:
  2250. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
  2251. public:
  2252. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  2253. bool IsInitialized() const final;
  2254. size_t ByteSizeLong() const final;
  2255. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  2256. uint8_t* _InternalSerialize(
  2257. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  2258. ) const final;
  2259. int GetCachedSize() const final
  2260. {
  2261. return _impl_._cached_size_.Get();
  2262. }
  2263. private:
  2264. void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
  2265. void SharedDtor();
  2266. void SetCachedSize(int size) const final;
  2267. void InternalSwap(FieldDescriptorProto* other);
  2268. private:
  2269. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  2270. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName()
  2271. {
  2272. return "google.protobuf.FieldDescriptorProto";
  2273. }
  2274. protected:
  2275. explicit FieldDescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false);
  2276. public:
  2277. static const ClassData _class_data_;
  2278. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final;
  2279. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  2280. // nested types ----------------------------------------------------
  2281. typedef FieldDescriptorProto_Type Type;
  2282. static constexpr Type TYPE_DOUBLE =
  2283. FieldDescriptorProto_Type_TYPE_DOUBLE;
  2284. static constexpr Type TYPE_FLOAT =
  2285. FieldDescriptorProto_Type_TYPE_FLOAT;
  2286. static constexpr Type TYPE_INT64 =
  2287. FieldDescriptorProto_Type_TYPE_INT64;
  2288. static constexpr Type TYPE_UINT64 =
  2289. FieldDescriptorProto_Type_TYPE_UINT64;
  2290. static constexpr Type TYPE_INT32 =
  2291. FieldDescriptorProto_Type_TYPE_INT32;
  2292. static constexpr Type TYPE_FIXED64 =
  2293. FieldDescriptorProto_Type_TYPE_FIXED64;
  2294. static constexpr Type TYPE_FIXED32 =
  2295. FieldDescriptorProto_Type_TYPE_FIXED32;
  2296. static constexpr Type TYPE_BOOL =
  2297. FieldDescriptorProto_Type_TYPE_BOOL;
  2298. static constexpr Type TYPE_STRING =
  2299. FieldDescriptorProto_Type_TYPE_STRING;
  2300. static constexpr Type TYPE_GROUP =
  2301. FieldDescriptorProto_Type_TYPE_GROUP;
  2302. static constexpr Type TYPE_MESSAGE =
  2303. FieldDescriptorProto_Type_TYPE_MESSAGE;
  2304. static constexpr Type TYPE_BYTES =
  2305. FieldDescriptorProto_Type_TYPE_BYTES;
  2306. static constexpr Type TYPE_UINT32 =
  2307. FieldDescriptorProto_Type_TYPE_UINT32;
  2308. static constexpr Type TYPE_ENUM =
  2309. FieldDescriptorProto_Type_TYPE_ENUM;
  2310. static constexpr Type TYPE_SFIXED32 =
  2311. FieldDescriptorProto_Type_TYPE_SFIXED32;
  2312. static constexpr Type TYPE_SFIXED64 =
  2313. FieldDescriptorProto_Type_TYPE_SFIXED64;
  2314. static constexpr Type TYPE_SINT32 =
  2315. FieldDescriptorProto_Type_TYPE_SINT32;
  2316. static constexpr Type TYPE_SINT64 =
  2317. FieldDescriptorProto_Type_TYPE_SINT64;
  2318. static inline bool Type_IsValid(int value)
  2319. {
  2320. return FieldDescriptorProto_Type_IsValid(value);
  2321. }
  2322. static constexpr Type Type_MIN =
  2323. FieldDescriptorProto_Type_Type_MIN;
  2324. static constexpr Type Type_MAX =
  2325. FieldDescriptorProto_Type_Type_MAX;
  2326. static constexpr int Type_ARRAYSIZE =
  2327. FieldDescriptorProto_Type_Type_ARRAYSIZE;
  2328. static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
  2329. Type_descriptor()
  2330. {
  2331. return FieldDescriptorProto_Type_descriptor();
  2332. }
  2333. template<typename T>
  2334. static inline const std::string& Type_Name(T enum_t_value)
  2335. {
  2336. static_assert(::std::is_same<T, Type>::value || ::std::is_integral<T>::value, "Incorrect type passed to function Type_Name.");
  2337. return FieldDescriptorProto_Type_Name(enum_t_value);
  2338. }
  2339. static inline bool Type_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Type* value)
  2340. {
  2341. return FieldDescriptorProto_Type_Parse(name, value);
  2342. }
  2343. typedef FieldDescriptorProto_Label Label;
  2344. static constexpr Label LABEL_OPTIONAL =
  2345. FieldDescriptorProto_Label_LABEL_OPTIONAL;
  2346. static constexpr Label LABEL_REQUIRED =
  2347. FieldDescriptorProto_Label_LABEL_REQUIRED;
  2348. static constexpr Label LABEL_REPEATED =
  2349. FieldDescriptorProto_Label_LABEL_REPEATED;
  2350. static inline bool Label_IsValid(int value)
  2351. {
  2352. return FieldDescriptorProto_Label_IsValid(value);
  2353. }
  2354. static constexpr Label Label_MIN =
  2355. FieldDescriptorProto_Label_Label_MIN;
  2356. static constexpr Label Label_MAX =
  2357. FieldDescriptorProto_Label_Label_MAX;
  2358. static constexpr int Label_ARRAYSIZE =
  2359. FieldDescriptorProto_Label_Label_ARRAYSIZE;
  2360. static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
  2361. Label_descriptor()
  2362. {
  2363. return FieldDescriptorProto_Label_descriptor();
  2364. }
  2365. template<typename T>
  2366. static inline const std::string& Label_Name(T enum_t_value)
  2367. {
  2368. static_assert(::std::is_same<T, Label>::value || ::std::is_integral<T>::value, "Incorrect type passed to function Label_Name.");
  2369. return FieldDescriptorProto_Label_Name(enum_t_value);
  2370. }
  2371. static inline bool Label_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Label* value)
  2372. {
  2373. return FieldDescriptorProto_Label_Parse(name, value);
  2374. }
  2375. // accessors -------------------------------------------------------
  2376. enum : int
  2377. {
  2378. kNameFieldNumber = 1,
  2379. kExtendeeFieldNumber = 2,
  2380. kTypeNameFieldNumber = 6,
  2381. kDefaultValueFieldNumber = 7,
  2382. kJsonNameFieldNumber = 10,
  2383. kOptionsFieldNumber = 8,
  2384. kNumberFieldNumber = 3,
  2385. kOneofIndexFieldNumber = 9,
  2386. kProto3OptionalFieldNumber = 17,
  2387. kLabelFieldNumber = 4,
  2388. kTypeFieldNumber = 5,
  2389. };
  2390. // optional string name = 1;
  2391. bool has_name() const;
  2392. private:
  2393. bool _internal_has_name() const;
  2394. public:
  2395. void clear_name();
  2396. const std::string& name() const;
  2397. template<typename ArgT0 = const std::string&, typename... ArgT>
  2398. void set_name(ArgT0&& arg0, ArgT... args);
  2399. std::string* mutable_name();
  2400. PROTOBUF_NODISCARD std::string* release_name();
  2401. void set_allocated_name(std::string* name);
  2402. private:
  2403. const std::string& _internal_name() const;
  2404. inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
  2405. std::string* _internal_mutable_name();
  2406. public:
  2407. // optional string extendee = 2;
  2408. bool has_extendee() const;
  2409. private:
  2410. bool _internal_has_extendee() const;
  2411. public:
  2412. void clear_extendee();
  2413. const std::string& extendee() const;
  2414. template<typename ArgT0 = const std::string&, typename... ArgT>
  2415. void set_extendee(ArgT0&& arg0, ArgT... args);
  2416. std::string* mutable_extendee();
  2417. PROTOBUF_NODISCARD std::string* release_extendee();
  2418. void set_allocated_extendee(std::string* extendee);
  2419. private:
  2420. const std::string& _internal_extendee() const;
  2421. inline PROTOBUF_ALWAYS_INLINE void _internal_set_extendee(const std::string& value);
  2422. std::string* _internal_mutable_extendee();
  2423. public:
  2424. // optional string type_name = 6;
  2425. bool has_type_name() const;
  2426. private:
  2427. bool _internal_has_type_name() const;
  2428. public:
  2429. void clear_type_name();
  2430. const std::string& type_name() const;
  2431. template<typename ArgT0 = const std::string&, typename... ArgT>
  2432. void set_type_name(ArgT0&& arg0, ArgT... args);
  2433. std::string* mutable_type_name();
  2434. PROTOBUF_NODISCARD std::string* release_type_name();
  2435. void set_allocated_type_name(std::string* type_name);
  2436. private:
  2437. const std::string& _internal_type_name() const;
  2438. inline PROTOBUF_ALWAYS_INLINE void _internal_set_type_name(const std::string& value);
  2439. std::string* _internal_mutable_type_name();
  2440. public:
  2441. // optional string default_value = 7;
  2442. bool has_default_value() const;
  2443. private:
  2444. bool _internal_has_default_value() const;
  2445. public:
  2446. void clear_default_value();
  2447. const std::string& default_value() const;
  2448. template<typename ArgT0 = const std::string&, typename... ArgT>
  2449. void set_default_value(ArgT0&& arg0, ArgT... args);
  2450. std::string* mutable_default_value();
  2451. PROTOBUF_NODISCARD std::string* release_default_value();
  2452. void set_allocated_default_value(std::string* default_value);
  2453. private:
  2454. const std::string& _internal_default_value() const;
  2455. inline PROTOBUF_ALWAYS_INLINE void _internal_set_default_value(const std::string& value);
  2456. std::string* _internal_mutable_default_value();
  2457. public:
  2458. // optional string json_name = 10;
  2459. bool has_json_name() const;
  2460. private:
  2461. bool _internal_has_json_name() const;
  2462. public:
  2463. void clear_json_name();
  2464. const std::string& json_name() const;
  2465. template<typename ArgT0 = const std::string&, typename... ArgT>
  2466. void set_json_name(ArgT0&& arg0, ArgT... args);
  2467. std::string* mutable_json_name();
  2468. PROTOBUF_NODISCARD std::string* release_json_name();
  2469. void set_allocated_json_name(std::string* json_name);
  2470. private:
  2471. const std::string& _internal_json_name() const;
  2472. inline PROTOBUF_ALWAYS_INLINE void _internal_set_json_name(const std::string& value);
  2473. std::string* _internal_mutable_json_name();
  2474. public:
  2475. // optional .google.protobuf.FieldOptions options = 8;
  2476. bool has_options() const;
  2477. private:
  2478. bool _internal_has_options() const;
  2479. public:
  2480. void clear_options();
  2481. const ::PROTOBUF_NAMESPACE_ID::FieldOptions& options() const;
  2482. PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::FieldOptions* release_options();
  2483. ::PROTOBUF_NAMESPACE_ID::FieldOptions* mutable_options();
  2484. void set_allocated_options(::PROTOBUF_NAMESPACE_ID::FieldOptions* options);
  2485. private:
  2486. const ::PROTOBUF_NAMESPACE_ID::FieldOptions& _internal_options() const;
  2487. ::PROTOBUF_NAMESPACE_ID::FieldOptions* _internal_mutable_options();
  2488. public:
  2489. void unsafe_arena_set_allocated_options(
  2490. ::PROTOBUF_NAMESPACE_ID::FieldOptions* options
  2491. );
  2492. ::PROTOBUF_NAMESPACE_ID::FieldOptions* unsafe_arena_release_options();
  2493. // optional int32 number = 3;
  2494. bool has_number() const;
  2495. private:
  2496. bool _internal_has_number() const;
  2497. public:
  2498. void clear_number();
  2499. int32_t number() const;
  2500. void set_number(int32_t value);
  2501. private:
  2502. int32_t _internal_number() const;
  2503. void _internal_set_number(int32_t value);
  2504. public:
  2505. // optional int32 oneof_index = 9;
  2506. bool has_oneof_index() const;
  2507. private:
  2508. bool _internal_has_oneof_index() const;
  2509. public:
  2510. void clear_oneof_index();
  2511. int32_t oneof_index() const;
  2512. void set_oneof_index(int32_t value);
  2513. private:
  2514. int32_t _internal_oneof_index() const;
  2515. void _internal_set_oneof_index(int32_t value);
  2516. public:
  2517. // optional bool proto3_optional = 17;
  2518. bool has_proto3_optional() const;
  2519. private:
  2520. bool _internal_has_proto3_optional() const;
  2521. public:
  2522. void clear_proto3_optional();
  2523. bool proto3_optional() const;
  2524. void set_proto3_optional(bool value);
  2525. private:
  2526. bool _internal_proto3_optional() const;
  2527. void _internal_set_proto3_optional(bool value);
  2528. public:
  2529. // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
  2530. bool has_label() const;
  2531. private:
  2532. bool _internal_has_label() const;
  2533. public:
  2534. void clear_label();
  2535. ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Label label() const;
  2536. void set_label(::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Label value);
  2537. private:
  2538. ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Label _internal_label() const;
  2539. void _internal_set_label(::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Label value);
  2540. public:
  2541. // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
  2542. bool has_type() const;
  2543. private:
  2544. bool _internal_has_type() const;
  2545. public:
  2546. void clear_type();
  2547. ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Type type() const;
  2548. void set_type(::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Type value);
  2549. private:
  2550. ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Type _internal_type() const;
  2551. void _internal_set_type(::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Type value);
  2552. public:
  2553. // @@protoc_insertion_point(class_scope:google.protobuf.FieldDescriptorProto)
  2554. private:
  2555. class _Internal;
  2556. template<typename T>
  2557. friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  2558. typedef void InternalArenaConstructable_;
  2559. typedef void DestructorSkippable_;
  2560. struct Impl_
  2561. {
  2562. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  2563. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  2564. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  2565. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr extendee_;
  2566. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr type_name_;
  2567. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr default_value_;
  2568. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr json_name_;
  2569. ::PROTOBUF_NAMESPACE_ID::FieldOptions* options_;
  2570. int32_t number_;
  2571. int32_t oneof_index_;
  2572. bool proto3_optional_;
  2573. int label_;
  2574. int type_;
  2575. };
  2576. union
  2577. {
  2578. Impl_ _impl_;
  2579. };
  2580. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  2581. };
  2582. // -------------------------------------------------------------------
  2583. class PROTOBUF_EXPORT OneofDescriptorProto final :
  2584. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.OneofDescriptorProto) */
  2585. {
  2586. public:
  2587. inline OneofDescriptorProto() :
  2588. OneofDescriptorProto(nullptr)
  2589. {
  2590. }
  2591. ~OneofDescriptorProto() override;
  2592. explicit PROTOBUF_CONSTEXPR OneofDescriptorProto(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  2593. OneofDescriptorProto(const OneofDescriptorProto& from);
  2594. OneofDescriptorProto(OneofDescriptorProto&& from) noexcept
  2595. :
  2596. OneofDescriptorProto()
  2597. {
  2598. *this = ::std::move(from);
  2599. }
  2600. inline OneofDescriptorProto& operator=(const OneofDescriptorProto& from)
  2601. {
  2602. CopyFrom(from);
  2603. return *this;
  2604. }
  2605. inline OneofDescriptorProto& operator=(OneofDescriptorProto&& from) noexcept
  2606. {
  2607. if (this == &from)
  2608. return *this;
  2609. if (GetOwningArena() == from.GetOwningArena()
  2610. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  2611. && GetOwningArena() != nullptr
  2612. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  2613. )
  2614. {
  2615. InternalSwap(&from);
  2616. }
  2617. else
  2618. {
  2619. CopyFrom(from);
  2620. }
  2621. return *this;
  2622. }
  2623. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const
  2624. {
  2625. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  2626. }
  2627. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields()
  2628. {
  2629. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2630. }
  2631. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor()
  2632. {
  2633. return GetDescriptor();
  2634. }
  2635. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor()
  2636. {
  2637. return default_instance().GetMetadata().descriptor;
  2638. }
  2639. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection()
  2640. {
  2641. return default_instance().GetMetadata().reflection;
  2642. }
  2643. static const OneofDescriptorProto& default_instance()
  2644. {
  2645. return *internal_default_instance();
  2646. }
  2647. static inline const OneofDescriptorProto* internal_default_instance()
  2648. {
  2649. return reinterpret_cast<const OneofDescriptorProto*>(
  2650. &_OneofDescriptorProto_default_instance_
  2651. );
  2652. }
  2653. static constexpr int kIndexInFileMessages =
  2654. 7;
  2655. friend void swap(OneofDescriptorProto& a, OneofDescriptorProto& b)
  2656. {
  2657. a.Swap(&b);
  2658. }
  2659. inline void Swap(OneofDescriptorProto* other)
  2660. {
  2661. if (other == this)
  2662. return;
  2663. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  2664. if (GetOwningArena() != nullptr &&
  2665. GetOwningArena() == other->GetOwningArena())
  2666. {
  2667. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  2668. if (GetOwningArena() == other->GetOwningArena())
  2669. {
  2670. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  2671. InternalSwap(other);
  2672. }
  2673. else
  2674. {
  2675. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  2676. }
  2677. }
  2678. void UnsafeArenaSwap(OneofDescriptorProto* other)
  2679. {
  2680. if (other == this)
  2681. return;
  2682. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  2683. InternalSwap(other);
  2684. }
  2685. // implements Message ----------------------------------------------
  2686. OneofDescriptorProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final
  2687. {
  2688. return CreateMaybeMessage<OneofDescriptorProto>(arena);
  2689. }
  2690. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  2691. void CopyFrom(const OneofDescriptorProto& from);
  2692. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  2693. void MergeFrom(const OneofDescriptorProto& from)
  2694. {
  2695. OneofDescriptorProto::MergeImpl(*this, from);
  2696. }
  2697. private:
  2698. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
  2699. public:
  2700. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  2701. bool IsInitialized() const final;
  2702. size_t ByteSizeLong() const final;
  2703. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  2704. uint8_t* _InternalSerialize(
  2705. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  2706. ) const final;
  2707. int GetCachedSize() const final
  2708. {
  2709. return _impl_._cached_size_.Get();
  2710. }
  2711. private:
  2712. void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
  2713. void SharedDtor();
  2714. void SetCachedSize(int size) const final;
  2715. void InternalSwap(OneofDescriptorProto* other);
  2716. private:
  2717. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  2718. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName()
  2719. {
  2720. return "google.protobuf.OneofDescriptorProto";
  2721. }
  2722. protected:
  2723. explicit OneofDescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false);
  2724. public:
  2725. static const ClassData _class_data_;
  2726. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final;
  2727. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  2728. // nested types ----------------------------------------------------
  2729. // accessors -------------------------------------------------------
  2730. enum : int
  2731. {
  2732. kNameFieldNumber = 1,
  2733. kOptionsFieldNumber = 2,
  2734. };
  2735. // optional string name = 1;
  2736. bool has_name() const;
  2737. private:
  2738. bool _internal_has_name() const;
  2739. public:
  2740. void clear_name();
  2741. const std::string& name() const;
  2742. template<typename ArgT0 = const std::string&, typename... ArgT>
  2743. void set_name(ArgT0&& arg0, ArgT... args);
  2744. std::string* mutable_name();
  2745. PROTOBUF_NODISCARD std::string* release_name();
  2746. void set_allocated_name(std::string* name);
  2747. private:
  2748. const std::string& _internal_name() const;
  2749. inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
  2750. std::string* _internal_mutable_name();
  2751. public:
  2752. // optional .google.protobuf.OneofOptions options = 2;
  2753. bool has_options() const;
  2754. private:
  2755. bool _internal_has_options() const;
  2756. public:
  2757. void clear_options();
  2758. const ::PROTOBUF_NAMESPACE_ID::OneofOptions& options() const;
  2759. PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::OneofOptions* release_options();
  2760. ::PROTOBUF_NAMESPACE_ID::OneofOptions* mutable_options();
  2761. void set_allocated_options(::PROTOBUF_NAMESPACE_ID::OneofOptions* options);
  2762. private:
  2763. const ::PROTOBUF_NAMESPACE_ID::OneofOptions& _internal_options() const;
  2764. ::PROTOBUF_NAMESPACE_ID::OneofOptions* _internal_mutable_options();
  2765. public:
  2766. void unsafe_arena_set_allocated_options(
  2767. ::PROTOBUF_NAMESPACE_ID::OneofOptions* options
  2768. );
  2769. ::PROTOBUF_NAMESPACE_ID::OneofOptions* unsafe_arena_release_options();
  2770. // @@protoc_insertion_point(class_scope:google.protobuf.OneofDescriptorProto)
  2771. private:
  2772. class _Internal;
  2773. template<typename T>
  2774. friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  2775. typedef void InternalArenaConstructable_;
  2776. typedef void DestructorSkippable_;
  2777. struct Impl_
  2778. {
  2779. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  2780. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  2781. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  2782. ::PROTOBUF_NAMESPACE_ID::OneofOptions* options_;
  2783. };
  2784. union
  2785. {
  2786. Impl_ _impl_;
  2787. };
  2788. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  2789. };
  2790. // -------------------------------------------------------------------
  2791. class PROTOBUF_EXPORT EnumDescriptorProto_EnumReservedRange final :
  2792. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.EnumDescriptorProto.EnumReservedRange) */
  2793. {
  2794. public:
  2795. inline EnumDescriptorProto_EnumReservedRange() :
  2796. EnumDescriptorProto_EnumReservedRange(nullptr)
  2797. {
  2798. }
  2799. ~EnumDescriptorProto_EnumReservedRange() override;
  2800. explicit PROTOBUF_CONSTEXPR EnumDescriptorProto_EnumReservedRange(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  2801. EnumDescriptorProto_EnumReservedRange(const EnumDescriptorProto_EnumReservedRange& from);
  2802. EnumDescriptorProto_EnumReservedRange(EnumDescriptorProto_EnumReservedRange&& from) noexcept
  2803. :
  2804. EnumDescriptorProto_EnumReservedRange()
  2805. {
  2806. *this = ::std::move(from);
  2807. }
  2808. inline EnumDescriptorProto_EnumReservedRange& operator=(const EnumDescriptorProto_EnumReservedRange& from)
  2809. {
  2810. CopyFrom(from);
  2811. return *this;
  2812. }
  2813. inline EnumDescriptorProto_EnumReservedRange& operator=(EnumDescriptorProto_EnumReservedRange&& from) noexcept
  2814. {
  2815. if (this == &from)
  2816. return *this;
  2817. if (GetOwningArena() == from.GetOwningArena()
  2818. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  2819. && GetOwningArena() != nullptr
  2820. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  2821. )
  2822. {
  2823. InternalSwap(&from);
  2824. }
  2825. else
  2826. {
  2827. CopyFrom(from);
  2828. }
  2829. return *this;
  2830. }
  2831. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const
  2832. {
  2833. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  2834. }
  2835. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields()
  2836. {
  2837. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2838. }
  2839. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor()
  2840. {
  2841. return GetDescriptor();
  2842. }
  2843. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor()
  2844. {
  2845. return default_instance().GetMetadata().descriptor;
  2846. }
  2847. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection()
  2848. {
  2849. return default_instance().GetMetadata().reflection;
  2850. }
  2851. static const EnumDescriptorProto_EnumReservedRange& default_instance()
  2852. {
  2853. return *internal_default_instance();
  2854. }
  2855. static inline const EnumDescriptorProto_EnumReservedRange* internal_default_instance()
  2856. {
  2857. return reinterpret_cast<const EnumDescriptorProto_EnumReservedRange*>(
  2858. &_EnumDescriptorProto_EnumReservedRange_default_instance_
  2859. );
  2860. }
  2861. static constexpr int kIndexInFileMessages =
  2862. 8;
  2863. friend void swap(EnumDescriptorProto_EnumReservedRange& a, EnumDescriptorProto_EnumReservedRange& b)
  2864. {
  2865. a.Swap(&b);
  2866. }
  2867. inline void Swap(EnumDescriptorProto_EnumReservedRange* other)
  2868. {
  2869. if (other == this)
  2870. return;
  2871. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  2872. if (GetOwningArena() != nullptr &&
  2873. GetOwningArena() == other->GetOwningArena())
  2874. {
  2875. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  2876. if (GetOwningArena() == other->GetOwningArena())
  2877. {
  2878. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  2879. InternalSwap(other);
  2880. }
  2881. else
  2882. {
  2883. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  2884. }
  2885. }
  2886. void UnsafeArenaSwap(EnumDescriptorProto_EnumReservedRange* other)
  2887. {
  2888. if (other == this)
  2889. return;
  2890. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  2891. InternalSwap(other);
  2892. }
  2893. // implements Message ----------------------------------------------
  2894. EnumDescriptorProto_EnumReservedRange* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final
  2895. {
  2896. return CreateMaybeMessage<EnumDescriptorProto_EnumReservedRange>(arena);
  2897. }
  2898. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  2899. void CopyFrom(const EnumDescriptorProto_EnumReservedRange& from);
  2900. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  2901. void MergeFrom(const EnumDescriptorProto_EnumReservedRange& from)
  2902. {
  2903. EnumDescriptorProto_EnumReservedRange::MergeImpl(*this, from);
  2904. }
  2905. private:
  2906. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
  2907. public:
  2908. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  2909. bool IsInitialized() const final;
  2910. size_t ByteSizeLong() const final;
  2911. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  2912. uint8_t* _InternalSerialize(
  2913. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  2914. ) const final;
  2915. int GetCachedSize() const final
  2916. {
  2917. return _impl_._cached_size_.Get();
  2918. }
  2919. private:
  2920. void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
  2921. void SharedDtor();
  2922. void SetCachedSize(int size) const final;
  2923. void InternalSwap(EnumDescriptorProto_EnumReservedRange* other);
  2924. private:
  2925. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  2926. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName()
  2927. {
  2928. return "google.protobuf.EnumDescriptorProto.EnumReservedRange";
  2929. }
  2930. protected:
  2931. explicit EnumDescriptorProto_EnumReservedRange(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false);
  2932. public:
  2933. static const ClassData _class_data_;
  2934. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final;
  2935. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  2936. // nested types ----------------------------------------------------
  2937. // accessors -------------------------------------------------------
  2938. enum : int
  2939. {
  2940. kStartFieldNumber = 1,
  2941. kEndFieldNumber = 2,
  2942. };
  2943. // optional int32 start = 1;
  2944. bool has_start() const;
  2945. private:
  2946. bool _internal_has_start() const;
  2947. public:
  2948. void clear_start();
  2949. int32_t start() const;
  2950. void set_start(int32_t value);
  2951. private:
  2952. int32_t _internal_start() const;
  2953. void _internal_set_start(int32_t value);
  2954. public:
  2955. // optional int32 end = 2;
  2956. bool has_end() const;
  2957. private:
  2958. bool _internal_has_end() const;
  2959. public:
  2960. void clear_end();
  2961. int32_t end() const;
  2962. void set_end(int32_t value);
  2963. private:
  2964. int32_t _internal_end() const;
  2965. void _internal_set_end(int32_t value);
  2966. public:
  2967. // @@protoc_insertion_point(class_scope:google.protobuf.EnumDescriptorProto.EnumReservedRange)
  2968. private:
  2969. class _Internal;
  2970. template<typename T>
  2971. friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  2972. typedef void InternalArenaConstructable_;
  2973. typedef void DestructorSkippable_;
  2974. struct Impl_
  2975. {
  2976. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  2977. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  2978. int32_t start_;
  2979. int32_t end_;
  2980. };
  2981. union
  2982. {
  2983. Impl_ _impl_;
  2984. };
  2985. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  2986. };
  2987. // -------------------------------------------------------------------
  2988. class PROTOBUF_EXPORT EnumDescriptorProto final :
  2989. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.EnumDescriptorProto) */
  2990. {
  2991. public:
  2992. inline EnumDescriptorProto() :
  2993. EnumDescriptorProto(nullptr)
  2994. {
  2995. }
  2996. ~EnumDescriptorProto() override;
  2997. explicit PROTOBUF_CONSTEXPR EnumDescriptorProto(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  2998. EnumDescriptorProto(const EnumDescriptorProto& from);
  2999. EnumDescriptorProto(EnumDescriptorProto&& from) noexcept
  3000. :
  3001. EnumDescriptorProto()
  3002. {
  3003. *this = ::std::move(from);
  3004. }
  3005. inline EnumDescriptorProto& operator=(const EnumDescriptorProto& from)
  3006. {
  3007. CopyFrom(from);
  3008. return *this;
  3009. }
  3010. inline EnumDescriptorProto& operator=(EnumDescriptorProto&& from) noexcept
  3011. {
  3012. if (this == &from)
  3013. return *this;
  3014. if (GetOwningArena() == from.GetOwningArena()
  3015. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  3016. && GetOwningArena() != nullptr
  3017. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  3018. )
  3019. {
  3020. InternalSwap(&from);
  3021. }
  3022. else
  3023. {
  3024. CopyFrom(from);
  3025. }
  3026. return *this;
  3027. }
  3028. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const
  3029. {
  3030. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  3031. }
  3032. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields()
  3033. {
  3034. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3035. }
  3036. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor()
  3037. {
  3038. return GetDescriptor();
  3039. }
  3040. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor()
  3041. {
  3042. return default_instance().GetMetadata().descriptor;
  3043. }
  3044. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection()
  3045. {
  3046. return default_instance().GetMetadata().reflection;
  3047. }
  3048. static const EnumDescriptorProto& default_instance()
  3049. {
  3050. return *internal_default_instance();
  3051. }
  3052. static inline const EnumDescriptorProto* internal_default_instance()
  3053. {
  3054. return reinterpret_cast<const EnumDescriptorProto*>(
  3055. &_EnumDescriptorProto_default_instance_
  3056. );
  3057. }
  3058. static constexpr int kIndexInFileMessages =
  3059. 9;
  3060. friend void swap(EnumDescriptorProto& a, EnumDescriptorProto& b)
  3061. {
  3062. a.Swap(&b);
  3063. }
  3064. inline void Swap(EnumDescriptorProto* other)
  3065. {
  3066. if (other == this)
  3067. return;
  3068. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  3069. if (GetOwningArena() != nullptr &&
  3070. GetOwningArena() == other->GetOwningArena())
  3071. {
  3072. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  3073. if (GetOwningArena() == other->GetOwningArena())
  3074. {
  3075. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  3076. InternalSwap(other);
  3077. }
  3078. else
  3079. {
  3080. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  3081. }
  3082. }
  3083. void UnsafeArenaSwap(EnumDescriptorProto* other)
  3084. {
  3085. if (other == this)
  3086. return;
  3087. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  3088. InternalSwap(other);
  3089. }
  3090. // implements Message ----------------------------------------------
  3091. EnumDescriptorProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final
  3092. {
  3093. return CreateMaybeMessage<EnumDescriptorProto>(arena);
  3094. }
  3095. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  3096. void CopyFrom(const EnumDescriptorProto& from);
  3097. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  3098. void MergeFrom(const EnumDescriptorProto& from)
  3099. {
  3100. EnumDescriptorProto::MergeImpl(*this, from);
  3101. }
  3102. private:
  3103. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
  3104. public:
  3105. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  3106. bool IsInitialized() const final;
  3107. size_t ByteSizeLong() const final;
  3108. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  3109. uint8_t* _InternalSerialize(
  3110. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  3111. ) const final;
  3112. int GetCachedSize() const final
  3113. {
  3114. return _impl_._cached_size_.Get();
  3115. }
  3116. private:
  3117. void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
  3118. void SharedDtor();
  3119. void SetCachedSize(int size) const final;
  3120. void InternalSwap(EnumDescriptorProto* other);
  3121. private:
  3122. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  3123. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName()
  3124. {
  3125. return "google.protobuf.EnumDescriptorProto";
  3126. }
  3127. protected:
  3128. explicit EnumDescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false);
  3129. public:
  3130. static const ClassData _class_data_;
  3131. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final;
  3132. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  3133. // nested types ----------------------------------------------------
  3134. typedef EnumDescriptorProto_EnumReservedRange EnumReservedRange;
  3135. // accessors -------------------------------------------------------
  3136. enum : int
  3137. {
  3138. kValueFieldNumber = 2,
  3139. kReservedRangeFieldNumber = 4,
  3140. kReservedNameFieldNumber = 5,
  3141. kNameFieldNumber = 1,
  3142. kOptionsFieldNumber = 3,
  3143. };
  3144. // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
  3145. int value_size() const;
  3146. private:
  3147. int _internal_value_size() const;
  3148. public:
  3149. void clear_value();
  3150. ::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto* mutable_value(int index);
  3151. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto>*
  3152. mutable_value();
  3153. private:
  3154. const ::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto& _internal_value(int index) const;
  3155. ::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto* _internal_add_value();
  3156. public:
  3157. const ::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto& value(int index) const;
  3158. ::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto* add_value();
  3159. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto>&
  3160. value() const;
  3161. // repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
  3162. int reserved_range_size() const;
  3163. private:
  3164. int _internal_reserved_range_size() const;
  3165. public:
  3166. void clear_reserved_range();
  3167. ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange* mutable_reserved_range(int index);
  3168. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange>*
  3169. mutable_reserved_range();
  3170. private:
  3171. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange& _internal_reserved_range(int index) const;
  3172. ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange* _internal_add_reserved_range();
  3173. public:
  3174. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange& reserved_range(int index) const;
  3175. ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange* add_reserved_range();
  3176. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange>&
  3177. reserved_range() const;
  3178. // repeated string reserved_name = 5;
  3179. int reserved_name_size() const;
  3180. private:
  3181. int _internal_reserved_name_size() const;
  3182. public:
  3183. void clear_reserved_name();
  3184. const std::string& reserved_name(int index) const;
  3185. std::string* mutable_reserved_name(int index);
  3186. void set_reserved_name(int index, const std::string& value);
  3187. void set_reserved_name(int index, std::string&& value);
  3188. void set_reserved_name(int index, const char* value);
  3189. void set_reserved_name(int index, const char* value, size_t size);
  3190. std::string* add_reserved_name();
  3191. void add_reserved_name(const std::string& value);
  3192. void add_reserved_name(std::string&& value);
  3193. void add_reserved_name(const char* value);
  3194. void add_reserved_name(const char* value, size_t size);
  3195. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& reserved_name() const;
  3196. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_reserved_name();
  3197. private:
  3198. const std::string& _internal_reserved_name(int index) const;
  3199. std::string* _internal_add_reserved_name();
  3200. public:
  3201. // optional string name = 1;
  3202. bool has_name() const;
  3203. private:
  3204. bool _internal_has_name() const;
  3205. public:
  3206. void clear_name();
  3207. const std::string& name() const;
  3208. template<typename ArgT0 = const std::string&, typename... ArgT>
  3209. void set_name(ArgT0&& arg0, ArgT... args);
  3210. std::string* mutable_name();
  3211. PROTOBUF_NODISCARD std::string* release_name();
  3212. void set_allocated_name(std::string* name);
  3213. private:
  3214. const std::string& _internal_name() const;
  3215. inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
  3216. std::string* _internal_mutable_name();
  3217. public:
  3218. // optional .google.protobuf.EnumOptions options = 3;
  3219. bool has_options() const;
  3220. private:
  3221. bool _internal_has_options() const;
  3222. public:
  3223. void clear_options();
  3224. const ::PROTOBUF_NAMESPACE_ID::EnumOptions& options() const;
  3225. PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::EnumOptions* release_options();
  3226. ::PROTOBUF_NAMESPACE_ID::EnumOptions* mutable_options();
  3227. void set_allocated_options(::PROTOBUF_NAMESPACE_ID::EnumOptions* options);
  3228. private:
  3229. const ::PROTOBUF_NAMESPACE_ID::EnumOptions& _internal_options() const;
  3230. ::PROTOBUF_NAMESPACE_ID::EnumOptions* _internal_mutable_options();
  3231. public:
  3232. void unsafe_arena_set_allocated_options(
  3233. ::PROTOBUF_NAMESPACE_ID::EnumOptions* options
  3234. );
  3235. ::PROTOBUF_NAMESPACE_ID::EnumOptions* unsafe_arena_release_options();
  3236. // @@protoc_insertion_point(class_scope:google.protobuf.EnumDescriptorProto)
  3237. private:
  3238. class _Internal;
  3239. template<typename T>
  3240. friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  3241. typedef void InternalArenaConstructable_;
  3242. typedef void DestructorSkippable_;
  3243. struct Impl_
  3244. {
  3245. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  3246. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  3247. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto> value_;
  3248. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange> reserved_range_;
  3249. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> reserved_name_;
  3250. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  3251. ::PROTOBUF_NAMESPACE_ID::EnumOptions* options_;
  3252. };
  3253. union
  3254. {
  3255. Impl_ _impl_;
  3256. };
  3257. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  3258. };
  3259. // -------------------------------------------------------------------
  3260. class PROTOBUF_EXPORT EnumValueDescriptorProto final :
  3261. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.EnumValueDescriptorProto) */
  3262. {
  3263. public:
  3264. inline EnumValueDescriptorProto() :
  3265. EnumValueDescriptorProto(nullptr)
  3266. {
  3267. }
  3268. ~EnumValueDescriptorProto() override;
  3269. explicit PROTOBUF_CONSTEXPR EnumValueDescriptorProto(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  3270. EnumValueDescriptorProto(const EnumValueDescriptorProto& from);
  3271. EnumValueDescriptorProto(EnumValueDescriptorProto&& from) noexcept
  3272. :
  3273. EnumValueDescriptorProto()
  3274. {
  3275. *this = ::std::move(from);
  3276. }
  3277. inline EnumValueDescriptorProto& operator=(const EnumValueDescriptorProto& from)
  3278. {
  3279. CopyFrom(from);
  3280. return *this;
  3281. }
  3282. inline EnumValueDescriptorProto& operator=(EnumValueDescriptorProto&& from) noexcept
  3283. {
  3284. if (this == &from)
  3285. return *this;
  3286. if (GetOwningArena() == from.GetOwningArena()
  3287. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  3288. && GetOwningArena() != nullptr
  3289. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  3290. )
  3291. {
  3292. InternalSwap(&from);
  3293. }
  3294. else
  3295. {
  3296. CopyFrom(from);
  3297. }
  3298. return *this;
  3299. }
  3300. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const
  3301. {
  3302. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  3303. }
  3304. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields()
  3305. {
  3306. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3307. }
  3308. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor()
  3309. {
  3310. return GetDescriptor();
  3311. }
  3312. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor()
  3313. {
  3314. return default_instance().GetMetadata().descriptor;
  3315. }
  3316. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection()
  3317. {
  3318. return default_instance().GetMetadata().reflection;
  3319. }
  3320. static const EnumValueDescriptorProto& default_instance()
  3321. {
  3322. return *internal_default_instance();
  3323. }
  3324. static inline const EnumValueDescriptorProto* internal_default_instance()
  3325. {
  3326. return reinterpret_cast<const EnumValueDescriptorProto*>(
  3327. &_EnumValueDescriptorProto_default_instance_
  3328. );
  3329. }
  3330. static constexpr int kIndexInFileMessages =
  3331. 10;
  3332. friend void swap(EnumValueDescriptorProto& a, EnumValueDescriptorProto& b)
  3333. {
  3334. a.Swap(&b);
  3335. }
  3336. inline void Swap(EnumValueDescriptorProto* other)
  3337. {
  3338. if (other == this)
  3339. return;
  3340. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  3341. if (GetOwningArena() != nullptr &&
  3342. GetOwningArena() == other->GetOwningArena())
  3343. {
  3344. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  3345. if (GetOwningArena() == other->GetOwningArena())
  3346. {
  3347. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  3348. InternalSwap(other);
  3349. }
  3350. else
  3351. {
  3352. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  3353. }
  3354. }
  3355. void UnsafeArenaSwap(EnumValueDescriptorProto* other)
  3356. {
  3357. if (other == this)
  3358. return;
  3359. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  3360. InternalSwap(other);
  3361. }
  3362. // implements Message ----------------------------------------------
  3363. EnumValueDescriptorProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final
  3364. {
  3365. return CreateMaybeMessage<EnumValueDescriptorProto>(arena);
  3366. }
  3367. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  3368. void CopyFrom(const EnumValueDescriptorProto& from);
  3369. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  3370. void MergeFrom(const EnumValueDescriptorProto& from)
  3371. {
  3372. EnumValueDescriptorProto::MergeImpl(*this, from);
  3373. }
  3374. private:
  3375. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
  3376. public:
  3377. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  3378. bool IsInitialized() const final;
  3379. size_t ByteSizeLong() const final;
  3380. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  3381. uint8_t* _InternalSerialize(
  3382. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  3383. ) const final;
  3384. int GetCachedSize() const final
  3385. {
  3386. return _impl_._cached_size_.Get();
  3387. }
  3388. private:
  3389. void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
  3390. void SharedDtor();
  3391. void SetCachedSize(int size) const final;
  3392. void InternalSwap(EnumValueDescriptorProto* other);
  3393. private:
  3394. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  3395. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName()
  3396. {
  3397. return "google.protobuf.EnumValueDescriptorProto";
  3398. }
  3399. protected:
  3400. explicit EnumValueDescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false);
  3401. public:
  3402. static const ClassData _class_data_;
  3403. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final;
  3404. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  3405. // nested types ----------------------------------------------------
  3406. // accessors -------------------------------------------------------
  3407. enum : int
  3408. {
  3409. kNameFieldNumber = 1,
  3410. kOptionsFieldNumber = 3,
  3411. kNumberFieldNumber = 2,
  3412. };
  3413. // optional string name = 1;
  3414. bool has_name() const;
  3415. private:
  3416. bool _internal_has_name() const;
  3417. public:
  3418. void clear_name();
  3419. const std::string& name() const;
  3420. template<typename ArgT0 = const std::string&, typename... ArgT>
  3421. void set_name(ArgT0&& arg0, ArgT... args);
  3422. std::string* mutable_name();
  3423. PROTOBUF_NODISCARD std::string* release_name();
  3424. void set_allocated_name(std::string* name);
  3425. private:
  3426. const std::string& _internal_name() const;
  3427. inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
  3428. std::string* _internal_mutable_name();
  3429. public:
  3430. // optional .google.protobuf.EnumValueOptions options = 3;
  3431. bool has_options() const;
  3432. private:
  3433. bool _internal_has_options() const;
  3434. public:
  3435. void clear_options();
  3436. const ::PROTOBUF_NAMESPACE_ID::EnumValueOptions& options() const;
  3437. PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::EnumValueOptions* release_options();
  3438. ::PROTOBUF_NAMESPACE_ID::EnumValueOptions* mutable_options();
  3439. void set_allocated_options(::PROTOBUF_NAMESPACE_ID::EnumValueOptions* options);
  3440. private:
  3441. const ::PROTOBUF_NAMESPACE_ID::EnumValueOptions& _internal_options() const;
  3442. ::PROTOBUF_NAMESPACE_ID::EnumValueOptions* _internal_mutable_options();
  3443. public:
  3444. void unsafe_arena_set_allocated_options(
  3445. ::PROTOBUF_NAMESPACE_ID::EnumValueOptions* options
  3446. );
  3447. ::PROTOBUF_NAMESPACE_ID::EnumValueOptions* unsafe_arena_release_options();
  3448. // optional int32 number = 2;
  3449. bool has_number() const;
  3450. private:
  3451. bool _internal_has_number() const;
  3452. public:
  3453. void clear_number();
  3454. int32_t number() const;
  3455. void set_number(int32_t value);
  3456. private:
  3457. int32_t _internal_number() const;
  3458. void _internal_set_number(int32_t value);
  3459. public:
  3460. // @@protoc_insertion_point(class_scope:google.protobuf.EnumValueDescriptorProto)
  3461. private:
  3462. class _Internal;
  3463. template<typename T>
  3464. friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  3465. typedef void InternalArenaConstructable_;
  3466. typedef void DestructorSkippable_;
  3467. struct Impl_
  3468. {
  3469. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  3470. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  3471. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  3472. ::PROTOBUF_NAMESPACE_ID::EnumValueOptions* options_;
  3473. int32_t number_;
  3474. };
  3475. union
  3476. {
  3477. Impl_ _impl_;
  3478. };
  3479. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  3480. };
  3481. // -------------------------------------------------------------------
  3482. class PROTOBUF_EXPORT ServiceDescriptorProto final :
  3483. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.ServiceDescriptorProto) */
  3484. {
  3485. public:
  3486. inline ServiceDescriptorProto() :
  3487. ServiceDescriptorProto(nullptr)
  3488. {
  3489. }
  3490. ~ServiceDescriptorProto() override;
  3491. explicit PROTOBUF_CONSTEXPR ServiceDescriptorProto(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  3492. ServiceDescriptorProto(const ServiceDescriptorProto& from);
  3493. ServiceDescriptorProto(ServiceDescriptorProto&& from) noexcept
  3494. :
  3495. ServiceDescriptorProto()
  3496. {
  3497. *this = ::std::move(from);
  3498. }
  3499. inline ServiceDescriptorProto& operator=(const ServiceDescriptorProto& from)
  3500. {
  3501. CopyFrom(from);
  3502. return *this;
  3503. }
  3504. inline ServiceDescriptorProto& operator=(ServiceDescriptorProto&& from) noexcept
  3505. {
  3506. if (this == &from)
  3507. return *this;
  3508. if (GetOwningArena() == from.GetOwningArena()
  3509. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  3510. && GetOwningArena() != nullptr
  3511. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  3512. )
  3513. {
  3514. InternalSwap(&from);
  3515. }
  3516. else
  3517. {
  3518. CopyFrom(from);
  3519. }
  3520. return *this;
  3521. }
  3522. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const
  3523. {
  3524. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  3525. }
  3526. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields()
  3527. {
  3528. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3529. }
  3530. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor()
  3531. {
  3532. return GetDescriptor();
  3533. }
  3534. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor()
  3535. {
  3536. return default_instance().GetMetadata().descriptor;
  3537. }
  3538. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection()
  3539. {
  3540. return default_instance().GetMetadata().reflection;
  3541. }
  3542. static const ServiceDescriptorProto& default_instance()
  3543. {
  3544. return *internal_default_instance();
  3545. }
  3546. static inline const ServiceDescriptorProto* internal_default_instance()
  3547. {
  3548. return reinterpret_cast<const ServiceDescriptorProto*>(
  3549. &_ServiceDescriptorProto_default_instance_
  3550. );
  3551. }
  3552. static constexpr int kIndexInFileMessages =
  3553. 11;
  3554. friend void swap(ServiceDescriptorProto& a, ServiceDescriptorProto& b)
  3555. {
  3556. a.Swap(&b);
  3557. }
  3558. inline void Swap(ServiceDescriptorProto* other)
  3559. {
  3560. if (other == this)
  3561. return;
  3562. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  3563. if (GetOwningArena() != nullptr &&
  3564. GetOwningArena() == other->GetOwningArena())
  3565. {
  3566. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  3567. if (GetOwningArena() == other->GetOwningArena())
  3568. {
  3569. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  3570. InternalSwap(other);
  3571. }
  3572. else
  3573. {
  3574. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  3575. }
  3576. }
  3577. void UnsafeArenaSwap(ServiceDescriptorProto* other)
  3578. {
  3579. if (other == this)
  3580. return;
  3581. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  3582. InternalSwap(other);
  3583. }
  3584. // implements Message ----------------------------------------------
  3585. ServiceDescriptorProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final
  3586. {
  3587. return CreateMaybeMessage<ServiceDescriptorProto>(arena);
  3588. }
  3589. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  3590. void CopyFrom(const ServiceDescriptorProto& from);
  3591. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  3592. void MergeFrom(const ServiceDescriptorProto& from)
  3593. {
  3594. ServiceDescriptorProto::MergeImpl(*this, from);
  3595. }
  3596. private:
  3597. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
  3598. public:
  3599. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  3600. bool IsInitialized() const final;
  3601. size_t ByteSizeLong() const final;
  3602. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  3603. uint8_t* _InternalSerialize(
  3604. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  3605. ) const final;
  3606. int GetCachedSize() const final
  3607. {
  3608. return _impl_._cached_size_.Get();
  3609. }
  3610. private:
  3611. void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
  3612. void SharedDtor();
  3613. void SetCachedSize(int size) const final;
  3614. void InternalSwap(ServiceDescriptorProto* other);
  3615. private:
  3616. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  3617. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName()
  3618. {
  3619. return "google.protobuf.ServiceDescriptorProto";
  3620. }
  3621. protected:
  3622. explicit ServiceDescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false);
  3623. public:
  3624. static const ClassData _class_data_;
  3625. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final;
  3626. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  3627. // nested types ----------------------------------------------------
  3628. // accessors -------------------------------------------------------
  3629. enum : int
  3630. {
  3631. kMethodFieldNumber = 2,
  3632. kNameFieldNumber = 1,
  3633. kOptionsFieldNumber = 3,
  3634. };
  3635. // repeated .google.protobuf.MethodDescriptorProto method = 2;
  3636. int method_size() const;
  3637. private:
  3638. int _internal_method_size() const;
  3639. public:
  3640. void clear_method();
  3641. ::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto* mutable_method(int index);
  3642. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto>*
  3643. mutable_method();
  3644. private:
  3645. const ::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto& _internal_method(int index) const;
  3646. ::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto* _internal_add_method();
  3647. public:
  3648. const ::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto& method(int index) const;
  3649. ::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto* add_method();
  3650. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto>&
  3651. method() const;
  3652. // optional string name = 1;
  3653. bool has_name() const;
  3654. private:
  3655. bool _internal_has_name() const;
  3656. public:
  3657. void clear_name();
  3658. const std::string& name() const;
  3659. template<typename ArgT0 = const std::string&, typename... ArgT>
  3660. void set_name(ArgT0&& arg0, ArgT... args);
  3661. std::string* mutable_name();
  3662. PROTOBUF_NODISCARD std::string* release_name();
  3663. void set_allocated_name(std::string* name);
  3664. private:
  3665. const std::string& _internal_name() const;
  3666. inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
  3667. std::string* _internal_mutable_name();
  3668. public:
  3669. // optional .google.protobuf.ServiceOptions options = 3;
  3670. bool has_options() const;
  3671. private:
  3672. bool _internal_has_options() const;
  3673. public:
  3674. void clear_options();
  3675. const ::PROTOBUF_NAMESPACE_ID::ServiceOptions& options() const;
  3676. PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::ServiceOptions* release_options();
  3677. ::PROTOBUF_NAMESPACE_ID::ServiceOptions* mutable_options();
  3678. void set_allocated_options(::PROTOBUF_NAMESPACE_ID::ServiceOptions* options);
  3679. private:
  3680. const ::PROTOBUF_NAMESPACE_ID::ServiceOptions& _internal_options() const;
  3681. ::PROTOBUF_NAMESPACE_ID::ServiceOptions* _internal_mutable_options();
  3682. public:
  3683. void unsafe_arena_set_allocated_options(
  3684. ::PROTOBUF_NAMESPACE_ID::ServiceOptions* options
  3685. );
  3686. ::PROTOBUF_NAMESPACE_ID::ServiceOptions* unsafe_arena_release_options();
  3687. // @@protoc_insertion_point(class_scope:google.protobuf.ServiceDescriptorProto)
  3688. private:
  3689. class _Internal;
  3690. template<typename T>
  3691. friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  3692. typedef void InternalArenaConstructable_;
  3693. typedef void DestructorSkippable_;
  3694. struct Impl_
  3695. {
  3696. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  3697. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  3698. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto> method_;
  3699. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  3700. ::PROTOBUF_NAMESPACE_ID::ServiceOptions* options_;
  3701. };
  3702. union
  3703. {
  3704. Impl_ _impl_;
  3705. };
  3706. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  3707. };
  3708. // -------------------------------------------------------------------
  3709. class PROTOBUF_EXPORT MethodDescriptorProto final :
  3710. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.MethodDescriptorProto) */
  3711. {
  3712. public:
  3713. inline MethodDescriptorProto() :
  3714. MethodDescriptorProto(nullptr)
  3715. {
  3716. }
  3717. ~MethodDescriptorProto() override;
  3718. explicit PROTOBUF_CONSTEXPR MethodDescriptorProto(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  3719. MethodDescriptorProto(const MethodDescriptorProto& from);
  3720. MethodDescriptorProto(MethodDescriptorProto&& from) noexcept
  3721. :
  3722. MethodDescriptorProto()
  3723. {
  3724. *this = ::std::move(from);
  3725. }
  3726. inline MethodDescriptorProto& operator=(const MethodDescriptorProto& from)
  3727. {
  3728. CopyFrom(from);
  3729. return *this;
  3730. }
  3731. inline MethodDescriptorProto& operator=(MethodDescriptorProto&& from) noexcept
  3732. {
  3733. if (this == &from)
  3734. return *this;
  3735. if (GetOwningArena() == from.GetOwningArena()
  3736. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  3737. && GetOwningArena() != nullptr
  3738. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  3739. )
  3740. {
  3741. InternalSwap(&from);
  3742. }
  3743. else
  3744. {
  3745. CopyFrom(from);
  3746. }
  3747. return *this;
  3748. }
  3749. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const
  3750. {
  3751. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  3752. }
  3753. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields()
  3754. {
  3755. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3756. }
  3757. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor()
  3758. {
  3759. return GetDescriptor();
  3760. }
  3761. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor()
  3762. {
  3763. return default_instance().GetMetadata().descriptor;
  3764. }
  3765. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection()
  3766. {
  3767. return default_instance().GetMetadata().reflection;
  3768. }
  3769. static const MethodDescriptorProto& default_instance()
  3770. {
  3771. return *internal_default_instance();
  3772. }
  3773. static inline const MethodDescriptorProto* internal_default_instance()
  3774. {
  3775. return reinterpret_cast<const MethodDescriptorProto*>(
  3776. &_MethodDescriptorProto_default_instance_
  3777. );
  3778. }
  3779. static constexpr int kIndexInFileMessages =
  3780. 12;
  3781. friend void swap(MethodDescriptorProto& a, MethodDescriptorProto& b)
  3782. {
  3783. a.Swap(&b);
  3784. }
  3785. inline void Swap(MethodDescriptorProto* other)
  3786. {
  3787. if (other == this)
  3788. return;
  3789. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  3790. if (GetOwningArena() != nullptr &&
  3791. GetOwningArena() == other->GetOwningArena())
  3792. {
  3793. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  3794. if (GetOwningArena() == other->GetOwningArena())
  3795. {
  3796. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  3797. InternalSwap(other);
  3798. }
  3799. else
  3800. {
  3801. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  3802. }
  3803. }
  3804. void UnsafeArenaSwap(MethodDescriptorProto* other)
  3805. {
  3806. if (other == this)
  3807. return;
  3808. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  3809. InternalSwap(other);
  3810. }
  3811. // implements Message ----------------------------------------------
  3812. MethodDescriptorProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final
  3813. {
  3814. return CreateMaybeMessage<MethodDescriptorProto>(arena);
  3815. }
  3816. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  3817. void CopyFrom(const MethodDescriptorProto& from);
  3818. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  3819. void MergeFrom(const MethodDescriptorProto& from)
  3820. {
  3821. MethodDescriptorProto::MergeImpl(*this, from);
  3822. }
  3823. private:
  3824. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
  3825. public:
  3826. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  3827. bool IsInitialized() const final;
  3828. size_t ByteSizeLong() const final;
  3829. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  3830. uint8_t* _InternalSerialize(
  3831. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  3832. ) const final;
  3833. int GetCachedSize() const final
  3834. {
  3835. return _impl_._cached_size_.Get();
  3836. }
  3837. private:
  3838. void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
  3839. void SharedDtor();
  3840. void SetCachedSize(int size) const final;
  3841. void InternalSwap(MethodDescriptorProto* other);
  3842. private:
  3843. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  3844. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName()
  3845. {
  3846. return "google.protobuf.MethodDescriptorProto";
  3847. }
  3848. protected:
  3849. explicit MethodDescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false);
  3850. public:
  3851. static const ClassData _class_data_;
  3852. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final;
  3853. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  3854. // nested types ----------------------------------------------------
  3855. // accessors -------------------------------------------------------
  3856. enum : int
  3857. {
  3858. kNameFieldNumber = 1,
  3859. kInputTypeFieldNumber = 2,
  3860. kOutputTypeFieldNumber = 3,
  3861. kOptionsFieldNumber = 4,
  3862. kClientStreamingFieldNumber = 5,
  3863. kServerStreamingFieldNumber = 6,
  3864. };
  3865. // optional string name = 1;
  3866. bool has_name() const;
  3867. private:
  3868. bool _internal_has_name() const;
  3869. public:
  3870. void clear_name();
  3871. const std::string& name() const;
  3872. template<typename ArgT0 = const std::string&, typename... ArgT>
  3873. void set_name(ArgT0&& arg0, ArgT... args);
  3874. std::string* mutable_name();
  3875. PROTOBUF_NODISCARD std::string* release_name();
  3876. void set_allocated_name(std::string* name);
  3877. private:
  3878. const std::string& _internal_name() const;
  3879. inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
  3880. std::string* _internal_mutable_name();
  3881. public:
  3882. // optional string input_type = 2;
  3883. bool has_input_type() const;
  3884. private:
  3885. bool _internal_has_input_type() const;
  3886. public:
  3887. void clear_input_type();
  3888. const std::string& input_type() const;
  3889. template<typename ArgT0 = const std::string&, typename... ArgT>
  3890. void set_input_type(ArgT0&& arg0, ArgT... args);
  3891. std::string* mutable_input_type();
  3892. PROTOBUF_NODISCARD std::string* release_input_type();
  3893. void set_allocated_input_type(std::string* input_type);
  3894. private:
  3895. const std::string& _internal_input_type() const;
  3896. inline PROTOBUF_ALWAYS_INLINE void _internal_set_input_type(const std::string& value);
  3897. std::string* _internal_mutable_input_type();
  3898. public:
  3899. // optional string output_type = 3;
  3900. bool has_output_type() const;
  3901. private:
  3902. bool _internal_has_output_type() const;
  3903. public:
  3904. void clear_output_type();
  3905. const std::string& output_type() const;
  3906. template<typename ArgT0 = const std::string&, typename... ArgT>
  3907. void set_output_type(ArgT0&& arg0, ArgT... args);
  3908. std::string* mutable_output_type();
  3909. PROTOBUF_NODISCARD std::string* release_output_type();
  3910. void set_allocated_output_type(std::string* output_type);
  3911. private:
  3912. const std::string& _internal_output_type() const;
  3913. inline PROTOBUF_ALWAYS_INLINE void _internal_set_output_type(const std::string& value);
  3914. std::string* _internal_mutable_output_type();
  3915. public:
  3916. // optional .google.protobuf.MethodOptions options = 4;
  3917. bool has_options() const;
  3918. private:
  3919. bool _internal_has_options() const;
  3920. public:
  3921. void clear_options();
  3922. const ::PROTOBUF_NAMESPACE_ID::MethodOptions& options() const;
  3923. PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::MethodOptions* release_options();
  3924. ::PROTOBUF_NAMESPACE_ID::MethodOptions* mutable_options();
  3925. void set_allocated_options(::PROTOBUF_NAMESPACE_ID::MethodOptions* options);
  3926. private:
  3927. const ::PROTOBUF_NAMESPACE_ID::MethodOptions& _internal_options() const;
  3928. ::PROTOBUF_NAMESPACE_ID::MethodOptions* _internal_mutable_options();
  3929. public:
  3930. void unsafe_arena_set_allocated_options(
  3931. ::PROTOBUF_NAMESPACE_ID::MethodOptions* options
  3932. );
  3933. ::PROTOBUF_NAMESPACE_ID::MethodOptions* unsafe_arena_release_options();
  3934. // optional bool client_streaming = 5 [default = false];
  3935. bool has_client_streaming() const;
  3936. private:
  3937. bool _internal_has_client_streaming() const;
  3938. public:
  3939. void clear_client_streaming();
  3940. bool client_streaming() const;
  3941. void set_client_streaming(bool value);
  3942. private:
  3943. bool _internal_client_streaming() const;
  3944. void _internal_set_client_streaming(bool value);
  3945. public:
  3946. // optional bool server_streaming = 6 [default = false];
  3947. bool has_server_streaming() const;
  3948. private:
  3949. bool _internal_has_server_streaming() const;
  3950. public:
  3951. void clear_server_streaming();
  3952. bool server_streaming() const;
  3953. void set_server_streaming(bool value);
  3954. private:
  3955. bool _internal_server_streaming() const;
  3956. void _internal_set_server_streaming(bool value);
  3957. public:
  3958. // @@protoc_insertion_point(class_scope:google.protobuf.MethodDescriptorProto)
  3959. private:
  3960. class _Internal;
  3961. template<typename T>
  3962. friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  3963. typedef void InternalArenaConstructable_;
  3964. typedef void DestructorSkippable_;
  3965. struct Impl_
  3966. {
  3967. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  3968. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  3969. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  3970. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr input_type_;
  3971. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr output_type_;
  3972. ::PROTOBUF_NAMESPACE_ID::MethodOptions* options_;
  3973. bool client_streaming_;
  3974. bool server_streaming_;
  3975. };
  3976. union
  3977. {
  3978. Impl_ _impl_;
  3979. };
  3980. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  3981. };
  3982. // -------------------------------------------------------------------
  3983. class PROTOBUF_EXPORT FileOptions final :
  3984. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.FileOptions) */
  3985. {
  3986. public:
  3987. inline FileOptions() :
  3988. FileOptions(nullptr)
  3989. {
  3990. }
  3991. ~FileOptions() override;
  3992. explicit PROTOBUF_CONSTEXPR FileOptions(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  3993. FileOptions(const FileOptions& from);
  3994. FileOptions(FileOptions&& from) noexcept
  3995. :
  3996. FileOptions()
  3997. {
  3998. *this = ::std::move(from);
  3999. }
  4000. inline FileOptions& operator=(const FileOptions& from)
  4001. {
  4002. CopyFrom(from);
  4003. return *this;
  4004. }
  4005. inline FileOptions& operator=(FileOptions&& from) noexcept
  4006. {
  4007. if (this == &from)
  4008. return *this;
  4009. if (GetOwningArena() == from.GetOwningArena()
  4010. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  4011. && GetOwningArena() != nullptr
  4012. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  4013. )
  4014. {
  4015. InternalSwap(&from);
  4016. }
  4017. else
  4018. {
  4019. CopyFrom(from);
  4020. }
  4021. return *this;
  4022. }
  4023. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const
  4024. {
  4025. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  4026. }
  4027. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields()
  4028. {
  4029. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4030. }
  4031. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor()
  4032. {
  4033. return GetDescriptor();
  4034. }
  4035. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor()
  4036. {
  4037. return default_instance().GetMetadata().descriptor;
  4038. }
  4039. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection()
  4040. {
  4041. return default_instance().GetMetadata().reflection;
  4042. }
  4043. static const FileOptions& default_instance()
  4044. {
  4045. return *internal_default_instance();
  4046. }
  4047. static inline const FileOptions* internal_default_instance()
  4048. {
  4049. return reinterpret_cast<const FileOptions*>(
  4050. &_FileOptions_default_instance_
  4051. );
  4052. }
  4053. static constexpr int kIndexInFileMessages =
  4054. 13;
  4055. friend void swap(FileOptions& a, FileOptions& b)
  4056. {
  4057. a.Swap(&b);
  4058. }
  4059. inline void Swap(FileOptions* other)
  4060. {
  4061. if (other == this)
  4062. return;
  4063. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  4064. if (GetOwningArena() != nullptr &&
  4065. GetOwningArena() == other->GetOwningArena())
  4066. {
  4067. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  4068. if (GetOwningArena() == other->GetOwningArena())
  4069. {
  4070. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  4071. InternalSwap(other);
  4072. }
  4073. else
  4074. {
  4075. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  4076. }
  4077. }
  4078. void UnsafeArenaSwap(FileOptions* other)
  4079. {
  4080. if (other == this)
  4081. return;
  4082. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  4083. InternalSwap(other);
  4084. }
  4085. // implements Message ----------------------------------------------
  4086. FileOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final
  4087. {
  4088. return CreateMaybeMessage<FileOptions>(arena);
  4089. }
  4090. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  4091. void CopyFrom(const FileOptions& from);
  4092. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  4093. void MergeFrom(const FileOptions& from)
  4094. {
  4095. FileOptions::MergeImpl(*this, from);
  4096. }
  4097. private:
  4098. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
  4099. public:
  4100. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  4101. bool IsInitialized() const final;
  4102. size_t ByteSizeLong() const final;
  4103. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  4104. uint8_t* _InternalSerialize(
  4105. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  4106. ) const final;
  4107. int GetCachedSize() const final
  4108. {
  4109. return _impl_._cached_size_.Get();
  4110. }
  4111. private:
  4112. void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
  4113. void SharedDtor();
  4114. void SetCachedSize(int size) const final;
  4115. void InternalSwap(FileOptions* other);
  4116. private:
  4117. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  4118. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName()
  4119. {
  4120. return "google.protobuf.FileOptions";
  4121. }
  4122. protected:
  4123. explicit FileOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false);
  4124. public:
  4125. static const ClassData _class_data_;
  4126. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final;
  4127. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  4128. // nested types ----------------------------------------------------
  4129. typedef FileOptions_OptimizeMode OptimizeMode;
  4130. static constexpr OptimizeMode SPEED =
  4131. FileOptions_OptimizeMode_SPEED;
  4132. static constexpr OptimizeMode CODE_SIZE =
  4133. FileOptions_OptimizeMode_CODE_SIZE;
  4134. static constexpr OptimizeMode LITE_RUNTIME =
  4135. FileOptions_OptimizeMode_LITE_RUNTIME;
  4136. static inline bool OptimizeMode_IsValid(int value)
  4137. {
  4138. return FileOptions_OptimizeMode_IsValid(value);
  4139. }
  4140. static constexpr OptimizeMode OptimizeMode_MIN =
  4141. FileOptions_OptimizeMode_OptimizeMode_MIN;
  4142. static constexpr OptimizeMode OptimizeMode_MAX =
  4143. FileOptions_OptimizeMode_OptimizeMode_MAX;
  4144. static constexpr int OptimizeMode_ARRAYSIZE =
  4145. FileOptions_OptimizeMode_OptimizeMode_ARRAYSIZE;
  4146. static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
  4147. OptimizeMode_descriptor()
  4148. {
  4149. return FileOptions_OptimizeMode_descriptor();
  4150. }
  4151. template<typename T>
  4152. static inline const std::string& OptimizeMode_Name(T enum_t_value)
  4153. {
  4154. static_assert(::std::is_same<T, OptimizeMode>::value || ::std::is_integral<T>::value, "Incorrect type passed to function OptimizeMode_Name.");
  4155. return FileOptions_OptimizeMode_Name(enum_t_value);
  4156. }
  4157. static inline bool OptimizeMode_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, OptimizeMode* value)
  4158. {
  4159. return FileOptions_OptimizeMode_Parse(name, value);
  4160. }
  4161. // accessors -------------------------------------------------------
  4162. enum : int
  4163. {
  4164. kUninterpretedOptionFieldNumber = 999,
  4165. kJavaPackageFieldNumber = 1,
  4166. kJavaOuterClassnameFieldNumber = 8,
  4167. kGoPackageFieldNumber = 11,
  4168. kObjcClassPrefixFieldNumber = 36,
  4169. kCsharpNamespaceFieldNumber = 37,
  4170. kSwiftPrefixFieldNumber = 39,
  4171. kPhpClassPrefixFieldNumber = 40,
  4172. kPhpNamespaceFieldNumber = 41,
  4173. kPhpMetadataNamespaceFieldNumber = 44,
  4174. kRubyPackageFieldNumber = 45,
  4175. kJavaMultipleFilesFieldNumber = 10,
  4176. kJavaGenerateEqualsAndHashFieldNumber = 20,
  4177. kJavaStringCheckUtf8FieldNumber = 27,
  4178. kCcGenericServicesFieldNumber = 16,
  4179. kJavaGenericServicesFieldNumber = 17,
  4180. kPyGenericServicesFieldNumber = 18,
  4181. kPhpGenericServicesFieldNumber = 42,
  4182. kDeprecatedFieldNumber = 23,
  4183. kOptimizeForFieldNumber = 9,
  4184. kCcEnableArenasFieldNumber = 31,
  4185. };
  4186. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  4187. int uninterpreted_option_size() const;
  4188. private:
  4189. int _internal_uninterpreted_option_size() const;
  4190. public:
  4191. void clear_uninterpreted_option();
  4192. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* mutable_uninterpreted_option(int index);
  4193. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::UninterpretedOption>*
  4194. mutable_uninterpreted_option();
  4195. private:
  4196. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& _internal_uninterpreted_option(int index) const;
  4197. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* _internal_add_uninterpreted_option();
  4198. public:
  4199. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& uninterpreted_option(int index) const;
  4200. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* add_uninterpreted_option();
  4201. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::UninterpretedOption>&
  4202. uninterpreted_option() const;
  4203. // optional string java_package = 1;
  4204. bool has_java_package() const;
  4205. private:
  4206. bool _internal_has_java_package() const;
  4207. public:
  4208. void clear_java_package();
  4209. const std::string& java_package() const;
  4210. template<typename ArgT0 = const std::string&, typename... ArgT>
  4211. void set_java_package(ArgT0&& arg0, ArgT... args);
  4212. std::string* mutable_java_package();
  4213. PROTOBUF_NODISCARD std::string* release_java_package();
  4214. void set_allocated_java_package(std::string* java_package);
  4215. private:
  4216. const std::string& _internal_java_package() const;
  4217. inline PROTOBUF_ALWAYS_INLINE void _internal_set_java_package(const std::string& value);
  4218. std::string* _internal_mutable_java_package();
  4219. public:
  4220. // optional string java_outer_classname = 8;
  4221. bool has_java_outer_classname() const;
  4222. private:
  4223. bool _internal_has_java_outer_classname() const;
  4224. public:
  4225. void clear_java_outer_classname();
  4226. const std::string& java_outer_classname() const;
  4227. template<typename ArgT0 = const std::string&, typename... ArgT>
  4228. void set_java_outer_classname(ArgT0&& arg0, ArgT... args);
  4229. std::string* mutable_java_outer_classname();
  4230. PROTOBUF_NODISCARD std::string* release_java_outer_classname();
  4231. void set_allocated_java_outer_classname(std::string* java_outer_classname);
  4232. private:
  4233. const std::string& _internal_java_outer_classname() const;
  4234. inline PROTOBUF_ALWAYS_INLINE void _internal_set_java_outer_classname(const std::string& value);
  4235. std::string* _internal_mutable_java_outer_classname();
  4236. public:
  4237. // optional string go_package = 11;
  4238. bool has_go_package() const;
  4239. private:
  4240. bool _internal_has_go_package() const;
  4241. public:
  4242. void clear_go_package();
  4243. const std::string& go_package() const;
  4244. template<typename ArgT0 = const std::string&, typename... ArgT>
  4245. void set_go_package(ArgT0&& arg0, ArgT... args);
  4246. std::string* mutable_go_package();
  4247. PROTOBUF_NODISCARD std::string* release_go_package();
  4248. void set_allocated_go_package(std::string* go_package);
  4249. private:
  4250. const std::string& _internal_go_package() const;
  4251. inline PROTOBUF_ALWAYS_INLINE void _internal_set_go_package(const std::string& value);
  4252. std::string* _internal_mutable_go_package();
  4253. public:
  4254. // optional string objc_class_prefix = 36;
  4255. bool has_objc_class_prefix() const;
  4256. private:
  4257. bool _internal_has_objc_class_prefix() const;
  4258. public:
  4259. void clear_objc_class_prefix();
  4260. const std::string& objc_class_prefix() const;
  4261. template<typename ArgT0 = const std::string&, typename... ArgT>
  4262. void set_objc_class_prefix(ArgT0&& arg0, ArgT... args);
  4263. std::string* mutable_objc_class_prefix();
  4264. PROTOBUF_NODISCARD std::string* release_objc_class_prefix();
  4265. void set_allocated_objc_class_prefix(std::string* objc_class_prefix);
  4266. private:
  4267. const std::string& _internal_objc_class_prefix() const;
  4268. inline PROTOBUF_ALWAYS_INLINE void _internal_set_objc_class_prefix(const std::string& value);
  4269. std::string* _internal_mutable_objc_class_prefix();
  4270. public:
  4271. // optional string csharp_namespace = 37;
  4272. bool has_csharp_namespace() const;
  4273. private:
  4274. bool _internal_has_csharp_namespace() const;
  4275. public:
  4276. void clear_csharp_namespace();
  4277. const std::string& csharp_namespace() const;
  4278. template<typename ArgT0 = const std::string&, typename... ArgT>
  4279. void set_csharp_namespace(ArgT0&& arg0, ArgT... args);
  4280. std::string* mutable_csharp_namespace();
  4281. PROTOBUF_NODISCARD std::string* release_csharp_namespace();
  4282. void set_allocated_csharp_namespace(std::string* csharp_namespace);
  4283. private:
  4284. const std::string& _internal_csharp_namespace() const;
  4285. inline PROTOBUF_ALWAYS_INLINE void _internal_set_csharp_namespace(const std::string& value);
  4286. std::string* _internal_mutable_csharp_namespace();
  4287. public:
  4288. // optional string swift_prefix = 39;
  4289. bool has_swift_prefix() const;
  4290. private:
  4291. bool _internal_has_swift_prefix() const;
  4292. public:
  4293. void clear_swift_prefix();
  4294. const std::string& swift_prefix() const;
  4295. template<typename ArgT0 = const std::string&, typename... ArgT>
  4296. void set_swift_prefix(ArgT0&& arg0, ArgT... args);
  4297. std::string* mutable_swift_prefix();
  4298. PROTOBUF_NODISCARD std::string* release_swift_prefix();
  4299. void set_allocated_swift_prefix(std::string* swift_prefix);
  4300. private:
  4301. const std::string& _internal_swift_prefix() const;
  4302. inline PROTOBUF_ALWAYS_INLINE void _internal_set_swift_prefix(const std::string& value);
  4303. std::string* _internal_mutable_swift_prefix();
  4304. public:
  4305. // optional string php_class_prefix = 40;
  4306. bool has_php_class_prefix() const;
  4307. private:
  4308. bool _internal_has_php_class_prefix() const;
  4309. public:
  4310. void clear_php_class_prefix();
  4311. const std::string& php_class_prefix() const;
  4312. template<typename ArgT0 = const std::string&, typename... ArgT>
  4313. void set_php_class_prefix(ArgT0&& arg0, ArgT... args);
  4314. std::string* mutable_php_class_prefix();
  4315. PROTOBUF_NODISCARD std::string* release_php_class_prefix();
  4316. void set_allocated_php_class_prefix(std::string* php_class_prefix);
  4317. private:
  4318. const std::string& _internal_php_class_prefix() const;
  4319. inline PROTOBUF_ALWAYS_INLINE void _internal_set_php_class_prefix(const std::string& value);
  4320. std::string* _internal_mutable_php_class_prefix();
  4321. public:
  4322. // optional string php_namespace = 41;
  4323. bool has_php_namespace() const;
  4324. private:
  4325. bool _internal_has_php_namespace() const;
  4326. public:
  4327. void clear_php_namespace();
  4328. const std::string& php_namespace() const;
  4329. template<typename ArgT0 = const std::string&, typename... ArgT>
  4330. void set_php_namespace(ArgT0&& arg0, ArgT... args);
  4331. std::string* mutable_php_namespace();
  4332. PROTOBUF_NODISCARD std::string* release_php_namespace();
  4333. void set_allocated_php_namespace(std::string* php_namespace);
  4334. private:
  4335. const std::string& _internal_php_namespace() const;
  4336. inline PROTOBUF_ALWAYS_INLINE void _internal_set_php_namespace(const std::string& value);
  4337. std::string* _internal_mutable_php_namespace();
  4338. public:
  4339. // optional string php_metadata_namespace = 44;
  4340. bool has_php_metadata_namespace() const;
  4341. private:
  4342. bool _internal_has_php_metadata_namespace() const;
  4343. public:
  4344. void clear_php_metadata_namespace();
  4345. const std::string& php_metadata_namespace() const;
  4346. template<typename ArgT0 = const std::string&, typename... ArgT>
  4347. void set_php_metadata_namespace(ArgT0&& arg0, ArgT... args);
  4348. std::string* mutable_php_metadata_namespace();
  4349. PROTOBUF_NODISCARD std::string* release_php_metadata_namespace();
  4350. void set_allocated_php_metadata_namespace(std::string* php_metadata_namespace);
  4351. private:
  4352. const std::string& _internal_php_metadata_namespace() const;
  4353. inline PROTOBUF_ALWAYS_INLINE void _internal_set_php_metadata_namespace(const std::string& value);
  4354. std::string* _internal_mutable_php_metadata_namespace();
  4355. public:
  4356. // optional string ruby_package = 45;
  4357. bool has_ruby_package() const;
  4358. private:
  4359. bool _internal_has_ruby_package() const;
  4360. public:
  4361. void clear_ruby_package();
  4362. const std::string& ruby_package() const;
  4363. template<typename ArgT0 = const std::string&, typename... ArgT>
  4364. void set_ruby_package(ArgT0&& arg0, ArgT... args);
  4365. std::string* mutable_ruby_package();
  4366. PROTOBUF_NODISCARD std::string* release_ruby_package();
  4367. void set_allocated_ruby_package(std::string* ruby_package);
  4368. private:
  4369. const std::string& _internal_ruby_package() const;
  4370. inline PROTOBUF_ALWAYS_INLINE void _internal_set_ruby_package(const std::string& value);
  4371. std::string* _internal_mutable_ruby_package();
  4372. public:
  4373. // optional bool java_multiple_files = 10 [default = false];
  4374. bool has_java_multiple_files() const;
  4375. private:
  4376. bool _internal_has_java_multiple_files() const;
  4377. public:
  4378. void clear_java_multiple_files();
  4379. bool java_multiple_files() const;
  4380. void set_java_multiple_files(bool value);
  4381. private:
  4382. bool _internal_java_multiple_files() const;
  4383. void _internal_set_java_multiple_files(bool value);
  4384. public:
  4385. // optional bool java_generate_equals_and_hash = 20 [deprecated = true];
  4386. PROTOBUF_DEPRECATED bool has_java_generate_equals_and_hash() const;
  4387. private:
  4388. bool _internal_has_java_generate_equals_and_hash() const;
  4389. public:
  4390. PROTOBUF_DEPRECATED void clear_java_generate_equals_and_hash();
  4391. PROTOBUF_DEPRECATED bool java_generate_equals_and_hash() const;
  4392. PROTOBUF_DEPRECATED void set_java_generate_equals_and_hash(bool value);
  4393. private:
  4394. bool _internal_java_generate_equals_and_hash() const;
  4395. void _internal_set_java_generate_equals_and_hash(bool value);
  4396. public:
  4397. // optional bool java_string_check_utf8 = 27 [default = false];
  4398. bool has_java_string_check_utf8() const;
  4399. private:
  4400. bool _internal_has_java_string_check_utf8() const;
  4401. public:
  4402. void clear_java_string_check_utf8();
  4403. bool java_string_check_utf8() const;
  4404. void set_java_string_check_utf8(bool value);
  4405. private:
  4406. bool _internal_java_string_check_utf8() const;
  4407. void _internal_set_java_string_check_utf8(bool value);
  4408. public:
  4409. // optional bool cc_generic_services = 16 [default = false];
  4410. bool has_cc_generic_services() const;
  4411. private:
  4412. bool _internal_has_cc_generic_services() const;
  4413. public:
  4414. void clear_cc_generic_services();
  4415. bool cc_generic_services() const;
  4416. void set_cc_generic_services(bool value);
  4417. private:
  4418. bool _internal_cc_generic_services() const;
  4419. void _internal_set_cc_generic_services(bool value);
  4420. public:
  4421. // optional bool java_generic_services = 17 [default = false];
  4422. bool has_java_generic_services() const;
  4423. private:
  4424. bool _internal_has_java_generic_services() const;
  4425. public:
  4426. void clear_java_generic_services();
  4427. bool java_generic_services() const;
  4428. void set_java_generic_services(bool value);
  4429. private:
  4430. bool _internal_java_generic_services() const;
  4431. void _internal_set_java_generic_services(bool value);
  4432. public:
  4433. // optional bool py_generic_services = 18 [default = false];
  4434. bool has_py_generic_services() const;
  4435. private:
  4436. bool _internal_has_py_generic_services() const;
  4437. public:
  4438. void clear_py_generic_services();
  4439. bool py_generic_services() const;
  4440. void set_py_generic_services(bool value);
  4441. private:
  4442. bool _internal_py_generic_services() const;
  4443. void _internal_set_py_generic_services(bool value);
  4444. public:
  4445. // optional bool php_generic_services = 42 [default = false];
  4446. bool has_php_generic_services() const;
  4447. private:
  4448. bool _internal_has_php_generic_services() const;
  4449. public:
  4450. void clear_php_generic_services();
  4451. bool php_generic_services() const;
  4452. void set_php_generic_services(bool value);
  4453. private:
  4454. bool _internal_php_generic_services() const;
  4455. void _internal_set_php_generic_services(bool value);
  4456. public:
  4457. // optional bool deprecated = 23 [default = false];
  4458. bool has_deprecated() const;
  4459. private:
  4460. bool _internal_has_deprecated() const;
  4461. public:
  4462. void clear_deprecated();
  4463. bool deprecated() const;
  4464. void set_deprecated(bool value);
  4465. private:
  4466. bool _internal_deprecated() const;
  4467. void _internal_set_deprecated(bool value);
  4468. public:
  4469. // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
  4470. bool has_optimize_for() const;
  4471. private:
  4472. bool _internal_has_optimize_for() const;
  4473. public:
  4474. void clear_optimize_for();
  4475. ::PROTOBUF_NAMESPACE_ID::FileOptions_OptimizeMode optimize_for() const;
  4476. void set_optimize_for(::PROTOBUF_NAMESPACE_ID::FileOptions_OptimizeMode value);
  4477. private:
  4478. ::PROTOBUF_NAMESPACE_ID::FileOptions_OptimizeMode _internal_optimize_for() const;
  4479. void _internal_set_optimize_for(::PROTOBUF_NAMESPACE_ID::FileOptions_OptimizeMode value);
  4480. public:
  4481. // optional bool cc_enable_arenas = 31 [default = true];
  4482. bool has_cc_enable_arenas() const;
  4483. private:
  4484. bool _internal_has_cc_enable_arenas() const;
  4485. public:
  4486. void clear_cc_enable_arenas();
  4487. bool cc_enable_arenas() const;
  4488. void set_cc_enable_arenas(bool value);
  4489. private:
  4490. bool _internal_cc_enable_arenas() const;
  4491. void _internal_set_cc_enable_arenas(bool value);
  4492. public:
  4493. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  4494. inline bool HasExtension(
  4495. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4496. FileOptions,
  4497. _proto_TypeTraits,
  4498. _field_type,
  4499. _is_packed>& id
  4500. ) const
  4501. {
  4502. return _impl_._extensions_.Has(id.number());
  4503. }
  4504. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  4505. inline void ClearExtension(
  4506. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4507. FileOptions,
  4508. _proto_TypeTraits,
  4509. _field_type,
  4510. _is_packed>& id
  4511. )
  4512. {
  4513. _impl_._extensions_.ClearExtension(id.number());
  4514. }
  4515. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  4516. inline int ExtensionSize(
  4517. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4518. FileOptions,
  4519. _proto_TypeTraits,
  4520. _field_type,
  4521. _is_packed>& id
  4522. ) const
  4523. {
  4524. return _impl_._extensions_.ExtensionSize(id.number());
  4525. }
  4526. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  4527. inline typename _proto_TypeTraits::Singular::ConstType GetExtension(
  4528. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4529. FileOptions,
  4530. _proto_TypeTraits,
  4531. _field_type,
  4532. _is_packed>& id
  4533. ) const
  4534. {
  4535. return _proto_TypeTraits::Get(id.number(), _impl_._extensions_, id.default_value());
  4536. }
  4537. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  4538. inline typename _proto_TypeTraits::Singular::MutableType MutableExtension(
  4539. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4540. FileOptions,
  4541. _proto_TypeTraits,
  4542. _field_type,
  4543. _is_packed>& id
  4544. )
  4545. {
  4546. return _proto_TypeTraits::Mutable(id.number(), _field_type, &_impl_._extensions_);
  4547. }
  4548. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  4549. inline void SetExtension(
  4550. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4551. FileOptions,
  4552. _proto_TypeTraits,
  4553. _field_type,
  4554. _is_packed>& id,
  4555. typename _proto_TypeTraits::Singular::ConstType value
  4556. )
  4557. {
  4558. _proto_TypeTraits::Set(id.number(), _field_type, value, &_impl_._extensions_);
  4559. }
  4560. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  4561. inline void SetAllocatedExtension(
  4562. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4563. FileOptions,
  4564. _proto_TypeTraits,
  4565. _field_type,
  4566. _is_packed>& id,
  4567. typename _proto_TypeTraits::Singular::MutableType value
  4568. )
  4569. {
  4570. _proto_TypeTraits::SetAllocated(id.number(), _field_type, value, &_impl_._extensions_);
  4571. }
  4572. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  4573. inline void UnsafeArenaSetAllocatedExtension(
  4574. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4575. FileOptions,
  4576. _proto_TypeTraits,
  4577. _field_type,
  4578. _is_packed>& id,
  4579. typename _proto_TypeTraits::Singular::MutableType value
  4580. )
  4581. {
  4582. _proto_TypeTraits::UnsafeArenaSetAllocated(id.number(), _field_type, value, &_impl_._extensions_);
  4583. }
  4584. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  4585. PROTOBUF_NODISCARD inline
  4586. typename _proto_TypeTraits::Singular::MutableType
  4587. ReleaseExtension(
  4588. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4589. FileOptions,
  4590. _proto_TypeTraits,
  4591. _field_type,
  4592. _is_packed>& id
  4593. )
  4594. {
  4595. return _proto_TypeTraits::Release(id.number(), _field_type, &_impl_._extensions_);
  4596. }
  4597. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  4598. inline typename _proto_TypeTraits::Singular::MutableType
  4599. UnsafeArenaReleaseExtension(
  4600. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4601. FileOptions,
  4602. _proto_TypeTraits,
  4603. _field_type,
  4604. _is_packed>& id
  4605. )
  4606. {
  4607. return _proto_TypeTraits::UnsafeArenaRelease(id.number(), _field_type, &_impl_._extensions_);
  4608. }
  4609. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  4610. inline typename _proto_TypeTraits::Repeated::ConstType GetExtension(
  4611. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4612. FileOptions,
  4613. _proto_TypeTraits,
  4614. _field_type,
  4615. _is_packed>& id,
  4616. int index
  4617. ) const
  4618. {
  4619. return _proto_TypeTraits::Get(id.number(), _impl_._extensions_, index);
  4620. }
  4621. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  4622. inline typename _proto_TypeTraits::Repeated::MutableType MutableExtension(
  4623. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4624. FileOptions,
  4625. _proto_TypeTraits,
  4626. _field_type,
  4627. _is_packed>& id,
  4628. int index
  4629. )
  4630. {
  4631. return _proto_TypeTraits::Mutable(id.number(), index, &_impl_._extensions_);
  4632. }
  4633. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  4634. inline void SetExtension(
  4635. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4636. FileOptions,
  4637. _proto_TypeTraits,
  4638. _field_type,
  4639. _is_packed>& id,
  4640. int index,
  4641. typename _proto_TypeTraits::Repeated::ConstType value
  4642. )
  4643. {
  4644. _proto_TypeTraits::Set(id.number(), index, value, &_impl_._extensions_);
  4645. }
  4646. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  4647. inline typename _proto_TypeTraits::Repeated::MutableType AddExtension(
  4648. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4649. FileOptions,
  4650. _proto_TypeTraits,
  4651. _field_type,
  4652. _is_packed>& id
  4653. )
  4654. {
  4655. typename _proto_TypeTraits::Repeated::MutableType to_add =
  4656. _proto_TypeTraits::Add(id.number(), _field_type, &_impl_._extensions_);
  4657. return to_add;
  4658. }
  4659. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  4660. inline void AddExtension(
  4661. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4662. FileOptions,
  4663. _proto_TypeTraits,
  4664. _field_type,
  4665. _is_packed>& id,
  4666. typename _proto_TypeTraits::Repeated::ConstType value
  4667. )
  4668. {
  4669. _proto_TypeTraits::Add(id.number(), _field_type, _is_packed, value, &_impl_._extensions_);
  4670. }
  4671. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  4672. inline const typename _proto_TypeTraits::Repeated::RepeatedFieldType&
  4673. GetRepeatedExtension(
  4674. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4675. FileOptions,
  4676. _proto_TypeTraits,
  4677. _field_type,
  4678. _is_packed>& id
  4679. ) const
  4680. {
  4681. return _proto_TypeTraits::GetRepeated(id.number(), _impl_._extensions_);
  4682. }
  4683. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  4684. inline typename _proto_TypeTraits::Repeated::RepeatedFieldType*
  4685. MutableRepeatedExtension(
  4686. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4687. FileOptions,
  4688. _proto_TypeTraits,
  4689. _field_type,
  4690. _is_packed>& id
  4691. )
  4692. {
  4693. return _proto_TypeTraits::MutableRepeated(id.number(), _field_type, _is_packed, &_impl_._extensions_);
  4694. }
  4695. // @@protoc_insertion_point(class_scope:google.protobuf.FileOptions)
  4696. private:
  4697. class _Internal;
  4698. template<typename T>
  4699. friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  4700. typedef void InternalArenaConstructable_;
  4701. typedef void DestructorSkippable_;
  4702. struct Impl_
  4703. {
  4704. ::PROTOBUF_NAMESPACE_ID::internal::ExtensionSet _extensions_;
  4705. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  4706. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  4707. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::UninterpretedOption> uninterpreted_option_;
  4708. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr java_package_;
  4709. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr java_outer_classname_;
  4710. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr go_package_;
  4711. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr objc_class_prefix_;
  4712. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr csharp_namespace_;
  4713. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr swift_prefix_;
  4714. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr php_class_prefix_;
  4715. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr php_namespace_;
  4716. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr php_metadata_namespace_;
  4717. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr ruby_package_;
  4718. bool java_multiple_files_;
  4719. bool java_generate_equals_and_hash_;
  4720. bool java_string_check_utf8_;
  4721. bool cc_generic_services_;
  4722. bool java_generic_services_;
  4723. bool py_generic_services_;
  4724. bool php_generic_services_;
  4725. bool deprecated_;
  4726. int optimize_for_;
  4727. bool cc_enable_arenas_;
  4728. };
  4729. union
  4730. {
  4731. Impl_ _impl_;
  4732. };
  4733. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  4734. };
  4735. // -------------------------------------------------------------------
  4736. class PROTOBUF_EXPORT MessageOptions final :
  4737. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.MessageOptions) */
  4738. {
  4739. public:
  4740. inline MessageOptions() :
  4741. MessageOptions(nullptr)
  4742. {
  4743. }
  4744. ~MessageOptions() override;
  4745. explicit PROTOBUF_CONSTEXPR MessageOptions(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  4746. MessageOptions(const MessageOptions& from);
  4747. MessageOptions(MessageOptions&& from) noexcept
  4748. :
  4749. MessageOptions()
  4750. {
  4751. *this = ::std::move(from);
  4752. }
  4753. inline MessageOptions& operator=(const MessageOptions& from)
  4754. {
  4755. CopyFrom(from);
  4756. return *this;
  4757. }
  4758. inline MessageOptions& operator=(MessageOptions&& from) noexcept
  4759. {
  4760. if (this == &from)
  4761. return *this;
  4762. if (GetOwningArena() == from.GetOwningArena()
  4763. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  4764. && GetOwningArena() != nullptr
  4765. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  4766. )
  4767. {
  4768. InternalSwap(&from);
  4769. }
  4770. else
  4771. {
  4772. CopyFrom(from);
  4773. }
  4774. return *this;
  4775. }
  4776. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const
  4777. {
  4778. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  4779. }
  4780. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields()
  4781. {
  4782. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4783. }
  4784. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor()
  4785. {
  4786. return GetDescriptor();
  4787. }
  4788. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor()
  4789. {
  4790. return default_instance().GetMetadata().descriptor;
  4791. }
  4792. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection()
  4793. {
  4794. return default_instance().GetMetadata().reflection;
  4795. }
  4796. static const MessageOptions& default_instance()
  4797. {
  4798. return *internal_default_instance();
  4799. }
  4800. static inline const MessageOptions* internal_default_instance()
  4801. {
  4802. return reinterpret_cast<const MessageOptions*>(
  4803. &_MessageOptions_default_instance_
  4804. );
  4805. }
  4806. static constexpr int kIndexInFileMessages =
  4807. 14;
  4808. friend void swap(MessageOptions& a, MessageOptions& b)
  4809. {
  4810. a.Swap(&b);
  4811. }
  4812. inline void Swap(MessageOptions* other)
  4813. {
  4814. if (other == this)
  4815. return;
  4816. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  4817. if (GetOwningArena() != nullptr &&
  4818. GetOwningArena() == other->GetOwningArena())
  4819. {
  4820. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  4821. if (GetOwningArena() == other->GetOwningArena())
  4822. {
  4823. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  4824. InternalSwap(other);
  4825. }
  4826. else
  4827. {
  4828. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  4829. }
  4830. }
  4831. void UnsafeArenaSwap(MessageOptions* other)
  4832. {
  4833. if (other == this)
  4834. return;
  4835. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  4836. InternalSwap(other);
  4837. }
  4838. // implements Message ----------------------------------------------
  4839. MessageOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final
  4840. {
  4841. return CreateMaybeMessage<MessageOptions>(arena);
  4842. }
  4843. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  4844. void CopyFrom(const MessageOptions& from);
  4845. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  4846. void MergeFrom(const MessageOptions& from)
  4847. {
  4848. MessageOptions::MergeImpl(*this, from);
  4849. }
  4850. private:
  4851. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
  4852. public:
  4853. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  4854. bool IsInitialized() const final;
  4855. size_t ByteSizeLong() const final;
  4856. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  4857. uint8_t* _InternalSerialize(
  4858. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  4859. ) const final;
  4860. int GetCachedSize() const final
  4861. {
  4862. return _impl_._cached_size_.Get();
  4863. }
  4864. private:
  4865. void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
  4866. void SharedDtor();
  4867. void SetCachedSize(int size) const final;
  4868. void InternalSwap(MessageOptions* other);
  4869. private:
  4870. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  4871. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName()
  4872. {
  4873. return "google.protobuf.MessageOptions";
  4874. }
  4875. protected:
  4876. explicit MessageOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false);
  4877. public:
  4878. static const ClassData _class_data_;
  4879. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final;
  4880. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  4881. // nested types ----------------------------------------------------
  4882. // accessors -------------------------------------------------------
  4883. enum : int
  4884. {
  4885. kUninterpretedOptionFieldNumber = 999,
  4886. kMessageSetWireFormatFieldNumber = 1,
  4887. kNoStandardDescriptorAccessorFieldNumber = 2,
  4888. kDeprecatedFieldNumber = 3,
  4889. kMapEntryFieldNumber = 7,
  4890. };
  4891. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  4892. int uninterpreted_option_size() const;
  4893. private:
  4894. int _internal_uninterpreted_option_size() const;
  4895. public:
  4896. void clear_uninterpreted_option();
  4897. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* mutable_uninterpreted_option(int index);
  4898. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::UninterpretedOption>*
  4899. mutable_uninterpreted_option();
  4900. private:
  4901. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& _internal_uninterpreted_option(int index) const;
  4902. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* _internal_add_uninterpreted_option();
  4903. public:
  4904. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& uninterpreted_option(int index) const;
  4905. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* add_uninterpreted_option();
  4906. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::UninterpretedOption>&
  4907. uninterpreted_option() const;
  4908. // optional bool message_set_wire_format = 1 [default = false];
  4909. bool has_message_set_wire_format() const;
  4910. private:
  4911. bool _internal_has_message_set_wire_format() const;
  4912. public:
  4913. void clear_message_set_wire_format();
  4914. bool message_set_wire_format() const;
  4915. void set_message_set_wire_format(bool value);
  4916. private:
  4917. bool _internal_message_set_wire_format() const;
  4918. void _internal_set_message_set_wire_format(bool value);
  4919. public:
  4920. // optional bool no_standard_descriptor_accessor = 2 [default = false];
  4921. bool has_no_standard_descriptor_accessor() const;
  4922. private:
  4923. bool _internal_has_no_standard_descriptor_accessor() const;
  4924. public:
  4925. void clear_no_standard_descriptor_accessor();
  4926. bool no_standard_descriptor_accessor() const;
  4927. void set_no_standard_descriptor_accessor(bool value);
  4928. private:
  4929. bool _internal_no_standard_descriptor_accessor() const;
  4930. void _internal_set_no_standard_descriptor_accessor(bool value);
  4931. public:
  4932. // optional bool deprecated = 3 [default = false];
  4933. bool has_deprecated() const;
  4934. private:
  4935. bool _internal_has_deprecated() const;
  4936. public:
  4937. void clear_deprecated();
  4938. bool deprecated() const;
  4939. void set_deprecated(bool value);
  4940. private:
  4941. bool _internal_deprecated() const;
  4942. void _internal_set_deprecated(bool value);
  4943. public:
  4944. // optional bool map_entry = 7;
  4945. bool has_map_entry() const;
  4946. private:
  4947. bool _internal_has_map_entry() const;
  4948. public:
  4949. void clear_map_entry();
  4950. bool map_entry() const;
  4951. void set_map_entry(bool value);
  4952. private:
  4953. bool _internal_map_entry() const;
  4954. void _internal_set_map_entry(bool value);
  4955. public:
  4956. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  4957. inline bool HasExtension(
  4958. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4959. MessageOptions,
  4960. _proto_TypeTraits,
  4961. _field_type,
  4962. _is_packed>& id
  4963. ) const
  4964. {
  4965. return _impl_._extensions_.Has(id.number());
  4966. }
  4967. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  4968. inline void ClearExtension(
  4969. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4970. MessageOptions,
  4971. _proto_TypeTraits,
  4972. _field_type,
  4973. _is_packed>& id
  4974. )
  4975. {
  4976. _impl_._extensions_.ClearExtension(id.number());
  4977. }
  4978. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  4979. inline int ExtensionSize(
  4980. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4981. MessageOptions,
  4982. _proto_TypeTraits,
  4983. _field_type,
  4984. _is_packed>& id
  4985. ) const
  4986. {
  4987. return _impl_._extensions_.ExtensionSize(id.number());
  4988. }
  4989. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  4990. inline typename _proto_TypeTraits::Singular::ConstType GetExtension(
  4991. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4992. MessageOptions,
  4993. _proto_TypeTraits,
  4994. _field_type,
  4995. _is_packed>& id
  4996. ) const
  4997. {
  4998. return _proto_TypeTraits::Get(id.number(), _impl_._extensions_, id.default_value());
  4999. }
  5000. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  5001. inline typename _proto_TypeTraits::Singular::MutableType MutableExtension(
  5002. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5003. MessageOptions,
  5004. _proto_TypeTraits,
  5005. _field_type,
  5006. _is_packed>& id
  5007. )
  5008. {
  5009. return _proto_TypeTraits::Mutable(id.number(), _field_type, &_impl_._extensions_);
  5010. }
  5011. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  5012. inline void SetExtension(
  5013. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5014. MessageOptions,
  5015. _proto_TypeTraits,
  5016. _field_type,
  5017. _is_packed>& id,
  5018. typename _proto_TypeTraits::Singular::ConstType value
  5019. )
  5020. {
  5021. _proto_TypeTraits::Set(id.number(), _field_type, value, &_impl_._extensions_);
  5022. }
  5023. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  5024. inline void SetAllocatedExtension(
  5025. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5026. MessageOptions,
  5027. _proto_TypeTraits,
  5028. _field_type,
  5029. _is_packed>& id,
  5030. typename _proto_TypeTraits::Singular::MutableType value
  5031. )
  5032. {
  5033. _proto_TypeTraits::SetAllocated(id.number(), _field_type, value, &_impl_._extensions_);
  5034. }
  5035. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  5036. inline void UnsafeArenaSetAllocatedExtension(
  5037. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5038. MessageOptions,
  5039. _proto_TypeTraits,
  5040. _field_type,
  5041. _is_packed>& id,
  5042. typename _proto_TypeTraits::Singular::MutableType value
  5043. )
  5044. {
  5045. _proto_TypeTraits::UnsafeArenaSetAllocated(id.number(), _field_type, value, &_impl_._extensions_);
  5046. }
  5047. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  5048. PROTOBUF_NODISCARD inline
  5049. typename _proto_TypeTraits::Singular::MutableType
  5050. ReleaseExtension(
  5051. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5052. MessageOptions,
  5053. _proto_TypeTraits,
  5054. _field_type,
  5055. _is_packed>& id
  5056. )
  5057. {
  5058. return _proto_TypeTraits::Release(id.number(), _field_type, &_impl_._extensions_);
  5059. }
  5060. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  5061. inline typename _proto_TypeTraits::Singular::MutableType
  5062. UnsafeArenaReleaseExtension(
  5063. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5064. MessageOptions,
  5065. _proto_TypeTraits,
  5066. _field_type,
  5067. _is_packed>& id
  5068. )
  5069. {
  5070. return _proto_TypeTraits::UnsafeArenaRelease(id.number(), _field_type, &_impl_._extensions_);
  5071. }
  5072. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  5073. inline typename _proto_TypeTraits::Repeated::ConstType GetExtension(
  5074. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5075. MessageOptions,
  5076. _proto_TypeTraits,
  5077. _field_type,
  5078. _is_packed>& id,
  5079. int index
  5080. ) const
  5081. {
  5082. return _proto_TypeTraits::Get(id.number(), _impl_._extensions_, index);
  5083. }
  5084. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  5085. inline typename _proto_TypeTraits::Repeated::MutableType MutableExtension(
  5086. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5087. MessageOptions,
  5088. _proto_TypeTraits,
  5089. _field_type,
  5090. _is_packed>& id,
  5091. int index
  5092. )
  5093. {
  5094. return _proto_TypeTraits::Mutable(id.number(), index, &_impl_._extensions_);
  5095. }
  5096. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  5097. inline void SetExtension(
  5098. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5099. MessageOptions,
  5100. _proto_TypeTraits,
  5101. _field_type,
  5102. _is_packed>& id,
  5103. int index,
  5104. typename _proto_TypeTraits::Repeated::ConstType value
  5105. )
  5106. {
  5107. _proto_TypeTraits::Set(id.number(), index, value, &_impl_._extensions_);
  5108. }
  5109. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  5110. inline typename _proto_TypeTraits::Repeated::MutableType AddExtension(
  5111. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5112. MessageOptions,
  5113. _proto_TypeTraits,
  5114. _field_type,
  5115. _is_packed>& id
  5116. )
  5117. {
  5118. typename _proto_TypeTraits::Repeated::MutableType to_add =
  5119. _proto_TypeTraits::Add(id.number(), _field_type, &_impl_._extensions_);
  5120. return to_add;
  5121. }
  5122. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  5123. inline void AddExtension(
  5124. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5125. MessageOptions,
  5126. _proto_TypeTraits,
  5127. _field_type,
  5128. _is_packed>& id,
  5129. typename _proto_TypeTraits::Repeated::ConstType value
  5130. )
  5131. {
  5132. _proto_TypeTraits::Add(id.number(), _field_type, _is_packed, value, &_impl_._extensions_);
  5133. }
  5134. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  5135. inline const typename _proto_TypeTraits::Repeated::RepeatedFieldType&
  5136. GetRepeatedExtension(
  5137. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5138. MessageOptions,
  5139. _proto_TypeTraits,
  5140. _field_type,
  5141. _is_packed>& id
  5142. ) const
  5143. {
  5144. return _proto_TypeTraits::GetRepeated(id.number(), _impl_._extensions_);
  5145. }
  5146. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  5147. inline typename _proto_TypeTraits::Repeated::RepeatedFieldType*
  5148. MutableRepeatedExtension(
  5149. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5150. MessageOptions,
  5151. _proto_TypeTraits,
  5152. _field_type,
  5153. _is_packed>& id
  5154. )
  5155. {
  5156. return _proto_TypeTraits::MutableRepeated(id.number(), _field_type, _is_packed, &_impl_._extensions_);
  5157. }
  5158. // @@protoc_insertion_point(class_scope:google.protobuf.MessageOptions)
  5159. private:
  5160. class _Internal;
  5161. template<typename T>
  5162. friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  5163. typedef void InternalArenaConstructable_;
  5164. typedef void DestructorSkippable_;
  5165. struct Impl_
  5166. {
  5167. ::PROTOBUF_NAMESPACE_ID::internal::ExtensionSet _extensions_;
  5168. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  5169. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  5170. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::UninterpretedOption> uninterpreted_option_;
  5171. bool message_set_wire_format_;
  5172. bool no_standard_descriptor_accessor_;
  5173. bool deprecated_;
  5174. bool map_entry_;
  5175. };
  5176. union
  5177. {
  5178. Impl_ _impl_;
  5179. };
  5180. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  5181. };
  5182. // -------------------------------------------------------------------
  5183. class PROTOBUF_EXPORT FieldOptions final :
  5184. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.FieldOptions) */
  5185. {
  5186. public:
  5187. inline FieldOptions() :
  5188. FieldOptions(nullptr)
  5189. {
  5190. }
  5191. ~FieldOptions() override;
  5192. explicit PROTOBUF_CONSTEXPR FieldOptions(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  5193. FieldOptions(const FieldOptions& from);
  5194. FieldOptions(FieldOptions&& from) noexcept
  5195. :
  5196. FieldOptions()
  5197. {
  5198. *this = ::std::move(from);
  5199. }
  5200. inline FieldOptions& operator=(const FieldOptions& from)
  5201. {
  5202. CopyFrom(from);
  5203. return *this;
  5204. }
  5205. inline FieldOptions& operator=(FieldOptions&& from) noexcept
  5206. {
  5207. if (this == &from)
  5208. return *this;
  5209. if (GetOwningArena() == from.GetOwningArena()
  5210. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  5211. && GetOwningArena() != nullptr
  5212. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  5213. )
  5214. {
  5215. InternalSwap(&from);
  5216. }
  5217. else
  5218. {
  5219. CopyFrom(from);
  5220. }
  5221. return *this;
  5222. }
  5223. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const
  5224. {
  5225. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  5226. }
  5227. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields()
  5228. {
  5229. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5230. }
  5231. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor()
  5232. {
  5233. return GetDescriptor();
  5234. }
  5235. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor()
  5236. {
  5237. return default_instance().GetMetadata().descriptor;
  5238. }
  5239. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection()
  5240. {
  5241. return default_instance().GetMetadata().reflection;
  5242. }
  5243. static const FieldOptions& default_instance()
  5244. {
  5245. return *internal_default_instance();
  5246. }
  5247. static inline const FieldOptions* internal_default_instance()
  5248. {
  5249. return reinterpret_cast<const FieldOptions*>(
  5250. &_FieldOptions_default_instance_
  5251. );
  5252. }
  5253. static constexpr int kIndexInFileMessages =
  5254. 15;
  5255. friend void swap(FieldOptions& a, FieldOptions& b)
  5256. {
  5257. a.Swap(&b);
  5258. }
  5259. inline void Swap(FieldOptions* other)
  5260. {
  5261. if (other == this)
  5262. return;
  5263. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  5264. if (GetOwningArena() != nullptr &&
  5265. GetOwningArena() == other->GetOwningArena())
  5266. {
  5267. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  5268. if (GetOwningArena() == other->GetOwningArena())
  5269. {
  5270. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  5271. InternalSwap(other);
  5272. }
  5273. else
  5274. {
  5275. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  5276. }
  5277. }
  5278. void UnsafeArenaSwap(FieldOptions* other)
  5279. {
  5280. if (other == this)
  5281. return;
  5282. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  5283. InternalSwap(other);
  5284. }
  5285. // implements Message ----------------------------------------------
  5286. FieldOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final
  5287. {
  5288. return CreateMaybeMessage<FieldOptions>(arena);
  5289. }
  5290. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  5291. void CopyFrom(const FieldOptions& from);
  5292. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  5293. void MergeFrom(const FieldOptions& from)
  5294. {
  5295. FieldOptions::MergeImpl(*this, from);
  5296. }
  5297. private:
  5298. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
  5299. public:
  5300. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  5301. bool IsInitialized() const final;
  5302. size_t ByteSizeLong() const final;
  5303. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  5304. uint8_t* _InternalSerialize(
  5305. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  5306. ) const final;
  5307. int GetCachedSize() const final
  5308. {
  5309. return _impl_._cached_size_.Get();
  5310. }
  5311. private:
  5312. void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
  5313. void SharedDtor();
  5314. void SetCachedSize(int size) const final;
  5315. void InternalSwap(FieldOptions* other);
  5316. private:
  5317. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  5318. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName()
  5319. {
  5320. return "google.protobuf.FieldOptions";
  5321. }
  5322. protected:
  5323. explicit FieldOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false);
  5324. public:
  5325. static const ClassData _class_data_;
  5326. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final;
  5327. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  5328. // nested types ----------------------------------------------------
  5329. typedef FieldOptions_CType CType;
  5330. static constexpr CType STRING =
  5331. FieldOptions_CType_STRING;
  5332. static constexpr CType CORD =
  5333. FieldOptions_CType_CORD;
  5334. static constexpr CType STRING_PIECE =
  5335. FieldOptions_CType_STRING_PIECE;
  5336. static inline bool CType_IsValid(int value)
  5337. {
  5338. return FieldOptions_CType_IsValid(value);
  5339. }
  5340. static constexpr CType CType_MIN =
  5341. FieldOptions_CType_CType_MIN;
  5342. static constexpr CType CType_MAX =
  5343. FieldOptions_CType_CType_MAX;
  5344. static constexpr int CType_ARRAYSIZE =
  5345. FieldOptions_CType_CType_ARRAYSIZE;
  5346. static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
  5347. CType_descriptor()
  5348. {
  5349. return FieldOptions_CType_descriptor();
  5350. }
  5351. template<typename T>
  5352. static inline const std::string& CType_Name(T enum_t_value)
  5353. {
  5354. static_assert(::std::is_same<T, CType>::value || ::std::is_integral<T>::value, "Incorrect type passed to function CType_Name.");
  5355. return FieldOptions_CType_Name(enum_t_value);
  5356. }
  5357. static inline bool CType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, CType* value)
  5358. {
  5359. return FieldOptions_CType_Parse(name, value);
  5360. }
  5361. typedef FieldOptions_JSType JSType;
  5362. static constexpr JSType JS_NORMAL =
  5363. FieldOptions_JSType_JS_NORMAL;
  5364. static constexpr JSType JS_STRING =
  5365. FieldOptions_JSType_JS_STRING;
  5366. static constexpr JSType JS_NUMBER =
  5367. FieldOptions_JSType_JS_NUMBER;
  5368. static inline bool JSType_IsValid(int value)
  5369. {
  5370. return FieldOptions_JSType_IsValid(value);
  5371. }
  5372. static constexpr JSType JSType_MIN =
  5373. FieldOptions_JSType_JSType_MIN;
  5374. static constexpr JSType JSType_MAX =
  5375. FieldOptions_JSType_JSType_MAX;
  5376. static constexpr int JSType_ARRAYSIZE =
  5377. FieldOptions_JSType_JSType_ARRAYSIZE;
  5378. static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
  5379. JSType_descriptor()
  5380. {
  5381. return FieldOptions_JSType_descriptor();
  5382. }
  5383. template<typename T>
  5384. static inline const std::string& JSType_Name(T enum_t_value)
  5385. {
  5386. static_assert(::std::is_same<T, JSType>::value || ::std::is_integral<T>::value, "Incorrect type passed to function JSType_Name.");
  5387. return FieldOptions_JSType_Name(enum_t_value);
  5388. }
  5389. static inline bool JSType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, JSType* value)
  5390. {
  5391. return FieldOptions_JSType_Parse(name, value);
  5392. }
  5393. // accessors -------------------------------------------------------
  5394. enum : int
  5395. {
  5396. kUninterpretedOptionFieldNumber = 999,
  5397. kCtypeFieldNumber = 1,
  5398. kJstypeFieldNumber = 6,
  5399. kPackedFieldNumber = 2,
  5400. kLazyFieldNumber = 5,
  5401. kUnverifiedLazyFieldNumber = 15,
  5402. kDeprecatedFieldNumber = 3,
  5403. kWeakFieldNumber = 10,
  5404. };
  5405. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  5406. int uninterpreted_option_size() const;
  5407. private:
  5408. int _internal_uninterpreted_option_size() const;
  5409. public:
  5410. void clear_uninterpreted_option();
  5411. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* mutable_uninterpreted_option(int index);
  5412. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::UninterpretedOption>*
  5413. mutable_uninterpreted_option();
  5414. private:
  5415. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& _internal_uninterpreted_option(int index) const;
  5416. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* _internal_add_uninterpreted_option();
  5417. public:
  5418. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& uninterpreted_option(int index) const;
  5419. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* add_uninterpreted_option();
  5420. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::UninterpretedOption>&
  5421. uninterpreted_option() const;
  5422. // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
  5423. bool has_ctype() const;
  5424. private:
  5425. bool _internal_has_ctype() const;
  5426. public:
  5427. void clear_ctype();
  5428. ::PROTOBUF_NAMESPACE_ID::FieldOptions_CType ctype() const;
  5429. void set_ctype(::PROTOBUF_NAMESPACE_ID::FieldOptions_CType value);
  5430. private:
  5431. ::PROTOBUF_NAMESPACE_ID::FieldOptions_CType _internal_ctype() const;
  5432. void _internal_set_ctype(::PROTOBUF_NAMESPACE_ID::FieldOptions_CType value);
  5433. public:
  5434. // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];
  5435. bool has_jstype() const;
  5436. private:
  5437. bool _internal_has_jstype() const;
  5438. public:
  5439. void clear_jstype();
  5440. ::PROTOBUF_NAMESPACE_ID::FieldOptions_JSType jstype() const;
  5441. void set_jstype(::PROTOBUF_NAMESPACE_ID::FieldOptions_JSType value);
  5442. private:
  5443. ::PROTOBUF_NAMESPACE_ID::FieldOptions_JSType _internal_jstype() const;
  5444. void _internal_set_jstype(::PROTOBUF_NAMESPACE_ID::FieldOptions_JSType value);
  5445. public:
  5446. // optional bool packed = 2;
  5447. bool has_packed() const;
  5448. private:
  5449. bool _internal_has_packed() const;
  5450. public:
  5451. void clear_packed();
  5452. bool packed() const;
  5453. void set_packed(bool value);
  5454. private:
  5455. bool _internal_packed() const;
  5456. void _internal_set_packed(bool value);
  5457. public:
  5458. // optional bool lazy = 5 [default = false];
  5459. bool has_lazy() const;
  5460. private:
  5461. bool _internal_has_lazy() const;
  5462. public:
  5463. void clear_lazy();
  5464. bool lazy() const;
  5465. void set_lazy(bool value);
  5466. private:
  5467. bool _internal_lazy() const;
  5468. void _internal_set_lazy(bool value);
  5469. public:
  5470. // optional bool unverified_lazy = 15 [default = false];
  5471. bool has_unverified_lazy() const;
  5472. private:
  5473. bool _internal_has_unverified_lazy() const;
  5474. public:
  5475. void clear_unverified_lazy();
  5476. bool unverified_lazy() const;
  5477. void set_unverified_lazy(bool value);
  5478. private:
  5479. bool _internal_unverified_lazy() const;
  5480. void _internal_set_unverified_lazy(bool value);
  5481. public:
  5482. // optional bool deprecated = 3 [default = false];
  5483. bool has_deprecated() const;
  5484. private:
  5485. bool _internal_has_deprecated() const;
  5486. public:
  5487. void clear_deprecated();
  5488. bool deprecated() const;
  5489. void set_deprecated(bool value);
  5490. private:
  5491. bool _internal_deprecated() const;
  5492. void _internal_set_deprecated(bool value);
  5493. public:
  5494. // optional bool weak = 10 [default = false];
  5495. bool has_weak() const;
  5496. private:
  5497. bool _internal_has_weak() const;
  5498. public:
  5499. void clear_weak();
  5500. bool weak() const;
  5501. void set_weak(bool value);
  5502. private:
  5503. bool _internal_weak() const;
  5504. void _internal_set_weak(bool value);
  5505. public:
  5506. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  5507. inline bool HasExtension(
  5508. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5509. FieldOptions,
  5510. _proto_TypeTraits,
  5511. _field_type,
  5512. _is_packed>& id
  5513. ) const
  5514. {
  5515. return _impl_._extensions_.Has(id.number());
  5516. }
  5517. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  5518. inline void ClearExtension(
  5519. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5520. FieldOptions,
  5521. _proto_TypeTraits,
  5522. _field_type,
  5523. _is_packed>& id
  5524. )
  5525. {
  5526. _impl_._extensions_.ClearExtension(id.number());
  5527. }
  5528. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  5529. inline int ExtensionSize(
  5530. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5531. FieldOptions,
  5532. _proto_TypeTraits,
  5533. _field_type,
  5534. _is_packed>& id
  5535. ) const
  5536. {
  5537. return _impl_._extensions_.ExtensionSize(id.number());
  5538. }
  5539. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  5540. inline typename _proto_TypeTraits::Singular::ConstType GetExtension(
  5541. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5542. FieldOptions,
  5543. _proto_TypeTraits,
  5544. _field_type,
  5545. _is_packed>& id
  5546. ) const
  5547. {
  5548. return _proto_TypeTraits::Get(id.number(), _impl_._extensions_, id.default_value());
  5549. }
  5550. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  5551. inline typename _proto_TypeTraits::Singular::MutableType MutableExtension(
  5552. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5553. FieldOptions,
  5554. _proto_TypeTraits,
  5555. _field_type,
  5556. _is_packed>& id
  5557. )
  5558. {
  5559. return _proto_TypeTraits::Mutable(id.number(), _field_type, &_impl_._extensions_);
  5560. }
  5561. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  5562. inline void SetExtension(
  5563. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5564. FieldOptions,
  5565. _proto_TypeTraits,
  5566. _field_type,
  5567. _is_packed>& id,
  5568. typename _proto_TypeTraits::Singular::ConstType value
  5569. )
  5570. {
  5571. _proto_TypeTraits::Set(id.number(), _field_type, value, &_impl_._extensions_);
  5572. }
  5573. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  5574. inline void SetAllocatedExtension(
  5575. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5576. FieldOptions,
  5577. _proto_TypeTraits,
  5578. _field_type,
  5579. _is_packed>& id,
  5580. typename _proto_TypeTraits::Singular::MutableType value
  5581. )
  5582. {
  5583. _proto_TypeTraits::SetAllocated(id.number(), _field_type, value, &_impl_._extensions_);
  5584. }
  5585. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  5586. inline void UnsafeArenaSetAllocatedExtension(
  5587. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5588. FieldOptions,
  5589. _proto_TypeTraits,
  5590. _field_type,
  5591. _is_packed>& id,
  5592. typename _proto_TypeTraits::Singular::MutableType value
  5593. )
  5594. {
  5595. _proto_TypeTraits::UnsafeArenaSetAllocated(id.number(), _field_type, value, &_impl_._extensions_);
  5596. }
  5597. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  5598. PROTOBUF_NODISCARD inline
  5599. typename _proto_TypeTraits::Singular::MutableType
  5600. ReleaseExtension(
  5601. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5602. FieldOptions,
  5603. _proto_TypeTraits,
  5604. _field_type,
  5605. _is_packed>& id
  5606. )
  5607. {
  5608. return _proto_TypeTraits::Release(id.number(), _field_type, &_impl_._extensions_);
  5609. }
  5610. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  5611. inline typename _proto_TypeTraits::Singular::MutableType
  5612. UnsafeArenaReleaseExtension(
  5613. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5614. FieldOptions,
  5615. _proto_TypeTraits,
  5616. _field_type,
  5617. _is_packed>& id
  5618. )
  5619. {
  5620. return _proto_TypeTraits::UnsafeArenaRelease(id.number(), _field_type, &_impl_._extensions_);
  5621. }
  5622. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  5623. inline typename _proto_TypeTraits::Repeated::ConstType GetExtension(
  5624. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5625. FieldOptions,
  5626. _proto_TypeTraits,
  5627. _field_type,
  5628. _is_packed>& id,
  5629. int index
  5630. ) const
  5631. {
  5632. return _proto_TypeTraits::Get(id.number(), _impl_._extensions_, index);
  5633. }
  5634. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  5635. inline typename _proto_TypeTraits::Repeated::MutableType MutableExtension(
  5636. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5637. FieldOptions,
  5638. _proto_TypeTraits,
  5639. _field_type,
  5640. _is_packed>& id,
  5641. int index
  5642. )
  5643. {
  5644. return _proto_TypeTraits::Mutable(id.number(), index, &_impl_._extensions_);
  5645. }
  5646. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  5647. inline void SetExtension(
  5648. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5649. FieldOptions,
  5650. _proto_TypeTraits,
  5651. _field_type,
  5652. _is_packed>& id,
  5653. int index,
  5654. typename _proto_TypeTraits::Repeated::ConstType value
  5655. )
  5656. {
  5657. _proto_TypeTraits::Set(id.number(), index, value, &_impl_._extensions_);
  5658. }
  5659. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  5660. inline typename _proto_TypeTraits::Repeated::MutableType AddExtension(
  5661. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5662. FieldOptions,
  5663. _proto_TypeTraits,
  5664. _field_type,
  5665. _is_packed>& id
  5666. )
  5667. {
  5668. typename _proto_TypeTraits::Repeated::MutableType to_add =
  5669. _proto_TypeTraits::Add(id.number(), _field_type, &_impl_._extensions_);
  5670. return to_add;
  5671. }
  5672. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  5673. inline void AddExtension(
  5674. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5675. FieldOptions,
  5676. _proto_TypeTraits,
  5677. _field_type,
  5678. _is_packed>& id,
  5679. typename _proto_TypeTraits::Repeated::ConstType value
  5680. )
  5681. {
  5682. _proto_TypeTraits::Add(id.number(), _field_type, _is_packed, value, &_impl_._extensions_);
  5683. }
  5684. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  5685. inline const typename _proto_TypeTraits::Repeated::RepeatedFieldType&
  5686. GetRepeatedExtension(
  5687. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5688. FieldOptions,
  5689. _proto_TypeTraits,
  5690. _field_type,
  5691. _is_packed>& id
  5692. ) const
  5693. {
  5694. return _proto_TypeTraits::GetRepeated(id.number(), _impl_._extensions_);
  5695. }
  5696. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  5697. inline typename _proto_TypeTraits::Repeated::RepeatedFieldType*
  5698. MutableRepeatedExtension(
  5699. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5700. FieldOptions,
  5701. _proto_TypeTraits,
  5702. _field_type,
  5703. _is_packed>& id
  5704. )
  5705. {
  5706. return _proto_TypeTraits::MutableRepeated(id.number(), _field_type, _is_packed, &_impl_._extensions_);
  5707. }
  5708. // @@protoc_insertion_point(class_scope:google.protobuf.FieldOptions)
  5709. private:
  5710. class _Internal;
  5711. template<typename T>
  5712. friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  5713. typedef void InternalArenaConstructable_;
  5714. typedef void DestructorSkippable_;
  5715. struct Impl_
  5716. {
  5717. ::PROTOBUF_NAMESPACE_ID::internal::ExtensionSet _extensions_;
  5718. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  5719. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  5720. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::UninterpretedOption> uninterpreted_option_;
  5721. int ctype_;
  5722. int jstype_;
  5723. bool packed_;
  5724. bool lazy_;
  5725. bool unverified_lazy_;
  5726. bool deprecated_;
  5727. bool weak_;
  5728. };
  5729. union
  5730. {
  5731. Impl_ _impl_;
  5732. };
  5733. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  5734. };
  5735. // -------------------------------------------------------------------
  5736. class PROTOBUF_EXPORT OneofOptions final :
  5737. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.OneofOptions) */
  5738. {
  5739. public:
  5740. inline OneofOptions() :
  5741. OneofOptions(nullptr)
  5742. {
  5743. }
  5744. ~OneofOptions() override;
  5745. explicit PROTOBUF_CONSTEXPR OneofOptions(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  5746. OneofOptions(const OneofOptions& from);
  5747. OneofOptions(OneofOptions&& from) noexcept
  5748. :
  5749. OneofOptions()
  5750. {
  5751. *this = ::std::move(from);
  5752. }
  5753. inline OneofOptions& operator=(const OneofOptions& from)
  5754. {
  5755. CopyFrom(from);
  5756. return *this;
  5757. }
  5758. inline OneofOptions& operator=(OneofOptions&& from) noexcept
  5759. {
  5760. if (this == &from)
  5761. return *this;
  5762. if (GetOwningArena() == from.GetOwningArena()
  5763. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  5764. && GetOwningArena() != nullptr
  5765. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  5766. )
  5767. {
  5768. InternalSwap(&from);
  5769. }
  5770. else
  5771. {
  5772. CopyFrom(from);
  5773. }
  5774. return *this;
  5775. }
  5776. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const
  5777. {
  5778. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  5779. }
  5780. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields()
  5781. {
  5782. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5783. }
  5784. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor()
  5785. {
  5786. return GetDescriptor();
  5787. }
  5788. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor()
  5789. {
  5790. return default_instance().GetMetadata().descriptor;
  5791. }
  5792. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection()
  5793. {
  5794. return default_instance().GetMetadata().reflection;
  5795. }
  5796. static const OneofOptions& default_instance()
  5797. {
  5798. return *internal_default_instance();
  5799. }
  5800. static inline const OneofOptions* internal_default_instance()
  5801. {
  5802. return reinterpret_cast<const OneofOptions*>(
  5803. &_OneofOptions_default_instance_
  5804. );
  5805. }
  5806. static constexpr int kIndexInFileMessages =
  5807. 16;
  5808. friend void swap(OneofOptions& a, OneofOptions& b)
  5809. {
  5810. a.Swap(&b);
  5811. }
  5812. inline void Swap(OneofOptions* other)
  5813. {
  5814. if (other == this)
  5815. return;
  5816. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  5817. if (GetOwningArena() != nullptr &&
  5818. GetOwningArena() == other->GetOwningArena())
  5819. {
  5820. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  5821. if (GetOwningArena() == other->GetOwningArena())
  5822. {
  5823. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  5824. InternalSwap(other);
  5825. }
  5826. else
  5827. {
  5828. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  5829. }
  5830. }
  5831. void UnsafeArenaSwap(OneofOptions* other)
  5832. {
  5833. if (other == this)
  5834. return;
  5835. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  5836. InternalSwap(other);
  5837. }
  5838. // implements Message ----------------------------------------------
  5839. OneofOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final
  5840. {
  5841. return CreateMaybeMessage<OneofOptions>(arena);
  5842. }
  5843. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  5844. void CopyFrom(const OneofOptions& from);
  5845. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  5846. void MergeFrom(const OneofOptions& from)
  5847. {
  5848. OneofOptions::MergeImpl(*this, from);
  5849. }
  5850. private:
  5851. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
  5852. public:
  5853. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  5854. bool IsInitialized() const final;
  5855. size_t ByteSizeLong() const final;
  5856. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  5857. uint8_t* _InternalSerialize(
  5858. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  5859. ) const final;
  5860. int GetCachedSize() const final
  5861. {
  5862. return _impl_._cached_size_.Get();
  5863. }
  5864. private:
  5865. void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
  5866. void SharedDtor();
  5867. void SetCachedSize(int size) const final;
  5868. void InternalSwap(OneofOptions* other);
  5869. private:
  5870. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  5871. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName()
  5872. {
  5873. return "google.protobuf.OneofOptions";
  5874. }
  5875. protected:
  5876. explicit OneofOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false);
  5877. public:
  5878. static const ClassData _class_data_;
  5879. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final;
  5880. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  5881. // nested types ----------------------------------------------------
  5882. // accessors -------------------------------------------------------
  5883. enum : int
  5884. {
  5885. kUninterpretedOptionFieldNumber = 999,
  5886. };
  5887. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  5888. int uninterpreted_option_size() const;
  5889. private:
  5890. int _internal_uninterpreted_option_size() const;
  5891. public:
  5892. void clear_uninterpreted_option();
  5893. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* mutable_uninterpreted_option(int index);
  5894. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::UninterpretedOption>*
  5895. mutable_uninterpreted_option();
  5896. private:
  5897. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& _internal_uninterpreted_option(int index) const;
  5898. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* _internal_add_uninterpreted_option();
  5899. public:
  5900. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& uninterpreted_option(int index) const;
  5901. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* add_uninterpreted_option();
  5902. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::UninterpretedOption>&
  5903. uninterpreted_option() const;
  5904. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  5905. inline bool HasExtension(
  5906. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5907. OneofOptions,
  5908. _proto_TypeTraits,
  5909. _field_type,
  5910. _is_packed>& id
  5911. ) const
  5912. {
  5913. return _impl_._extensions_.Has(id.number());
  5914. }
  5915. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  5916. inline void ClearExtension(
  5917. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5918. OneofOptions,
  5919. _proto_TypeTraits,
  5920. _field_type,
  5921. _is_packed>& id
  5922. )
  5923. {
  5924. _impl_._extensions_.ClearExtension(id.number());
  5925. }
  5926. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  5927. inline int ExtensionSize(
  5928. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5929. OneofOptions,
  5930. _proto_TypeTraits,
  5931. _field_type,
  5932. _is_packed>& id
  5933. ) const
  5934. {
  5935. return _impl_._extensions_.ExtensionSize(id.number());
  5936. }
  5937. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  5938. inline typename _proto_TypeTraits::Singular::ConstType GetExtension(
  5939. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5940. OneofOptions,
  5941. _proto_TypeTraits,
  5942. _field_type,
  5943. _is_packed>& id
  5944. ) const
  5945. {
  5946. return _proto_TypeTraits::Get(id.number(), _impl_._extensions_, id.default_value());
  5947. }
  5948. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  5949. inline typename _proto_TypeTraits::Singular::MutableType MutableExtension(
  5950. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5951. OneofOptions,
  5952. _proto_TypeTraits,
  5953. _field_type,
  5954. _is_packed>& id
  5955. )
  5956. {
  5957. return _proto_TypeTraits::Mutable(id.number(), _field_type, &_impl_._extensions_);
  5958. }
  5959. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  5960. inline void SetExtension(
  5961. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5962. OneofOptions,
  5963. _proto_TypeTraits,
  5964. _field_type,
  5965. _is_packed>& id,
  5966. typename _proto_TypeTraits::Singular::ConstType value
  5967. )
  5968. {
  5969. _proto_TypeTraits::Set(id.number(), _field_type, value, &_impl_._extensions_);
  5970. }
  5971. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  5972. inline void SetAllocatedExtension(
  5973. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5974. OneofOptions,
  5975. _proto_TypeTraits,
  5976. _field_type,
  5977. _is_packed>& id,
  5978. typename _proto_TypeTraits::Singular::MutableType value
  5979. )
  5980. {
  5981. _proto_TypeTraits::SetAllocated(id.number(), _field_type, value, &_impl_._extensions_);
  5982. }
  5983. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  5984. inline void UnsafeArenaSetAllocatedExtension(
  5985. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5986. OneofOptions,
  5987. _proto_TypeTraits,
  5988. _field_type,
  5989. _is_packed>& id,
  5990. typename _proto_TypeTraits::Singular::MutableType value
  5991. )
  5992. {
  5993. _proto_TypeTraits::UnsafeArenaSetAllocated(id.number(), _field_type, value, &_impl_._extensions_);
  5994. }
  5995. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  5996. PROTOBUF_NODISCARD inline
  5997. typename _proto_TypeTraits::Singular::MutableType
  5998. ReleaseExtension(
  5999. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6000. OneofOptions,
  6001. _proto_TypeTraits,
  6002. _field_type,
  6003. _is_packed>& id
  6004. )
  6005. {
  6006. return _proto_TypeTraits::Release(id.number(), _field_type, &_impl_._extensions_);
  6007. }
  6008. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  6009. inline typename _proto_TypeTraits::Singular::MutableType
  6010. UnsafeArenaReleaseExtension(
  6011. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6012. OneofOptions,
  6013. _proto_TypeTraits,
  6014. _field_type,
  6015. _is_packed>& id
  6016. )
  6017. {
  6018. return _proto_TypeTraits::UnsafeArenaRelease(id.number(), _field_type, &_impl_._extensions_);
  6019. }
  6020. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  6021. inline typename _proto_TypeTraits::Repeated::ConstType GetExtension(
  6022. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6023. OneofOptions,
  6024. _proto_TypeTraits,
  6025. _field_type,
  6026. _is_packed>& id,
  6027. int index
  6028. ) const
  6029. {
  6030. return _proto_TypeTraits::Get(id.number(), _impl_._extensions_, index);
  6031. }
  6032. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  6033. inline typename _proto_TypeTraits::Repeated::MutableType MutableExtension(
  6034. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6035. OneofOptions,
  6036. _proto_TypeTraits,
  6037. _field_type,
  6038. _is_packed>& id,
  6039. int index
  6040. )
  6041. {
  6042. return _proto_TypeTraits::Mutable(id.number(), index, &_impl_._extensions_);
  6043. }
  6044. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  6045. inline void SetExtension(
  6046. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6047. OneofOptions,
  6048. _proto_TypeTraits,
  6049. _field_type,
  6050. _is_packed>& id,
  6051. int index,
  6052. typename _proto_TypeTraits::Repeated::ConstType value
  6053. )
  6054. {
  6055. _proto_TypeTraits::Set(id.number(), index, value, &_impl_._extensions_);
  6056. }
  6057. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  6058. inline typename _proto_TypeTraits::Repeated::MutableType AddExtension(
  6059. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6060. OneofOptions,
  6061. _proto_TypeTraits,
  6062. _field_type,
  6063. _is_packed>& id
  6064. )
  6065. {
  6066. typename _proto_TypeTraits::Repeated::MutableType to_add =
  6067. _proto_TypeTraits::Add(id.number(), _field_type, &_impl_._extensions_);
  6068. return to_add;
  6069. }
  6070. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  6071. inline void AddExtension(
  6072. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6073. OneofOptions,
  6074. _proto_TypeTraits,
  6075. _field_type,
  6076. _is_packed>& id,
  6077. typename _proto_TypeTraits::Repeated::ConstType value
  6078. )
  6079. {
  6080. _proto_TypeTraits::Add(id.number(), _field_type, _is_packed, value, &_impl_._extensions_);
  6081. }
  6082. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  6083. inline const typename _proto_TypeTraits::Repeated::RepeatedFieldType&
  6084. GetRepeatedExtension(
  6085. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6086. OneofOptions,
  6087. _proto_TypeTraits,
  6088. _field_type,
  6089. _is_packed>& id
  6090. ) const
  6091. {
  6092. return _proto_TypeTraits::GetRepeated(id.number(), _impl_._extensions_);
  6093. }
  6094. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  6095. inline typename _proto_TypeTraits::Repeated::RepeatedFieldType*
  6096. MutableRepeatedExtension(
  6097. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6098. OneofOptions,
  6099. _proto_TypeTraits,
  6100. _field_type,
  6101. _is_packed>& id
  6102. )
  6103. {
  6104. return _proto_TypeTraits::MutableRepeated(id.number(), _field_type, _is_packed, &_impl_._extensions_);
  6105. }
  6106. // @@protoc_insertion_point(class_scope:google.protobuf.OneofOptions)
  6107. private:
  6108. class _Internal;
  6109. template<typename T>
  6110. friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  6111. typedef void InternalArenaConstructable_;
  6112. typedef void DestructorSkippable_;
  6113. struct Impl_
  6114. {
  6115. ::PROTOBUF_NAMESPACE_ID::internal::ExtensionSet _extensions_;
  6116. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::UninterpretedOption> uninterpreted_option_;
  6117. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  6118. };
  6119. union
  6120. {
  6121. Impl_ _impl_;
  6122. };
  6123. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  6124. };
  6125. // -------------------------------------------------------------------
  6126. class PROTOBUF_EXPORT EnumOptions final :
  6127. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.EnumOptions) */
  6128. {
  6129. public:
  6130. inline EnumOptions() :
  6131. EnumOptions(nullptr)
  6132. {
  6133. }
  6134. ~EnumOptions() override;
  6135. explicit PROTOBUF_CONSTEXPR EnumOptions(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  6136. EnumOptions(const EnumOptions& from);
  6137. EnumOptions(EnumOptions&& from) noexcept
  6138. :
  6139. EnumOptions()
  6140. {
  6141. *this = ::std::move(from);
  6142. }
  6143. inline EnumOptions& operator=(const EnumOptions& from)
  6144. {
  6145. CopyFrom(from);
  6146. return *this;
  6147. }
  6148. inline EnumOptions& operator=(EnumOptions&& from) noexcept
  6149. {
  6150. if (this == &from)
  6151. return *this;
  6152. if (GetOwningArena() == from.GetOwningArena()
  6153. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  6154. && GetOwningArena() != nullptr
  6155. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  6156. )
  6157. {
  6158. InternalSwap(&from);
  6159. }
  6160. else
  6161. {
  6162. CopyFrom(from);
  6163. }
  6164. return *this;
  6165. }
  6166. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const
  6167. {
  6168. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  6169. }
  6170. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields()
  6171. {
  6172. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6173. }
  6174. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor()
  6175. {
  6176. return GetDescriptor();
  6177. }
  6178. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor()
  6179. {
  6180. return default_instance().GetMetadata().descriptor;
  6181. }
  6182. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection()
  6183. {
  6184. return default_instance().GetMetadata().reflection;
  6185. }
  6186. static const EnumOptions& default_instance()
  6187. {
  6188. return *internal_default_instance();
  6189. }
  6190. static inline const EnumOptions* internal_default_instance()
  6191. {
  6192. return reinterpret_cast<const EnumOptions*>(
  6193. &_EnumOptions_default_instance_
  6194. );
  6195. }
  6196. static constexpr int kIndexInFileMessages =
  6197. 17;
  6198. friend void swap(EnumOptions& a, EnumOptions& b)
  6199. {
  6200. a.Swap(&b);
  6201. }
  6202. inline void Swap(EnumOptions* other)
  6203. {
  6204. if (other == this)
  6205. return;
  6206. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  6207. if (GetOwningArena() != nullptr &&
  6208. GetOwningArena() == other->GetOwningArena())
  6209. {
  6210. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  6211. if (GetOwningArena() == other->GetOwningArena())
  6212. {
  6213. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  6214. InternalSwap(other);
  6215. }
  6216. else
  6217. {
  6218. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  6219. }
  6220. }
  6221. void UnsafeArenaSwap(EnumOptions* other)
  6222. {
  6223. if (other == this)
  6224. return;
  6225. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  6226. InternalSwap(other);
  6227. }
  6228. // implements Message ----------------------------------------------
  6229. EnumOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final
  6230. {
  6231. return CreateMaybeMessage<EnumOptions>(arena);
  6232. }
  6233. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  6234. void CopyFrom(const EnumOptions& from);
  6235. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  6236. void MergeFrom(const EnumOptions& from)
  6237. {
  6238. EnumOptions::MergeImpl(*this, from);
  6239. }
  6240. private:
  6241. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
  6242. public:
  6243. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  6244. bool IsInitialized() const final;
  6245. size_t ByteSizeLong() const final;
  6246. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  6247. uint8_t* _InternalSerialize(
  6248. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  6249. ) const final;
  6250. int GetCachedSize() const final
  6251. {
  6252. return _impl_._cached_size_.Get();
  6253. }
  6254. private:
  6255. void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
  6256. void SharedDtor();
  6257. void SetCachedSize(int size) const final;
  6258. void InternalSwap(EnumOptions* other);
  6259. private:
  6260. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  6261. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName()
  6262. {
  6263. return "google.protobuf.EnumOptions";
  6264. }
  6265. protected:
  6266. explicit EnumOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false);
  6267. public:
  6268. static const ClassData _class_data_;
  6269. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final;
  6270. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  6271. // nested types ----------------------------------------------------
  6272. // accessors -------------------------------------------------------
  6273. enum : int
  6274. {
  6275. kUninterpretedOptionFieldNumber = 999,
  6276. kAllowAliasFieldNumber = 2,
  6277. kDeprecatedFieldNumber = 3,
  6278. };
  6279. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  6280. int uninterpreted_option_size() const;
  6281. private:
  6282. int _internal_uninterpreted_option_size() const;
  6283. public:
  6284. void clear_uninterpreted_option();
  6285. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* mutable_uninterpreted_option(int index);
  6286. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::UninterpretedOption>*
  6287. mutable_uninterpreted_option();
  6288. private:
  6289. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& _internal_uninterpreted_option(int index) const;
  6290. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* _internal_add_uninterpreted_option();
  6291. public:
  6292. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& uninterpreted_option(int index) const;
  6293. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* add_uninterpreted_option();
  6294. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::UninterpretedOption>&
  6295. uninterpreted_option() const;
  6296. // optional bool allow_alias = 2;
  6297. bool has_allow_alias() const;
  6298. private:
  6299. bool _internal_has_allow_alias() const;
  6300. public:
  6301. void clear_allow_alias();
  6302. bool allow_alias() const;
  6303. void set_allow_alias(bool value);
  6304. private:
  6305. bool _internal_allow_alias() const;
  6306. void _internal_set_allow_alias(bool value);
  6307. public:
  6308. // optional bool deprecated = 3 [default = false];
  6309. bool has_deprecated() const;
  6310. private:
  6311. bool _internal_has_deprecated() const;
  6312. public:
  6313. void clear_deprecated();
  6314. bool deprecated() const;
  6315. void set_deprecated(bool value);
  6316. private:
  6317. bool _internal_deprecated() const;
  6318. void _internal_set_deprecated(bool value);
  6319. public:
  6320. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  6321. inline bool HasExtension(
  6322. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6323. EnumOptions,
  6324. _proto_TypeTraits,
  6325. _field_type,
  6326. _is_packed>& id
  6327. ) const
  6328. {
  6329. return _impl_._extensions_.Has(id.number());
  6330. }
  6331. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  6332. inline void ClearExtension(
  6333. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6334. EnumOptions,
  6335. _proto_TypeTraits,
  6336. _field_type,
  6337. _is_packed>& id
  6338. )
  6339. {
  6340. _impl_._extensions_.ClearExtension(id.number());
  6341. }
  6342. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  6343. inline int ExtensionSize(
  6344. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6345. EnumOptions,
  6346. _proto_TypeTraits,
  6347. _field_type,
  6348. _is_packed>& id
  6349. ) const
  6350. {
  6351. return _impl_._extensions_.ExtensionSize(id.number());
  6352. }
  6353. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  6354. inline typename _proto_TypeTraits::Singular::ConstType GetExtension(
  6355. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6356. EnumOptions,
  6357. _proto_TypeTraits,
  6358. _field_type,
  6359. _is_packed>& id
  6360. ) const
  6361. {
  6362. return _proto_TypeTraits::Get(id.number(), _impl_._extensions_, id.default_value());
  6363. }
  6364. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  6365. inline typename _proto_TypeTraits::Singular::MutableType MutableExtension(
  6366. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6367. EnumOptions,
  6368. _proto_TypeTraits,
  6369. _field_type,
  6370. _is_packed>& id
  6371. )
  6372. {
  6373. return _proto_TypeTraits::Mutable(id.number(), _field_type, &_impl_._extensions_);
  6374. }
  6375. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  6376. inline void SetExtension(
  6377. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6378. EnumOptions,
  6379. _proto_TypeTraits,
  6380. _field_type,
  6381. _is_packed>& id,
  6382. typename _proto_TypeTraits::Singular::ConstType value
  6383. )
  6384. {
  6385. _proto_TypeTraits::Set(id.number(), _field_type, value, &_impl_._extensions_);
  6386. }
  6387. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  6388. inline void SetAllocatedExtension(
  6389. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6390. EnumOptions,
  6391. _proto_TypeTraits,
  6392. _field_type,
  6393. _is_packed>& id,
  6394. typename _proto_TypeTraits::Singular::MutableType value
  6395. )
  6396. {
  6397. _proto_TypeTraits::SetAllocated(id.number(), _field_type, value, &_impl_._extensions_);
  6398. }
  6399. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  6400. inline void UnsafeArenaSetAllocatedExtension(
  6401. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6402. EnumOptions,
  6403. _proto_TypeTraits,
  6404. _field_type,
  6405. _is_packed>& id,
  6406. typename _proto_TypeTraits::Singular::MutableType value
  6407. )
  6408. {
  6409. _proto_TypeTraits::UnsafeArenaSetAllocated(id.number(), _field_type, value, &_impl_._extensions_);
  6410. }
  6411. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  6412. PROTOBUF_NODISCARD inline
  6413. typename _proto_TypeTraits::Singular::MutableType
  6414. ReleaseExtension(
  6415. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6416. EnumOptions,
  6417. _proto_TypeTraits,
  6418. _field_type,
  6419. _is_packed>& id
  6420. )
  6421. {
  6422. return _proto_TypeTraits::Release(id.number(), _field_type, &_impl_._extensions_);
  6423. }
  6424. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  6425. inline typename _proto_TypeTraits::Singular::MutableType
  6426. UnsafeArenaReleaseExtension(
  6427. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6428. EnumOptions,
  6429. _proto_TypeTraits,
  6430. _field_type,
  6431. _is_packed>& id
  6432. )
  6433. {
  6434. return _proto_TypeTraits::UnsafeArenaRelease(id.number(), _field_type, &_impl_._extensions_);
  6435. }
  6436. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  6437. inline typename _proto_TypeTraits::Repeated::ConstType GetExtension(
  6438. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6439. EnumOptions,
  6440. _proto_TypeTraits,
  6441. _field_type,
  6442. _is_packed>& id,
  6443. int index
  6444. ) const
  6445. {
  6446. return _proto_TypeTraits::Get(id.number(), _impl_._extensions_, index);
  6447. }
  6448. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  6449. inline typename _proto_TypeTraits::Repeated::MutableType MutableExtension(
  6450. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6451. EnumOptions,
  6452. _proto_TypeTraits,
  6453. _field_type,
  6454. _is_packed>& id,
  6455. int index
  6456. )
  6457. {
  6458. return _proto_TypeTraits::Mutable(id.number(), index, &_impl_._extensions_);
  6459. }
  6460. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  6461. inline void SetExtension(
  6462. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6463. EnumOptions,
  6464. _proto_TypeTraits,
  6465. _field_type,
  6466. _is_packed>& id,
  6467. int index,
  6468. typename _proto_TypeTraits::Repeated::ConstType value
  6469. )
  6470. {
  6471. _proto_TypeTraits::Set(id.number(), index, value, &_impl_._extensions_);
  6472. }
  6473. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  6474. inline typename _proto_TypeTraits::Repeated::MutableType AddExtension(
  6475. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6476. EnumOptions,
  6477. _proto_TypeTraits,
  6478. _field_type,
  6479. _is_packed>& id
  6480. )
  6481. {
  6482. typename _proto_TypeTraits::Repeated::MutableType to_add =
  6483. _proto_TypeTraits::Add(id.number(), _field_type, &_impl_._extensions_);
  6484. return to_add;
  6485. }
  6486. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  6487. inline void AddExtension(
  6488. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6489. EnumOptions,
  6490. _proto_TypeTraits,
  6491. _field_type,
  6492. _is_packed>& id,
  6493. typename _proto_TypeTraits::Repeated::ConstType value
  6494. )
  6495. {
  6496. _proto_TypeTraits::Add(id.number(), _field_type, _is_packed, value, &_impl_._extensions_);
  6497. }
  6498. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  6499. inline const typename _proto_TypeTraits::Repeated::RepeatedFieldType&
  6500. GetRepeatedExtension(
  6501. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6502. EnumOptions,
  6503. _proto_TypeTraits,
  6504. _field_type,
  6505. _is_packed>& id
  6506. ) const
  6507. {
  6508. return _proto_TypeTraits::GetRepeated(id.number(), _impl_._extensions_);
  6509. }
  6510. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  6511. inline typename _proto_TypeTraits::Repeated::RepeatedFieldType*
  6512. MutableRepeatedExtension(
  6513. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6514. EnumOptions,
  6515. _proto_TypeTraits,
  6516. _field_type,
  6517. _is_packed>& id
  6518. )
  6519. {
  6520. return _proto_TypeTraits::MutableRepeated(id.number(), _field_type, _is_packed, &_impl_._extensions_);
  6521. }
  6522. // @@protoc_insertion_point(class_scope:google.protobuf.EnumOptions)
  6523. private:
  6524. class _Internal;
  6525. template<typename T>
  6526. friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  6527. typedef void InternalArenaConstructable_;
  6528. typedef void DestructorSkippable_;
  6529. struct Impl_
  6530. {
  6531. ::PROTOBUF_NAMESPACE_ID::internal::ExtensionSet _extensions_;
  6532. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  6533. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  6534. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::UninterpretedOption> uninterpreted_option_;
  6535. bool allow_alias_;
  6536. bool deprecated_;
  6537. };
  6538. union
  6539. {
  6540. Impl_ _impl_;
  6541. };
  6542. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  6543. };
  6544. // -------------------------------------------------------------------
  6545. class PROTOBUF_EXPORT EnumValueOptions final :
  6546. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.EnumValueOptions) */
  6547. {
  6548. public:
  6549. inline EnumValueOptions() :
  6550. EnumValueOptions(nullptr)
  6551. {
  6552. }
  6553. ~EnumValueOptions() override;
  6554. explicit PROTOBUF_CONSTEXPR EnumValueOptions(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  6555. EnumValueOptions(const EnumValueOptions& from);
  6556. EnumValueOptions(EnumValueOptions&& from) noexcept
  6557. :
  6558. EnumValueOptions()
  6559. {
  6560. *this = ::std::move(from);
  6561. }
  6562. inline EnumValueOptions& operator=(const EnumValueOptions& from)
  6563. {
  6564. CopyFrom(from);
  6565. return *this;
  6566. }
  6567. inline EnumValueOptions& operator=(EnumValueOptions&& from) noexcept
  6568. {
  6569. if (this == &from)
  6570. return *this;
  6571. if (GetOwningArena() == from.GetOwningArena()
  6572. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  6573. && GetOwningArena() != nullptr
  6574. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  6575. )
  6576. {
  6577. InternalSwap(&from);
  6578. }
  6579. else
  6580. {
  6581. CopyFrom(from);
  6582. }
  6583. return *this;
  6584. }
  6585. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const
  6586. {
  6587. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  6588. }
  6589. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields()
  6590. {
  6591. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6592. }
  6593. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor()
  6594. {
  6595. return GetDescriptor();
  6596. }
  6597. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor()
  6598. {
  6599. return default_instance().GetMetadata().descriptor;
  6600. }
  6601. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection()
  6602. {
  6603. return default_instance().GetMetadata().reflection;
  6604. }
  6605. static const EnumValueOptions& default_instance()
  6606. {
  6607. return *internal_default_instance();
  6608. }
  6609. static inline const EnumValueOptions* internal_default_instance()
  6610. {
  6611. return reinterpret_cast<const EnumValueOptions*>(
  6612. &_EnumValueOptions_default_instance_
  6613. );
  6614. }
  6615. static constexpr int kIndexInFileMessages =
  6616. 18;
  6617. friend void swap(EnumValueOptions& a, EnumValueOptions& b)
  6618. {
  6619. a.Swap(&b);
  6620. }
  6621. inline void Swap(EnumValueOptions* other)
  6622. {
  6623. if (other == this)
  6624. return;
  6625. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  6626. if (GetOwningArena() != nullptr &&
  6627. GetOwningArena() == other->GetOwningArena())
  6628. {
  6629. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  6630. if (GetOwningArena() == other->GetOwningArena())
  6631. {
  6632. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  6633. InternalSwap(other);
  6634. }
  6635. else
  6636. {
  6637. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  6638. }
  6639. }
  6640. void UnsafeArenaSwap(EnumValueOptions* other)
  6641. {
  6642. if (other == this)
  6643. return;
  6644. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  6645. InternalSwap(other);
  6646. }
  6647. // implements Message ----------------------------------------------
  6648. EnumValueOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final
  6649. {
  6650. return CreateMaybeMessage<EnumValueOptions>(arena);
  6651. }
  6652. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  6653. void CopyFrom(const EnumValueOptions& from);
  6654. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  6655. void MergeFrom(const EnumValueOptions& from)
  6656. {
  6657. EnumValueOptions::MergeImpl(*this, from);
  6658. }
  6659. private:
  6660. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
  6661. public:
  6662. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  6663. bool IsInitialized() const final;
  6664. size_t ByteSizeLong() const final;
  6665. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  6666. uint8_t* _InternalSerialize(
  6667. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  6668. ) const final;
  6669. int GetCachedSize() const final
  6670. {
  6671. return _impl_._cached_size_.Get();
  6672. }
  6673. private:
  6674. void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
  6675. void SharedDtor();
  6676. void SetCachedSize(int size) const final;
  6677. void InternalSwap(EnumValueOptions* other);
  6678. private:
  6679. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  6680. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName()
  6681. {
  6682. return "google.protobuf.EnumValueOptions";
  6683. }
  6684. protected:
  6685. explicit EnumValueOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false);
  6686. public:
  6687. static const ClassData _class_data_;
  6688. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final;
  6689. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  6690. // nested types ----------------------------------------------------
  6691. // accessors -------------------------------------------------------
  6692. enum : int
  6693. {
  6694. kUninterpretedOptionFieldNumber = 999,
  6695. kDeprecatedFieldNumber = 1,
  6696. };
  6697. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  6698. int uninterpreted_option_size() const;
  6699. private:
  6700. int _internal_uninterpreted_option_size() const;
  6701. public:
  6702. void clear_uninterpreted_option();
  6703. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* mutable_uninterpreted_option(int index);
  6704. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::UninterpretedOption>*
  6705. mutable_uninterpreted_option();
  6706. private:
  6707. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& _internal_uninterpreted_option(int index) const;
  6708. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* _internal_add_uninterpreted_option();
  6709. public:
  6710. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& uninterpreted_option(int index) const;
  6711. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* add_uninterpreted_option();
  6712. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::UninterpretedOption>&
  6713. uninterpreted_option() const;
  6714. // optional bool deprecated = 1 [default = false];
  6715. bool has_deprecated() const;
  6716. private:
  6717. bool _internal_has_deprecated() const;
  6718. public:
  6719. void clear_deprecated();
  6720. bool deprecated() const;
  6721. void set_deprecated(bool value);
  6722. private:
  6723. bool _internal_deprecated() const;
  6724. void _internal_set_deprecated(bool value);
  6725. public:
  6726. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  6727. inline bool HasExtension(
  6728. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6729. EnumValueOptions,
  6730. _proto_TypeTraits,
  6731. _field_type,
  6732. _is_packed>& id
  6733. ) const
  6734. {
  6735. return _impl_._extensions_.Has(id.number());
  6736. }
  6737. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  6738. inline void ClearExtension(
  6739. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6740. EnumValueOptions,
  6741. _proto_TypeTraits,
  6742. _field_type,
  6743. _is_packed>& id
  6744. )
  6745. {
  6746. _impl_._extensions_.ClearExtension(id.number());
  6747. }
  6748. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  6749. inline int ExtensionSize(
  6750. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6751. EnumValueOptions,
  6752. _proto_TypeTraits,
  6753. _field_type,
  6754. _is_packed>& id
  6755. ) const
  6756. {
  6757. return _impl_._extensions_.ExtensionSize(id.number());
  6758. }
  6759. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  6760. inline typename _proto_TypeTraits::Singular::ConstType GetExtension(
  6761. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6762. EnumValueOptions,
  6763. _proto_TypeTraits,
  6764. _field_type,
  6765. _is_packed>& id
  6766. ) const
  6767. {
  6768. return _proto_TypeTraits::Get(id.number(), _impl_._extensions_, id.default_value());
  6769. }
  6770. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  6771. inline typename _proto_TypeTraits::Singular::MutableType MutableExtension(
  6772. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6773. EnumValueOptions,
  6774. _proto_TypeTraits,
  6775. _field_type,
  6776. _is_packed>& id
  6777. )
  6778. {
  6779. return _proto_TypeTraits::Mutable(id.number(), _field_type, &_impl_._extensions_);
  6780. }
  6781. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  6782. inline void SetExtension(
  6783. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6784. EnumValueOptions,
  6785. _proto_TypeTraits,
  6786. _field_type,
  6787. _is_packed>& id,
  6788. typename _proto_TypeTraits::Singular::ConstType value
  6789. )
  6790. {
  6791. _proto_TypeTraits::Set(id.number(), _field_type, value, &_impl_._extensions_);
  6792. }
  6793. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  6794. inline void SetAllocatedExtension(
  6795. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6796. EnumValueOptions,
  6797. _proto_TypeTraits,
  6798. _field_type,
  6799. _is_packed>& id,
  6800. typename _proto_TypeTraits::Singular::MutableType value
  6801. )
  6802. {
  6803. _proto_TypeTraits::SetAllocated(id.number(), _field_type, value, &_impl_._extensions_);
  6804. }
  6805. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  6806. inline void UnsafeArenaSetAllocatedExtension(
  6807. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6808. EnumValueOptions,
  6809. _proto_TypeTraits,
  6810. _field_type,
  6811. _is_packed>& id,
  6812. typename _proto_TypeTraits::Singular::MutableType value
  6813. )
  6814. {
  6815. _proto_TypeTraits::UnsafeArenaSetAllocated(id.number(), _field_type, value, &_impl_._extensions_);
  6816. }
  6817. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  6818. PROTOBUF_NODISCARD inline
  6819. typename _proto_TypeTraits::Singular::MutableType
  6820. ReleaseExtension(
  6821. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6822. EnumValueOptions,
  6823. _proto_TypeTraits,
  6824. _field_type,
  6825. _is_packed>& id
  6826. )
  6827. {
  6828. return _proto_TypeTraits::Release(id.number(), _field_type, &_impl_._extensions_);
  6829. }
  6830. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  6831. inline typename _proto_TypeTraits::Singular::MutableType
  6832. UnsafeArenaReleaseExtension(
  6833. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6834. EnumValueOptions,
  6835. _proto_TypeTraits,
  6836. _field_type,
  6837. _is_packed>& id
  6838. )
  6839. {
  6840. return _proto_TypeTraits::UnsafeArenaRelease(id.number(), _field_type, &_impl_._extensions_);
  6841. }
  6842. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  6843. inline typename _proto_TypeTraits::Repeated::ConstType GetExtension(
  6844. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6845. EnumValueOptions,
  6846. _proto_TypeTraits,
  6847. _field_type,
  6848. _is_packed>& id,
  6849. int index
  6850. ) const
  6851. {
  6852. return _proto_TypeTraits::Get(id.number(), _impl_._extensions_, index);
  6853. }
  6854. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  6855. inline typename _proto_TypeTraits::Repeated::MutableType MutableExtension(
  6856. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6857. EnumValueOptions,
  6858. _proto_TypeTraits,
  6859. _field_type,
  6860. _is_packed>& id,
  6861. int index
  6862. )
  6863. {
  6864. return _proto_TypeTraits::Mutable(id.number(), index, &_impl_._extensions_);
  6865. }
  6866. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  6867. inline void SetExtension(
  6868. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6869. EnumValueOptions,
  6870. _proto_TypeTraits,
  6871. _field_type,
  6872. _is_packed>& id,
  6873. int index,
  6874. typename _proto_TypeTraits::Repeated::ConstType value
  6875. )
  6876. {
  6877. _proto_TypeTraits::Set(id.number(), index, value, &_impl_._extensions_);
  6878. }
  6879. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  6880. inline typename _proto_TypeTraits::Repeated::MutableType AddExtension(
  6881. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6882. EnumValueOptions,
  6883. _proto_TypeTraits,
  6884. _field_type,
  6885. _is_packed>& id
  6886. )
  6887. {
  6888. typename _proto_TypeTraits::Repeated::MutableType to_add =
  6889. _proto_TypeTraits::Add(id.number(), _field_type, &_impl_._extensions_);
  6890. return to_add;
  6891. }
  6892. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  6893. inline void AddExtension(
  6894. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6895. EnumValueOptions,
  6896. _proto_TypeTraits,
  6897. _field_type,
  6898. _is_packed>& id,
  6899. typename _proto_TypeTraits::Repeated::ConstType value
  6900. )
  6901. {
  6902. _proto_TypeTraits::Add(id.number(), _field_type, _is_packed, value, &_impl_._extensions_);
  6903. }
  6904. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  6905. inline const typename _proto_TypeTraits::Repeated::RepeatedFieldType&
  6906. GetRepeatedExtension(
  6907. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6908. EnumValueOptions,
  6909. _proto_TypeTraits,
  6910. _field_type,
  6911. _is_packed>& id
  6912. ) const
  6913. {
  6914. return _proto_TypeTraits::GetRepeated(id.number(), _impl_._extensions_);
  6915. }
  6916. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  6917. inline typename _proto_TypeTraits::Repeated::RepeatedFieldType*
  6918. MutableRepeatedExtension(
  6919. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6920. EnumValueOptions,
  6921. _proto_TypeTraits,
  6922. _field_type,
  6923. _is_packed>& id
  6924. )
  6925. {
  6926. return _proto_TypeTraits::MutableRepeated(id.number(), _field_type, _is_packed, &_impl_._extensions_);
  6927. }
  6928. // @@protoc_insertion_point(class_scope:google.protobuf.EnumValueOptions)
  6929. private:
  6930. class _Internal;
  6931. template<typename T>
  6932. friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  6933. typedef void InternalArenaConstructable_;
  6934. typedef void DestructorSkippable_;
  6935. struct Impl_
  6936. {
  6937. ::PROTOBUF_NAMESPACE_ID::internal::ExtensionSet _extensions_;
  6938. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  6939. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  6940. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::UninterpretedOption> uninterpreted_option_;
  6941. bool deprecated_;
  6942. };
  6943. union
  6944. {
  6945. Impl_ _impl_;
  6946. };
  6947. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  6948. };
  6949. // -------------------------------------------------------------------
  6950. class PROTOBUF_EXPORT ServiceOptions final :
  6951. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.ServiceOptions) */
  6952. {
  6953. public:
  6954. inline ServiceOptions() :
  6955. ServiceOptions(nullptr)
  6956. {
  6957. }
  6958. ~ServiceOptions() override;
  6959. explicit PROTOBUF_CONSTEXPR ServiceOptions(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  6960. ServiceOptions(const ServiceOptions& from);
  6961. ServiceOptions(ServiceOptions&& from) noexcept
  6962. :
  6963. ServiceOptions()
  6964. {
  6965. *this = ::std::move(from);
  6966. }
  6967. inline ServiceOptions& operator=(const ServiceOptions& from)
  6968. {
  6969. CopyFrom(from);
  6970. return *this;
  6971. }
  6972. inline ServiceOptions& operator=(ServiceOptions&& from) noexcept
  6973. {
  6974. if (this == &from)
  6975. return *this;
  6976. if (GetOwningArena() == from.GetOwningArena()
  6977. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  6978. && GetOwningArena() != nullptr
  6979. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  6980. )
  6981. {
  6982. InternalSwap(&from);
  6983. }
  6984. else
  6985. {
  6986. CopyFrom(from);
  6987. }
  6988. return *this;
  6989. }
  6990. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const
  6991. {
  6992. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  6993. }
  6994. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields()
  6995. {
  6996. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6997. }
  6998. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor()
  6999. {
  7000. return GetDescriptor();
  7001. }
  7002. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor()
  7003. {
  7004. return default_instance().GetMetadata().descriptor;
  7005. }
  7006. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection()
  7007. {
  7008. return default_instance().GetMetadata().reflection;
  7009. }
  7010. static const ServiceOptions& default_instance()
  7011. {
  7012. return *internal_default_instance();
  7013. }
  7014. static inline const ServiceOptions* internal_default_instance()
  7015. {
  7016. return reinterpret_cast<const ServiceOptions*>(
  7017. &_ServiceOptions_default_instance_
  7018. );
  7019. }
  7020. static constexpr int kIndexInFileMessages =
  7021. 19;
  7022. friend void swap(ServiceOptions& a, ServiceOptions& b)
  7023. {
  7024. a.Swap(&b);
  7025. }
  7026. inline void Swap(ServiceOptions* other)
  7027. {
  7028. if (other == this)
  7029. return;
  7030. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  7031. if (GetOwningArena() != nullptr &&
  7032. GetOwningArena() == other->GetOwningArena())
  7033. {
  7034. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  7035. if (GetOwningArena() == other->GetOwningArena())
  7036. {
  7037. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  7038. InternalSwap(other);
  7039. }
  7040. else
  7041. {
  7042. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  7043. }
  7044. }
  7045. void UnsafeArenaSwap(ServiceOptions* other)
  7046. {
  7047. if (other == this)
  7048. return;
  7049. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  7050. InternalSwap(other);
  7051. }
  7052. // implements Message ----------------------------------------------
  7053. ServiceOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final
  7054. {
  7055. return CreateMaybeMessage<ServiceOptions>(arena);
  7056. }
  7057. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  7058. void CopyFrom(const ServiceOptions& from);
  7059. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  7060. void MergeFrom(const ServiceOptions& from)
  7061. {
  7062. ServiceOptions::MergeImpl(*this, from);
  7063. }
  7064. private:
  7065. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
  7066. public:
  7067. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  7068. bool IsInitialized() const final;
  7069. size_t ByteSizeLong() const final;
  7070. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  7071. uint8_t* _InternalSerialize(
  7072. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  7073. ) const final;
  7074. int GetCachedSize() const final
  7075. {
  7076. return _impl_._cached_size_.Get();
  7077. }
  7078. private:
  7079. void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
  7080. void SharedDtor();
  7081. void SetCachedSize(int size) const final;
  7082. void InternalSwap(ServiceOptions* other);
  7083. private:
  7084. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  7085. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName()
  7086. {
  7087. return "google.protobuf.ServiceOptions";
  7088. }
  7089. protected:
  7090. explicit ServiceOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false);
  7091. public:
  7092. static const ClassData _class_data_;
  7093. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final;
  7094. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  7095. // nested types ----------------------------------------------------
  7096. // accessors -------------------------------------------------------
  7097. enum : int
  7098. {
  7099. kUninterpretedOptionFieldNumber = 999,
  7100. kDeprecatedFieldNumber = 33,
  7101. };
  7102. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  7103. int uninterpreted_option_size() const;
  7104. private:
  7105. int _internal_uninterpreted_option_size() const;
  7106. public:
  7107. void clear_uninterpreted_option();
  7108. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* mutable_uninterpreted_option(int index);
  7109. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::UninterpretedOption>*
  7110. mutable_uninterpreted_option();
  7111. private:
  7112. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& _internal_uninterpreted_option(int index) const;
  7113. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* _internal_add_uninterpreted_option();
  7114. public:
  7115. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& uninterpreted_option(int index) const;
  7116. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* add_uninterpreted_option();
  7117. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::UninterpretedOption>&
  7118. uninterpreted_option() const;
  7119. // optional bool deprecated = 33 [default = false];
  7120. bool has_deprecated() const;
  7121. private:
  7122. bool _internal_has_deprecated() const;
  7123. public:
  7124. void clear_deprecated();
  7125. bool deprecated() const;
  7126. void set_deprecated(bool value);
  7127. private:
  7128. bool _internal_deprecated() const;
  7129. void _internal_set_deprecated(bool value);
  7130. public:
  7131. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  7132. inline bool HasExtension(
  7133. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  7134. ServiceOptions,
  7135. _proto_TypeTraits,
  7136. _field_type,
  7137. _is_packed>& id
  7138. ) const
  7139. {
  7140. return _impl_._extensions_.Has(id.number());
  7141. }
  7142. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  7143. inline void ClearExtension(
  7144. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  7145. ServiceOptions,
  7146. _proto_TypeTraits,
  7147. _field_type,
  7148. _is_packed>& id
  7149. )
  7150. {
  7151. _impl_._extensions_.ClearExtension(id.number());
  7152. }
  7153. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  7154. inline int ExtensionSize(
  7155. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  7156. ServiceOptions,
  7157. _proto_TypeTraits,
  7158. _field_type,
  7159. _is_packed>& id
  7160. ) const
  7161. {
  7162. return _impl_._extensions_.ExtensionSize(id.number());
  7163. }
  7164. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  7165. inline typename _proto_TypeTraits::Singular::ConstType GetExtension(
  7166. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  7167. ServiceOptions,
  7168. _proto_TypeTraits,
  7169. _field_type,
  7170. _is_packed>& id
  7171. ) const
  7172. {
  7173. return _proto_TypeTraits::Get(id.number(), _impl_._extensions_, id.default_value());
  7174. }
  7175. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  7176. inline typename _proto_TypeTraits::Singular::MutableType MutableExtension(
  7177. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  7178. ServiceOptions,
  7179. _proto_TypeTraits,
  7180. _field_type,
  7181. _is_packed>& id
  7182. )
  7183. {
  7184. return _proto_TypeTraits::Mutable(id.number(), _field_type, &_impl_._extensions_);
  7185. }
  7186. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  7187. inline void SetExtension(
  7188. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  7189. ServiceOptions,
  7190. _proto_TypeTraits,
  7191. _field_type,
  7192. _is_packed>& id,
  7193. typename _proto_TypeTraits::Singular::ConstType value
  7194. )
  7195. {
  7196. _proto_TypeTraits::Set(id.number(), _field_type, value, &_impl_._extensions_);
  7197. }
  7198. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  7199. inline void SetAllocatedExtension(
  7200. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  7201. ServiceOptions,
  7202. _proto_TypeTraits,
  7203. _field_type,
  7204. _is_packed>& id,
  7205. typename _proto_TypeTraits::Singular::MutableType value
  7206. )
  7207. {
  7208. _proto_TypeTraits::SetAllocated(id.number(), _field_type, value, &_impl_._extensions_);
  7209. }
  7210. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  7211. inline void UnsafeArenaSetAllocatedExtension(
  7212. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  7213. ServiceOptions,
  7214. _proto_TypeTraits,
  7215. _field_type,
  7216. _is_packed>& id,
  7217. typename _proto_TypeTraits::Singular::MutableType value
  7218. )
  7219. {
  7220. _proto_TypeTraits::UnsafeArenaSetAllocated(id.number(), _field_type, value, &_impl_._extensions_);
  7221. }
  7222. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  7223. PROTOBUF_NODISCARD inline
  7224. typename _proto_TypeTraits::Singular::MutableType
  7225. ReleaseExtension(
  7226. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  7227. ServiceOptions,
  7228. _proto_TypeTraits,
  7229. _field_type,
  7230. _is_packed>& id
  7231. )
  7232. {
  7233. return _proto_TypeTraits::Release(id.number(), _field_type, &_impl_._extensions_);
  7234. }
  7235. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  7236. inline typename _proto_TypeTraits::Singular::MutableType
  7237. UnsafeArenaReleaseExtension(
  7238. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  7239. ServiceOptions,
  7240. _proto_TypeTraits,
  7241. _field_type,
  7242. _is_packed>& id
  7243. )
  7244. {
  7245. return _proto_TypeTraits::UnsafeArenaRelease(id.number(), _field_type, &_impl_._extensions_);
  7246. }
  7247. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  7248. inline typename _proto_TypeTraits::Repeated::ConstType GetExtension(
  7249. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  7250. ServiceOptions,
  7251. _proto_TypeTraits,
  7252. _field_type,
  7253. _is_packed>& id,
  7254. int index
  7255. ) const
  7256. {
  7257. return _proto_TypeTraits::Get(id.number(), _impl_._extensions_, index);
  7258. }
  7259. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  7260. inline typename _proto_TypeTraits::Repeated::MutableType MutableExtension(
  7261. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  7262. ServiceOptions,
  7263. _proto_TypeTraits,
  7264. _field_type,
  7265. _is_packed>& id,
  7266. int index
  7267. )
  7268. {
  7269. return _proto_TypeTraits::Mutable(id.number(), index, &_impl_._extensions_);
  7270. }
  7271. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  7272. inline void SetExtension(
  7273. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  7274. ServiceOptions,
  7275. _proto_TypeTraits,
  7276. _field_type,
  7277. _is_packed>& id,
  7278. int index,
  7279. typename _proto_TypeTraits::Repeated::ConstType value
  7280. )
  7281. {
  7282. _proto_TypeTraits::Set(id.number(), index, value, &_impl_._extensions_);
  7283. }
  7284. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  7285. inline typename _proto_TypeTraits::Repeated::MutableType AddExtension(
  7286. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  7287. ServiceOptions,
  7288. _proto_TypeTraits,
  7289. _field_type,
  7290. _is_packed>& id
  7291. )
  7292. {
  7293. typename _proto_TypeTraits::Repeated::MutableType to_add =
  7294. _proto_TypeTraits::Add(id.number(), _field_type, &_impl_._extensions_);
  7295. return to_add;
  7296. }
  7297. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  7298. inline void AddExtension(
  7299. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  7300. ServiceOptions,
  7301. _proto_TypeTraits,
  7302. _field_type,
  7303. _is_packed>& id,
  7304. typename _proto_TypeTraits::Repeated::ConstType value
  7305. )
  7306. {
  7307. _proto_TypeTraits::Add(id.number(), _field_type, _is_packed, value, &_impl_._extensions_);
  7308. }
  7309. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  7310. inline const typename _proto_TypeTraits::Repeated::RepeatedFieldType&
  7311. GetRepeatedExtension(
  7312. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  7313. ServiceOptions,
  7314. _proto_TypeTraits,
  7315. _field_type,
  7316. _is_packed>& id
  7317. ) const
  7318. {
  7319. return _proto_TypeTraits::GetRepeated(id.number(), _impl_._extensions_);
  7320. }
  7321. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  7322. inline typename _proto_TypeTraits::Repeated::RepeatedFieldType*
  7323. MutableRepeatedExtension(
  7324. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  7325. ServiceOptions,
  7326. _proto_TypeTraits,
  7327. _field_type,
  7328. _is_packed>& id
  7329. )
  7330. {
  7331. return _proto_TypeTraits::MutableRepeated(id.number(), _field_type, _is_packed, &_impl_._extensions_);
  7332. }
  7333. // @@protoc_insertion_point(class_scope:google.protobuf.ServiceOptions)
  7334. private:
  7335. class _Internal;
  7336. template<typename T>
  7337. friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  7338. typedef void InternalArenaConstructable_;
  7339. typedef void DestructorSkippable_;
  7340. struct Impl_
  7341. {
  7342. ::PROTOBUF_NAMESPACE_ID::internal::ExtensionSet _extensions_;
  7343. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  7344. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  7345. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::UninterpretedOption> uninterpreted_option_;
  7346. bool deprecated_;
  7347. };
  7348. union
  7349. {
  7350. Impl_ _impl_;
  7351. };
  7352. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  7353. };
  7354. // -------------------------------------------------------------------
  7355. class PROTOBUF_EXPORT MethodOptions final :
  7356. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.MethodOptions) */
  7357. {
  7358. public:
  7359. inline MethodOptions() :
  7360. MethodOptions(nullptr)
  7361. {
  7362. }
  7363. ~MethodOptions() override;
  7364. explicit PROTOBUF_CONSTEXPR MethodOptions(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  7365. MethodOptions(const MethodOptions& from);
  7366. MethodOptions(MethodOptions&& from) noexcept
  7367. :
  7368. MethodOptions()
  7369. {
  7370. *this = ::std::move(from);
  7371. }
  7372. inline MethodOptions& operator=(const MethodOptions& from)
  7373. {
  7374. CopyFrom(from);
  7375. return *this;
  7376. }
  7377. inline MethodOptions& operator=(MethodOptions&& from) noexcept
  7378. {
  7379. if (this == &from)
  7380. return *this;
  7381. if (GetOwningArena() == from.GetOwningArena()
  7382. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  7383. && GetOwningArena() != nullptr
  7384. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  7385. )
  7386. {
  7387. InternalSwap(&from);
  7388. }
  7389. else
  7390. {
  7391. CopyFrom(from);
  7392. }
  7393. return *this;
  7394. }
  7395. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const
  7396. {
  7397. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  7398. }
  7399. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields()
  7400. {
  7401. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7402. }
  7403. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor()
  7404. {
  7405. return GetDescriptor();
  7406. }
  7407. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor()
  7408. {
  7409. return default_instance().GetMetadata().descriptor;
  7410. }
  7411. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection()
  7412. {
  7413. return default_instance().GetMetadata().reflection;
  7414. }
  7415. static const MethodOptions& default_instance()
  7416. {
  7417. return *internal_default_instance();
  7418. }
  7419. static inline const MethodOptions* internal_default_instance()
  7420. {
  7421. return reinterpret_cast<const MethodOptions*>(
  7422. &_MethodOptions_default_instance_
  7423. );
  7424. }
  7425. static constexpr int kIndexInFileMessages =
  7426. 20;
  7427. friend void swap(MethodOptions& a, MethodOptions& b)
  7428. {
  7429. a.Swap(&b);
  7430. }
  7431. inline void Swap(MethodOptions* other)
  7432. {
  7433. if (other == this)
  7434. return;
  7435. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  7436. if (GetOwningArena() != nullptr &&
  7437. GetOwningArena() == other->GetOwningArena())
  7438. {
  7439. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  7440. if (GetOwningArena() == other->GetOwningArena())
  7441. {
  7442. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  7443. InternalSwap(other);
  7444. }
  7445. else
  7446. {
  7447. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  7448. }
  7449. }
  7450. void UnsafeArenaSwap(MethodOptions* other)
  7451. {
  7452. if (other == this)
  7453. return;
  7454. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  7455. InternalSwap(other);
  7456. }
  7457. // implements Message ----------------------------------------------
  7458. MethodOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final
  7459. {
  7460. return CreateMaybeMessage<MethodOptions>(arena);
  7461. }
  7462. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  7463. void CopyFrom(const MethodOptions& from);
  7464. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  7465. void MergeFrom(const MethodOptions& from)
  7466. {
  7467. MethodOptions::MergeImpl(*this, from);
  7468. }
  7469. private:
  7470. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
  7471. public:
  7472. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  7473. bool IsInitialized() const final;
  7474. size_t ByteSizeLong() const final;
  7475. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  7476. uint8_t* _InternalSerialize(
  7477. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  7478. ) const final;
  7479. int GetCachedSize() const final
  7480. {
  7481. return _impl_._cached_size_.Get();
  7482. }
  7483. private:
  7484. void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
  7485. void SharedDtor();
  7486. void SetCachedSize(int size) const final;
  7487. void InternalSwap(MethodOptions* other);
  7488. private:
  7489. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  7490. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName()
  7491. {
  7492. return "google.protobuf.MethodOptions";
  7493. }
  7494. protected:
  7495. explicit MethodOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false);
  7496. public:
  7497. static const ClassData _class_data_;
  7498. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final;
  7499. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  7500. // nested types ----------------------------------------------------
  7501. typedef MethodOptions_IdempotencyLevel IdempotencyLevel;
  7502. static constexpr IdempotencyLevel IDEMPOTENCY_UNKNOWN =
  7503. MethodOptions_IdempotencyLevel_IDEMPOTENCY_UNKNOWN;
  7504. static constexpr IdempotencyLevel NO_SIDE_EFFECTS =
  7505. MethodOptions_IdempotencyLevel_NO_SIDE_EFFECTS;
  7506. static constexpr IdempotencyLevel IDEMPOTENT =
  7507. MethodOptions_IdempotencyLevel_IDEMPOTENT;
  7508. static inline bool IdempotencyLevel_IsValid(int value)
  7509. {
  7510. return MethodOptions_IdempotencyLevel_IsValid(value);
  7511. }
  7512. static constexpr IdempotencyLevel IdempotencyLevel_MIN =
  7513. MethodOptions_IdempotencyLevel_IdempotencyLevel_MIN;
  7514. static constexpr IdempotencyLevel IdempotencyLevel_MAX =
  7515. MethodOptions_IdempotencyLevel_IdempotencyLevel_MAX;
  7516. static constexpr int IdempotencyLevel_ARRAYSIZE =
  7517. MethodOptions_IdempotencyLevel_IdempotencyLevel_ARRAYSIZE;
  7518. static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
  7519. IdempotencyLevel_descriptor()
  7520. {
  7521. return MethodOptions_IdempotencyLevel_descriptor();
  7522. }
  7523. template<typename T>
  7524. static inline const std::string& IdempotencyLevel_Name(T enum_t_value)
  7525. {
  7526. static_assert(::std::is_same<T, IdempotencyLevel>::value || ::std::is_integral<T>::value, "Incorrect type passed to function IdempotencyLevel_Name.");
  7527. return MethodOptions_IdempotencyLevel_Name(enum_t_value);
  7528. }
  7529. static inline bool IdempotencyLevel_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, IdempotencyLevel* value)
  7530. {
  7531. return MethodOptions_IdempotencyLevel_Parse(name, value);
  7532. }
  7533. // accessors -------------------------------------------------------
  7534. enum : int
  7535. {
  7536. kUninterpretedOptionFieldNumber = 999,
  7537. kDeprecatedFieldNumber = 33,
  7538. kIdempotencyLevelFieldNumber = 34,
  7539. };
  7540. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  7541. int uninterpreted_option_size() const;
  7542. private:
  7543. int _internal_uninterpreted_option_size() const;
  7544. public:
  7545. void clear_uninterpreted_option();
  7546. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* mutable_uninterpreted_option(int index);
  7547. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::UninterpretedOption>*
  7548. mutable_uninterpreted_option();
  7549. private:
  7550. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& _internal_uninterpreted_option(int index) const;
  7551. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* _internal_add_uninterpreted_option();
  7552. public:
  7553. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& uninterpreted_option(int index) const;
  7554. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* add_uninterpreted_option();
  7555. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::UninterpretedOption>&
  7556. uninterpreted_option() const;
  7557. // optional bool deprecated = 33 [default = false];
  7558. bool has_deprecated() const;
  7559. private:
  7560. bool _internal_has_deprecated() const;
  7561. public:
  7562. void clear_deprecated();
  7563. bool deprecated() const;
  7564. void set_deprecated(bool value);
  7565. private:
  7566. bool _internal_deprecated() const;
  7567. void _internal_set_deprecated(bool value);
  7568. public:
  7569. // optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];
  7570. bool has_idempotency_level() const;
  7571. private:
  7572. bool _internal_has_idempotency_level() const;
  7573. public:
  7574. void clear_idempotency_level();
  7575. ::PROTOBUF_NAMESPACE_ID::MethodOptions_IdempotencyLevel idempotency_level() const;
  7576. void set_idempotency_level(::PROTOBUF_NAMESPACE_ID::MethodOptions_IdempotencyLevel value);
  7577. private:
  7578. ::PROTOBUF_NAMESPACE_ID::MethodOptions_IdempotencyLevel _internal_idempotency_level() const;
  7579. void _internal_set_idempotency_level(::PROTOBUF_NAMESPACE_ID::MethodOptions_IdempotencyLevel value);
  7580. public:
  7581. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  7582. inline bool HasExtension(
  7583. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  7584. MethodOptions,
  7585. _proto_TypeTraits,
  7586. _field_type,
  7587. _is_packed>& id
  7588. ) const
  7589. {
  7590. return _impl_._extensions_.Has(id.number());
  7591. }
  7592. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  7593. inline void ClearExtension(
  7594. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  7595. MethodOptions,
  7596. _proto_TypeTraits,
  7597. _field_type,
  7598. _is_packed>& id
  7599. )
  7600. {
  7601. _impl_._extensions_.ClearExtension(id.number());
  7602. }
  7603. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  7604. inline int ExtensionSize(
  7605. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  7606. MethodOptions,
  7607. _proto_TypeTraits,
  7608. _field_type,
  7609. _is_packed>& id
  7610. ) const
  7611. {
  7612. return _impl_._extensions_.ExtensionSize(id.number());
  7613. }
  7614. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  7615. inline typename _proto_TypeTraits::Singular::ConstType GetExtension(
  7616. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  7617. MethodOptions,
  7618. _proto_TypeTraits,
  7619. _field_type,
  7620. _is_packed>& id
  7621. ) const
  7622. {
  7623. return _proto_TypeTraits::Get(id.number(), _impl_._extensions_, id.default_value());
  7624. }
  7625. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  7626. inline typename _proto_TypeTraits::Singular::MutableType MutableExtension(
  7627. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  7628. MethodOptions,
  7629. _proto_TypeTraits,
  7630. _field_type,
  7631. _is_packed>& id
  7632. )
  7633. {
  7634. return _proto_TypeTraits::Mutable(id.number(), _field_type, &_impl_._extensions_);
  7635. }
  7636. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  7637. inline void SetExtension(
  7638. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  7639. MethodOptions,
  7640. _proto_TypeTraits,
  7641. _field_type,
  7642. _is_packed>& id,
  7643. typename _proto_TypeTraits::Singular::ConstType value
  7644. )
  7645. {
  7646. _proto_TypeTraits::Set(id.number(), _field_type, value, &_impl_._extensions_);
  7647. }
  7648. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  7649. inline void SetAllocatedExtension(
  7650. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  7651. MethodOptions,
  7652. _proto_TypeTraits,
  7653. _field_type,
  7654. _is_packed>& id,
  7655. typename _proto_TypeTraits::Singular::MutableType value
  7656. )
  7657. {
  7658. _proto_TypeTraits::SetAllocated(id.number(), _field_type, value, &_impl_._extensions_);
  7659. }
  7660. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  7661. inline void UnsafeArenaSetAllocatedExtension(
  7662. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  7663. MethodOptions,
  7664. _proto_TypeTraits,
  7665. _field_type,
  7666. _is_packed>& id,
  7667. typename _proto_TypeTraits::Singular::MutableType value
  7668. )
  7669. {
  7670. _proto_TypeTraits::UnsafeArenaSetAllocated(id.number(), _field_type, value, &_impl_._extensions_);
  7671. }
  7672. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  7673. PROTOBUF_NODISCARD inline
  7674. typename _proto_TypeTraits::Singular::MutableType
  7675. ReleaseExtension(
  7676. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  7677. MethodOptions,
  7678. _proto_TypeTraits,
  7679. _field_type,
  7680. _is_packed>& id
  7681. )
  7682. {
  7683. return _proto_TypeTraits::Release(id.number(), _field_type, &_impl_._extensions_);
  7684. }
  7685. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  7686. inline typename _proto_TypeTraits::Singular::MutableType
  7687. UnsafeArenaReleaseExtension(
  7688. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  7689. MethodOptions,
  7690. _proto_TypeTraits,
  7691. _field_type,
  7692. _is_packed>& id
  7693. )
  7694. {
  7695. return _proto_TypeTraits::UnsafeArenaRelease(id.number(), _field_type, &_impl_._extensions_);
  7696. }
  7697. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  7698. inline typename _proto_TypeTraits::Repeated::ConstType GetExtension(
  7699. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  7700. MethodOptions,
  7701. _proto_TypeTraits,
  7702. _field_type,
  7703. _is_packed>& id,
  7704. int index
  7705. ) const
  7706. {
  7707. return _proto_TypeTraits::Get(id.number(), _impl_._extensions_, index);
  7708. }
  7709. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  7710. inline typename _proto_TypeTraits::Repeated::MutableType MutableExtension(
  7711. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  7712. MethodOptions,
  7713. _proto_TypeTraits,
  7714. _field_type,
  7715. _is_packed>& id,
  7716. int index
  7717. )
  7718. {
  7719. return _proto_TypeTraits::Mutable(id.number(), index, &_impl_._extensions_);
  7720. }
  7721. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  7722. inline void SetExtension(
  7723. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  7724. MethodOptions,
  7725. _proto_TypeTraits,
  7726. _field_type,
  7727. _is_packed>& id,
  7728. int index,
  7729. typename _proto_TypeTraits::Repeated::ConstType value
  7730. )
  7731. {
  7732. _proto_TypeTraits::Set(id.number(), index, value, &_impl_._extensions_);
  7733. }
  7734. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  7735. inline typename _proto_TypeTraits::Repeated::MutableType AddExtension(
  7736. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  7737. MethodOptions,
  7738. _proto_TypeTraits,
  7739. _field_type,
  7740. _is_packed>& id
  7741. )
  7742. {
  7743. typename _proto_TypeTraits::Repeated::MutableType to_add =
  7744. _proto_TypeTraits::Add(id.number(), _field_type, &_impl_._extensions_);
  7745. return to_add;
  7746. }
  7747. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  7748. inline void AddExtension(
  7749. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  7750. MethodOptions,
  7751. _proto_TypeTraits,
  7752. _field_type,
  7753. _is_packed>& id,
  7754. typename _proto_TypeTraits::Repeated::ConstType value
  7755. )
  7756. {
  7757. _proto_TypeTraits::Add(id.number(), _field_type, _is_packed, value, &_impl_._extensions_);
  7758. }
  7759. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  7760. inline const typename _proto_TypeTraits::Repeated::RepeatedFieldType&
  7761. GetRepeatedExtension(
  7762. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  7763. MethodOptions,
  7764. _proto_TypeTraits,
  7765. _field_type,
  7766. _is_packed>& id
  7767. ) const
  7768. {
  7769. return _proto_TypeTraits::GetRepeated(id.number(), _impl_._extensions_);
  7770. }
  7771. template<typename _proto_TypeTraits, ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type, bool _is_packed>
  7772. inline typename _proto_TypeTraits::Repeated::RepeatedFieldType*
  7773. MutableRepeatedExtension(
  7774. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  7775. MethodOptions,
  7776. _proto_TypeTraits,
  7777. _field_type,
  7778. _is_packed>& id
  7779. )
  7780. {
  7781. return _proto_TypeTraits::MutableRepeated(id.number(), _field_type, _is_packed, &_impl_._extensions_);
  7782. }
  7783. // @@protoc_insertion_point(class_scope:google.protobuf.MethodOptions)
  7784. private:
  7785. class _Internal;
  7786. template<typename T>
  7787. friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  7788. typedef void InternalArenaConstructable_;
  7789. typedef void DestructorSkippable_;
  7790. struct Impl_
  7791. {
  7792. ::PROTOBUF_NAMESPACE_ID::internal::ExtensionSet _extensions_;
  7793. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  7794. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  7795. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::UninterpretedOption> uninterpreted_option_;
  7796. bool deprecated_;
  7797. int idempotency_level_;
  7798. };
  7799. union
  7800. {
  7801. Impl_ _impl_;
  7802. };
  7803. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  7804. };
  7805. // -------------------------------------------------------------------
  7806. class PROTOBUF_EXPORT UninterpretedOption_NamePart final :
  7807. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.UninterpretedOption.NamePart) */
  7808. {
  7809. public:
  7810. inline UninterpretedOption_NamePart() :
  7811. UninterpretedOption_NamePart(nullptr)
  7812. {
  7813. }
  7814. ~UninterpretedOption_NamePart() override;
  7815. explicit PROTOBUF_CONSTEXPR UninterpretedOption_NamePart(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  7816. UninterpretedOption_NamePart(const UninterpretedOption_NamePart& from);
  7817. UninterpretedOption_NamePart(UninterpretedOption_NamePart&& from) noexcept
  7818. :
  7819. UninterpretedOption_NamePart()
  7820. {
  7821. *this = ::std::move(from);
  7822. }
  7823. inline UninterpretedOption_NamePart& operator=(const UninterpretedOption_NamePart& from)
  7824. {
  7825. CopyFrom(from);
  7826. return *this;
  7827. }
  7828. inline UninterpretedOption_NamePart& operator=(UninterpretedOption_NamePart&& from) noexcept
  7829. {
  7830. if (this == &from)
  7831. return *this;
  7832. if (GetOwningArena() == from.GetOwningArena()
  7833. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  7834. && GetOwningArena() != nullptr
  7835. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  7836. )
  7837. {
  7838. InternalSwap(&from);
  7839. }
  7840. else
  7841. {
  7842. CopyFrom(from);
  7843. }
  7844. return *this;
  7845. }
  7846. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const
  7847. {
  7848. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  7849. }
  7850. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields()
  7851. {
  7852. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7853. }
  7854. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor()
  7855. {
  7856. return GetDescriptor();
  7857. }
  7858. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor()
  7859. {
  7860. return default_instance().GetMetadata().descriptor;
  7861. }
  7862. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection()
  7863. {
  7864. return default_instance().GetMetadata().reflection;
  7865. }
  7866. static const UninterpretedOption_NamePart& default_instance()
  7867. {
  7868. return *internal_default_instance();
  7869. }
  7870. static inline const UninterpretedOption_NamePart* internal_default_instance()
  7871. {
  7872. return reinterpret_cast<const UninterpretedOption_NamePart*>(
  7873. &_UninterpretedOption_NamePart_default_instance_
  7874. );
  7875. }
  7876. static constexpr int kIndexInFileMessages =
  7877. 21;
  7878. friend void swap(UninterpretedOption_NamePart& a, UninterpretedOption_NamePart& b)
  7879. {
  7880. a.Swap(&b);
  7881. }
  7882. inline void Swap(UninterpretedOption_NamePart* other)
  7883. {
  7884. if (other == this)
  7885. return;
  7886. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  7887. if (GetOwningArena() != nullptr &&
  7888. GetOwningArena() == other->GetOwningArena())
  7889. {
  7890. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  7891. if (GetOwningArena() == other->GetOwningArena())
  7892. {
  7893. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  7894. InternalSwap(other);
  7895. }
  7896. else
  7897. {
  7898. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  7899. }
  7900. }
  7901. void UnsafeArenaSwap(UninterpretedOption_NamePart* other)
  7902. {
  7903. if (other == this)
  7904. return;
  7905. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  7906. InternalSwap(other);
  7907. }
  7908. // implements Message ----------------------------------------------
  7909. UninterpretedOption_NamePart* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final
  7910. {
  7911. return CreateMaybeMessage<UninterpretedOption_NamePart>(arena);
  7912. }
  7913. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  7914. void CopyFrom(const UninterpretedOption_NamePart& from);
  7915. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  7916. void MergeFrom(const UninterpretedOption_NamePart& from)
  7917. {
  7918. UninterpretedOption_NamePart::MergeImpl(*this, from);
  7919. }
  7920. private:
  7921. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
  7922. public:
  7923. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  7924. bool IsInitialized() const final;
  7925. size_t ByteSizeLong() const final;
  7926. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  7927. uint8_t* _InternalSerialize(
  7928. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  7929. ) const final;
  7930. int GetCachedSize() const final
  7931. {
  7932. return _impl_._cached_size_.Get();
  7933. }
  7934. private:
  7935. void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
  7936. void SharedDtor();
  7937. void SetCachedSize(int size) const final;
  7938. void InternalSwap(UninterpretedOption_NamePart* other);
  7939. private:
  7940. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  7941. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName()
  7942. {
  7943. return "google.protobuf.UninterpretedOption.NamePart";
  7944. }
  7945. protected:
  7946. explicit UninterpretedOption_NamePart(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false);
  7947. public:
  7948. static const ClassData _class_data_;
  7949. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final;
  7950. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  7951. // nested types ----------------------------------------------------
  7952. // accessors -------------------------------------------------------
  7953. enum : int
  7954. {
  7955. kNamePartFieldNumber = 1,
  7956. kIsExtensionFieldNumber = 2,
  7957. };
  7958. // required string name_part = 1;
  7959. bool has_name_part() const;
  7960. private:
  7961. bool _internal_has_name_part() const;
  7962. public:
  7963. void clear_name_part();
  7964. const std::string& name_part() const;
  7965. template<typename ArgT0 = const std::string&, typename... ArgT>
  7966. void set_name_part(ArgT0&& arg0, ArgT... args);
  7967. std::string* mutable_name_part();
  7968. PROTOBUF_NODISCARD std::string* release_name_part();
  7969. void set_allocated_name_part(std::string* name_part);
  7970. private:
  7971. const std::string& _internal_name_part() const;
  7972. inline PROTOBUF_ALWAYS_INLINE void _internal_set_name_part(const std::string& value);
  7973. std::string* _internal_mutable_name_part();
  7974. public:
  7975. // required bool is_extension = 2;
  7976. bool has_is_extension() const;
  7977. private:
  7978. bool _internal_has_is_extension() const;
  7979. public:
  7980. void clear_is_extension();
  7981. bool is_extension() const;
  7982. void set_is_extension(bool value);
  7983. private:
  7984. bool _internal_is_extension() const;
  7985. void _internal_set_is_extension(bool value);
  7986. public:
  7987. // @@protoc_insertion_point(class_scope:google.protobuf.UninterpretedOption.NamePart)
  7988. private:
  7989. class _Internal;
  7990. // helper for ByteSizeLong()
  7991. size_t RequiredFieldsByteSizeFallback() const;
  7992. template<typename T>
  7993. friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  7994. typedef void InternalArenaConstructable_;
  7995. typedef void DestructorSkippable_;
  7996. struct Impl_
  7997. {
  7998. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  7999. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  8000. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_part_;
  8001. bool is_extension_;
  8002. };
  8003. union
  8004. {
  8005. Impl_ _impl_;
  8006. };
  8007. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  8008. };
  8009. // -------------------------------------------------------------------
  8010. class PROTOBUF_EXPORT UninterpretedOption final :
  8011. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.UninterpretedOption) */
  8012. {
  8013. public:
  8014. inline UninterpretedOption() :
  8015. UninterpretedOption(nullptr)
  8016. {
  8017. }
  8018. ~UninterpretedOption() override;
  8019. explicit PROTOBUF_CONSTEXPR UninterpretedOption(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  8020. UninterpretedOption(const UninterpretedOption& from);
  8021. UninterpretedOption(UninterpretedOption&& from) noexcept
  8022. :
  8023. UninterpretedOption()
  8024. {
  8025. *this = ::std::move(from);
  8026. }
  8027. inline UninterpretedOption& operator=(const UninterpretedOption& from)
  8028. {
  8029. CopyFrom(from);
  8030. return *this;
  8031. }
  8032. inline UninterpretedOption& operator=(UninterpretedOption&& from) noexcept
  8033. {
  8034. if (this == &from)
  8035. return *this;
  8036. if (GetOwningArena() == from.GetOwningArena()
  8037. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  8038. && GetOwningArena() != nullptr
  8039. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  8040. )
  8041. {
  8042. InternalSwap(&from);
  8043. }
  8044. else
  8045. {
  8046. CopyFrom(from);
  8047. }
  8048. return *this;
  8049. }
  8050. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const
  8051. {
  8052. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  8053. }
  8054. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields()
  8055. {
  8056. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  8057. }
  8058. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor()
  8059. {
  8060. return GetDescriptor();
  8061. }
  8062. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor()
  8063. {
  8064. return default_instance().GetMetadata().descriptor;
  8065. }
  8066. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection()
  8067. {
  8068. return default_instance().GetMetadata().reflection;
  8069. }
  8070. static const UninterpretedOption& default_instance()
  8071. {
  8072. return *internal_default_instance();
  8073. }
  8074. static inline const UninterpretedOption* internal_default_instance()
  8075. {
  8076. return reinterpret_cast<const UninterpretedOption*>(
  8077. &_UninterpretedOption_default_instance_
  8078. );
  8079. }
  8080. static constexpr int kIndexInFileMessages =
  8081. 22;
  8082. friend void swap(UninterpretedOption& a, UninterpretedOption& b)
  8083. {
  8084. a.Swap(&b);
  8085. }
  8086. inline void Swap(UninterpretedOption* other)
  8087. {
  8088. if (other == this)
  8089. return;
  8090. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  8091. if (GetOwningArena() != nullptr &&
  8092. GetOwningArena() == other->GetOwningArena())
  8093. {
  8094. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  8095. if (GetOwningArena() == other->GetOwningArena())
  8096. {
  8097. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  8098. InternalSwap(other);
  8099. }
  8100. else
  8101. {
  8102. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  8103. }
  8104. }
  8105. void UnsafeArenaSwap(UninterpretedOption* other)
  8106. {
  8107. if (other == this)
  8108. return;
  8109. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  8110. InternalSwap(other);
  8111. }
  8112. // implements Message ----------------------------------------------
  8113. UninterpretedOption* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final
  8114. {
  8115. return CreateMaybeMessage<UninterpretedOption>(arena);
  8116. }
  8117. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  8118. void CopyFrom(const UninterpretedOption& from);
  8119. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  8120. void MergeFrom(const UninterpretedOption& from)
  8121. {
  8122. UninterpretedOption::MergeImpl(*this, from);
  8123. }
  8124. private:
  8125. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
  8126. public:
  8127. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  8128. bool IsInitialized() const final;
  8129. size_t ByteSizeLong() const final;
  8130. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  8131. uint8_t* _InternalSerialize(
  8132. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  8133. ) const final;
  8134. int GetCachedSize() const final
  8135. {
  8136. return _impl_._cached_size_.Get();
  8137. }
  8138. private:
  8139. void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
  8140. void SharedDtor();
  8141. void SetCachedSize(int size) const final;
  8142. void InternalSwap(UninterpretedOption* other);
  8143. private:
  8144. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  8145. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName()
  8146. {
  8147. return "google.protobuf.UninterpretedOption";
  8148. }
  8149. protected:
  8150. explicit UninterpretedOption(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false);
  8151. public:
  8152. static const ClassData _class_data_;
  8153. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final;
  8154. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  8155. // nested types ----------------------------------------------------
  8156. typedef UninterpretedOption_NamePart NamePart;
  8157. // accessors -------------------------------------------------------
  8158. enum : int
  8159. {
  8160. kNameFieldNumber = 2,
  8161. kIdentifierValueFieldNumber = 3,
  8162. kStringValueFieldNumber = 7,
  8163. kAggregateValueFieldNumber = 8,
  8164. kPositiveIntValueFieldNumber = 4,
  8165. kNegativeIntValueFieldNumber = 5,
  8166. kDoubleValueFieldNumber = 6,
  8167. };
  8168. // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
  8169. int name_size() const;
  8170. private:
  8171. int _internal_name_size() const;
  8172. public:
  8173. void clear_name();
  8174. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart* mutable_name(int index);
  8175. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart>*
  8176. mutable_name();
  8177. private:
  8178. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart& _internal_name(int index) const;
  8179. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart* _internal_add_name();
  8180. public:
  8181. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart& name(int index) const;
  8182. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart* add_name();
  8183. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart>&
  8184. name() const;
  8185. // optional string identifier_value = 3;
  8186. bool has_identifier_value() const;
  8187. private:
  8188. bool _internal_has_identifier_value() const;
  8189. public:
  8190. void clear_identifier_value();
  8191. const std::string& identifier_value() const;
  8192. template<typename ArgT0 = const std::string&, typename... ArgT>
  8193. void set_identifier_value(ArgT0&& arg0, ArgT... args);
  8194. std::string* mutable_identifier_value();
  8195. PROTOBUF_NODISCARD std::string* release_identifier_value();
  8196. void set_allocated_identifier_value(std::string* identifier_value);
  8197. private:
  8198. const std::string& _internal_identifier_value() const;
  8199. inline PROTOBUF_ALWAYS_INLINE void _internal_set_identifier_value(const std::string& value);
  8200. std::string* _internal_mutable_identifier_value();
  8201. public:
  8202. // optional bytes string_value = 7;
  8203. bool has_string_value() const;
  8204. private:
  8205. bool _internal_has_string_value() const;
  8206. public:
  8207. void clear_string_value();
  8208. const std::string& string_value() const;
  8209. template<typename ArgT0 = const std::string&, typename... ArgT>
  8210. void set_string_value(ArgT0&& arg0, ArgT... args);
  8211. std::string* mutable_string_value();
  8212. PROTOBUF_NODISCARD std::string* release_string_value();
  8213. void set_allocated_string_value(std::string* string_value);
  8214. private:
  8215. const std::string& _internal_string_value() const;
  8216. inline PROTOBUF_ALWAYS_INLINE void _internal_set_string_value(const std::string& value);
  8217. std::string* _internal_mutable_string_value();
  8218. public:
  8219. // optional string aggregate_value = 8;
  8220. bool has_aggregate_value() const;
  8221. private:
  8222. bool _internal_has_aggregate_value() const;
  8223. public:
  8224. void clear_aggregate_value();
  8225. const std::string& aggregate_value() const;
  8226. template<typename ArgT0 = const std::string&, typename... ArgT>
  8227. void set_aggregate_value(ArgT0&& arg0, ArgT... args);
  8228. std::string* mutable_aggregate_value();
  8229. PROTOBUF_NODISCARD std::string* release_aggregate_value();
  8230. void set_allocated_aggregate_value(std::string* aggregate_value);
  8231. private:
  8232. const std::string& _internal_aggregate_value() const;
  8233. inline PROTOBUF_ALWAYS_INLINE void _internal_set_aggregate_value(const std::string& value);
  8234. std::string* _internal_mutable_aggregate_value();
  8235. public:
  8236. // optional uint64 positive_int_value = 4;
  8237. bool has_positive_int_value() const;
  8238. private:
  8239. bool _internal_has_positive_int_value() const;
  8240. public:
  8241. void clear_positive_int_value();
  8242. uint64_t positive_int_value() const;
  8243. void set_positive_int_value(uint64_t value);
  8244. private:
  8245. uint64_t _internal_positive_int_value() const;
  8246. void _internal_set_positive_int_value(uint64_t value);
  8247. public:
  8248. // optional int64 negative_int_value = 5;
  8249. bool has_negative_int_value() const;
  8250. private:
  8251. bool _internal_has_negative_int_value() const;
  8252. public:
  8253. void clear_negative_int_value();
  8254. int64_t negative_int_value() const;
  8255. void set_negative_int_value(int64_t value);
  8256. private:
  8257. int64_t _internal_negative_int_value() const;
  8258. void _internal_set_negative_int_value(int64_t value);
  8259. public:
  8260. // optional double double_value = 6;
  8261. bool has_double_value() const;
  8262. private:
  8263. bool _internal_has_double_value() const;
  8264. public:
  8265. void clear_double_value();
  8266. double double_value() const;
  8267. void set_double_value(double value);
  8268. private:
  8269. double _internal_double_value() const;
  8270. void _internal_set_double_value(double value);
  8271. public:
  8272. // @@protoc_insertion_point(class_scope:google.protobuf.UninterpretedOption)
  8273. private:
  8274. class _Internal;
  8275. template<typename T>
  8276. friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  8277. typedef void InternalArenaConstructable_;
  8278. typedef void DestructorSkippable_;
  8279. struct Impl_
  8280. {
  8281. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  8282. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  8283. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart> name_;
  8284. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr identifier_value_;
  8285. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr string_value_;
  8286. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr aggregate_value_;
  8287. uint64_t positive_int_value_;
  8288. int64_t negative_int_value_;
  8289. double double_value_;
  8290. };
  8291. union
  8292. {
  8293. Impl_ _impl_;
  8294. };
  8295. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  8296. };
  8297. // -------------------------------------------------------------------
  8298. class PROTOBUF_EXPORT SourceCodeInfo_Location final :
  8299. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.SourceCodeInfo.Location) */
  8300. {
  8301. public:
  8302. inline SourceCodeInfo_Location() :
  8303. SourceCodeInfo_Location(nullptr)
  8304. {
  8305. }
  8306. ~SourceCodeInfo_Location() override;
  8307. explicit PROTOBUF_CONSTEXPR SourceCodeInfo_Location(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  8308. SourceCodeInfo_Location(const SourceCodeInfo_Location& from);
  8309. SourceCodeInfo_Location(SourceCodeInfo_Location&& from) noexcept
  8310. :
  8311. SourceCodeInfo_Location()
  8312. {
  8313. *this = ::std::move(from);
  8314. }
  8315. inline SourceCodeInfo_Location& operator=(const SourceCodeInfo_Location& from)
  8316. {
  8317. CopyFrom(from);
  8318. return *this;
  8319. }
  8320. inline SourceCodeInfo_Location& operator=(SourceCodeInfo_Location&& from) noexcept
  8321. {
  8322. if (this == &from)
  8323. return *this;
  8324. if (GetOwningArena() == from.GetOwningArena()
  8325. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  8326. && GetOwningArena() != nullptr
  8327. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  8328. )
  8329. {
  8330. InternalSwap(&from);
  8331. }
  8332. else
  8333. {
  8334. CopyFrom(from);
  8335. }
  8336. return *this;
  8337. }
  8338. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const
  8339. {
  8340. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  8341. }
  8342. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields()
  8343. {
  8344. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  8345. }
  8346. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor()
  8347. {
  8348. return GetDescriptor();
  8349. }
  8350. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor()
  8351. {
  8352. return default_instance().GetMetadata().descriptor;
  8353. }
  8354. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection()
  8355. {
  8356. return default_instance().GetMetadata().reflection;
  8357. }
  8358. static const SourceCodeInfo_Location& default_instance()
  8359. {
  8360. return *internal_default_instance();
  8361. }
  8362. static inline const SourceCodeInfo_Location* internal_default_instance()
  8363. {
  8364. return reinterpret_cast<const SourceCodeInfo_Location*>(
  8365. &_SourceCodeInfo_Location_default_instance_
  8366. );
  8367. }
  8368. static constexpr int kIndexInFileMessages =
  8369. 23;
  8370. friend void swap(SourceCodeInfo_Location& a, SourceCodeInfo_Location& b)
  8371. {
  8372. a.Swap(&b);
  8373. }
  8374. inline void Swap(SourceCodeInfo_Location* other)
  8375. {
  8376. if (other == this)
  8377. return;
  8378. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  8379. if (GetOwningArena() != nullptr &&
  8380. GetOwningArena() == other->GetOwningArena())
  8381. {
  8382. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  8383. if (GetOwningArena() == other->GetOwningArena())
  8384. {
  8385. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  8386. InternalSwap(other);
  8387. }
  8388. else
  8389. {
  8390. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  8391. }
  8392. }
  8393. void UnsafeArenaSwap(SourceCodeInfo_Location* other)
  8394. {
  8395. if (other == this)
  8396. return;
  8397. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  8398. InternalSwap(other);
  8399. }
  8400. // implements Message ----------------------------------------------
  8401. SourceCodeInfo_Location* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final
  8402. {
  8403. return CreateMaybeMessage<SourceCodeInfo_Location>(arena);
  8404. }
  8405. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  8406. void CopyFrom(const SourceCodeInfo_Location& from);
  8407. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  8408. void MergeFrom(const SourceCodeInfo_Location& from)
  8409. {
  8410. SourceCodeInfo_Location::MergeImpl(*this, from);
  8411. }
  8412. private:
  8413. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
  8414. public:
  8415. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  8416. bool IsInitialized() const final;
  8417. size_t ByteSizeLong() const final;
  8418. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  8419. uint8_t* _InternalSerialize(
  8420. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  8421. ) const final;
  8422. int GetCachedSize() const final
  8423. {
  8424. return _impl_._cached_size_.Get();
  8425. }
  8426. private:
  8427. void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
  8428. void SharedDtor();
  8429. void SetCachedSize(int size) const final;
  8430. void InternalSwap(SourceCodeInfo_Location* other);
  8431. private:
  8432. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  8433. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName()
  8434. {
  8435. return "google.protobuf.SourceCodeInfo.Location";
  8436. }
  8437. protected:
  8438. explicit SourceCodeInfo_Location(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false);
  8439. public:
  8440. static const ClassData _class_data_;
  8441. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final;
  8442. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  8443. // nested types ----------------------------------------------------
  8444. // accessors -------------------------------------------------------
  8445. enum : int
  8446. {
  8447. kPathFieldNumber = 1,
  8448. kSpanFieldNumber = 2,
  8449. kLeadingDetachedCommentsFieldNumber = 6,
  8450. kLeadingCommentsFieldNumber = 3,
  8451. kTrailingCommentsFieldNumber = 4,
  8452. };
  8453. // repeated int32 path = 1 [packed = true];
  8454. int path_size() const;
  8455. private:
  8456. int _internal_path_size() const;
  8457. public:
  8458. void clear_path();
  8459. private:
  8460. int32_t _internal_path(int index) const;
  8461. const ::PROTOBUF_NAMESPACE_ID::RepeatedField<int32_t>&
  8462. _internal_path() const;
  8463. void _internal_add_path(int32_t value);
  8464. ::PROTOBUF_NAMESPACE_ID::RepeatedField<int32_t>*
  8465. _internal_mutable_path();
  8466. public:
  8467. int32_t path(int index) const;
  8468. void set_path(int index, int32_t value);
  8469. void add_path(int32_t value);
  8470. const ::PROTOBUF_NAMESPACE_ID::RepeatedField<int32_t>&
  8471. path() const;
  8472. ::PROTOBUF_NAMESPACE_ID::RepeatedField<int32_t>*
  8473. mutable_path();
  8474. // repeated int32 span = 2 [packed = true];
  8475. int span_size() const;
  8476. private:
  8477. int _internal_span_size() const;
  8478. public:
  8479. void clear_span();
  8480. private:
  8481. int32_t _internal_span(int index) const;
  8482. const ::PROTOBUF_NAMESPACE_ID::RepeatedField<int32_t>&
  8483. _internal_span() const;
  8484. void _internal_add_span(int32_t value);
  8485. ::PROTOBUF_NAMESPACE_ID::RepeatedField<int32_t>*
  8486. _internal_mutable_span();
  8487. public:
  8488. int32_t span(int index) const;
  8489. void set_span(int index, int32_t value);
  8490. void add_span(int32_t value);
  8491. const ::PROTOBUF_NAMESPACE_ID::RepeatedField<int32_t>&
  8492. span() const;
  8493. ::PROTOBUF_NAMESPACE_ID::RepeatedField<int32_t>*
  8494. mutable_span();
  8495. // repeated string leading_detached_comments = 6;
  8496. int leading_detached_comments_size() const;
  8497. private:
  8498. int _internal_leading_detached_comments_size() const;
  8499. public:
  8500. void clear_leading_detached_comments();
  8501. const std::string& leading_detached_comments(int index) const;
  8502. std::string* mutable_leading_detached_comments(int index);
  8503. void set_leading_detached_comments(int index, const std::string& value);
  8504. void set_leading_detached_comments(int index, std::string&& value);
  8505. void set_leading_detached_comments(int index, const char* value);
  8506. void set_leading_detached_comments(int index, const char* value, size_t size);
  8507. std::string* add_leading_detached_comments();
  8508. void add_leading_detached_comments(const std::string& value);
  8509. void add_leading_detached_comments(std::string&& value);
  8510. void add_leading_detached_comments(const char* value);
  8511. void add_leading_detached_comments(const char* value, size_t size);
  8512. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& leading_detached_comments() const;
  8513. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_leading_detached_comments();
  8514. private:
  8515. const std::string& _internal_leading_detached_comments(int index) const;
  8516. std::string* _internal_add_leading_detached_comments();
  8517. public:
  8518. // optional string leading_comments = 3;
  8519. bool has_leading_comments() const;
  8520. private:
  8521. bool _internal_has_leading_comments() const;
  8522. public:
  8523. void clear_leading_comments();
  8524. const std::string& leading_comments() const;
  8525. template<typename ArgT0 = const std::string&, typename... ArgT>
  8526. void set_leading_comments(ArgT0&& arg0, ArgT... args);
  8527. std::string* mutable_leading_comments();
  8528. PROTOBUF_NODISCARD std::string* release_leading_comments();
  8529. void set_allocated_leading_comments(std::string* leading_comments);
  8530. private:
  8531. const std::string& _internal_leading_comments() const;
  8532. inline PROTOBUF_ALWAYS_INLINE void _internal_set_leading_comments(const std::string& value);
  8533. std::string* _internal_mutable_leading_comments();
  8534. public:
  8535. // optional string trailing_comments = 4;
  8536. bool has_trailing_comments() const;
  8537. private:
  8538. bool _internal_has_trailing_comments() const;
  8539. public:
  8540. void clear_trailing_comments();
  8541. const std::string& trailing_comments() const;
  8542. template<typename ArgT0 = const std::string&, typename... ArgT>
  8543. void set_trailing_comments(ArgT0&& arg0, ArgT... args);
  8544. std::string* mutable_trailing_comments();
  8545. PROTOBUF_NODISCARD std::string* release_trailing_comments();
  8546. void set_allocated_trailing_comments(std::string* trailing_comments);
  8547. private:
  8548. const std::string& _internal_trailing_comments() const;
  8549. inline PROTOBUF_ALWAYS_INLINE void _internal_set_trailing_comments(const std::string& value);
  8550. std::string* _internal_mutable_trailing_comments();
  8551. public:
  8552. // @@protoc_insertion_point(class_scope:google.protobuf.SourceCodeInfo.Location)
  8553. private:
  8554. class _Internal;
  8555. template<typename T>
  8556. friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  8557. typedef void InternalArenaConstructable_;
  8558. typedef void DestructorSkippable_;
  8559. struct Impl_
  8560. {
  8561. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  8562. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  8563. ::PROTOBUF_NAMESPACE_ID::RepeatedField<int32_t> path_;
  8564. mutable std::atomic<int> _path_cached_byte_size_;
  8565. ::PROTOBUF_NAMESPACE_ID::RepeatedField<int32_t> span_;
  8566. mutable std::atomic<int> _span_cached_byte_size_;
  8567. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> leading_detached_comments_;
  8568. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr leading_comments_;
  8569. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr trailing_comments_;
  8570. };
  8571. union
  8572. {
  8573. Impl_ _impl_;
  8574. };
  8575. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  8576. };
  8577. // -------------------------------------------------------------------
  8578. class PROTOBUF_EXPORT SourceCodeInfo final :
  8579. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.SourceCodeInfo) */
  8580. {
  8581. public:
  8582. inline SourceCodeInfo() :
  8583. SourceCodeInfo(nullptr)
  8584. {
  8585. }
  8586. ~SourceCodeInfo() override;
  8587. explicit PROTOBUF_CONSTEXPR SourceCodeInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  8588. SourceCodeInfo(const SourceCodeInfo& from);
  8589. SourceCodeInfo(SourceCodeInfo&& from) noexcept
  8590. :
  8591. SourceCodeInfo()
  8592. {
  8593. *this = ::std::move(from);
  8594. }
  8595. inline SourceCodeInfo& operator=(const SourceCodeInfo& from)
  8596. {
  8597. CopyFrom(from);
  8598. return *this;
  8599. }
  8600. inline SourceCodeInfo& operator=(SourceCodeInfo&& from) noexcept
  8601. {
  8602. if (this == &from)
  8603. return *this;
  8604. if (GetOwningArena() == from.GetOwningArena()
  8605. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  8606. && GetOwningArena() != nullptr
  8607. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  8608. )
  8609. {
  8610. InternalSwap(&from);
  8611. }
  8612. else
  8613. {
  8614. CopyFrom(from);
  8615. }
  8616. return *this;
  8617. }
  8618. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const
  8619. {
  8620. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  8621. }
  8622. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields()
  8623. {
  8624. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  8625. }
  8626. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor()
  8627. {
  8628. return GetDescriptor();
  8629. }
  8630. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor()
  8631. {
  8632. return default_instance().GetMetadata().descriptor;
  8633. }
  8634. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection()
  8635. {
  8636. return default_instance().GetMetadata().reflection;
  8637. }
  8638. static const SourceCodeInfo& default_instance()
  8639. {
  8640. return *internal_default_instance();
  8641. }
  8642. static inline const SourceCodeInfo* internal_default_instance()
  8643. {
  8644. return reinterpret_cast<const SourceCodeInfo*>(
  8645. &_SourceCodeInfo_default_instance_
  8646. );
  8647. }
  8648. static constexpr int kIndexInFileMessages =
  8649. 24;
  8650. friend void swap(SourceCodeInfo& a, SourceCodeInfo& b)
  8651. {
  8652. a.Swap(&b);
  8653. }
  8654. inline void Swap(SourceCodeInfo* other)
  8655. {
  8656. if (other == this)
  8657. return;
  8658. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  8659. if (GetOwningArena() != nullptr &&
  8660. GetOwningArena() == other->GetOwningArena())
  8661. {
  8662. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  8663. if (GetOwningArena() == other->GetOwningArena())
  8664. {
  8665. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  8666. InternalSwap(other);
  8667. }
  8668. else
  8669. {
  8670. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  8671. }
  8672. }
  8673. void UnsafeArenaSwap(SourceCodeInfo* other)
  8674. {
  8675. if (other == this)
  8676. return;
  8677. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  8678. InternalSwap(other);
  8679. }
  8680. // implements Message ----------------------------------------------
  8681. SourceCodeInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final
  8682. {
  8683. return CreateMaybeMessage<SourceCodeInfo>(arena);
  8684. }
  8685. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  8686. void CopyFrom(const SourceCodeInfo& from);
  8687. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  8688. void MergeFrom(const SourceCodeInfo& from)
  8689. {
  8690. SourceCodeInfo::MergeImpl(*this, from);
  8691. }
  8692. private:
  8693. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
  8694. public:
  8695. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  8696. bool IsInitialized() const final;
  8697. size_t ByteSizeLong() const final;
  8698. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  8699. uint8_t* _InternalSerialize(
  8700. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  8701. ) const final;
  8702. int GetCachedSize() const final
  8703. {
  8704. return _impl_._cached_size_.Get();
  8705. }
  8706. private:
  8707. void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
  8708. void SharedDtor();
  8709. void SetCachedSize(int size) const final;
  8710. void InternalSwap(SourceCodeInfo* other);
  8711. private:
  8712. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  8713. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName()
  8714. {
  8715. return "google.protobuf.SourceCodeInfo";
  8716. }
  8717. protected:
  8718. explicit SourceCodeInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false);
  8719. public:
  8720. static const ClassData _class_data_;
  8721. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final;
  8722. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  8723. // nested types ----------------------------------------------------
  8724. typedef SourceCodeInfo_Location Location;
  8725. // accessors -------------------------------------------------------
  8726. enum : int
  8727. {
  8728. kLocationFieldNumber = 1,
  8729. };
  8730. // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
  8731. int location_size() const;
  8732. private:
  8733. int _internal_location_size() const;
  8734. public:
  8735. void clear_location();
  8736. ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location* mutable_location(int index);
  8737. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location>*
  8738. mutable_location();
  8739. private:
  8740. const ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location& _internal_location(int index) const;
  8741. ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location* _internal_add_location();
  8742. public:
  8743. const ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location& location(int index) const;
  8744. ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location* add_location();
  8745. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location>&
  8746. location() const;
  8747. // @@protoc_insertion_point(class_scope:google.protobuf.SourceCodeInfo)
  8748. private:
  8749. class _Internal;
  8750. template<typename T>
  8751. friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  8752. typedef void InternalArenaConstructable_;
  8753. typedef void DestructorSkippable_;
  8754. struct Impl_
  8755. {
  8756. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location> location_;
  8757. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  8758. };
  8759. union
  8760. {
  8761. Impl_ _impl_;
  8762. };
  8763. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  8764. };
  8765. // -------------------------------------------------------------------
  8766. class PROTOBUF_EXPORT GeneratedCodeInfo_Annotation final :
  8767. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.GeneratedCodeInfo.Annotation) */
  8768. {
  8769. public:
  8770. inline GeneratedCodeInfo_Annotation() :
  8771. GeneratedCodeInfo_Annotation(nullptr)
  8772. {
  8773. }
  8774. ~GeneratedCodeInfo_Annotation() override;
  8775. explicit PROTOBUF_CONSTEXPR GeneratedCodeInfo_Annotation(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  8776. GeneratedCodeInfo_Annotation(const GeneratedCodeInfo_Annotation& from);
  8777. GeneratedCodeInfo_Annotation(GeneratedCodeInfo_Annotation&& from) noexcept
  8778. :
  8779. GeneratedCodeInfo_Annotation()
  8780. {
  8781. *this = ::std::move(from);
  8782. }
  8783. inline GeneratedCodeInfo_Annotation& operator=(const GeneratedCodeInfo_Annotation& from)
  8784. {
  8785. CopyFrom(from);
  8786. return *this;
  8787. }
  8788. inline GeneratedCodeInfo_Annotation& operator=(GeneratedCodeInfo_Annotation&& from) noexcept
  8789. {
  8790. if (this == &from)
  8791. return *this;
  8792. if (GetOwningArena() == from.GetOwningArena()
  8793. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  8794. && GetOwningArena() != nullptr
  8795. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  8796. )
  8797. {
  8798. InternalSwap(&from);
  8799. }
  8800. else
  8801. {
  8802. CopyFrom(from);
  8803. }
  8804. return *this;
  8805. }
  8806. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const
  8807. {
  8808. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  8809. }
  8810. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields()
  8811. {
  8812. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  8813. }
  8814. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor()
  8815. {
  8816. return GetDescriptor();
  8817. }
  8818. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor()
  8819. {
  8820. return default_instance().GetMetadata().descriptor;
  8821. }
  8822. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection()
  8823. {
  8824. return default_instance().GetMetadata().reflection;
  8825. }
  8826. static const GeneratedCodeInfo_Annotation& default_instance()
  8827. {
  8828. return *internal_default_instance();
  8829. }
  8830. static inline const GeneratedCodeInfo_Annotation* internal_default_instance()
  8831. {
  8832. return reinterpret_cast<const GeneratedCodeInfo_Annotation*>(
  8833. &_GeneratedCodeInfo_Annotation_default_instance_
  8834. );
  8835. }
  8836. static constexpr int kIndexInFileMessages =
  8837. 25;
  8838. friend void swap(GeneratedCodeInfo_Annotation& a, GeneratedCodeInfo_Annotation& b)
  8839. {
  8840. a.Swap(&b);
  8841. }
  8842. inline void Swap(GeneratedCodeInfo_Annotation* other)
  8843. {
  8844. if (other == this)
  8845. return;
  8846. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  8847. if (GetOwningArena() != nullptr &&
  8848. GetOwningArena() == other->GetOwningArena())
  8849. {
  8850. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  8851. if (GetOwningArena() == other->GetOwningArena())
  8852. {
  8853. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  8854. InternalSwap(other);
  8855. }
  8856. else
  8857. {
  8858. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  8859. }
  8860. }
  8861. void UnsafeArenaSwap(GeneratedCodeInfo_Annotation* other)
  8862. {
  8863. if (other == this)
  8864. return;
  8865. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  8866. InternalSwap(other);
  8867. }
  8868. // implements Message ----------------------------------------------
  8869. GeneratedCodeInfo_Annotation* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final
  8870. {
  8871. return CreateMaybeMessage<GeneratedCodeInfo_Annotation>(arena);
  8872. }
  8873. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  8874. void CopyFrom(const GeneratedCodeInfo_Annotation& from);
  8875. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  8876. void MergeFrom(const GeneratedCodeInfo_Annotation& from)
  8877. {
  8878. GeneratedCodeInfo_Annotation::MergeImpl(*this, from);
  8879. }
  8880. private:
  8881. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
  8882. public:
  8883. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  8884. bool IsInitialized() const final;
  8885. size_t ByteSizeLong() const final;
  8886. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  8887. uint8_t* _InternalSerialize(
  8888. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  8889. ) const final;
  8890. int GetCachedSize() const final
  8891. {
  8892. return _impl_._cached_size_.Get();
  8893. }
  8894. private:
  8895. void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
  8896. void SharedDtor();
  8897. void SetCachedSize(int size) const final;
  8898. void InternalSwap(GeneratedCodeInfo_Annotation* other);
  8899. private:
  8900. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  8901. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName()
  8902. {
  8903. return "google.protobuf.GeneratedCodeInfo.Annotation";
  8904. }
  8905. protected:
  8906. explicit GeneratedCodeInfo_Annotation(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false);
  8907. public:
  8908. static const ClassData _class_data_;
  8909. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final;
  8910. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  8911. // nested types ----------------------------------------------------
  8912. // accessors -------------------------------------------------------
  8913. enum : int
  8914. {
  8915. kPathFieldNumber = 1,
  8916. kSourceFileFieldNumber = 2,
  8917. kBeginFieldNumber = 3,
  8918. kEndFieldNumber = 4,
  8919. };
  8920. // repeated int32 path = 1 [packed = true];
  8921. int path_size() const;
  8922. private:
  8923. int _internal_path_size() const;
  8924. public:
  8925. void clear_path();
  8926. private:
  8927. int32_t _internal_path(int index) const;
  8928. const ::PROTOBUF_NAMESPACE_ID::RepeatedField<int32_t>&
  8929. _internal_path() const;
  8930. void _internal_add_path(int32_t value);
  8931. ::PROTOBUF_NAMESPACE_ID::RepeatedField<int32_t>*
  8932. _internal_mutable_path();
  8933. public:
  8934. int32_t path(int index) const;
  8935. void set_path(int index, int32_t value);
  8936. void add_path(int32_t value);
  8937. const ::PROTOBUF_NAMESPACE_ID::RepeatedField<int32_t>&
  8938. path() const;
  8939. ::PROTOBUF_NAMESPACE_ID::RepeatedField<int32_t>*
  8940. mutable_path();
  8941. // optional string source_file = 2;
  8942. bool has_source_file() const;
  8943. private:
  8944. bool _internal_has_source_file() const;
  8945. public:
  8946. void clear_source_file();
  8947. const std::string& source_file() const;
  8948. template<typename ArgT0 = const std::string&, typename... ArgT>
  8949. void set_source_file(ArgT0&& arg0, ArgT... args);
  8950. std::string* mutable_source_file();
  8951. PROTOBUF_NODISCARD std::string* release_source_file();
  8952. void set_allocated_source_file(std::string* source_file);
  8953. private:
  8954. const std::string& _internal_source_file() const;
  8955. inline PROTOBUF_ALWAYS_INLINE void _internal_set_source_file(const std::string& value);
  8956. std::string* _internal_mutable_source_file();
  8957. public:
  8958. // optional int32 begin = 3;
  8959. bool has_begin() const;
  8960. private:
  8961. bool _internal_has_begin() const;
  8962. public:
  8963. void clear_begin();
  8964. int32_t begin() const;
  8965. void set_begin(int32_t value);
  8966. private:
  8967. int32_t _internal_begin() const;
  8968. void _internal_set_begin(int32_t value);
  8969. public:
  8970. // optional int32 end = 4;
  8971. bool has_end() const;
  8972. private:
  8973. bool _internal_has_end() const;
  8974. public:
  8975. void clear_end();
  8976. int32_t end() const;
  8977. void set_end(int32_t value);
  8978. private:
  8979. int32_t _internal_end() const;
  8980. void _internal_set_end(int32_t value);
  8981. public:
  8982. // @@protoc_insertion_point(class_scope:google.protobuf.GeneratedCodeInfo.Annotation)
  8983. private:
  8984. class _Internal;
  8985. template<typename T>
  8986. friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  8987. typedef void InternalArenaConstructable_;
  8988. typedef void DestructorSkippable_;
  8989. struct Impl_
  8990. {
  8991. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  8992. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  8993. ::PROTOBUF_NAMESPACE_ID::RepeatedField<int32_t> path_;
  8994. mutable std::atomic<int> _path_cached_byte_size_;
  8995. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr source_file_;
  8996. int32_t begin_;
  8997. int32_t end_;
  8998. };
  8999. union
  9000. {
  9001. Impl_ _impl_;
  9002. };
  9003. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  9004. };
  9005. // -------------------------------------------------------------------
  9006. class PROTOBUF_EXPORT GeneratedCodeInfo final :
  9007. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.GeneratedCodeInfo) */
  9008. {
  9009. public:
  9010. inline GeneratedCodeInfo() :
  9011. GeneratedCodeInfo(nullptr)
  9012. {
  9013. }
  9014. ~GeneratedCodeInfo() override;
  9015. explicit PROTOBUF_CONSTEXPR GeneratedCodeInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  9016. GeneratedCodeInfo(const GeneratedCodeInfo& from);
  9017. GeneratedCodeInfo(GeneratedCodeInfo&& from) noexcept
  9018. :
  9019. GeneratedCodeInfo()
  9020. {
  9021. *this = ::std::move(from);
  9022. }
  9023. inline GeneratedCodeInfo& operator=(const GeneratedCodeInfo& from)
  9024. {
  9025. CopyFrom(from);
  9026. return *this;
  9027. }
  9028. inline GeneratedCodeInfo& operator=(GeneratedCodeInfo&& from) noexcept
  9029. {
  9030. if (this == &from)
  9031. return *this;
  9032. if (GetOwningArena() == from.GetOwningArena()
  9033. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  9034. && GetOwningArena() != nullptr
  9035. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  9036. )
  9037. {
  9038. InternalSwap(&from);
  9039. }
  9040. else
  9041. {
  9042. CopyFrom(from);
  9043. }
  9044. return *this;
  9045. }
  9046. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const
  9047. {
  9048. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  9049. }
  9050. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields()
  9051. {
  9052. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  9053. }
  9054. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor()
  9055. {
  9056. return GetDescriptor();
  9057. }
  9058. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor()
  9059. {
  9060. return default_instance().GetMetadata().descriptor;
  9061. }
  9062. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection()
  9063. {
  9064. return default_instance().GetMetadata().reflection;
  9065. }
  9066. static const GeneratedCodeInfo& default_instance()
  9067. {
  9068. return *internal_default_instance();
  9069. }
  9070. static inline const GeneratedCodeInfo* internal_default_instance()
  9071. {
  9072. return reinterpret_cast<const GeneratedCodeInfo*>(
  9073. &_GeneratedCodeInfo_default_instance_
  9074. );
  9075. }
  9076. static constexpr int kIndexInFileMessages =
  9077. 26;
  9078. friend void swap(GeneratedCodeInfo& a, GeneratedCodeInfo& b)
  9079. {
  9080. a.Swap(&b);
  9081. }
  9082. inline void Swap(GeneratedCodeInfo* other)
  9083. {
  9084. if (other == this)
  9085. return;
  9086. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  9087. if (GetOwningArena() != nullptr &&
  9088. GetOwningArena() == other->GetOwningArena())
  9089. {
  9090. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  9091. if (GetOwningArena() == other->GetOwningArena())
  9092. {
  9093. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  9094. InternalSwap(other);
  9095. }
  9096. else
  9097. {
  9098. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  9099. }
  9100. }
  9101. void UnsafeArenaSwap(GeneratedCodeInfo* other)
  9102. {
  9103. if (other == this)
  9104. return;
  9105. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  9106. InternalSwap(other);
  9107. }
  9108. // implements Message ----------------------------------------------
  9109. GeneratedCodeInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final
  9110. {
  9111. return CreateMaybeMessage<GeneratedCodeInfo>(arena);
  9112. }
  9113. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  9114. void CopyFrom(const GeneratedCodeInfo& from);
  9115. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  9116. void MergeFrom(const GeneratedCodeInfo& from)
  9117. {
  9118. GeneratedCodeInfo::MergeImpl(*this, from);
  9119. }
  9120. private:
  9121. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
  9122. public:
  9123. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  9124. bool IsInitialized() const final;
  9125. size_t ByteSizeLong() const final;
  9126. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  9127. uint8_t* _InternalSerialize(
  9128. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  9129. ) const final;
  9130. int GetCachedSize() const final
  9131. {
  9132. return _impl_._cached_size_.Get();
  9133. }
  9134. private:
  9135. void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
  9136. void SharedDtor();
  9137. void SetCachedSize(int size) const final;
  9138. void InternalSwap(GeneratedCodeInfo* other);
  9139. private:
  9140. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  9141. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName()
  9142. {
  9143. return "google.protobuf.GeneratedCodeInfo";
  9144. }
  9145. protected:
  9146. explicit GeneratedCodeInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false);
  9147. public:
  9148. static const ClassData _class_data_;
  9149. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final;
  9150. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  9151. // nested types ----------------------------------------------------
  9152. typedef GeneratedCodeInfo_Annotation Annotation;
  9153. // accessors -------------------------------------------------------
  9154. enum : int
  9155. {
  9156. kAnnotationFieldNumber = 1,
  9157. };
  9158. // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
  9159. int annotation_size() const;
  9160. private:
  9161. int _internal_annotation_size() const;
  9162. public:
  9163. void clear_annotation();
  9164. ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation* mutable_annotation(int index);
  9165. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation>*
  9166. mutable_annotation();
  9167. private:
  9168. const ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation& _internal_annotation(int index) const;
  9169. ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation* _internal_add_annotation();
  9170. public:
  9171. const ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation& annotation(int index) const;
  9172. ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation* add_annotation();
  9173. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation>&
  9174. annotation() const;
  9175. // @@protoc_insertion_point(class_scope:google.protobuf.GeneratedCodeInfo)
  9176. private:
  9177. class _Internal;
  9178. template<typename T>
  9179. friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  9180. typedef void InternalArenaConstructable_;
  9181. typedef void DestructorSkippable_;
  9182. struct Impl_
  9183. {
  9184. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation> annotation_;
  9185. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  9186. };
  9187. union
  9188. {
  9189. Impl_ _impl_;
  9190. };
  9191. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  9192. };
  9193. // ===================================================================
  9194. // ===================================================================
  9195. #ifdef __GNUC__
  9196. #pragma GCC diagnostic push
  9197. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  9198. #endif // __GNUC__
  9199. // FileDescriptorSet
  9200. // repeated .google.protobuf.FileDescriptorProto file = 1;
  9201. inline int FileDescriptorSet::_internal_file_size() const
  9202. {
  9203. return _impl_.file_.size();
  9204. }
  9205. inline int FileDescriptorSet::file_size() const
  9206. {
  9207. return _internal_file_size();
  9208. }
  9209. inline void FileDescriptorSet::clear_file()
  9210. {
  9211. _impl_.file_.Clear();
  9212. }
  9213. inline ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto* FileDescriptorSet::mutable_file(int index)
  9214. {
  9215. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorSet.file)
  9216. return _impl_.file_.Mutable(index);
  9217. }
  9218. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::FileDescriptorProto>*
  9219. FileDescriptorSet::mutable_file()
  9220. {
  9221. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorSet.file)
  9222. return &_impl_.file_;
  9223. }
  9224. inline const ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto& FileDescriptorSet::_internal_file(int index) const
  9225. {
  9226. return _impl_.file_.Get(index);
  9227. }
  9228. inline const ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto& FileDescriptorSet::file(int index) const
  9229. {
  9230. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorSet.file)
  9231. return _internal_file(index);
  9232. }
  9233. inline ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto* FileDescriptorSet::_internal_add_file()
  9234. {
  9235. return _impl_.file_.Add();
  9236. }
  9237. inline ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto* FileDescriptorSet::add_file()
  9238. {
  9239. ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto* _add = _internal_add_file();
  9240. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorSet.file)
  9241. return _add;
  9242. }
  9243. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::FileDescriptorProto>&
  9244. FileDescriptorSet::file() const
  9245. {
  9246. // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorSet.file)
  9247. return _impl_.file_;
  9248. }
  9249. // -------------------------------------------------------------------
  9250. // FileDescriptorProto
  9251. // optional string name = 1;
  9252. inline bool FileDescriptorProto::_internal_has_name() const
  9253. {
  9254. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  9255. return value;
  9256. }
  9257. inline bool FileDescriptorProto::has_name() const
  9258. {
  9259. return _internal_has_name();
  9260. }
  9261. inline void FileDescriptorProto::clear_name()
  9262. {
  9263. _impl_.name_.ClearToEmpty();
  9264. _impl_._has_bits_[0] &= ~0x00000001u;
  9265. }
  9266. inline const std::string& FileDescriptorProto::name() const
  9267. {
  9268. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.name)
  9269. return _internal_name();
  9270. }
  9271. template<typename ArgT0, typename... ArgT>
  9272. inline PROTOBUF_ALWAYS_INLINE void FileDescriptorProto::set_name(ArgT0&& arg0, ArgT... args)
  9273. {
  9274. _impl_._has_bits_[0] |= 0x00000001u;
  9275. _impl_.name_.Set(static_cast<ArgT0&&>(arg0), args..., GetArenaForAllocation());
  9276. // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.name)
  9277. }
  9278. inline std::string* FileDescriptorProto::mutable_name()
  9279. {
  9280. std::string* _s = _internal_mutable_name();
  9281. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.name)
  9282. return _s;
  9283. }
  9284. inline const std::string& FileDescriptorProto::_internal_name() const
  9285. {
  9286. return _impl_.name_.Get();
  9287. }
  9288. inline void FileDescriptorProto::_internal_set_name(const std::string& value)
  9289. {
  9290. _impl_._has_bits_[0] |= 0x00000001u;
  9291. _impl_.name_.Set(value, GetArenaForAllocation());
  9292. }
  9293. inline std::string* FileDescriptorProto::_internal_mutable_name()
  9294. {
  9295. _impl_._has_bits_[0] |= 0x00000001u;
  9296. return _impl_.name_.Mutable(GetArenaForAllocation());
  9297. }
  9298. inline std::string* FileDescriptorProto::release_name()
  9299. {
  9300. // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.name)
  9301. if (!_internal_has_name())
  9302. {
  9303. return nullptr;
  9304. }
  9305. _impl_._has_bits_[0] &= ~0x00000001u;
  9306. auto* p = _impl_.name_.Release();
  9307. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9308. if (_impl_.name_.IsDefault())
  9309. {
  9310. _impl_.name_.Set("", GetArenaForAllocation());
  9311. }
  9312. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9313. return p;
  9314. }
  9315. inline void FileDescriptorProto::set_allocated_name(std::string* name)
  9316. {
  9317. if (name != nullptr)
  9318. {
  9319. _impl_._has_bits_[0] |= 0x00000001u;
  9320. }
  9321. else
  9322. {
  9323. _impl_._has_bits_[0] &= ~0x00000001u;
  9324. }
  9325. _impl_.name_.SetAllocated(name, GetArenaForAllocation());
  9326. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9327. if (_impl_.name_.IsDefault())
  9328. {
  9329. _impl_.name_.Set("", GetArenaForAllocation());
  9330. }
  9331. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9332. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.name)
  9333. }
  9334. // optional string package = 2;
  9335. inline bool FileDescriptorProto::_internal_has_package() const
  9336. {
  9337. bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
  9338. return value;
  9339. }
  9340. inline bool FileDescriptorProto::has_package() const
  9341. {
  9342. return _internal_has_package();
  9343. }
  9344. inline void FileDescriptorProto::clear_package()
  9345. {
  9346. _impl_.package_.ClearToEmpty();
  9347. _impl_._has_bits_[0] &= ~0x00000002u;
  9348. }
  9349. inline const std::string& FileDescriptorProto::package() const
  9350. {
  9351. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.package)
  9352. return _internal_package();
  9353. }
  9354. template<typename ArgT0, typename... ArgT>
  9355. inline PROTOBUF_ALWAYS_INLINE void FileDescriptorProto::set_package(ArgT0&& arg0, ArgT... args)
  9356. {
  9357. _impl_._has_bits_[0] |= 0x00000002u;
  9358. _impl_.package_.Set(static_cast<ArgT0&&>(arg0), args..., GetArenaForAllocation());
  9359. // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.package)
  9360. }
  9361. inline std::string* FileDescriptorProto::mutable_package()
  9362. {
  9363. std::string* _s = _internal_mutable_package();
  9364. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.package)
  9365. return _s;
  9366. }
  9367. inline const std::string& FileDescriptorProto::_internal_package() const
  9368. {
  9369. return _impl_.package_.Get();
  9370. }
  9371. inline void FileDescriptorProto::_internal_set_package(const std::string& value)
  9372. {
  9373. _impl_._has_bits_[0] |= 0x00000002u;
  9374. _impl_.package_.Set(value, GetArenaForAllocation());
  9375. }
  9376. inline std::string* FileDescriptorProto::_internal_mutable_package()
  9377. {
  9378. _impl_._has_bits_[0] |= 0x00000002u;
  9379. return _impl_.package_.Mutable(GetArenaForAllocation());
  9380. }
  9381. inline std::string* FileDescriptorProto::release_package()
  9382. {
  9383. // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.package)
  9384. if (!_internal_has_package())
  9385. {
  9386. return nullptr;
  9387. }
  9388. _impl_._has_bits_[0] &= ~0x00000002u;
  9389. auto* p = _impl_.package_.Release();
  9390. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9391. if (_impl_.package_.IsDefault())
  9392. {
  9393. _impl_.package_.Set("", GetArenaForAllocation());
  9394. }
  9395. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9396. return p;
  9397. }
  9398. inline void FileDescriptorProto::set_allocated_package(std::string* package)
  9399. {
  9400. if (package != nullptr)
  9401. {
  9402. _impl_._has_bits_[0] |= 0x00000002u;
  9403. }
  9404. else
  9405. {
  9406. _impl_._has_bits_[0] &= ~0x00000002u;
  9407. }
  9408. _impl_.package_.SetAllocated(package, GetArenaForAllocation());
  9409. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9410. if (_impl_.package_.IsDefault())
  9411. {
  9412. _impl_.package_.Set("", GetArenaForAllocation());
  9413. }
  9414. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9415. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.package)
  9416. }
  9417. // repeated string dependency = 3;
  9418. inline int FileDescriptorProto::_internal_dependency_size() const
  9419. {
  9420. return _impl_.dependency_.size();
  9421. }
  9422. inline int FileDescriptorProto::dependency_size() const
  9423. {
  9424. return _internal_dependency_size();
  9425. }
  9426. inline void FileDescriptorProto::clear_dependency()
  9427. {
  9428. _impl_.dependency_.Clear();
  9429. }
  9430. inline std::string* FileDescriptorProto::add_dependency()
  9431. {
  9432. std::string* _s = _internal_add_dependency();
  9433. // @@protoc_insertion_point(field_add_mutable:google.protobuf.FileDescriptorProto.dependency)
  9434. return _s;
  9435. }
  9436. inline const std::string& FileDescriptorProto::_internal_dependency(int index) const
  9437. {
  9438. return _impl_.dependency_.Get(index);
  9439. }
  9440. inline const std::string& FileDescriptorProto::dependency(int index) const
  9441. {
  9442. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.dependency)
  9443. return _internal_dependency(index);
  9444. }
  9445. inline std::string* FileDescriptorProto::mutable_dependency(int index)
  9446. {
  9447. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.dependency)
  9448. return _impl_.dependency_.Mutable(index);
  9449. }
  9450. inline void FileDescriptorProto::set_dependency(int index, const std::string& value)
  9451. {
  9452. _impl_.dependency_.Mutable(index)->assign(value);
  9453. // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.dependency)
  9454. }
  9455. inline void FileDescriptorProto::set_dependency(int index, std::string&& value)
  9456. {
  9457. _impl_.dependency_.Mutable(index)->assign(std::move(value));
  9458. // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.dependency)
  9459. }
  9460. inline void FileDescriptorProto::set_dependency(int index, const char* value)
  9461. {
  9462. GOOGLE_DCHECK(value != nullptr);
  9463. _impl_.dependency_.Mutable(index)->assign(value);
  9464. // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto.dependency)
  9465. }
  9466. inline void FileDescriptorProto::set_dependency(int index, const char* value, size_t size)
  9467. {
  9468. _impl_.dependency_.Mutable(index)->assign(
  9469. reinterpret_cast<const char*>(value), size
  9470. );
  9471. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorProto.dependency)
  9472. }
  9473. inline std::string* FileDescriptorProto::_internal_add_dependency()
  9474. {
  9475. return _impl_.dependency_.Add();
  9476. }
  9477. inline void FileDescriptorProto::add_dependency(const std::string& value)
  9478. {
  9479. _impl_.dependency_.Add()->assign(value);
  9480. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.dependency)
  9481. }
  9482. inline void FileDescriptorProto::add_dependency(std::string&& value)
  9483. {
  9484. _impl_.dependency_.Add(std::move(value));
  9485. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.dependency)
  9486. }
  9487. inline void FileDescriptorProto::add_dependency(const char* value)
  9488. {
  9489. GOOGLE_DCHECK(value != nullptr);
  9490. _impl_.dependency_.Add()->assign(value);
  9491. // @@protoc_insertion_point(field_add_char:google.protobuf.FileDescriptorProto.dependency)
  9492. }
  9493. inline void FileDescriptorProto::add_dependency(const char* value, size_t size)
  9494. {
  9495. _impl_.dependency_.Add()->assign(reinterpret_cast<const char*>(value), size);
  9496. // @@protoc_insertion_point(field_add_pointer:google.protobuf.FileDescriptorProto.dependency)
  9497. }
  9498. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
  9499. FileDescriptorProto::dependency() const
  9500. {
  9501. // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.dependency)
  9502. return _impl_.dependency_;
  9503. }
  9504. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
  9505. FileDescriptorProto::mutable_dependency()
  9506. {
  9507. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.dependency)
  9508. return &_impl_.dependency_;
  9509. }
  9510. // repeated int32 public_dependency = 10;
  9511. inline int FileDescriptorProto::_internal_public_dependency_size() const
  9512. {
  9513. return _impl_.public_dependency_.size();
  9514. }
  9515. inline int FileDescriptorProto::public_dependency_size() const
  9516. {
  9517. return _internal_public_dependency_size();
  9518. }
  9519. inline void FileDescriptorProto::clear_public_dependency()
  9520. {
  9521. _impl_.public_dependency_.Clear();
  9522. }
  9523. inline int32_t FileDescriptorProto::_internal_public_dependency(int index) const
  9524. {
  9525. return _impl_.public_dependency_.Get(index);
  9526. }
  9527. inline int32_t FileDescriptorProto::public_dependency(int index) const
  9528. {
  9529. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.public_dependency)
  9530. return _internal_public_dependency(index);
  9531. }
  9532. inline void FileDescriptorProto::set_public_dependency(int index, int32_t value)
  9533. {
  9534. _impl_.public_dependency_.Set(index, value);
  9535. // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.public_dependency)
  9536. }
  9537. inline void FileDescriptorProto::_internal_add_public_dependency(int32_t value)
  9538. {
  9539. _impl_.public_dependency_.Add(value);
  9540. }
  9541. inline void FileDescriptorProto::add_public_dependency(int32_t value)
  9542. {
  9543. _internal_add_public_dependency(value);
  9544. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.public_dependency)
  9545. }
  9546. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField<int32_t>&
  9547. FileDescriptorProto::_internal_public_dependency() const
  9548. {
  9549. return _impl_.public_dependency_;
  9550. }
  9551. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField<int32_t>&
  9552. FileDescriptorProto::public_dependency() const
  9553. {
  9554. // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.public_dependency)
  9555. return _internal_public_dependency();
  9556. }
  9557. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField<int32_t>*
  9558. FileDescriptorProto::_internal_mutable_public_dependency()
  9559. {
  9560. return &_impl_.public_dependency_;
  9561. }
  9562. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField<int32_t>*
  9563. FileDescriptorProto::mutable_public_dependency()
  9564. {
  9565. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.public_dependency)
  9566. return _internal_mutable_public_dependency();
  9567. }
  9568. // repeated int32 weak_dependency = 11;
  9569. inline int FileDescriptorProto::_internal_weak_dependency_size() const
  9570. {
  9571. return _impl_.weak_dependency_.size();
  9572. }
  9573. inline int FileDescriptorProto::weak_dependency_size() const
  9574. {
  9575. return _internal_weak_dependency_size();
  9576. }
  9577. inline void FileDescriptorProto::clear_weak_dependency()
  9578. {
  9579. _impl_.weak_dependency_.Clear();
  9580. }
  9581. inline int32_t FileDescriptorProto::_internal_weak_dependency(int index) const
  9582. {
  9583. return _impl_.weak_dependency_.Get(index);
  9584. }
  9585. inline int32_t FileDescriptorProto::weak_dependency(int index) const
  9586. {
  9587. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.weak_dependency)
  9588. return _internal_weak_dependency(index);
  9589. }
  9590. inline void FileDescriptorProto::set_weak_dependency(int index, int32_t value)
  9591. {
  9592. _impl_.weak_dependency_.Set(index, value);
  9593. // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.weak_dependency)
  9594. }
  9595. inline void FileDescriptorProto::_internal_add_weak_dependency(int32_t value)
  9596. {
  9597. _impl_.weak_dependency_.Add(value);
  9598. }
  9599. inline void FileDescriptorProto::add_weak_dependency(int32_t value)
  9600. {
  9601. _internal_add_weak_dependency(value);
  9602. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.weak_dependency)
  9603. }
  9604. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField<int32_t>&
  9605. FileDescriptorProto::_internal_weak_dependency() const
  9606. {
  9607. return _impl_.weak_dependency_;
  9608. }
  9609. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField<int32_t>&
  9610. FileDescriptorProto::weak_dependency() const
  9611. {
  9612. // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.weak_dependency)
  9613. return _internal_weak_dependency();
  9614. }
  9615. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField<int32_t>*
  9616. FileDescriptorProto::_internal_mutable_weak_dependency()
  9617. {
  9618. return &_impl_.weak_dependency_;
  9619. }
  9620. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField<int32_t>*
  9621. FileDescriptorProto::mutable_weak_dependency()
  9622. {
  9623. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.weak_dependency)
  9624. return _internal_mutable_weak_dependency();
  9625. }
  9626. // repeated .google.protobuf.DescriptorProto message_type = 4;
  9627. inline int FileDescriptorProto::_internal_message_type_size() const
  9628. {
  9629. return _impl_.message_type_.size();
  9630. }
  9631. inline int FileDescriptorProto::message_type_size() const
  9632. {
  9633. return _internal_message_type_size();
  9634. }
  9635. inline void FileDescriptorProto::clear_message_type()
  9636. {
  9637. _impl_.message_type_.Clear();
  9638. }
  9639. inline ::PROTOBUF_NAMESPACE_ID::DescriptorProto* FileDescriptorProto::mutable_message_type(int index)
  9640. {
  9641. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.message_type)
  9642. return _impl_.message_type_.Mutable(index);
  9643. }
  9644. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::DescriptorProto>*
  9645. FileDescriptorProto::mutable_message_type()
  9646. {
  9647. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.message_type)
  9648. return &_impl_.message_type_;
  9649. }
  9650. inline const ::PROTOBUF_NAMESPACE_ID::DescriptorProto& FileDescriptorProto::_internal_message_type(int index) const
  9651. {
  9652. return _impl_.message_type_.Get(index);
  9653. }
  9654. inline const ::PROTOBUF_NAMESPACE_ID::DescriptorProto& FileDescriptorProto::message_type(int index) const
  9655. {
  9656. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.message_type)
  9657. return _internal_message_type(index);
  9658. }
  9659. inline ::PROTOBUF_NAMESPACE_ID::DescriptorProto* FileDescriptorProto::_internal_add_message_type()
  9660. {
  9661. return _impl_.message_type_.Add();
  9662. }
  9663. inline ::PROTOBUF_NAMESPACE_ID::DescriptorProto* FileDescriptorProto::add_message_type()
  9664. {
  9665. ::PROTOBUF_NAMESPACE_ID::DescriptorProto* _add = _internal_add_message_type();
  9666. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.message_type)
  9667. return _add;
  9668. }
  9669. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::DescriptorProto>&
  9670. FileDescriptorProto::message_type() const
  9671. {
  9672. // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.message_type)
  9673. return _impl_.message_type_;
  9674. }
  9675. // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
  9676. inline int FileDescriptorProto::_internal_enum_type_size() const
  9677. {
  9678. return _impl_.enum_type_.size();
  9679. }
  9680. inline int FileDescriptorProto::enum_type_size() const
  9681. {
  9682. return _internal_enum_type_size();
  9683. }
  9684. inline void FileDescriptorProto::clear_enum_type()
  9685. {
  9686. _impl_.enum_type_.Clear();
  9687. }
  9688. inline ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* FileDescriptorProto::mutable_enum_type(int index)
  9689. {
  9690. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.enum_type)
  9691. return _impl_.enum_type_.Mutable(index);
  9692. }
  9693. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto>*
  9694. FileDescriptorProto::mutable_enum_type()
  9695. {
  9696. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.enum_type)
  9697. return &_impl_.enum_type_;
  9698. }
  9699. inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto& FileDescriptorProto::_internal_enum_type(int index) const
  9700. {
  9701. return _impl_.enum_type_.Get(index);
  9702. }
  9703. inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto& FileDescriptorProto::enum_type(int index) const
  9704. {
  9705. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.enum_type)
  9706. return _internal_enum_type(index);
  9707. }
  9708. inline ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* FileDescriptorProto::_internal_add_enum_type()
  9709. {
  9710. return _impl_.enum_type_.Add();
  9711. }
  9712. inline ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* FileDescriptorProto::add_enum_type()
  9713. {
  9714. ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* _add = _internal_add_enum_type();
  9715. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.enum_type)
  9716. return _add;
  9717. }
  9718. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto>&
  9719. FileDescriptorProto::enum_type() const
  9720. {
  9721. // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.enum_type)
  9722. return _impl_.enum_type_;
  9723. }
  9724. // repeated .google.protobuf.ServiceDescriptorProto service = 6;
  9725. inline int FileDescriptorProto::_internal_service_size() const
  9726. {
  9727. return _impl_.service_.size();
  9728. }
  9729. inline int FileDescriptorProto::service_size() const
  9730. {
  9731. return _internal_service_size();
  9732. }
  9733. inline void FileDescriptorProto::clear_service()
  9734. {
  9735. _impl_.service_.Clear();
  9736. }
  9737. inline ::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto* FileDescriptorProto::mutable_service(int index)
  9738. {
  9739. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.service)
  9740. return _impl_.service_.Mutable(index);
  9741. }
  9742. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto>*
  9743. FileDescriptorProto::mutable_service()
  9744. {
  9745. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.service)
  9746. return &_impl_.service_;
  9747. }
  9748. inline const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto& FileDescriptorProto::_internal_service(int index) const
  9749. {
  9750. return _impl_.service_.Get(index);
  9751. }
  9752. inline const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto& FileDescriptorProto::service(int index) const
  9753. {
  9754. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.service)
  9755. return _internal_service(index);
  9756. }
  9757. inline ::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto* FileDescriptorProto::_internal_add_service()
  9758. {
  9759. return _impl_.service_.Add();
  9760. }
  9761. inline ::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto* FileDescriptorProto::add_service()
  9762. {
  9763. ::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto* _add = _internal_add_service();
  9764. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.service)
  9765. return _add;
  9766. }
  9767. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto>&
  9768. FileDescriptorProto::service() const
  9769. {
  9770. // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.service)
  9771. return _impl_.service_;
  9772. }
  9773. // repeated .google.protobuf.FieldDescriptorProto extension = 7;
  9774. inline int FileDescriptorProto::_internal_extension_size() const
  9775. {
  9776. return _impl_.extension_.size();
  9777. }
  9778. inline int FileDescriptorProto::extension_size() const
  9779. {
  9780. return _internal_extension_size();
  9781. }
  9782. inline void FileDescriptorProto::clear_extension()
  9783. {
  9784. _impl_.extension_.Clear();
  9785. }
  9786. inline ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* FileDescriptorProto::mutable_extension(int index)
  9787. {
  9788. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.extension)
  9789. return _impl_.extension_.Mutable(index);
  9790. }
  9791. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto>*
  9792. FileDescriptorProto::mutable_extension()
  9793. {
  9794. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.extension)
  9795. return &_impl_.extension_;
  9796. }
  9797. inline const ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto& FileDescriptorProto::_internal_extension(int index) const
  9798. {
  9799. return _impl_.extension_.Get(index);
  9800. }
  9801. inline const ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto& FileDescriptorProto::extension(int index) const
  9802. {
  9803. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.extension)
  9804. return _internal_extension(index);
  9805. }
  9806. inline ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* FileDescriptorProto::_internal_add_extension()
  9807. {
  9808. return _impl_.extension_.Add();
  9809. }
  9810. inline ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* FileDescriptorProto::add_extension()
  9811. {
  9812. ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* _add = _internal_add_extension();
  9813. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.extension)
  9814. return _add;
  9815. }
  9816. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto>&
  9817. FileDescriptorProto::extension() const
  9818. {
  9819. // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.extension)
  9820. return _impl_.extension_;
  9821. }
  9822. // optional .google.protobuf.FileOptions options = 8;
  9823. inline bool FileDescriptorProto::_internal_has_options() const
  9824. {
  9825. bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
  9826. PROTOBUF_ASSUME(!value || _impl_.options_ != nullptr);
  9827. return value;
  9828. }
  9829. inline bool FileDescriptorProto::has_options() const
  9830. {
  9831. return _internal_has_options();
  9832. }
  9833. inline void FileDescriptorProto::clear_options()
  9834. {
  9835. if (_impl_.options_ != nullptr)
  9836. _impl_.options_->Clear();
  9837. _impl_._has_bits_[0] &= ~0x00000008u;
  9838. }
  9839. inline const ::PROTOBUF_NAMESPACE_ID::FileOptions& FileDescriptorProto::_internal_options() const
  9840. {
  9841. const ::PROTOBUF_NAMESPACE_ID::FileOptions* p = _impl_.options_;
  9842. return p != nullptr ? *p : reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::FileOptions&>(::PROTOBUF_NAMESPACE_ID::_FileOptions_default_instance_);
  9843. }
  9844. inline const ::PROTOBUF_NAMESPACE_ID::FileOptions& FileDescriptorProto::options() const
  9845. {
  9846. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.options)
  9847. return _internal_options();
  9848. }
  9849. inline void FileDescriptorProto::unsafe_arena_set_allocated_options(
  9850. ::PROTOBUF_NAMESPACE_ID::FileOptions* options
  9851. )
  9852. {
  9853. if (GetArenaForAllocation() == nullptr)
  9854. {
  9855. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.options_);
  9856. }
  9857. _impl_.options_ = options;
  9858. if (options)
  9859. {
  9860. _impl_._has_bits_[0] |= 0x00000008u;
  9861. }
  9862. else
  9863. {
  9864. _impl_._has_bits_[0] &= ~0x00000008u;
  9865. }
  9866. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FileDescriptorProto.options)
  9867. }
  9868. inline ::PROTOBUF_NAMESPACE_ID::FileOptions* FileDescriptorProto::release_options()
  9869. {
  9870. _impl_._has_bits_[0] &= ~0x00000008u;
  9871. ::PROTOBUF_NAMESPACE_ID::FileOptions* temp = _impl_.options_;
  9872. _impl_.options_ = nullptr;
  9873. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  9874. auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
  9875. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  9876. if (GetArenaForAllocation() == nullptr)
  9877. {
  9878. delete old;
  9879. }
  9880. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  9881. if (GetArenaForAllocation() != nullptr)
  9882. {
  9883. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  9884. }
  9885. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  9886. return temp;
  9887. }
  9888. inline ::PROTOBUF_NAMESPACE_ID::FileOptions* FileDescriptorProto::unsafe_arena_release_options()
  9889. {
  9890. // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.options)
  9891. _impl_._has_bits_[0] &= ~0x00000008u;
  9892. ::PROTOBUF_NAMESPACE_ID::FileOptions* temp = _impl_.options_;
  9893. _impl_.options_ = nullptr;
  9894. return temp;
  9895. }
  9896. inline ::PROTOBUF_NAMESPACE_ID::FileOptions* FileDescriptorProto::_internal_mutable_options()
  9897. {
  9898. _impl_._has_bits_[0] |= 0x00000008u;
  9899. if (_impl_.options_ == nullptr)
  9900. {
  9901. auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::FileOptions>(GetArenaForAllocation());
  9902. _impl_.options_ = p;
  9903. }
  9904. return _impl_.options_;
  9905. }
  9906. inline ::PROTOBUF_NAMESPACE_ID::FileOptions* FileDescriptorProto::mutable_options()
  9907. {
  9908. ::PROTOBUF_NAMESPACE_ID::FileOptions* _msg = _internal_mutable_options();
  9909. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.options)
  9910. return _msg;
  9911. }
  9912. inline void FileDescriptorProto::set_allocated_options(::PROTOBUF_NAMESPACE_ID::FileOptions* options)
  9913. {
  9914. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  9915. if (message_arena == nullptr)
  9916. {
  9917. delete _impl_.options_;
  9918. }
  9919. if (options)
  9920. {
  9921. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  9922. ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(options);
  9923. if (message_arena != submessage_arena)
  9924. {
  9925. options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  9926. message_arena, options, submessage_arena
  9927. );
  9928. }
  9929. _impl_._has_bits_[0] |= 0x00000008u;
  9930. }
  9931. else
  9932. {
  9933. _impl_._has_bits_[0] &= ~0x00000008u;
  9934. }
  9935. _impl_.options_ = options;
  9936. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.options)
  9937. }
  9938. // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
  9939. inline bool FileDescriptorProto::_internal_has_source_code_info() const
  9940. {
  9941. bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
  9942. PROTOBUF_ASSUME(!value || _impl_.source_code_info_ != nullptr);
  9943. return value;
  9944. }
  9945. inline bool FileDescriptorProto::has_source_code_info() const
  9946. {
  9947. return _internal_has_source_code_info();
  9948. }
  9949. inline void FileDescriptorProto::clear_source_code_info()
  9950. {
  9951. if (_impl_.source_code_info_ != nullptr)
  9952. _impl_.source_code_info_->Clear();
  9953. _impl_._has_bits_[0] &= ~0x00000010u;
  9954. }
  9955. inline const ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo& FileDescriptorProto::_internal_source_code_info() const
  9956. {
  9957. const ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo* p = _impl_.source_code_info_;
  9958. return p != nullptr ? *p : reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo&>(::PROTOBUF_NAMESPACE_ID::_SourceCodeInfo_default_instance_);
  9959. }
  9960. inline const ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo& FileDescriptorProto::source_code_info() const
  9961. {
  9962. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.source_code_info)
  9963. return _internal_source_code_info();
  9964. }
  9965. inline void FileDescriptorProto::unsafe_arena_set_allocated_source_code_info(
  9966. ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo* source_code_info
  9967. )
  9968. {
  9969. if (GetArenaForAllocation() == nullptr)
  9970. {
  9971. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.source_code_info_);
  9972. }
  9973. _impl_.source_code_info_ = source_code_info;
  9974. if (source_code_info)
  9975. {
  9976. _impl_._has_bits_[0] |= 0x00000010u;
  9977. }
  9978. else
  9979. {
  9980. _impl_._has_bits_[0] &= ~0x00000010u;
  9981. }
  9982. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FileDescriptorProto.source_code_info)
  9983. }
  9984. inline ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo* FileDescriptorProto::release_source_code_info()
  9985. {
  9986. _impl_._has_bits_[0] &= ~0x00000010u;
  9987. ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo* temp = _impl_.source_code_info_;
  9988. _impl_.source_code_info_ = nullptr;
  9989. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  9990. auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
  9991. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  9992. if (GetArenaForAllocation() == nullptr)
  9993. {
  9994. delete old;
  9995. }
  9996. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  9997. if (GetArenaForAllocation() != nullptr)
  9998. {
  9999. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  10000. }
  10001. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  10002. return temp;
  10003. }
  10004. inline ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo* FileDescriptorProto::unsafe_arena_release_source_code_info()
  10005. {
  10006. // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.source_code_info)
  10007. _impl_._has_bits_[0] &= ~0x00000010u;
  10008. ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo* temp = _impl_.source_code_info_;
  10009. _impl_.source_code_info_ = nullptr;
  10010. return temp;
  10011. }
  10012. inline ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo* FileDescriptorProto::_internal_mutable_source_code_info()
  10013. {
  10014. _impl_._has_bits_[0] |= 0x00000010u;
  10015. if (_impl_.source_code_info_ == nullptr)
  10016. {
  10017. auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::SourceCodeInfo>(GetArenaForAllocation());
  10018. _impl_.source_code_info_ = p;
  10019. }
  10020. return _impl_.source_code_info_;
  10021. }
  10022. inline ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo* FileDescriptorProto::mutable_source_code_info()
  10023. {
  10024. ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo* _msg = _internal_mutable_source_code_info();
  10025. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.source_code_info)
  10026. return _msg;
  10027. }
  10028. inline void FileDescriptorProto::set_allocated_source_code_info(::PROTOBUF_NAMESPACE_ID::SourceCodeInfo* source_code_info)
  10029. {
  10030. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  10031. if (message_arena == nullptr)
  10032. {
  10033. delete _impl_.source_code_info_;
  10034. }
  10035. if (source_code_info)
  10036. {
  10037. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  10038. ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(source_code_info);
  10039. if (message_arena != submessage_arena)
  10040. {
  10041. source_code_info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  10042. message_arena, source_code_info, submessage_arena
  10043. );
  10044. }
  10045. _impl_._has_bits_[0] |= 0x00000010u;
  10046. }
  10047. else
  10048. {
  10049. _impl_._has_bits_[0] &= ~0x00000010u;
  10050. }
  10051. _impl_.source_code_info_ = source_code_info;
  10052. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.source_code_info)
  10053. }
  10054. // optional string syntax = 12;
  10055. inline bool FileDescriptorProto::_internal_has_syntax() const
  10056. {
  10057. bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
  10058. return value;
  10059. }
  10060. inline bool FileDescriptorProto::has_syntax() const
  10061. {
  10062. return _internal_has_syntax();
  10063. }
  10064. inline void FileDescriptorProto::clear_syntax()
  10065. {
  10066. _impl_.syntax_.ClearToEmpty();
  10067. _impl_._has_bits_[0] &= ~0x00000004u;
  10068. }
  10069. inline const std::string& FileDescriptorProto::syntax() const
  10070. {
  10071. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.syntax)
  10072. return _internal_syntax();
  10073. }
  10074. template<typename ArgT0, typename... ArgT>
  10075. inline PROTOBUF_ALWAYS_INLINE void FileDescriptorProto::set_syntax(ArgT0&& arg0, ArgT... args)
  10076. {
  10077. _impl_._has_bits_[0] |= 0x00000004u;
  10078. _impl_.syntax_.Set(static_cast<ArgT0&&>(arg0), args..., GetArenaForAllocation());
  10079. // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.syntax)
  10080. }
  10081. inline std::string* FileDescriptorProto::mutable_syntax()
  10082. {
  10083. std::string* _s = _internal_mutable_syntax();
  10084. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.syntax)
  10085. return _s;
  10086. }
  10087. inline const std::string& FileDescriptorProto::_internal_syntax() const
  10088. {
  10089. return _impl_.syntax_.Get();
  10090. }
  10091. inline void FileDescriptorProto::_internal_set_syntax(const std::string& value)
  10092. {
  10093. _impl_._has_bits_[0] |= 0x00000004u;
  10094. _impl_.syntax_.Set(value, GetArenaForAllocation());
  10095. }
  10096. inline std::string* FileDescriptorProto::_internal_mutable_syntax()
  10097. {
  10098. _impl_._has_bits_[0] |= 0x00000004u;
  10099. return _impl_.syntax_.Mutable(GetArenaForAllocation());
  10100. }
  10101. inline std::string* FileDescriptorProto::release_syntax()
  10102. {
  10103. // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.syntax)
  10104. if (!_internal_has_syntax())
  10105. {
  10106. return nullptr;
  10107. }
  10108. _impl_._has_bits_[0] &= ~0x00000004u;
  10109. auto* p = _impl_.syntax_.Release();
  10110. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10111. if (_impl_.syntax_.IsDefault())
  10112. {
  10113. _impl_.syntax_.Set("", GetArenaForAllocation());
  10114. }
  10115. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10116. return p;
  10117. }
  10118. inline void FileDescriptorProto::set_allocated_syntax(std::string* syntax)
  10119. {
  10120. if (syntax != nullptr)
  10121. {
  10122. _impl_._has_bits_[0] |= 0x00000004u;
  10123. }
  10124. else
  10125. {
  10126. _impl_._has_bits_[0] &= ~0x00000004u;
  10127. }
  10128. _impl_.syntax_.SetAllocated(syntax, GetArenaForAllocation());
  10129. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10130. if (_impl_.syntax_.IsDefault())
  10131. {
  10132. _impl_.syntax_.Set("", GetArenaForAllocation());
  10133. }
  10134. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10135. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.syntax)
  10136. }
  10137. // -------------------------------------------------------------------
  10138. // DescriptorProto_ExtensionRange
  10139. // optional int32 start = 1;
  10140. inline bool DescriptorProto_ExtensionRange::_internal_has_start() const
  10141. {
  10142. bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
  10143. return value;
  10144. }
  10145. inline bool DescriptorProto_ExtensionRange::has_start() const
  10146. {
  10147. return _internal_has_start();
  10148. }
  10149. inline void DescriptorProto_ExtensionRange::clear_start()
  10150. {
  10151. _impl_.start_ = 0;
  10152. _impl_._has_bits_[0] &= ~0x00000002u;
  10153. }
  10154. inline int32_t DescriptorProto_ExtensionRange::_internal_start() const
  10155. {
  10156. return _impl_.start_;
  10157. }
  10158. inline int32_t DescriptorProto_ExtensionRange::start() const
  10159. {
  10160. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ExtensionRange.start)
  10161. return _internal_start();
  10162. }
  10163. inline void DescriptorProto_ExtensionRange::_internal_set_start(int32_t value)
  10164. {
  10165. _impl_._has_bits_[0] |= 0x00000002u;
  10166. _impl_.start_ = value;
  10167. }
  10168. inline void DescriptorProto_ExtensionRange::set_start(int32_t value)
  10169. {
  10170. _internal_set_start(value);
  10171. // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.ExtensionRange.start)
  10172. }
  10173. // optional int32 end = 2;
  10174. inline bool DescriptorProto_ExtensionRange::_internal_has_end() const
  10175. {
  10176. bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
  10177. return value;
  10178. }
  10179. inline bool DescriptorProto_ExtensionRange::has_end() const
  10180. {
  10181. return _internal_has_end();
  10182. }
  10183. inline void DescriptorProto_ExtensionRange::clear_end()
  10184. {
  10185. _impl_.end_ = 0;
  10186. _impl_._has_bits_[0] &= ~0x00000004u;
  10187. }
  10188. inline int32_t DescriptorProto_ExtensionRange::_internal_end() const
  10189. {
  10190. return _impl_.end_;
  10191. }
  10192. inline int32_t DescriptorProto_ExtensionRange::end() const
  10193. {
  10194. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ExtensionRange.end)
  10195. return _internal_end();
  10196. }
  10197. inline void DescriptorProto_ExtensionRange::_internal_set_end(int32_t value)
  10198. {
  10199. _impl_._has_bits_[0] |= 0x00000004u;
  10200. _impl_.end_ = value;
  10201. }
  10202. inline void DescriptorProto_ExtensionRange::set_end(int32_t value)
  10203. {
  10204. _internal_set_end(value);
  10205. // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.ExtensionRange.end)
  10206. }
  10207. // optional .google.protobuf.ExtensionRangeOptions options = 3;
  10208. inline bool DescriptorProto_ExtensionRange::_internal_has_options() const
  10209. {
  10210. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  10211. PROTOBUF_ASSUME(!value || _impl_.options_ != nullptr);
  10212. return value;
  10213. }
  10214. inline bool DescriptorProto_ExtensionRange::has_options() const
  10215. {
  10216. return _internal_has_options();
  10217. }
  10218. inline void DescriptorProto_ExtensionRange::clear_options()
  10219. {
  10220. if (_impl_.options_ != nullptr)
  10221. _impl_.options_->Clear();
  10222. _impl_._has_bits_[0] &= ~0x00000001u;
  10223. }
  10224. inline const ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions& DescriptorProto_ExtensionRange::_internal_options() const
  10225. {
  10226. const ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* p = _impl_.options_;
  10227. return p != nullptr ? *p : reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions&>(::PROTOBUF_NAMESPACE_ID::_ExtensionRangeOptions_default_instance_);
  10228. }
  10229. inline const ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions& DescriptorProto_ExtensionRange::options() const
  10230. {
  10231. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ExtensionRange.options)
  10232. return _internal_options();
  10233. }
  10234. inline void DescriptorProto_ExtensionRange::unsafe_arena_set_allocated_options(
  10235. ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* options
  10236. )
  10237. {
  10238. if (GetArenaForAllocation() == nullptr)
  10239. {
  10240. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.options_);
  10241. }
  10242. _impl_.options_ = options;
  10243. if (options)
  10244. {
  10245. _impl_._has_bits_[0] |= 0x00000001u;
  10246. }
  10247. else
  10248. {
  10249. _impl_._has_bits_[0] &= ~0x00000001u;
  10250. }
  10251. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.DescriptorProto.ExtensionRange.options)
  10252. }
  10253. inline ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* DescriptorProto_ExtensionRange::release_options()
  10254. {
  10255. _impl_._has_bits_[0] &= ~0x00000001u;
  10256. ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* temp = _impl_.options_;
  10257. _impl_.options_ = nullptr;
  10258. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  10259. auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
  10260. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  10261. if (GetArenaForAllocation() == nullptr)
  10262. {
  10263. delete old;
  10264. }
  10265. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  10266. if (GetArenaForAllocation() != nullptr)
  10267. {
  10268. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  10269. }
  10270. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  10271. return temp;
  10272. }
  10273. inline ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* DescriptorProto_ExtensionRange::unsafe_arena_release_options()
  10274. {
  10275. // @@protoc_insertion_point(field_release:google.protobuf.DescriptorProto.ExtensionRange.options)
  10276. _impl_._has_bits_[0] &= ~0x00000001u;
  10277. ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* temp = _impl_.options_;
  10278. _impl_.options_ = nullptr;
  10279. return temp;
  10280. }
  10281. inline ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* DescriptorProto_ExtensionRange::_internal_mutable_options()
  10282. {
  10283. _impl_._has_bits_[0] |= 0x00000001u;
  10284. if (_impl_.options_ == nullptr)
  10285. {
  10286. auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions>(GetArenaForAllocation());
  10287. _impl_.options_ = p;
  10288. }
  10289. return _impl_.options_;
  10290. }
  10291. inline ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* DescriptorProto_ExtensionRange::mutable_options()
  10292. {
  10293. ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* _msg = _internal_mutable_options();
  10294. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.ExtensionRange.options)
  10295. return _msg;
  10296. }
  10297. inline void DescriptorProto_ExtensionRange::set_allocated_options(::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* options)
  10298. {
  10299. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  10300. if (message_arena == nullptr)
  10301. {
  10302. delete _impl_.options_;
  10303. }
  10304. if (options)
  10305. {
  10306. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  10307. ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(options);
  10308. if (message_arena != submessage_arena)
  10309. {
  10310. options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  10311. message_arena, options, submessage_arena
  10312. );
  10313. }
  10314. _impl_._has_bits_[0] |= 0x00000001u;
  10315. }
  10316. else
  10317. {
  10318. _impl_._has_bits_[0] &= ~0x00000001u;
  10319. }
  10320. _impl_.options_ = options;
  10321. // @@protoc_insertion_point(field_set_allocated:google.protobuf.DescriptorProto.ExtensionRange.options)
  10322. }
  10323. // -------------------------------------------------------------------
  10324. // DescriptorProto_ReservedRange
  10325. // optional int32 start = 1;
  10326. inline bool DescriptorProto_ReservedRange::_internal_has_start() const
  10327. {
  10328. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  10329. return value;
  10330. }
  10331. inline bool DescriptorProto_ReservedRange::has_start() const
  10332. {
  10333. return _internal_has_start();
  10334. }
  10335. inline void DescriptorProto_ReservedRange::clear_start()
  10336. {
  10337. _impl_.start_ = 0;
  10338. _impl_._has_bits_[0] &= ~0x00000001u;
  10339. }
  10340. inline int32_t DescriptorProto_ReservedRange::_internal_start() const
  10341. {
  10342. return _impl_.start_;
  10343. }
  10344. inline int32_t DescriptorProto_ReservedRange::start() const
  10345. {
  10346. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ReservedRange.start)
  10347. return _internal_start();
  10348. }
  10349. inline void DescriptorProto_ReservedRange::_internal_set_start(int32_t value)
  10350. {
  10351. _impl_._has_bits_[0] |= 0x00000001u;
  10352. _impl_.start_ = value;
  10353. }
  10354. inline void DescriptorProto_ReservedRange::set_start(int32_t value)
  10355. {
  10356. _internal_set_start(value);
  10357. // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.ReservedRange.start)
  10358. }
  10359. // optional int32 end = 2;
  10360. inline bool DescriptorProto_ReservedRange::_internal_has_end() const
  10361. {
  10362. bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
  10363. return value;
  10364. }
  10365. inline bool DescriptorProto_ReservedRange::has_end() const
  10366. {
  10367. return _internal_has_end();
  10368. }
  10369. inline void DescriptorProto_ReservedRange::clear_end()
  10370. {
  10371. _impl_.end_ = 0;
  10372. _impl_._has_bits_[0] &= ~0x00000002u;
  10373. }
  10374. inline int32_t DescriptorProto_ReservedRange::_internal_end() const
  10375. {
  10376. return _impl_.end_;
  10377. }
  10378. inline int32_t DescriptorProto_ReservedRange::end() const
  10379. {
  10380. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ReservedRange.end)
  10381. return _internal_end();
  10382. }
  10383. inline void DescriptorProto_ReservedRange::_internal_set_end(int32_t value)
  10384. {
  10385. _impl_._has_bits_[0] |= 0x00000002u;
  10386. _impl_.end_ = value;
  10387. }
  10388. inline void DescriptorProto_ReservedRange::set_end(int32_t value)
  10389. {
  10390. _internal_set_end(value);
  10391. // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.ReservedRange.end)
  10392. }
  10393. // -------------------------------------------------------------------
  10394. // DescriptorProto
  10395. // optional string name = 1;
  10396. inline bool DescriptorProto::_internal_has_name() const
  10397. {
  10398. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  10399. return value;
  10400. }
  10401. inline bool DescriptorProto::has_name() const
  10402. {
  10403. return _internal_has_name();
  10404. }
  10405. inline void DescriptorProto::clear_name()
  10406. {
  10407. _impl_.name_.ClearToEmpty();
  10408. _impl_._has_bits_[0] &= ~0x00000001u;
  10409. }
  10410. inline const std::string& DescriptorProto::name() const
  10411. {
  10412. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.name)
  10413. return _internal_name();
  10414. }
  10415. template<typename ArgT0, typename... ArgT>
  10416. inline PROTOBUF_ALWAYS_INLINE void DescriptorProto::set_name(ArgT0&& arg0, ArgT... args)
  10417. {
  10418. _impl_._has_bits_[0] |= 0x00000001u;
  10419. _impl_.name_.Set(static_cast<ArgT0&&>(arg0), args..., GetArenaForAllocation());
  10420. // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.name)
  10421. }
  10422. inline std::string* DescriptorProto::mutable_name()
  10423. {
  10424. std::string* _s = _internal_mutable_name();
  10425. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.name)
  10426. return _s;
  10427. }
  10428. inline const std::string& DescriptorProto::_internal_name() const
  10429. {
  10430. return _impl_.name_.Get();
  10431. }
  10432. inline void DescriptorProto::_internal_set_name(const std::string& value)
  10433. {
  10434. _impl_._has_bits_[0] |= 0x00000001u;
  10435. _impl_.name_.Set(value, GetArenaForAllocation());
  10436. }
  10437. inline std::string* DescriptorProto::_internal_mutable_name()
  10438. {
  10439. _impl_._has_bits_[0] |= 0x00000001u;
  10440. return _impl_.name_.Mutable(GetArenaForAllocation());
  10441. }
  10442. inline std::string* DescriptorProto::release_name()
  10443. {
  10444. // @@protoc_insertion_point(field_release:google.protobuf.DescriptorProto.name)
  10445. if (!_internal_has_name())
  10446. {
  10447. return nullptr;
  10448. }
  10449. _impl_._has_bits_[0] &= ~0x00000001u;
  10450. auto* p = _impl_.name_.Release();
  10451. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10452. if (_impl_.name_.IsDefault())
  10453. {
  10454. _impl_.name_.Set("", GetArenaForAllocation());
  10455. }
  10456. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10457. return p;
  10458. }
  10459. inline void DescriptorProto::set_allocated_name(std::string* name)
  10460. {
  10461. if (name != nullptr)
  10462. {
  10463. _impl_._has_bits_[0] |= 0x00000001u;
  10464. }
  10465. else
  10466. {
  10467. _impl_._has_bits_[0] &= ~0x00000001u;
  10468. }
  10469. _impl_.name_.SetAllocated(name, GetArenaForAllocation());
  10470. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10471. if (_impl_.name_.IsDefault())
  10472. {
  10473. _impl_.name_.Set("", GetArenaForAllocation());
  10474. }
  10475. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10476. // @@protoc_insertion_point(field_set_allocated:google.protobuf.DescriptorProto.name)
  10477. }
  10478. // repeated .google.protobuf.FieldDescriptorProto field = 2;
  10479. inline int DescriptorProto::_internal_field_size() const
  10480. {
  10481. return _impl_.field_.size();
  10482. }
  10483. inline int DescriptorProto::field_size() const
  10484. {
  10485. return _internal_field_size();
  10486. }
  10487. inline void DescriptorProto::clear_field()
  10488. {
  10489. _impl_.field_.Clear();
  10490. }
  10491. inline ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* DescriptorProto::mutable_field(int index)
  10492. {
  10493. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.field)
  10494. return _impl_.field_.Mutable(index);
  10495. }
  10496. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto>*
  10497. DescriptorProto::mutable_field()
  10498. {
  10499. // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.field)
  10500. return &_impl_.field_;
  10501. }
  10502. inline const ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto& DescriptorProto::_internal_field(int index) const
  10503. {
  10504. return _impl_.field_.Get(index);
  10505. }
  10506. inline const ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto& DescriptorProto::field(int index) const
  10507. {
  10508. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.field)
  10509. return _internal_field(index);
  10510. }
  10511. inline ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* DescriptorProto::_internal_add_field()
  10512. {
  10513. return _impl_.field_.Add();
  10514. }
  10515. inline ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* DescriptorProto::add_field()
  10516. {
  10517. ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* _add = _internal_add_field();
  10518. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.field)
  10519. return _add;
  10520. }
  10521. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto>&
  10522. DescriptorProto::field() const
  10523. {
  10524. // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.field)
  10525. return _impl_.field_;
  10526. }
  10527. // repeated .google.protobuf.FieldDescriptorProto extension = 6;
  10528. inline int DescriptorProto::_internal_extension_size() const
  10529. {
  10530. return _impl_.extension_.size();
  10531. }
  10532. inline int DescriptorProto::extension_size() const
  10533. {
  10534. return _internal_extension_size();
  10535. }
  10536. inline void DescriptorProto::clear_extension()
  10537. {
  10538. _impl_.extension_.Clear();
  10539. }
  10540. inline ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* DescriptorProto::mutable_extension(int index)
  10541. {
  10542. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.extension)
  10543. return _impl_.extension_.Mutable(index);
  10544. }
  10545. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto>*
  10546. DescriptorProto::mutable_extension()
  10547. {
  10548. // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.extension)
  10549. return &_impl_.extension_;
  10550. }
  10551. inline const ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto& DescriptorProto::_internal_extension(int index) const
  10552. {
  10553. return _impl_.extension_.Get(index);
  10554. }
  10555. inline const ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto& DescriptorProto::extension(int index) const
  10556. {
  10557. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.extension)
  10558. return _internal_extension(index);
  10559. }
  10560. inline ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* DescriptorProto::_internal_add_extension()
  10561. {
  10562. return _impl_.extension_.Add();
  10563. }
  10564. inline ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* DescriptorProto::add_extension()
  10565. {
  10566. ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* _add = _internal_add_extension();
  10567. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.extension)
  10568. return _add;
  10569. }
  10570. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto>&
  10571. DescriptorProto::extension() const
  10572. {
  10573. // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.extension)
  10574. return _impl_.extension_;
  10575. }
  10576. // repeated .google.protobuf.DescriptorProto nested_type = 3;
  10577. inline int DescriptorProto::_internal_nested_type_size() const
  10578. {
  10579. return _impl_.nested_type_.size();
  10580. }
  10581. inline int DescriptorProto::nested_type_size() const
  10582. {
  10583. return _internal_nested_type_size();
  10584. }
  10585. inline void DescriptorProto::clear_nested_type()
  10586. {
  10587. _impl_.nested_type_.Clear();
  10588. }
  10589. inline ::PROTOBUF_NAMESPACE_ID::DescriptorProto* DescriptorProto::mutable_nested_type(int index)
  10590. {
  10591. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.nested_type)
  10592. return _impl_.nested_type_.Mutable(index);
  10593. }
  10594. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::DescriptorProto>*
  10595. DescriptorProto::mutable_nested_type()
  10596. {
  10597. // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.nested_type)
  10598. return &_impl_.nested_type_;
  10599. }
  10600. inline const ::PROTOBUF_NAMESPACE_ID::DescriptorProto& DescriptorProto::_internal_nested_type(int index) const
  10601. {
  10602. return _impl_.nested_type_.Get(index);
  10603. }
  10604. inline const ::PROTOBUF_NAMESPACE_ID::DescriptorProto& DescriptorProto::nested_type(int index) const
  10605. {
  10606. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.nested_type)
  10607. return _internal_nested_type(index);
  10608. }
  10609. inline ::PROTOBUF_NAMESPACE_ID::DescriptorProto* DescriptorProto::_internal_add_nested_type()
  10610. {
  10611. return _impl_.nested_type_.Add();
  10612. }
  10613. inline ::PROTOBUF_NAMESPACE_ID::DescriptorProto* DescriptorProto::add_nested_type()
  10614. {
  10615. ::PROTOBUF_NAMESPACE_ID::DescriptorProto* _add = _internal_add_nested_type();
  10616. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.nested_type)
  10617. return _add;
  10618. }
  10619. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::DescriptorProto>&
  10620. DescriptorProto::nested_type() const
  10621. {
  10622. // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.nested_type)
  10623. return _impl_.nested_type_;
  10624. }
  10625. // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
  10626. inline int DescriptorProto::_internal_enum_type_size() const
  10627. {
  10628. return _impl_.enum_type_.size();
  10629. }
  10630. inline int DescriptorProto::enum_type_size() const
  10631. {
  10632. return _internal_enum_type_size();
  10633. }
  10634. inline void DescriptorProto::clear_enum_type()
  10635. {
  10636. _impl_.enum_type_.Clear();
  10637. }
  10638. inline ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* DescriptorProto::mutable_enum_type(int index)
  10639. {
  10640. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.enum_type)
  10641. return _impl_.enum_type_.Mutable(index);
  10642. }
  10643. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto>*
  10644. DescriptorProto::mutable_enum_type()
  10645. {
  10646. // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.enum_type)
  10647. return &_impl_.enum_type_;
  10648. }
  10649. inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto& DescriptorProto::_internal_enum_type(int index) const
  10650. {
  10651. return _impl_.enum_type_.Get(index);
  10652. }
  10653. inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto& DescriptorProto::enum_type(int index) const
  10654. {
  10655. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.enum_type)
  10656. return _internal_enum_type(index);
  10657. }
  10658. inline ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* DescriptorProto::_internal_add_enum_type()
  10659. {
  10660. return _impl_.enum_type_.Add();
  10661. }
  10662. inline ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* DescriptorProto::add_enum_type()
  10663. {
  10664. ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* _add = _internal_add_enum_type();
  10665. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.enum_type)
  10666. return _add;
  10667. }
  10668. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto>&
  10669. DescriptorProto::enum_type() const
  10670. {
  10671. // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.enum_type)
  10672. return _impl_.enum_type_;
  10673. }
  10674. // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
  10675. inline int DescriptorProto::_internal_extension_range_size() const
  10676. {
  10677. return _impl_.extension_range_.size();
  10678. }
  10679. inline int DescriptorProto::extension_range_size() const
  10680. {
  10681. return _internal_extension_range_size();
  10682. }
  10683. inline void DescriptorProto::clear_extension_range()
  10684. {
  10685. _impl_.extension_range_.Clear();
  10686. }
  10687. inline ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange* DescriptorProto::mutable_extension_range(int index)
  10688. {
  10689. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.extension_range)
  10690. return _impl_.extension_range_.Mutable(index);
  10691. }
  10692. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange>*
  10693. DescriptorProto::mutable_extension_range()
  10694. {
  10695. // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.extension_range)
  10696. return &_impl_.extension_range_;
  10697. }
  10698. inline const ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange& DescriptorProto::_internal_extension_range(int index) const
  10699. {
  10700. return _impl_.extension_range_.Get(index);
  10701. }
  10702. inline const ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange& DescriptorProto::extension_range(int index) const
  10703. {
  10704. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.extension_range)
  10705. return _internal_extension_range(index);
  10706. }
  10707. inline ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange* DescriptorProto::_internal_add_extension_range()
  10708. {
  10709. return _impl_.extension_range_.Add();
  10710. }
  10711. inline ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange* DescriptorProto::add_extension_range()
  10712. {
  10713. ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange* _add = _internal_add_extension_range();
  10714. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.extension_range)
  10715. return _add;
  10716. }
  10717. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange>&
  10718. DescriptorProto::extension_range() const
  10719. {
  10720. // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.extension_range)
  10721. return _impl_.extension_range_;
  10722. }
  10723. // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
  10724. inline int DescriptorProto::_internal_oneof_decl_size() const
  10725. {
  10726. return _impl_.oneof_decl_.size();
  10727. }
  10728. inline int DescriptorProto::oneof_decl_size() const
  10729. {
  10730. return _internal_oneof_decl_size();
  10731. }
  10732. inline void DescriptorProto::clear_oneof_decl()
  10733. {
  10734. _impl_.oneof_decl_.Clear();
  10735. }
  10736. inline ::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto* DescriptorProto::mutable_oneof_decl(int index)
  10737. {
  10738. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.oneof_decl)
  10739. return _impl_.oneof_decl_.Mutable(index);
  10740. }
  10741. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto>*
  10742. DescriptorProto::mutable_oneof_decl()
  10743. {
  10744. // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.oneof_decl)
  10745. return &_impl_.oneof_decl_;
  10746. }
  10747. inline const ::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto& DescriptorProto::_internal_oneof_decl(int index) const
  10748. {
  10749. return _impl_.oneof_decl_.Get(index);
  10750. }
  10751. inline const ::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto& DescriptorProto::oneof_decl(int index) const
  10752. {
  10753. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.oneof_decl)
  10754. return _internal_oneof_decl(index);
  10755. }
  10756. inline ::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto* DescriptorProto::_internal_add_oneof_decl()
  10757. {
  10758. return _impl_.oneof_decl_.Add();
  10759. }
  10760. inline ::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto* DescriptorProto::add_oneof_decl()
  10761. {
  10762. ::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto* _add = _internal_add_oneof_decl();
  10763. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.oneof_decl)
  10764. return _add;
  10765. }
  10766. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto>&
  10767. DescriptorProto::oneof_decl() const
  10768. {
  10769. // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.oneof_decl)
  10770. return _impl_.oneof_decl_;
  10771. }
  10772. // optional .google.protobuf.MessageOptions options = 7;
  10773. inline bool DescriptorProto::_internal_has_options() const
  10774. {
  10775. bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
  10776. PROTOBUF_ASSUME(!value || _impl_.options_ != nullptr);
  10777. return value;
  10778. }
  10779. inline bool DescriptorProto::has_options() const
  10780. {
  10781. return _internal_has_options();
  10782. }
  10783. inline void DescriptorProto::clear_options()
  10784. {
  10785. if (_impl_.options_ != nullptr)
  10786. _impl_.options_->Clear();
  10787. _impl_._has_bits_[0] &= ~0x00000002u;
  10788. }
  10789. inline const ::PROTOBUF_NAMESPACE_ID::MessageOptions& DescriptorProto::_internal_options() const
  10790. {
  10791. const ::PROTOBUF_NAMESPACE_ID::MessageOptions* p = _impl_.options_;
  10792. return p != nullptr ? *p : reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::MessageOptions&>(::PROTOBUF_NAMESPACE_ID::_MessageOptions_default_instance_);
  10793. }
  10794. inline const ::PROTOBUF_NAMESPACE_ID::MessageOptions& DescriptorProto::options() const
  10795. {
  10796. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.options)
  10797. return _internal_options();
  10798. }
  10799. inline void DescriptorProto::unsafe_arena_set_allocated_options(
  10800. ::PROTOBUF_NAMESPACE_ID::MessageOptions* options
  10801. )
  10802. {
  10803. if (GetArenaForAllocation() == nullptr)
  10804. {
  10805. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.options_);
  10806. }
  10807. _impl_.options_ = options;
  10808. if (options)
  10809. {
  10810. _impl_._has_bits_[0] |= 0x00000002u;
  10811. }
  10812. else
  10813. {
  10814. _impl_._has_bits_[0] &= ~0x00000002u;
  10815. }
  10816. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.DescriptorProto.options)
  10817. }
  10818. inline ::PROTOBUF_NAMESPACE_ID::MessageOptions* DescriptorProto::release_options()
  10819. {
  10820. _impl_._has_bits_[0] &= ~0x00000002u;
  10821. ::PROTOBUF_NAMESPACE_ID::MessageOptions* temp = _impl_.options_;
  10822. _impl_.options_ = nullptr;
  10823. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  10824. auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
  10825. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  10826. if (GetArenaForAllocation() == nullptr)
  10827. {
  10828. delete old;
  10829. }
  10830. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  10831. if (GetArenaForAllocation() != nullptr)
  10832. {
  10833. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  10834. }
  10835. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  10836. return temp;
  10837. }
  10838. inline ::PROTOBUF_NAMESPACE_ID::MessageOptions* DescriptorProto::unsafe_arena_release_options()
  10839. {
  10840. // @@protoc_insertion_point(field_release:google.protobuf.DescriptorProto.options)
  10841. _impl_._has_bits_[0] &= ~0x00000002u;
  10842. ::PROTOBUF_NAMESPACE_ID::MessageOptions* temp = _impl_.options_;
  10843. _impl_.options_ = nullptr;
  10844. return temp;
  10845. }
  10846. inline ::PROTOBUF_NAMESPACE_ID::MessageOptions* DescriptorProto::_internal_mutable_options()
  10847. {
  10848. _impl_._has_bits_[0] |= 0x00000002u;
  10849. if (_impl_.options_ == nullptr)
  10850. {
  10851. auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::MessageOptions>(GetArenaForAllocation());
  10852. _impl_.options_ = p;
  10853. }
  10854. return _impl_.options_;
  10855. }
  10856. inline ::PROTOBUF_NAMESPACE_ID::MessageOptions* DescriptorProto::mutable_options()
  10857. {
  10858. ::PROTOBUF_NAMESPACE_ID::MessageOptions* _msg = _internal_mutable_options();
  10859. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.options)
  10860. return _msg;
  10861. }
  10862. inline void DescriptorProto::set_allocated_options(::PROTOBUF_NAMESPACE_ID::MessageOptions* options)
  10863. {
  10864. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  10865. if (message_arena == nullptr)
  10866. {
  10867. delete _impl_.options_;
  10868. }
  10869. if (options)
  10870. {
  10871. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  10872. ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(options);
  10873. if (message_arena != submessage_arena)
  10874. {
  10875. options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  10876. message_arena, options, submessage_arena
  10877. );
  10878. }
  10879. _impl_._has_bits_[0] |= 0x00000002u;
  10880. }
  10881. else
  10882. {
  10883. _impl_._has_bits_[0] &= ~0x00000002u;
  10884. }
  10885. _impl_.options_ = options;
  10886. // @@protoc_insertion_point(field_set_allocated:google.protobuf.DescriptorProto.options)
  10887. }
  10888. // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
  10889. inline int DescriptorProto::_internal_reserved_range_size() const
  10890. {
  10891. return _impl_.reserved_range_.size();
  10892. }
  10893. inline int DescriptorProto::reserved_range_size() const
  10894. {
  10895. return _internal_reserved_range_size();
  10896. }
  10897. inline void DescriptorProto::clear_reserved_range()
  10898. {
  10899. _impl_.reserved_range_.Clear();
  10900. }
  10901. inline ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange* DescriptorProto::mutable_reserved_range(int index)
  10902. {
  10903. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.reserved_range)
  10904. return _impl_.reserved_range_.Mutable(index);
  10905. }
  10906. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange>*
  10907. DescriptorProto::mutable_reserved_range()
  10908. {
  10909. // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.reserved_range)
  10910. return &_impl_.reserved_range_;
  10911. }
  10912. inline const ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange& DescriptorProto::_internal_reserved_range(int index) const
  10913. {
  10914. return _impl_.reserved_range_.Get(index);
  10915. }
  10916. inline const ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange& DescriptorProto::reserved_range(int index) const
  10917. {
  10918. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.reserved_range)
  10919. return _internal_reserved_range(index);
  10920. }
  10921. inline ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange* DescriptorProto::_internal_add_reserved_range()
  10922. {
  10923. return _impl_.reserved_range_.Add();
  10924. }
  10925. inline ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange* DescriptorProto::add_reserved_range()
  10926. {
  10927. ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange* _add = _internal_add_reserved_range();
  10928. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.reserved_range)
  10929. return _add;
  10930. }
  10931. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange>&
  10932. DescriptorProto::reserved_range() const
  10933. {
  10934. // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.reserved_range)
  10935. return _impl_.reserved_range_;
  10936. }
  10937. // repeated string reserved_name = 10;
  10938. inline int DescriptorProto::_internal_reserved_name_size() const
  10939. {
  10940. return _impl_.reserved_name_.size();
  10941. }
  10942. inline int DescriptorProto::reserved_name_size() const
  10943. {
  10944. return _internal_reserved_name_size();
  10945. }
  10946. inline void DescriptorProto::clear_reserved_name()
  10947. {
  10948. _impl_.reserved_name_.Clear();
  10949. }
  10950. inline std::string* DescriptorProto::add_reserved_name()
  10951. {
  10952. std::string* _s = _internal_add_reserved_name();
  10953. // @@protoc_insertion_point(field_add_mutable:google.protobuf.DescriptorProto.reserved_name)
  10954. return _s;
  10955. }
  10956. inline const std::string& DescriptorProto::_internal_reserved_name(int index) const
  10957. {
  10958. return _impl_.reserved_name_.Get(index);
  10959. }
  10960. inline const std::string& DescriptorProto::reserved_name(int index) const
  10961. {
  10962. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.reserved_name)
  10963. return _internal_reserved_name(index);
  10964. }
  10965. inline std::string* DescriptorProto::mutable_reserved_name(int index)
  10966. {
  10967. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.reserved_name)
  10968. return _impl_.reserved_name_.Mutable(index);
  10969. }
  10970. inline void DescriptorProto::set_reserved_name(int index, const std::string& value)
  10971. {
  10972. _impl_.reserved_name_.Mutable(index)->assign(value);
  10973. // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.reserved_name)
  10974. }
  10975. inline void DescriptorProto::set_reserved_name(int index, std::string&& value)
  10976. {
  10977. _impl_.reserved_name_.Mutable(index)->assign(std::move(value));
  10978. // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.reserved_name)
  10979. }
  10980. inline void DescriptorProto::set_reserved_name(int index, const char* value)
  10981. {
  10982. GOOGLE_DCHECK(value != nullptr);
  10983. _impl_.reserved_name_.Mutable(index)->assign(value);
  10984. // @@protoc_insertion_point(field_set_char:google.protobuf.DescriptorProto.reserved_name)
  10985. }
  10986. inline void DescriptorProto::set_reserved_name(int index, const char* value, size_t size)
  10987. {
  10988. _impl_.reserved_name_.Mutable(index)->assign(
  10989. reinterpret_cast<const char*>(value), size
  10990. );
  10991. // @@protoc_insertion_point(field_set_pointer:google.protobuf.DescriptorProto.reserved_name)
  10992. }
  10993. inline std::string* DescriptorProto::_internal_add_reserved_name()
  10994. {
  10995. return _impl_.reserved_name_.Add();
  10996. }
  10997. inline void DescriptorProto::add_reserved_name(const std::string& value)
  10998. {
  10999. _impl_.reserved_name_.Add()->assign(value);
  11000. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.reserved_name)
  11001. }
  11002. inline void DescriptorProto::add_reserved_name(std::string&& value)
  11003. {
  11004. _impl_.reserved_name_.Add(std::move(value));
  11005. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.reserved_name)
  11006. }
  11007. inline void DescriptorProto::add_reserved_name(const char* value)
  11008. {
  11009. GOOGLE_DCHECK(value != nullptr);
  11010. _impl_.reserved_name_.Add()->assign(value);
  11011. // @@protoc_insertion_point(field_add_char:google.protobuf.DescriptorProto.reserved_name)
  11012. }
  11013. inline void DescriptorProto::add_reserved_name(const char* value, size_t size)
  11014. {
  11015. _impl_.reserved_name_.Add()->assign(reinterpret_cast<const char*>(value), size);
  11016. // @@protoc_insertion_point(field_add_pointer:google.protobuf.DescriptorProto.reserved_name)
  11017. }
  11018. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
  11019. DescriptorProto::reserved_name() const
  11020. {
  11021. // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.reserved_name)
  11022. return _impl_.reserved_name_;
  11023. }
  11024. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
  11025. DescriptorProto::mutable_reserved_name()
  11026. {
  11027. // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.reserved_name)
  11028. return &_impl_.reserved_name_;
  11029. }
  11030. // -------------------------------------------------------------------
  11031. // ExtensionRangeOptions
  11032. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  11033. inline int ExtensionRangeOptions::_internal_uninterpreted_option_size() const
  11034. {
  11035. return _impl_.uninterpreted_option_.size();
  11036. }
  11037. inline int ExtensionRangeOptions::uninterpreted_option_size() const
  11038. {
  11039. return _internal_uninterpreted_option_size();
  11040. }
  11041. inline void ExtensionRangeOptions::clear_uninterpreted_option()
  11042. {
  11043. _impl_.uninterpreted_option_.Clear();
  11044. }
  11045. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* ExtensionRangeOptions::mutable_uninterpreted_option(int index)
  11046. {
  11047. // @@protoc_insertion_point(field_mutable:google.protobuf.ExtensionRangeOptions.uninterpreted_option)
  11048. return _impl_.uninterpreted_option_.Mutable(index);
  11049. }
  11050. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::UninterpretedOption>*
  11051. ExtensionRangeOptions::mutable_uninterpreted_option()
  11052. {
  11053. // @@protoc_insertion_point(field_mutable_list:google.protobuf.ExtensionRangeOptions.uninterpreted_option)
  11054. return &_impl_.uninterpreted_option_;
  11055. }
  11056. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& ExtensionRangeOptions::_internal_uninterpreted_option(int index) const
  11057. {
  11058. return _impl_.uninterpreted_option_.Get(index);
  11059. }
  11060. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& ExtensionRangeOptions::uninterpreted_option(int index) const
  11061. {
  11062. // @@protoc_insertion_point(field_get:google.protobuf.ExtensionRangeOptions.uninterpreted_option)
  11063. return _internal_uninterpreted_option(index);
  11064. }
  11065. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* ExtensionRangeOptions::_internal_add_uninterpreted_option()
  11066. {
  11067. return _impl_.uninterpreted_option_.Add();
  11068. }
  11069. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* ExtensionRangeOptions::add_uninterpreted_option()
  11070. {
  11071. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* _add = _internal_add_uninterpreted_option();
  11072. // @@protoc_insertion_point(field_add:google.protobuf.ExtensionRangeOptions.uninterpreted_option)
  11073. return _add;
  11074. }
  11075. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::UninterpretedOption>&
  11076. ExtensionRangeOptions::uninterpreted_option() const
  11077. {
  11078. // @@protoc_insertion_point(field_list:google.protobuf.ExtensionRangeOptions.uninterpreted_option)
  11079. return _impl_.uninterpreted_option_;
  11080. }
  11081. // -------------------------------------------------------------------
  11082. // FieldDescriptorProto
  11083. // optional string name = 1;
  11084. inline bool FieldDescriptorProto::_internal_has_name() const
  11085. {
  11086. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  11087. return value;
  11088. }
  11089. inline bool FieldDescriptorProto::has_name() const
  11090. {
  11091. return _internal_has_name();
  11092. }
  11093. inline void FieldDescriptorProto::clear_name()
  11094. {
  11095. _impl_.name_.ClearToEmpty();
  11096. _impl_._has_bits_[0] &= ~0x00000001u;
  11097. }
  11098. inline const std::string& FieldDescriptorProto::name() const
  11099. {
  11100. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.name)
  11101. return _internal_name();
  11102. }
  11103. template<typename ArgT0, typename... ArgT>
  11104. inline PROTOBUF_ALWAYS_INLINE void FieldDescriptorProto::set_name(ArgT0&& arg0, ArgT... args)
  11105. {
  11106. _impl_._has_bits_[0] |= 0x00000001u;
  11107. _impl_.name_.Set(static_cast<ArgT0&&>(arg0), args..., GetArenaForAllocation());
  11108. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.name)
  11109. }
  11110. inline std::string* FieldDescriptorProto::mutable_name()
  11111. {
  11112. std::string* _s = _internal_mutable_name();
  11113. // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.name)
  11114. return _s;
  11115. }
  11116. inline const std::string& FieldDescriptorProto::_internal_name() const
  11117. {
  11118. return _impl_.name_.Get();
  11119. }
  11120. inline void FieldDescriptorProto::_internal_set_name(const std::string& value)
  11121. {
  11122. _impl_._has_bits_[0] |= 0x00000001u;
  11123. _impl_.name_.Set(value, GetArenaForAllocation());
  11124. }
  11125. inline std::string* FieldDescriptorProto::_internal_mutable_name()
  11126. {
  11127. _impl_._has_bits_[0] |= 0x00000001u;
  11128. return _impl_.name_.Mutable(GetArenaForAllocation());
  11129. }
  11130. inline std::string* FieldDescriptorProto::release_name()
  11131. {
  11132. // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto.name)
  11133. if (!_internal_has_name())
  11134. {
  11135. return nullptr;
  11136. }
  11137. _impl_._has_bits_[0] &= ~0x00000001u;
  11138. auto* p = _impl_.name_.Release();
  11139. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11140. if (_impl_.name_.IsDefault())
  11141. {
  11142. _impl_.name_.Set("", GetArenaForAllocation());
  11143. }
  11144. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11145. return p;
  11146. }
  11147. inline void FieldDescriptorProto::set_allocated_name(std::string* name)
  11148. {
  11149. if (name != nullptr)
  11150. {
  11151. _impl_._has_bits_[0] |= 0x00000001u;
  11152. }
  11153. else
  11154. {
  11155. _impl_._has_bits_[0] &= ~0x00000001u;
  11156. }
  11157. _impl_.name_.SetAllocated(name, GetArenaForAllocation());
  11158. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11159. if (_impl_.name_.IsDefault())
  11160. {
  11161. _impl_.name_.Set("", GetArenaForAllocation());
  11162. }
  11163. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11164. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.name)
  11165. }
  11166. // optional int32 number = 3;
  11167. inline bool FieldDescriptorProto::_internal_has_number() const
  11168. {
  11169. bool value = (_impl_._has_bits_[0] & 0x00000040u) != 0;
  11170. return value;
  11171. }
  11172. inline bool FieldDescriptorProto::has_number() const
  11173. {
  11174. return _internal_has_number();
  11175. }
  11176. inline void FieldDescriptorProto::clear_number()
  11177. {
  11178. _impl_.number_ = 0;
  11179. _impl_._has_bits_[0] &= ~0x00000040u;
  11180. }
  11181. inline int32_t FieldDescriptorProto::_internal_number() const
  11182. {
  11183. return _impl_.number_;
  11184. }
  11185. inline int32_t FieldDescriptorProto::number() const
  11186. {
  11187. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.number)
  11188. return _internal_number();
  11189. }
  11190. inline void FieldDescriptorProto::_internal_set_number(int32_t value)
  11191. {
  11192. _impl_._has_bits_[0] |= 0x00000040u;
  11193. _impl_.number_ = value;
  11194. }
  11195. inline void FieldDescriptorProto::set_number(int32_t value)
  11196. {
  11197. _internal_set_number(value);
  11198. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.number)
  11199. }
  11200. // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
  11201. inline bool FieldDescriptorProto::_internal_has_label() const
  11202. {
  11203. bool value = (_impl_._has_bits_[0] & 0x00000200u) != 0;
  11204. return value;
  11205. }
  11206. inline bool FieldDescriptorProto::has_label() const
  11207. {
  11208. return _internal_has_label();
  11209. }
  11210. inline void FieldDescriptorProto::clear_label()
  11211. {
  11212. _impl_.label_ = 1;
  11213. _impl_._has_bits_[0] &= ~0x00000200u;
  11214. }
  11215. inline ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Label FieldDescriptorProto::_internal_label() const
  11216. {
  11217. return static_cast<::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Label>(_impl_.label_);
  11218. }
  11219. inline ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Label FieldDescriptorProto::label() const
  11220. {
  11221. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.label)
  11222. return _internal_label();
  11223. }
  11224. inline void FieldDescriptorProto::_internal_set_label(::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Label value)
  11225. {
  11226. assert(::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Label_IsValid(value));
  11227. _impl_._has_bits_[0] |= 0x00000200u;
  11228. _impl_.label_ = value;
  11229. }
  11230. inline void FieldDescriptorProto::set_label(::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Label value)
  11231. {
  11232. _internal_set_label(value);
  11233. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.label)
  11234. }
  11235. // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
  11236. inline bool FieldDescriptorProto::_internal_has_type() const
  11237. {
  11238. bool value = (_impl_._has_bits_[0] & 0x00000400u) != 0;
  11239. return value;
  11240. }
  11241. inline bool FieldDescriptorProto::has_type() const
  11242. {
  11243. return _internal_has_type();
  11244. }
  11245. inline void FieldDescriptorProto::clear_type()
  11246. {
  11247. _impl_.type_ = 1;
  11248. _impl_._has_bits_[0] &= ~0x00000400u;
  11249. }
  11250. inline ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Type FieldDescriptorProto::_internal_type() const
  11251. {
  11252. return static_cast<::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Type>(_impl_.type_);
  11253. }
  11254. inline ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Type FieldDescriptorProto::type() const
  11255. {
  11256. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.type)
  11257. return _internal_type();
  11258. }
  11259. inline void FieldDescriptorProto::_internal_set_type(::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Type value)
  11260. {
  11261. assert(::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Type_IsValid(value));
  11262. _impl_._has_bits_[0] |= 0x00000400u;
  11263. _impl_.type_ = value;
  11264. }
  11265. inline void FieldDescriptorProto::set_type(::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Type value)
  11266. {
  11267. _internal_set_type(value);
  11268. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.type)
  11269. }
  11270. // optional string type_name = 6;
  11271. inline bool FieldDescriptorProto::_internal_has_type_name() const
  11272. {
  11273. bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
  11274. return value;
  11275. }
  11276. inline bool FieldDescriptorProto::has_type_name() const
  11277. {
  11278. return _internal_has_type_name();
  11279. }
  11280. inline void FieldDescriptorProto::clear_type_name()
  11281. {
  11282. _impl_.type_name_.ClearToEmpty();
  11283. _impl_._has_bits_[0] &= ~0x00000004u;
  11284. }
  11285. inline const std::string& FieldDescriptorProto::type_name() const
  11286. {
  11287. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.type_name)
  11288. return _internal_type_name();
  11289. }
  11290. template<typename ArgT0, typename... ArgT>
  11291. inline PROTOBUF_ALWAYS_INLINE void FieldDescriptorProto::set_type_name(ArgT0&& arg0, ArgT... args)
  11292. {
  11293. _impl_._has_bits_[0] |= 0x00000004u;
  11294. _impl_.type_name_.Set(static_cast<ArgT0&&>(arg0), args..., GetArenaForAllocation());
  11295. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.type_name)
  11296. }
  11297. inline std::string* FieldDescriptorProto::mutable_type_name()
  11298. {
  11299. std::string* _s = _internal_mutable_type_name();
  11300. // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.type_name)
  11301. return _s;
  11302. }
  11303. inline const std::string& FieldDescriptorProto::_internal_type_name() const
  11304. {
  11305. return _impl_.type_name_.Get();
  11306. }
  11307. inline void FieldDescriptorProto::_internal_set_type_name(const std::string& value)
  11308. {
  11309. _impl_._has_bits_[0] |= 0x00000004u;
  11310. _impl_.type_name_.Set(value, GetArenaForAllocation());
  11311. }
  11312. inline std::string* FieldDescriptorProto::_internal_mutable_type_name()
  11313. {
  11314. _impl_._has_bits_[0] |= 0x00000004u;
  11315. return _impl_.type_name_.Mutable(GetArenaForAllocation());
  11316. }
  11317. inline std::string* FieldDescriptorProto::release_type_name()
  11318. {
  11319. // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto.type_name)
  11320. if (!_internal_has_type_name())
  11321. {
  11322. return nullptr;
  11323. }
  11324. _impl_._has_bits_[0] &= ~0x00000004u;
  11325. auto* p = _impl_.type_name_.Release();
  11326. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11327. if (_impl_.type_name_.IsDefault())
  11328. {
  11329. _impl_.type_name_.Set("", GetArenaForAllocation());
  11330. }
  11331. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11332. return p;
  11333. }
  11334. inline void FieldDescriptorProto::set_allocated_type_name(std::string* type_name)
  11335. {
  11336. if (type_name != nullptr)
  11337. {
  11338. _impl_._has_bits_[0] |= 0x00000004u;
  11339. }
  11340. else
  11341. {
  11342. _impl_._has_bits_[0] &= ~0x00000004u;
  11343. }
  11344. _impl_.type_name_.SetAllocated(type_name, GetArenaForAllocation());
  11345. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11346. if (_impl_.type_name_.IsDefault())
  11347. {
  11348. _impl_.type_name_.Set("", GetArenaForAllocation());
  11349. }
  11350. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11351. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.type_name)
  11352. }
  11353. // optional string extendee = 2;
  11354. inline bool FieldDescriptorProto::_internal_has_extendee() const
  11355. {
  11356. bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
  11357. return value;
  11358. }
  11359. inline bool FieldDescriptorProto::has_extendee() const
  11360. {
  11361. return _internal_has_extendee();
  11362. }
  11363. inline void FieldDescriptorProto::clear_extendee()
  11364. {
  11365. _impl_.extendee_.ClearToEmpty();
  11366. _impl_._has_bits_[0] &= ~0x00000002u;
  11367. }
  11368. inline const std::string& FieldDescriptorProto::extendee() const
  11369. {
  11370. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.extendee)
  11371. return _internal_extendee();
  11372. }
  11373. template<typename ArgT0, typename... ArgT>
  11374. inline PROTOBUF_ALWAYS_INLINE void FieldDescriptorProto::set_extendee(ArgT0&& arg0, ArgT... args)
  11375. {
  11376. _impl_._has_bits_[0] |= 0x00000002u;
  11377. _impl_.extendee_.Set(static_cast<ArgT0&&>(arg0), args..., GetArenaForAllocation());
  11378. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.extendee)
  11379. }
  11380. inline std::string* FieldDescriptorProto::mutable_extendee()
  11381. {
  11382. std::string* _s = _internal_mutable_extendee();
  11383. // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.extendee)
  11384. return _s;
  11385. }
  11386. inline const std::string& FieldDescriptorProto::_internal_extendee() const
  11387. {
  11388. return _impl_.extendee_.Get();
  11389. }
  11390. inline void FieldDescriptorProto::_internal_set_extendee(const std::string& value)
  11391. {
  11392. _impl_._has_bits_[0] |= 0x00000002u;
  11393. _impl_.extendee_.Set(value, GetArenaForAllocation());
  11394. }
  11395. inline std::string* FieldDescriptorProto::_internal_mutable_extendee()
  11396. {
  11397. _impl_._has_bits_[0] |= 0x00000002u;
  11398. return _impl_.extendee_.Mutable(GetArenaForAllocation());
  11399. }
  11400. inline std::string* FieldDescriptorProto::release_extendee()
  11401. {
  11402. // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto.extendee)
  11403. if (!_internal_has_extendee())
  11404. {
  11405. return nullptr;
  11406. }
  11407. _impl_._has_bits_[0] &= ~0x00000002u;
  11408. auto* p = _impl_.extendee_.Release();
  11409. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11410. if (_impl_.extendee_.IsDefault())
  11411. {
  11412. _impl_.extendee_.Set("", GetArenaForAllocation());
  11413. }
  11414. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11415. return p;
  11416. }
  11417. inline void FieldDescriptorProto::set_allocated_extendee(std::string* extendee)
  11418. {
  11419. if (extendee != nullptr)
  11420. {
  11421. _impl_._has_bits_[0] |= 0x00000002u;
  11422. }
  11423. else
  11424. {
  11425. _impl_._has_bits_[0] &= ~0x00000002u;
  11426. }
  11427. _impl_.extendee_.SetAllocated(extendee, GetArenaForAllocation());
  11428. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11429. if (_impl_.extendee_.IsDefault())
  11430. {
  11431. _impl_.extendee_.Set("", GetArenaForAllocation());
  11432. }
  11433. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11434. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.extendee)
  11435. }
  11436. // optional string default_value = 7;
  11437. inline bool FieldDescriptorProto::_internal_has_default_value() const
  11438. {
  11439. bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
  11440. return value;
  11441. }
  11442. inline bool FieldDescriptorProto::has_default_value() const
  11443. {
  11444. return _internal_has_default_value();
  11445. }
  11446. inline void FieldDescriptorProto::clear_default_value()
  11447. {
  11448. _impl_.default_value_.ClearToEmpty();
  11449. _impl_._has_bits_[0] &= ~0x00000008u;
  11450. }
  11451. inline const std::string& FieldDescriptorProto::default_value() const
  11452. {
  11453. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.default_value)
  11454. return _internal_default_value();
  11455. }
  11456. template<typename ArgT0, typename... ArgT>
  11457. inline PROTOBUF_ALWAYS_INLINE void FieldDescriptorProto::set_default_value(ArgT0&& arg0, ArgT... args)
  11458. {
  11459. _impl_._has_bits_[0] |= 0x00000008u;
  11460. _impl_.default_value_.Set(static_cast<ArgT0&&>(arg0), args..., GetArenaForAllocation());
  11461. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.default_value)
  11462. }
  11463. inline std::string* FieldDescriptorProto::mutable_default_value()
  11464. {
  11465. std::string* _s = _internal_mutable_default_value();
  11466. // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.default_value)
  11467. return _s;
  11468. }
  11469. inline const std::string& FieldDescriptorProto::_internal_default_value() const
  11470. {
  11471. return _impl_.default_value_.Get();
  11472. }
  11473. inline void FieldDescriptorProto::_internal_set_default_value(const std::string& value)
  11474. {
  11475. _impl_._has_bits_[0] |= 0x00000008u;
  11476. _impl_.default_value_.Set(value, GetArenaForAllocation());
  11477. }
  11478. inline std::string* FieldDescriptorProto::_internal_mutable_default_value()
  11479. {
  11480. _impl_._has_bits_[0] |= 0x00000008u;
  11481. return _impl_.default_value_.Mutable(GetArenaForAllocation());
  11482. }
  11483. inline std::string* FieldDescriptorProto::release_default_value()
  11484. {
  11485. // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto.default_value)
  11486. if (!_internal_has_default_value())
  11487. {
  11488. return nullptr;
  11489. }
  11490. _impl_._has_bits_[0] &= ~0x00000008u;
  11491. auto* p = _impl_.default_value_.Release();
  11492. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11493. if (_impl_.default_value_.IsDefault())
  11494. {
  11495. _impl_.default_value_.Set("", GetArenaForAllocation());
  11496. }
  11497. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11498. return p;
  11499. }
  11500. inline void FieldDescriptorProto::set_allocated_default_value(std::string* default_value)
  11501. {
  11502. if (default_value != nullptr)
  11503. {
  11504. _impl_._has_bits_[0] |= 0x00000008u;
  11505. }
  11506. else
  11507. {
  11508. _impl_._has_bits_[0] &= ~0x00000008u;
  11509. }
  11510. _impl_.default_value_.SetAllocated(default_value, GetArenaForAllocation());
  11511. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11512. if (_impl_.default_value_.IsDefault())
  11513. {
  11514. _impl_.default_value_.Set("", GetArenaForAllocation());
  11515. }
  11516. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11517. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.default_value)
  11518. }
  11519. // optional int32 oneof_index = 9;
  11520. inline bool FieldDescriptorProto::_internal_has_oneof_index() const
  11521. {
  11522. bool value = (_impl_._has_bits_[0] & 0x00000080u) != 0;
  11523. return value;
  11524. }
  11525. inline bool FieldDescriptorProto::has_oneof_index() const
  11526. {
  11527. return _internal_has_oneof_index();
  11528. }
  11529. inline void FieldDescriptorProto::clear_oneof_index()
  11530. {
  11531. _impl_.oneof_index_ = 0;
  11532. _impl_._has_bits_[0] &= ~0x00000080u;
  11533. }
  11534. inline int32_t FieldDescriptorProto::_internal_oneof_index() const
  11535. {
  11536. return _impl_.oneof_index_;
  11537. }
  11538. inline int32_t FieldDescriptorProto::oneof_index() const
  11539. {
  11540. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.oneof_index)
  11541. return _internal_oneof_index();
  11542. }
  11543. inline void FieldDescriptorProto::_internal_set_oneof_index(int32_t value)
  11544. {
  11545. _impl_._has_bits_[0] |= 0x00000080u;
  11546. _impl_.oneof_index_ = value;
  11547. }
  11548. inline void FieldDescriptorProto::set_oneof_index(int32_t value)
  11549. {
  11550. _internal_set_oneof_index(value);
  11551. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.oneof_index)
  11552. }
  11553. // optional string json_name = 10;
  11554. inline bool FieldDescriptorProto::_internal_has_json_name() const
  11555. {
  11556. bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
  11557. return value;
  11558. }
  11559. inline bool FieldDescriptorProto::has_json_name() const
  11560. {
  11561. return _internal_has_json_name();
  11562. }
  11563. inline void FieldDescriptorProto::clear_json_name()
  11564. {
  11565. _impl_.json_name_.ClearToEmpty();
  11566. _impl_._has_bits_[0] &= ~0x00000010u;
  11567. }
  11568. inline const std::string& FieldDescriptorProto::json_name() const
  11569. {
  11570. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.json_name)
  11571. return _internal_json_name();
  11572. }
  11573. template<typename ArgT0, typename... ArgT>
  11574. inline PROTOBUF_ALWAYS_INLINE void FieldDescriptorProto::set_json_name(ArgT0&& arg0, ArgT... args)
  11575. {
  11576. _impl_._has_bits_[0] |= 0x00000010u;
  11577. _impl_.json_name_.Set(static_cast<ArgT0&&>(arg0), args..., GetArenaForAllocation());
  11578. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.json_name)
  11579. }
  11580. inline std::string* FieldDescriptorProto::mutable_json_name()
  11581. {
  11582. std::string* _s = _internal_mutable_json_name();
  11583. // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.json_name)
  11584. return _s;
  11585. }
  11586. inline const std::string& FieldDescriptorProto::_internal_json_name() const
  11587. {
  11588. return _impl_.json_name_.Get();
  11589. }
  11590. inline void FieldDescriptorProto::_internal_set_json_name(const std::string& value)
  11591. {
  11592. _impl_._has_bits_[0] |= 0x00000010u;
  11593. _impl_.json_name_.Set(value, GetArenaForAllocation());
  11594. }
  11595. inline std::string* FieldDescriptorProto::_internal_mutable_json_name()
  11596. {
  11597. _impl_._has_bits_[0] |= 0x00000010u;
  11598. return _impl_.json_name_.Mutable(GetArenaForAllocation());
  11599. }
  11600. inline std::string* FieldDescriptorProto::release_json_name()
  11601. {
  11602. // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto.json_name)
  11603. if (!_internal_has_json_name())
  11604. {
  11605. return nullptr;
  11606. }
  11607. _impl_._has_bits_[0] &= ~0x00000010u;
  11608. auto* p = _impl_.json_name_.Release();
  11609. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11610. if (_impl_.json_name_.IsDefault())
  11611. {
  11612. _impl_.json_name_.Set("", GetArenaForAllocation());
  11613. }
  11614. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11615. return p;
  11616. }
  11617. inline void FieldDescriptorProto::set_allocated_json_name(std::string* json_name)
  11618. {
  11619. if (json_name != nullptr)
  11620. {
  11621. _impl_._has_bits_[0] |= 0x00000010u;
  11622. }
  11623. else
  11624. {
  11625. _impl_._has_bits_[0] &= ~0x00000010u;
  11626. }
  11627. _impl_.json_name_.SetAllocated(json_name, GetArenaForAllocation());
  11628. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11629. if (_impl_.json_name_.IsDefault())
  11630. {
  11631. _impl_.json_name_.Set("", GetArenaForAllocation());
  11632. }
  11633. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11634. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.json_name)
  11635. }
  11636. // optional .google.protobuf.FieldOptions options = 8;
  11637. inline bool FieldDescriptorProto::_internal_has_options() const
  11638. {
  11639. bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0;
  11640. PROTOBUF_ASSUME(!value || _impl_.options_ != nullptr);
  11641. return value;
  11642. }
  11643. inline bool FieldDescriptorProto::has_options() const
  11644. {
  11645. return _internal_has_options();
  11646. }
  11647. inline void FieldDescriptorProto::clear_options()
  11648. {
  11649. if (_impl_.options_ != nullptr)
  11650. _impl_.options_->Clear();
  11651. _impl_._has_bits_[0] &= ~0x00000020u;
  11652. }
  11653. inline const ::PROTOBUF_NAMESPACE_ID::FieldOptions& FieldDescriptorProto::_internal_options() const
  11654. {
  11655. const ::PROTOBUF_NAMESPACE_ID::FieldOptions* p = _impl_.options_;
  11656. return p != nullptr ? *p : reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::FieldOptions&>(::PROTOBUF_NAMESPACE_ID::_FieldOptions_default_instance_);
  11657. }
  11658. inline const ::PROTOBUF_NAMESPACE_ID::FieldOptions& FieldDescriptorProto::options() const
  11659. {
  11660. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.options)
  11661. return _internal_options();
  11662. }
  11663. inline void FieldDescriptorProto::unsafe_arena_set_allocated_options(
  11664. ::PROTOBUF_NAMESPACE_ID::FieldOptions* options
  11665. )
  11666. {
  11667. if (GetArenaForAllocation() == nullptr)
  11668. {
  11669. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.options_);
  11670. }
  11671. _impl_.options_ = options;
  11672. if (options)
  11673. {
  11674. _impl_._has_bits_[0] |= 0x00000020u;
  11675. }
  11676. else
  11677. {
  11678. _impl_._has_bits_[0] &= ~0x00000020u;
  11679. }
  11680. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FieldDescriptorProto.options)
  11681. }
  11682. inline ::PROTOBUF_NAMESPACE_ID::FieldOptions* FieldDescriptorProto::release_options()
  11683. {
  11684. _impl_._has_bits_[0] &= ~0x00000020u;
  11685. ::PROTOBUF_NAMESPACE_ID::FieldOptions* temp = _impl_.options_;
  11686. _impl_.options_ = nullptr;
  11687. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  11688. auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
  11689. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  11690. if (GetArenaForAllocation() == nullptr)
  11691. {
  11692. delete old;
  11693. }
  11694. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  11695. if (GetArenaForAllocation() != nullptr)
  11696. {
  11697. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  11698. }
  11699. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  11700. return temp;
  11701. }
  11702. inline ::PROTOBUF_NAMESPACE_ID::FieldOptions* FieldDescriptorProto::unsafe_arena_release_options()
  11703. {
  11704. // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto.options)
  11705. _impl_._has_bits_[0] &= ~0x00000020u;
  11706. ::PROTOBUF_NAMESPACE_ID::FieldOptions* temp = _impl_.options_;
  11707. _impl_.options_ = nullptr;
  11708. return temp;
  11709. }
  11710. inline ::PROTOBUF_NAMESPACE_ID::FieldOptions* FieldDescriptorProto::_internal_mutable_options()
  11711. {
  11712. _impl_._has_bits_[0] |= 0x00000020u;
  11713. if (_impl_.options_ == nullptr)
  11714. {
  11715. auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::FieldOptions>(GetArenaForAllocation());
  11716. _impl_.options_ = p;
  11717. }
  11718. return _impl_.options_;
  11719. }
  11720. inline ::PROTOBUF_NAMESPACE_ID::FieldOptions* FieldDescriptorProto::mutable_options()
  11721. {
  11722. ::PROTOBUF_NAMESPACE_ID::FieldOptions* _msg = _internal_mutable_options();
  11723. // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.options)
  11724. return _msg;
  11725. }
  11726. inline void FieldDescriptorProto::set_allocated_options(::PROTOBUF_NAMESPACE_ID::FieldOptions* options)
  11727. {
  11728. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  11729. if (message_arena == nullptr)
  11730. {
  11731. delete _impl_.options_;
  11732. }
  11733. if (options)
  11734. {
  11735. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  11736. ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(options);
  11737. if (message_arena != submessage_arena)
  11738. {
  11739. options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  11740. message_arena, options, submessage_arena
  11741. );
  11742. }
  11743. _impl_._has_bits_[0] |= 0x00000020u;
  11744. }
  11745. else
  11746. {
  11747. _impl_._has_bits_[0] &= ~0x00000020u;
  11748. }
  11749. _impl_.options_ = options;
  11750. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.options)
  11751. }
  11752. // optional bool proto3_optional = 17;
  11753. inline bool FieldDescriptorProto::_internal_has_proto3_optional() const
  11754. {
  11755. bool value = (_impl_._has_bits_[0] & 0x00000100u) != 0;
  11756. return value;
  11757. }
  11758. inline bool FieldDescriptorProto::has_proto3_optional() const
  11759. {
  11760. return _internal_has_proto3_optional();
  11761. }
  11762. inline void FieldDescriptorProto::clear_proto3_optional()
  11763. {
  11764. _impl_.proto3_optional_ = false;
  11765. _impl_._has_bits_[0] &= ~0x00000100u;
  11766. }
  11767. inline bool FieldDescriptorProto::_internal_proto3_optional() const
  11768. {
  11769. return _impl_.proto3_optional_;
  11770. }
  11771. inline bool FieldDescriptorProto::proto3_optional() const
  11772. {
  11773. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.proto3_optional)
  11774. return _internal_proto3_optional();
  11775. }
  11776. inline void FieldDescriptorProto::_internal_set_proto3_optional(bool value)
  11777. {
  11778. _impl_._has_bits_[0] |= 0x00000100u;
  11779. _impl_.proto3_optional_ = value;
  11780. }
  11781. inline void FieldDescriptorProto::set_proto3_optional(bool value)
  11782. {
  11783. _internal_set_proto3_optional(value);
  11784. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.proto3_optional)
  11785. }
  11786. // -------------------------------------------------------------------
  11787. // OneofDescriptorProto
  11788. // optional string name = 1;
  11789. inline bool OneofDescriptorProto::_internal_has_name() const
  11790. {
  11791. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  11792. return value;
  11793. }
  11794. inline bool OneofDescriptorProto::has_name() const
  11795. {
  11796. return _internal_has_name();
  11797. }
  11798. inline void OneofDescriptorProto::clear_name()
  11799. {
  11800. _impl_.name_.ClearToEmpty();
  11801. _impl_._has_bits_[0] &= ~0x00000001u;
  11802. }
  11803. inline const std::string& OneofDescriptorProto::name() const
  11804. {
  11805. // @@protoc_insertion_point(field_get:google.protobuf.OneofDescriptorProto.name)
  11806. return _internal_name();
  11807. }
  11808. template<typename ArgT0, typename... ArgT>
  11809. inline PROTOBUF_ALWAYS_INLINE void OneofDescriptorProto::set_name(ArgT0&& arg0, ArgT... args)
  11810. {
  11811. _impl_._has_bits_[0] |= 0x00000001u;
  11812. _impl_.name_.Set(static_cast<ArgT0&&>(arg0), args..., GetArenaForAllocation());
  11813. // @@protoc_insertion_point(field_set:google.protobuf.OneofDescriptorProto.name)
  11814. }
  11815. inline std::string* OneofDescriptorProto::mutable_name()
  11816. {
  11817. std::string* _s = _internal_mutable_name();
  11818. // @@protoc_insertion_point(field_mutable:google.protobuf.OneofDescriptorProto.name)
  11819. return _s;
  11820. }
  11821. inline const std::string& OneofDescriptorProto::_internal_name() const
  11822. {
  11823. return _impl_.name_.Get();
  11824. }
  11825. inline void OneofDescriptorProto::_internal_set_name(const std::string& value)
  11826. {
  11827. _impl_._has_bits_[0] |= 0x00000001u;
  11828. _impl_.name_.Set(value, GetArenaForAllocation());
  11829. }
  11830. inline std::string* OneofDescriptorProto::_internal_mutable_name()
  11831. {
  11832. _impl_._has_bits_[0] |= 0x00000001u;
  11833. return _impl_.name_.Mutable(GetArenaForAllocation());
  11834. }
  11835. inline std::string* OneofDescriptorProto::release_name()
  11836. {
  11837. // @@protoc_insertion_point(field_release:google.protobuf.OneofDescriptorProto.name)
  11838. if (!_internal_has_name())
  11839. {
  11840. return nullptr;
  11841. }
  11842. _impl_._has_bits_[0] &= ~0x00000001u;
  11843. auto* p = _impl_.name_.Release();
  11844. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11845. if (_impl_.name_.IsDefault())
  11846. {
  11847. _impl_.name_.Set("", GetArenaForAllocation());
  11848. }
  11849. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11850. return p;
  11851. }
  11852. inline void OneofDescriptorProto::set_allocated_name(std::string* name)
  11853. {
  11854. if (name != nullptr)
  11855. {
  11856. _impl_._has_bits_[0] |= 0x00000001u;
  11857. }
  11858. else
  11859. {
  11860. _impl_._has_bits_[0] &= ~0x00000001u;
  11861. }
  11862. _impl_.name_.SetAllocated(name, GetArenaForAllocation());
  11863. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11864. if (_impl_.name_.IsDefault())
  11865. {
  11866. _impl_.name_.Set("", GetArenaForAllocation());
  11867. }
  11868. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11869. // @@protoc_insertion_point(field_set_allocated:google.protobuf.OneofDescriptorProto.name)
  11870. }
  11871. // optional .google.protobuf.OneofOptions options = 2;
  11872. inline bool OneofDescriptorProto::_internal_has_options() const
  11873. {
  11874. bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
  11875. PROTOBUF_ASSUME(!value || _impl_.options_ != nullptr);
  11876. return value;
  11877. }
  11878. inline bool OneofDescriptorProto::has_options() const
  11879. {
  11880. return _internal_has_options();
  11881. }
  11882. inline void OneofDescriptorProto::clear_options()
  11883. {
  11884. if (_impl_.options_ != nullptr)
  11885. _impl_.options_->Clear();
  11886. _impl_._has_bits_[0] &= ~0x00000002u;
  11887. }
  11888. inline const ::PROTOBUF_NAMESPACE_ID::OneofOptions& OneofDescriptorProto::_internal_options() const
  11889. {
  11890. const ::PROTOBUF_NAMESPACE_ID::OneofOptions* p = _impl_.options_;
  11891. return p != nullptr ? *p : reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::OneofOptions&>(::PROTOBUF_NAMESPACE_ID::_OneofOptions_default_instance_);
  11892. }
  11893. inline const ::PROTOBUF_NAMESPACE_ID::OneofOptions& OneofDescriptorProto::options() const
  11894. {
  11895. // @@protoc_insertion_point(field_get:google.protobuf.OneofDescriptorProto.options)
  11896. return _internal_options();
  11897. }
  11898. inline void OneofDescriptorProto::unsafe_arena_set_allocated_options(
  11899. ::PROTOBUF_NAMESPACE_ID::OneofOptions* options
  11900. )
  11901. {
  11902. if (GetArenaForAllocation() == nullptr)
  11903. {
  11904. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.options_);
  11905. }
  11906. _impl_.options_ = options;
  11907. if (options)
  11908. {
  11909. _impl_._has_bits_[0] |= 0x00000002u;
  11910. }
  11911. else
  11912. {
  11913. _impl_._has_bits_[0] &= ~0x00000002u;
  11914. }
  11915. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.OneofDescriptorProto.options)
  11916. }
  11917. inline ::PROTOBUF_NAMESPACE_ID::OneofOptions* OneofDescriptorProto::release_options()
  11918. {
  11919. _impl_._has_bits_[0] &= ~0x00000002u;
  11920. ::PROTOBUF_NAMESPACE_ID::OneofOptions* temp = _impl_.options_;
  11921. _impl_.options_ = nullptr;
  11922. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  11923. auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
  11924. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  11925. if (GetArenaForAllocation() == nullptr)
  11926. {
  11927. delete old;
  11928. }
  11929. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  11930. if (GetArenaForAllocation() != nullptr)
  11931. {
  11932. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  11933. }
  11934. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  11935. return temp;
  11936. }
  11937. inline ::PROTOBUF_NAMESPACE_ID::OneofOptions* OneofDescriptorProto::unsafe_arena_release_options()
  11938. {
  11939. // @@protoc_insertion_point(field_release:google.protobuf.OneofDescriptorProto.options)
  11940. _impl_._has_bits_[0] &= ~0x00000002u;
  11941. ::PROTOBUF_NAMESPACE_ID::OneofOptions* temp = _impl_.options_;
  11942. _impl_.options_ = nullptr;
  11943. return temp;
  11944. }
  11945. inline ::PROTOBUF_NAMESPACE_ID::OneofOptions* OneofDescriptorProto::_internal_mutable_options()
  11946. {
  11947. _impl_._has_bits_[0] |= 0x00000002u;
  11948. if (_impl_.options_ == nullptr)
  11949. {
  11950. auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::OneofOptions>(GetArenaForAllocation());
  11951. _impl_.options_ = p;
  11952. }
  11953. return _impl_.options_;
  11954. }
  11955. inline ::PROTOBUF_NAMESPACE_ID::OneofOptions* OneofDescriptorProto::mutable_options()
  11956. {
  11957. ::PROTOBUF_NAMESPACE_ID::OneofOptions* _msg = _internal_mutable_options();
  11958. // @@protoc_insertion_point(field_mutable:google.protobuf.OneofDescriptorProto.options)
  11959. return _msg;
  11960. }
  11961. inline void OneofDescriptorProto::set_allocated_options(::PROTOBUF_NAMESPACE_ID::OneofOptions* options)
  11962. {
  11963. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  11964. if (message_arena == nullptr)
  11965. {
  11966. delete _impl_.options_;
  11967. }
  11968. if (options)
  11969. {
  11970. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  11971. ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(options);
  11972. if (message_arena != submessage_arena)
  11973. {
  11974. options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  11975. message_arena, options, submessage_arena
  11976. );
  11977. }
  11978. _impl_._has_bits_[0] |= 0x00000002u;
  11979. }
  11980. else
  11981. {
  11982. _impl_._has_bits_[0] &= ~0x00000002u;
  11983. }
  11984. _impl_.options_ = options;
  11985. // @@protoc_insertion_point(field_set_allocated:google.protobuf.OneofDescriptorProto.options)
  11986. }
  11987. // -------------------------------------------------------------------
  11988. // EnumDescriptorProto_EnumReservedRange
  11989. // optional int32 start = 1;
  11990. inline bool EnumDescriptorProto_EnumReservedRange::_internal_has_start() const
  11991. {
  11992. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  11993. return value;
  11994. }
  11995. inline bool EnumDescriptorProto_EnumReservedRange::has_start() const
  11996. {
  11997. return _internal_has_start();
  11998. }
  11999. inline void EnumDescriptorProto_EnumReservedRange::clear_start()
  12000. {
  12001. _impl_.start_ = 0;
  12002. _impl_._has_bits_[0] &= ~0x00000001u;
  12003. }
  12004. inline int32_t EnumDescriptorProto_EnumReservedRange::_internal_start() const
  12005. {
  12006. return _impl_.start_;
  12007. }
  12008. inline int32_t EnumDescriptorProto_EnumReservedRange::start() const
  12009. {
  12010. // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.EnumReservedRange.start)
  12011. return _internal_start();
  12012. }
  12013. inline void EnumDescriptorProto_EnumReservedRange::_internal_set_start(int32_t value)
  12014. {
  12015. _impl_._has_bits_[0] |= 0x00000001u;
  12016. _impl_.start_ = value;
  12017. }
  12018. inline void EnumDescriptorProto_EnumReservedRange::set_start(int32_t value)
  12019. {
  12020. _internal_set_start(value);
  12021. // @@protoc_insertion_point(field_set:google.protobuf.EnumDescriptorProto.EnumReservedRange.start)
  12022. }
  12023. // optional int32 end = 2;
  12024. inline bool EnumDescriptorProto_EnumReservedRange::_internal_has_end() const
  12025. {
  12026. bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
  12027. return value;
  12028. }
  12029. inline bool EnumDescriptorProto_EnumReservedRange::has_end() const
  12030. {
  12031. return _internal_has_end();
  12032. }
  12033. inline void EnumDescriptorProto_EnumReservedRange::clear_end()
  12034. {
  12035. _impl_.end_ = 0;
  12036. _impl_._has_bits_[0] &= ~0x00000002u;
  12037. }
  12038. inline int32_t EnumDescriptorProto_EnumReservedRange::_internal_end() const
  12039. {
  12040. return _impl_.end_;
  12041. }
  12042. inline int32_t EnumDescriptorProto_EnumReservedRange::end() const
  12043. {
  12044. // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.EnumReservedRange.end)
  12045. return _internal_end();
  12046. }
  12047. inline void EnumDescriptorProto_EnumReservedRange::_internal_set_end(int32_t value)
  12048. {
  12049. _impl_._has_bits_[0] |= 0x00000002u;
  12050. _impl_.end_ = value;
  12051. }
  12052. inline void EnumDescriptorProto_EnumReservedRange::set_end(int32_t value)
  12053. {
  12054. _internal_set_end(value);
  12055. // @@protoc_insertion_point(field_set:google.protobuf.EnumDescriptorProto.EnumReservedRange.end)
  12056. }
  12057. // -------------------------------------------------------------------
  12058. // EnumDescriptorProto
  12059. // optional string name = 1;
  12060. inline bool EnumDescriptorProto::_internal_has_name() const
  12061. {
  12062. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  12063. return value;
  12064. }
  12065. inline bool EnumDescriptorProto::has_name() const
  12066. {
  12067. return _internal_has_name();
  12068. }
  12069. inline void EnumDescriptorProto::clear_name()
  12070. {
  12071. _impl_.name_.ClearToEmpty();
  12072. _impl_._has_bits_[0] &= ~0x00000001u;
  12073. }
  12074. inline const std::string& EnumDescriptorProto::name() const
  12075. {
  12076. // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.name)
  12077. return _internal_name();
  12078. }
  12079. template<typename ArgT0, typename... ArgT>
  12080. inline PROTOBUF_ALWAYS_INLINE void EnumDescriptorProto::set_name(ArgT0&& arg0, ArgT... args)
  12081. {
  12082. _impl_._has_bits_[0] |= 0x00000001u;
  12083. _impl_.name_.Set(static_cast<ArgT0&&>(arg0), args..., GetArenaForAllocation());
  12084. // @@protoc_insertion_point(field_set:google.protobuf.EnumDescriptorProto.name)
  12085. }
  12086. inline std::string* EnumDescriptorProto::mutable_name()
  12087. {
  12088. std::string* _s = _internal_mutable_name();
  12089. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto.name)
  12090. return _s;
  12091. }
  12092. inline const std::string& EnumDescriptorProto::_internal_name() const
  12093. {
  12094. return _impl_.name_.Get();
  12095. }
  12096. inline void EnumDescriptorProto::_internal_set_name(const std::string& value)
  12097. {
  12098. _impl_._has_bits_[0] |= 0x00000001u;
  12099. _impl_.name_.Set(value, GetArenaForAllocation());
  12100. }
  12101. inline std::string* EnumDescriptorProto::_internal_mutable_name()
  12102. {
  12103. _impl_._has_bits_[0] |= 0x00000001u;
  12104. return _impl_.name_.Mutable(GetArenaForAllocation());
  12105. }
  12106. inline std::string* EnumDescriptorProto::release_name()
  12107. {
  12108. // @@protoc_insertion_point(field_release:google.protobuf.EnumDescriptorProto.name)
  12109. if (!_internal_has_name())
  12110. {
  12111. return nullptr;
  12112. }
  12113. _impl_._has_bits_[0] &= ~0x00000001u;
  12114. auto* p = _impl_.name_.Release();
  12115. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  12116. if (_impl_.name_.IsDefault())
  12117. {
  12118. _impl_.name_.Set("", GetArenaForAllocation());
  12119. }
  12120. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  12121. return p;
  12122. }
  12123. inline void EnumDescriptorProto::set_allocated_name(std::string* name)
  12124. {
  12125. if (name != nullptr)
  12126. {
  12127. _impl_._has_bits_[0] |= 0x00000001u;
  12128. }
  12129. else
  12130. {
  12131. _impl_._has_bits_[0] &= ~0x00000001u;
  12132. }
  12133. _impl_.name_.SetAllocated(name, GetArenaForAllocation());
  12134. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  12135. if (_impl_.name_.IsDefault())
  12136. {
  12137. _impl_.name_.Set("", GetArenaForAllocation());
  12138. }
  12139. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  12140. // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumDescriptorProto.name)
  12141. }
  12142. // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
  12143. inline int EnumDescriptorProto::_internal_value_size() const
  12144. {
  12145. return _impl_.value_.size();
  12146. }
  12147. inline int EnumDescriptorProto::value_size() const
  12148. {
  12149. return _internal_value_size();
  12150. }
  12151. inline void EnumDescriptorProto::clear_value()
  12152. {
  12153. _impl_.value_.Clear();
  12154. }
  12155. inline ::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto* EnumDescriptorProto::mutable_value(int index)
  12156. {
  12157. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto.value)
  12158. return _impl_.value_.Mutable(index);
  12159. }
  12160. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto>*
  12161. EnumDescriptorProto::mutable_value()
  12162. {
  12163. // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumDescriptorProto.value)
  12164. return &_impl_.value_;
  12165. }
  12166. inline const ::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto& EnumDescriptorProto::_internal_value(int index) const
  12167. {
  12168. return _impl_.value_.Get(index);
  12169. }
  12170. inline const ::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto& EnumDescriptorProto::value(int index) const
  12171. {
  12172. // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.value)
  12173. return _internal_value(index);
  12174. }
  12175. inline ::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto* EnumDescriptorProto::_internal_add_value()
  12176. {
  12177. return _impl_.value_.Add();
  12178. }
  12179. inline ::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto* EnumDescriptorProto::add_value()
  12180. {
  12181. ::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto* _add = _internal_add_value();
  12182. // @@protoc_insertion_point(field_add:google.protobuf.EnumDescriptorProto.value)
  12183. return _add;
  12184. }
  12185. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto>&
  12186. EnumDescriptorProto::value() const
  12187. {
  12188. // @@protoc_insertion_point(field_list:google.protobuf.EnumDescriptorProto.value)
  12189. return _impl_.value_;
  12190. }
  12191. // optional .google.protobuf.EnumOptions options = 3;
  12192. inline bool EnumDescriptorProto::_internal_has_options() const
  12193. {
  12194. bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
  12195. PROTOBUF_ASSUME(!value || _impl_.options_ != nullptr);
  12196. return value;
  12197. }
  12198. inline bool EnumDescriptorProto::has_options() const
  12199. {
  12200. return _internal_has_options();
  12201. }
  12202. inline void EnumDescriptorProto::clear_options()
  12203. {
  12204. if (_impl_.options_ != nullptr)
  12205. _impl_.options_->Clear();
  12206. _impl_._has_bits_[0] &= ~0x00000002u;
  12207. }
  12208. inline const ::PROTOBUF_NAMESPACE_ID::EnumOptions& EnumDescriptorProto::_internal_options() const
  12209. {
  12210. const ::PROTOBUF_NAMESPACE_ID::EnumOptions* p = _impl_.options_;
  12211. return p != nullptr ? *p : reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::EnumOptions&>(::PROTOBUF_NAMESPACE_ID::_EnumOptions_default_instance_);
  12212. }
  12213. inline const ::PROTOBUF_NAMESPACE_ID::EnumOptions& EnumDescriptorProto::options() const
  12214. {
  12215. // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.options)
  12216. return _internal_options();
  12217. }
  12218. inline void EnumDescriptorProto::unsafe_arena_set_allocated_options(
  12219. ::PROTOBUF_NAMESPACE_ID::EnumOptions* options
  12220. )
  12221. {
  12222. if (GetArenaForAllocation() == nullptr)
  12223. {
  12224. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.options_);
  12225. }
  12226. _impl_.options_ = options;
  12227. if (options)
  12228. {
  12229. _impl_._has_bits_[0] |= 0x00000002u;
  12230. }
  12231. else
  12232. {
  12233. _impl_._has_bits_[0] &= ~0x00000002u;
  12234. }
  12235. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.EnumDescriptorProto.options)
  12236. }
  12237. inline ::PROTOBUF_NAMESPACE_ID::EnumOptions* EnumDescriptorProto::release_options()
  12238. {
  12239. _impl_._has_bits_[0] &= ~0x00000002u;
  12240. ::PROTOBUF_NAMESPACE_ID::EnumOptions* temp = _impl_.options_;
  12241. _impl_.options_ = nullptr;
  12242. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  12243. auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
  12244. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  12245. if (GetArenaForAllocation() == nullptr)
  12246. {
  12247. delete old;
  12248. }
  12249. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  12250. if (GetArenaForAllocation() != nullptr)
  12251. {
  12252. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  12253. }
  12254. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  12255. return temp;
  12256. }
  12257. inline ::PROTOBUF_NAMESPACE_ID::EnumOptions* EnumDescriptorProto::unsafe_arena_release_options()
  12258. {
  12259. // @@protoc_insertion_point(field_release:google.protobuf.EnumDescriptorProto.options)
  12260. _impl_._has_bits_[0] &= ~0x00000002u;
  12261. ::PROTOBUF_NAMESPACE_ID::EnumOptions* temp = _impl_.options_;
  12262. _impl_.options_ = nullptr;
  12263. return temp;
  12264. }
  12265. inline ::PROTOBUF_NAMESPACE_ID::EnumOptions* EnumDescriptorProto::_internal_mutable_options()
  12266. {
  12267. _impl_._has_bits_[0] |= 0x00000002u;
  12268. if (_impl_.options_ == nullptr)
  12269. {
  12270. auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::EnumOptions>(GetArenaForAllocation());
  12271. _impl_.options_ = p;
  12272. }
  12273. return _impl_.options_;
  12274. }
  12275. inline ::PROTOBUF_NAMESPACE_ID::EnumOptions* EnumDescriptorProto::mutable_options()
  12276. {
  12277. ::PROTOBUF_NAMESPACE_ID::EnumOptions* _msg = _internal_mutable_options();
  12278. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto.options)
  12279. return _msg;
  12280. }
  12281. inline void EnumDescriptorProto::set_allocated_options(::PROTOBUF_NAMESPACE_ID::EnumOptions* options)
  12282. {
  12283. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  12284. if (message_arena == nullptr)
  12285. {
  12286. delete _impl_.options_;
  12287. }
  12288. if (options)
  12289. {
  12290. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  12291. ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(options);
  12292. if (message_arena != submessage_arena)
  12293. {
  12294. options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  12295. message_arena, options, submessage_arena
  12296. );
  12297. }
  12298. _impl_._has_bits_[0] |= 0x00000002u;
  12299. }
  12300. else
  12301. {
  12302. _impl_._has_bits_[0] &= ~0x00000002u;
  12303. }
  12304. _impl_.options_ = options;
  12305. // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumDescriptorProto.options)
  12306. }
  12307. // repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
  12308. inline int EnumDescriptorProto::_internal_reserved_range_size() const
  12309. {
  12310. return _impl_.reserved_range_.size();
  12311. }
  12312. inline int EnumDescriptorProto::reserved_range_size() const
  12313. {
  12314. return _internal_reserved_range_size();
  12315. }
  12316. inline void EnumDescriptorProto::clear_reserved_range()
  12317. {
  12318. _impl_.reserved_range_.Clear();
  12319. }
  12320. inline ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange* EnumDescriptorProto::mutable_reserved_range(int index)
  12321. {
  12322. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto.reserved_range)
  12323. return _impl_.reserved_range_.Mutable(index);
  12324. }
  12325. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange>*
  12326. EnumDescriptorProto::mutable_reserved_range()
  12327. {
  12328. // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumDescriptorProto.reserved_range)
  12329. return &_impl_.reserved_range_;
  12330. }
  12331. inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange& EnumDescriptorProto::_internal_reserved_range(int index) const
  12332. {
  12333. return _impl_.reserved_range_.Get(index);
  12334. }
  12335. inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange& EnumDescriptorProto::reserved_range(int index) const
  12336. {
  12337. // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.reserved_range)
  12338. return _internal_reserved_range(index);
  12339. }
  12340. inline ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange* EnumDescriptorProto::_internal_add_reserved_range()
  12341. {
  12342. return _impl_.reserved_range_.Add();
  12343. }
  12344. inline ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange* EnumDescriptorProto::add_reserved_range()
  12345. {
  12346. ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange* _add = _internal_add_reserved_range();
  12347. // @@protoc_insertion_point(field_add:google.protobuf.EnumDescriptorProto.reserved_range)
  12348. return _add;
  12349. }
  12350. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange>&
  12351. EnumDescriptorProto::reserved_range() const
  12352. {
  12353. // @@protoc_insertion_point(field_list:google.protobuf.EnumDescriptorProto.reserved_range)
  12354. return _impl_.reserved_range_;
  12355. }
  12356. // repeated string reserved_name = 5;
  12357. inline int EnumDescriptorProto::_internal_reserved_name_size() const
  12358. {
  12359. return _impl_.reserved_name_.size();
  12360. }
  12361. inline int EnumDescriptorProto::reserved_name_size() const
  12362. {
  12363. return _internal_reserved_name_size();
  12364. }
  12365. inline void EnumDescriptorProto::clear_reserved_name()
  12366. {
  12367. _impl_.reserved_name_.Clear();
  12368. }
  12369. inline std::string* EnumDescriptorProto::add_reserved_name()
  12370. {
  12371. std::string* _s = _internal_add_reserved_name();
  12372. // @@protoc_insertion_point(field_add_mutable:google.protobuf.EnumDescriptorProto.reserved_name)
  12373. return _s;
  12374. }
  12375. inline const std::string& EnumDescriptorProto::_internal_reserved_name(int index) const
  12376. {
  12377. return _impl_.reserved_name_.Get(index);
  12378. }
  12379. inline const std::string& EnumDescriptorProto::reserved_name(int index) const
  12380. {
  12381. // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.reserved_name)
  12382. return _internal_reserved_name(index);
  12383. }
  12384. inline std::string* EnumDescriptorProto::mutable_reserved_name(int index)
  12385. {
  12386. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto.reserved_name)
  12387. return _impl_.reserved_name_.Mutable(index);
  12388. }
  12389. inline void EnumDescriptorProto::set_reserved_name(int index, const std::string& value)
  12390. {
  12391. _impl_.reserved_name_.Mutable(index)->assign(value);
  12392. // @@protoc_insertion_point(field_set:google.protobuf.EnumDescriptorProto.reserved_name)
  12393. }
  12394. inline void EnumDescriptorProto::set_reserved_name(int index, std::string&& value)
  12395. {
  12396. _impl_.reserved_name_.Mutable(index)->assign(std::move(value));
  12397. // @@protoc_insertion_point(field_set:google.protobuf.EnumDescriptorProto.reserved_name)
  12398. }
  12399. inline void EnumDescriptorProto::set_reserved_name(int index, const char* value)
  12400. {
  12401. GOOGLE_DCHECK(value != nullptr);
  12402. _impl_.reserved_name_.Mutable(index)->assign(value);
  12403. // @@protoc_insertion_point(field_set_char:google.protobuf.EnumDescriptorProto.reserved_name)
  12404. }
  12405. inline void EnumDescriptorProto::set_reserved_name(int index, const char* value, size_t size)
  12406. {
  12407. _impl_.reserved_name_.Mutable(index)->assign(
  12408. reinterpret_cast<const char*>(value), size
  12409. );
  12410. // @@protoc_insertion_point(field_set_pointer:google.protobuf.EnumDescriptorProto.reserved_name)
  12411. }
  12412. inline std::string* EnumDescriptorProto::_internal_add_reserved_name()
  12413. {
  12414. return _impl_.reserved_name_.Add();
  12415. }
  12416. inline void EnumDescriptorProto::add_reserved_name(const std::string& value)
  12417. {
  12418. _impl_.reserved_name_.Add()->assign(value);
  12419. // @@protoc_insertion_point(field_add:google.protobuf.EnumDescriptorProto.reserved_name)
  12420. }
  12421. inline void EnumDescriptorProto::add_reserved_name(std::string&& value)
  12422. {
  12423. _impl_.reserved_name_.Add(std::move(value));
  12424. // @@protoc_insertion_point(field_add:google.protobuf.EnumDescriptorProto.reserved_name)
  12425. }
  12426. inline void EnumDescriptorProto::add_reserved_name(const char* value)
  12427. {
  12428. GOOGLE_DCHECK(value != nullptr);
  12429. _impl_.reserved_name_.Add()->assign(value);
  12430. // @@protoc_insertion_point(field_add_char:google.protobuf.EnumDescriptorProto.reserved_name)
  12431. }
  12432. inline void EnumDescriptorProto::add_reserved_name(const char* value, size_t size)
  12433. {
  12434. _impl_.reserved_name_.Add()->assign(reinterpret_cast<const char*>(value), size);
  12435. // @@protoc_insertion_point(field_add_pointer:google.protobuf.EnumDescriptorProto.reserved_name)
  12436. }
  12437. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
  12438. EnumDescriptorProto::reserved_name() const
  12439. {
  12440. // @@protoc_insertion_point(field_list:google.protobuf.EnumDescriptorProto.reserved_name)
  12441. return _impl_.reserved_name_;
  12442. }
  12443. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
  12444. EnumDescriptorProto::mutable_reserved_name()
  12445. {
  12446. // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumDescriptorProto.reserved_name)
  12447. return &_impl_.reserved_name_;
  12448. }
  12449. // -------------------------------------------------------------------
  12450. // EnumValueDescriptorProto
  12451. // optional string name = 1;
  12452. inline bool EnumValueDescriptorProto::_internal_has_name() const
  12453. {
  12454. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  12455. return value;
  12456. }
  12457. inline bool EnumValueDescriptorProto::has_name() const
  12458. {
  12459. return _internal_has_name();
  12460. }
  12461. inline void EnumValueDescriptorProto::clear_name()
  12462. {
  12463. _impl_.name_.ClearToEmpty();
  12464. _impl_._has_bits_[0] &= ~0x00000001u;
  12465. }
  12466. inline const std::string& EnumValueDescriptorProto::name() const
  12467. {
  12468. // @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto.name)
  12469. return _internal_name();
  12470. }
  12471. template<typename ArgT0, typename... ArgT>
  12472. inline PROTOBUF_ALWAYS_INLINE void EnumValueDescriptorProto::set_name(ArgT0&& arg0, ArgT... args)
  12473. {
  12474. _impl_._has_bits_[0] |= 0x00000001u;
  12475. _impl_.name_.Set(static_cast<ArgT0&&>(arg0), args..., GetArenaForAllocation());
  12476. // @@protoc_insertion_point(field_set:google.protobuf.EnumValueDescriptorProto.name)
  12477. }
  12478. inline std::string* EnumValueDescriptorProto::mutable_name()
  12479. {
  12480. std::string* _s = _internal_mutable_name();
  12481. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValueDescriptorProto.name)
  12482. return _s;
  12483. }
  12484. inline const std::string& EnumValueDescriptorProto::_internal_name() const
  12485. {
  12486. return _impl_.name_.Get();
  12487. }
  12488. inline void EnumValueDescriptorProto::_internal_set_name(const std::string& value)
  12489. {
  12490. _impl_._has_bits_[0] |= 0x00000001u;
  12491. _impl_.name_.Set(value, GetArenaForAllocation());
  12492. }
  12493. inline std::string* EnumValueDescriptorProto::_internal_mutable_name()
  12494. {
  12495. _impl_._has_bits_[0] |= 0x00000001u;
  12496. return _impl_.name_.Mutable(GetArenaForAllocation());
  12497. }
  12498. inline std::string* EnumValueDescriptorProto::release_name()
  12499. {
  12500. // @@protoc_insertion_point(field_release:google.protobuf.EnumValueDescriptorProto.name)
  12501. if (!_internal_has_name())
  12502. {
  12503. return nullptr;
  12504. }
  12505. _impl_._has_bits_[0] &= ~0x00000001u;
  12506. auto* p = _impl_.name_.Release();
  12507. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  12508. if (_impl_.name_.IsDefault())
  12509. {
  12510. _impl_.name_.Set("", GetArenaForAllocation());
  12511. }
  12512. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  12513. return p;
  12514. }
  12515. inline void EnumValueDescriptorProto::set_allocated_name(std::string* name)
  12516. {
  12517. if (name != nullptr)
  12518. {
  12519. _impl_._has_bits_[0] |= 0x00000001u;
  12520. }
  12521. else
  12522. {
  12523. _impl_._has_bits_[0] &= ~0x00000001u;
  12524. }
  12525. _impl_.name_.SetAllocated(name, GetArenaForAllocation());
  12526. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  12527. if (_impl_.name_.IsDefault())
  12528. {
  12529. _impl_.name_.Set("", GetArenaForAllocation());
  12530. }
  12531. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  12532. // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumValueDescriptorProto.name)
  12533. }
  12534. // optional int32 number = 2;
  12535. inline bool EnumValueDescriptorProto::_internal_has_number() const
  12536. {
  12537. bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
  12538. return value;
  12539. }
  12540. inline bool EnumValueDescriptorProto::has_number() const
  12541. {
  12542. return _internal_has_number();
  12543. }
  12544. inline void EnumValueDescriptorProto::clear_number()
  12545. {
  12546. _impl_.number_ = 0;
  12547. _impl_._has_bits_[0] &= ~0x00000004u;
  12548. }
  12549. inline int32_t EnumValueDescriptorProto::_internal_number() const
  12550. {
  12551. return _impl_.number_;
  12552. }
  12553. inline int32_t EnumValueDescriptorProto::number() const
  12554. {
  12555. // @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto.number)
  12556. return _internal_number();
  12557. }
  12558. inline void EnumValueDescriptorProto::_internal_set_number(int32_t value)
  12559. {
  12560. _impl_._has_bits_[0] |= 0x00000004u;
  12561. _impl_.number_ = value;
  12562. }
  12563. inline void EnumValueDescriptorProto::set_number(int32_t value)
  12564. {
  12565. _internal_set_number(value);
  12566. // @@protoc_insertion_point(field_set:google.protobuf.EnumValueDescriptorProto.number)
  12567. }
  12568. // optional .google.protobuf.EnumValueOptions options = 3;
  12569. inline bool EnumValueDescriptorProto::_internal_has_options() const
  12570. {
  12571. bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
  12572. PROTOBUF_ASSUME(!value || _impl_.options_ != nullptr);
  12573. return value;
  12574. }
  12575. inline bool EnumValueDescriptorProto::has_options() const
  12576. {
  12577. return _internal_has_options();
  12578. }
  12579. inline void EnumValueDescriptorProto::clear_options()
  12580. {
  12581. if (_impl_.options_ != nullptr)
  12582. _impl_.options_->Clear();
  12583. _impl_._has_bits_[0] &= ~0x00000002u;
  12584. }
  12585. inline const ::PROTOBUF_NAMESPACE_ID::EnumValueOptions& EnumValueDescriptorProto::_internal_options() const
  12586. {
  12587. const ::PROTOBUF_NAMESPACE_ID::EnumValueOptions* p = _impl_.options_;
  12588. return p != nullptr ? *p : reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::EnumValueOptions&>(::PROTOBUF_NAMESPACE_ID::_EnumValueOptions_default_instance_);
  12589. }
  12590. inline const ::PROTOBUF_NAMESPACE_ID::EnumValueOptions& EnumValueDescriptorProto::options() const
  12591. {
  12592. // @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto.options)
  12593. return _internal_options();
  12594. }
  12595. inline void EnumValueDescriptorProto::unsafe_arena_set_allocated_options(
  12596. ::PROTOBUF_NAMESPACE_ID::EnumValueOptions* options
  12597. )
  12598. {
  12599. if (GetArenaForAllocation() == nullptr)
  12600. {
  12601. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.options_);
  12602. }
  12603. _impl_.options_ = options;
  12604. if (options)
  12605. {
  12606. _impl_._has_bits_[0] |= 0x00000002u;
  12607. }
  12608. else
  12609. {
  12610. _impl_._has_bits_[0] &= ~0x00000002u;
  12611. }
  12612. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.EnumValueDescriptorProto.options)
  12613. }
  12614. inline ::PROTOBUF_NAMESPACE_ID::EnumValueOptions* EnumValueDescriptorProto::release_options()
  12615. {
  12616. _impl_._has_bits_[0] &= ~0x00000002u;
  12617. ::PROTOBUF_NAMESPACE_ID::EnumValueOptions* temp = _impl_.options_;
  12618. _impl_.options_ = nullptr;
  12619. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  12620. auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
  12621. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  12622. if (GetArenaForAllocation() == nullptr)
  12623. {
  12624. delete old;
  12625. }
  12626. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  12627. if (GetArenaForAllocation() != nullptr)
  12628. {
  12629. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  12630. }
  12631. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  12632. return temp;
  12633. }
  12634. inline ::PROTOBUF_NAMESPACE_ID::EnumValueOptions* EnumValueDescriptorProto::unsafe_arena_release_options()
  12635. {
  12636. // @@protoc_insertion_point(field_release:google.protobuf.EnumValueDescriptorProto.options)
  12637. _impl_._has_bits_[0] &= ~0x00000002u;
  12638. ::PROTOBUF_NAMESPACE_ID::EnumValueOptions* temp = _impl_.options_;
  12639. _impl_.options_ = nullptr;
  12640. return temp;
  12641. }
  12642. inline ::PROTOBUF_NAMESPACE_ID::EnumValueOptions* EnumValueDescriptorProto::_internal_mutable_options()
  12643. {
  12644. _impl_._has_bits_[0] |= 0x00000002u;
  12645. if (_impl_.options_ == nullptr)
  12646. {
  12647. auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::EnumValueOptions>(GetArenaForAllocation());
  12648. _impl_.options_ = p;
  12649. }
  12650. return _impl_.options_;
  12651. }
  12652. inline ::PROTOBUF_NAMESPACE_ID::EnumValueOptions* EnumValueDescriptorProto::mutable_options()
  12653. {
  12654. ::PROTOBUF_NAMESPACE_ID::EnumValueOptions* _msg = _internal_mutable_options();
  12655. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValueDescriptorProto.options)
  12656. return _msg;
  12657. }
  12658. inline void EnumValueDescriptorProto::set_allocated_options(::PROTOBUF_NAMESPACE_ID::EnumValueOptions* options)
  12659. {
  12660. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  12661. if (message_arena == nullptr)
  12662. {
  12663. delete _impl_.options_;
  12664. }
  12665. if (options)
  12666. {
  12667. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  12668. ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(options);
  12669. if (message_arena != submessage_arena)
  12670. {
  12671. options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  12672. message_arena, options, submessage_arena
  12673. );
  12674. }
  12675. _impl_._has_bits_[0] |= 0x00000002u;
  12676. }
  12677. else
  12678. {
  12679. _impl_._has_bits_[0] &= ~0x00000002u;
  12680. }
  12681. _impl_.options_ = options;
  12682. // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumValueDescriptorProto.options)
  12683. }
  12684. // -------------------------------------------------------------------
  12685. // ServiceDescriptorProto
  12686. // optional string name = 1;
  12687. inline bool ServiceDescriptorProto::_internal_has_name() const
  12688. {
  12689. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  12690. return value;
  12691. }
  12692. inline bool ServiceDescriptorProto::has_name() const
  12693. {
  12694. return _internal_has_name();
  12695. }
  12696. inline void ServiceDescriptorProto::clear_name()
  12697. {
  12698. _impl_.name_.ClearToEmpty();
  12699. _impl_._has_bits_[0] &= ~0x00000001u;
  12700. }
  12701. inline const std::string& ServiceDescriptorProto::name() const
  12702. {
  12703. // @@protoc_insertion_point(field_get:google.protobuf.ServiceDescriptorProto.name)
  12704. return _internal_name();
  12705. }
  12706. template<typename ArgT0, typename... ArgT>
  12707. inline PROTOBUF_ALWAYS_INLINE void ServiceDescriptorProto::set_name(ArgT0&& arg0, ArgT... args)
  12708. {
  12709. _impl_._has_bits_[0] |= 0x00000001u;
  12710. _impl_.name_.Set(static_cast<ArgT0&&>(arg0), args..., GetArenaForAllocation());
  12711. // @@protoc_insertion_point(field_set:google.protobuf.ServiceDescriptorProto.name)
  12712. }
  12713. inline std::string* ServiceDescriptorProto::mutable_name()
  12714. {
  12715. std::string* _s = _internal_mutable_name();
  12716. // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceDescriptorProto.name)
  12717. return _s;
  12718. }
  12719. inline const std::string& ServiceDescriptorProto::_internal_name() const
  12720. {
  12721. return _impl_.name_.Get();
  12722. }
  12723. inline void ServiceDescriptorProto::_internal_set_name(const std::string& value)
  12724. {
  12725. _impl_._has_bits_[0] |= 0x00000001u;
  12726. _impl_.name_.Set(value, GetArenaForAllocation());
  12727. }
  12728. inline std::string* ServiceDescriptorProto::_internal_mutable_name()
  12729. {
  12730. _impl_._has_bits_[0] |= 0x00000001u;
  12731. return _impl_.name_.Mutable(GetArenaForAllocation());
  12732. }
  12733. inline std::string* ServiceDescriptorProto::release_name()
  12734. {
  12735. // @@protoc_insertion_point(field_release:google.protobuf.ServiceDescriptorProto.name)
  12736. if (!_internal_has_name())
  12737. {
  12738. return nullptr;
  12739. }
  12740. _impl_._has_bits_[0] &= ~0x00000001u;
  12741. auto* p = _impl_.name_.Release();
  12742. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  12743. if (_impl_.name_.IsDefault())
  12744. {
  12745. _impl_.name_.Set("", GetArenaForAllocation());
  12746. }
  12747. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  12748. return p;
  12749. }
  12750. inline void ServiceDescriptorProto::set_allocated_name(std::string* name)
  12751. {
  12752. if (name != nullptr)
  12753. {
  12754. _impl_._has_bits_[0] |= 0x00000001u;
  12755. }
  12756. else
  12757. {
  12758. _impl_._has_bits_[0] &= ~0x00000001u;
  12759. }
  12760. _impl_.name_.SetAllocated(name, GetArenaForAllocation());
  12761. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  12762. if (_impl_.name_.IsDefault())
  12763. {
  12764. _impl_.name_.Set("", GetArenaForAllocation());
  12765. }
  12766. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  12767. // @@protoc_insertion_point(field_set_allocated:google.protobuf.ServiceDescriptorProto.name)
  12768. }
  12769. // repeated .google.protobuf.MethodDescriptorProto method = 2;
  12770. inline int ServiceDescriptorProto::_internal_method_size() const
  12771. {
  12772. return _impl_.method_.size();
  12773. }
  12774. inline int ServiceDescriptorProto::method_size() const
  12775. {
  12776. return _internal_method_size();
  12777. }
  12778. inline void ServiceDescriptorProto::clear_method()
  12779. {
  12780. _impl_.method_.Clear();
  12781. }
  12782. inline ::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto* ServiceDescriptorProto::mutable_method(int index)
  12783. {
  12784. // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceDescriptorProto.method)
  12785. return _impl_.method_.Mutable(index);
  12786. }
  12787. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto>*
  12788. ServiceDescriptorProto::mutable_method()
  12789. {
  12790. // @@protoc_insertion_point(field_mutable_list:google.protobuf.ServiceDescriptorProto.method)
  12791. return &_impl_.method_;
  12792. }
  12793. inline const ::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto& ServiceDescriptorProto::_internal_method(int index) const
  12794. {
  12795. return _impl_.method_.Get(index);
  12796. }
  12797. inline const ::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto& ServiceDescriptorProto::method(int index) const
  12798. {
  12799. // @@protoc_insertion_point(field_get:google.protobuf.ServiceDescriptorProto.method)
  12800. return _internal_method(index);
  12801. }
  12802. inline ::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto* ServiceDescriptorProto::_internal_add_method()
  12803. {
  12804. return _impl_.method_.Add();
  12805. }
  12806. inline ::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto* ServiceDescriptorProto::add_method()
  12807. {
  12808. ::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto* _add = _internal_add_method();
  12809. // @@protoc_insertion_point(field_add:google.protobuf.ServiceDescriptorProto.method)
  12810. return _add;
  12811. }
  12812. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto>&
  12813. ServiceDescriptorProto::method() const
  12814. {
  12815. // @@protoc_insertion_point(field_list:google.protobuf.ServiceDescriptorProto.method)
  12816. return _impl_.method_;
  12817. }
  12818. // optional .google.protobuf.ServiceOptions options = 3;
  12819. inline bool ServiceDescriptorProto::_internal_has_options() const
  12820. {
  12821. bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
  12822. PROTOBUF_ASSUME(!value || _impl_.options_ != nullptr);
  12823. return value;
  12824. }
  12825. inline bool ServiceDescriptorProto::has_options() const
  12826. {
  12827. return _internal_has_options();
  12828. }
  12829. inline void ServiceDescriptorProto::clear_options()
  12830. {
  12831. if (_impl_.options_ != nullptr)
  12832. _impl_.options_->Clear();
  12833. _impl_._has_bits_[0] &= ~0x00000002u;
  12834. }
  12835. inline const ::PROTOBUF_NAMESPACE_ID::ServiceOptions& ServiceDescriptorProto::_internal_options() const
  12836. {
  12837. const ::PROTOBUF_NAMESPACE_ID::ServiceOptions* p = _impl_.options_;
  12838. return p != nullptr ? *p : reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::ServiceOptions&>(::PROTOBUF_NAMESPACE_ID::_ServiceOptions_default_instance_);
  12839. }
  12840. inline const ::PROTOBUF_NAMESPACE_ID::ServiceOptions& ServiceDescriptorProto::options() const
  12841. {
  12842. // @@protoc_insertion_point(field_get:google.protobuf.ServiceDescriptorProto.options)
  12843. return _internal_options();
  12844. }
  12845. inline void ServiceDescriptorProto::unsafe_arena_set_allocated_options(
  12846. ::PROTOBUF_NAMESPACE_ID::ServiceOptions* options
  12847. )
  12848. {
  12849. if (GetArenaForAllocation() == nullptr)
  12850. {
  12851. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.options_);
  12852. }
  12853. _impl_.options_ = options;
  12854. if (options)
  12855. {
  12856. _impl_._has_bits_[0] |= 0x00000002u;
  12857. }
  12858. else
  12859. {
  12860. _impl_._has_bits_[0] &= ~0x00000002u;
  12861. }
  12862. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.ServiceDescriptorProto.options)
  12863. }
  12864. inline ::PROTOBUF_NAMESPACE_ID::ServiceOptions* ServiceDescriptorProto::release_options()
  12865. {
  12866. _impl_._has_bits_[0] &= ~0x00000002u;
  12867. ::PROTOBUF_NAMESPACE_ID::ServiceOptions* temp = _impl_.options_;
  12868. _impl_.options_ = nullptr;
  12869. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  12870. auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
  12871. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  12872. if (GetArenaForAllocation() == nullptr)
  12873. {
  12874. delete old;
  12875. }
  12876. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  12877. if (GetArenaForAllocation() != nullptr)
  12878. {
  12879. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  12880. }
  12881. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  12882. return temp;
  12883. }
  12884. inline ::PROTOBUF_NAMESPACE_ID::ServiceOptions* ServiceDescriptorProto::unsafe_arena_release_options()
  12885. {
  12886. // @@protoc_insertion_point(field_release:google.protobuf.ServiceDescriptorProto.options)
  12887. _impl_._has_bits_[0] &= ~0x00000002u;
  12888. ::PROTOBUF_NAMESPACE_ID::ServiceOptions* temp = _impl_.options_;
  12889. _impl_.options_ = nullptr;
  12890. return temp;
  12891. }
  12892. inline ::PROTOBUF_NAMESPACE_ID::ServiceOptions* ServiceDescriptorProto::_internal_mutable_options()
  12893. {
  12894. _impl_._has_bits_[0] |= 0x00000002u;
  12895. if (_impl_.options_ == nullptr)
  12896. {
  12897. auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::ServiceOptions>(GetArenaForAllocation());
  12898. _impl_.options_ = p;
  12899. }
  12900. return _impl_.options_;
  12901. }
  12902. inline ::PROTOBUF_NAMESPACE_ID::ServiceOptions* ServiceDescriptorProto::mutable_options()
  12903. {
  12904. ::PROTOBUF_NAMESPACE_ID::ServiceOptions* _msg = _internal_mutable_options();
  12905. // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceDescriptorProto.options)
  12906. return _msg;
  12907. }
  12908. inline void ServiceDescriptorProto::set_allocated_options(::PROTOBUF_NAMESPACE_ID::ServiceOptions* options)
  12909. {
  12910. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  12911. if (message_arena == nullptr)
  12912. {
  12913. delete _impl_.options_;
  12914. }
  12915. if (options)
  12916. {
  12917. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  12918. ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(options);
  12919. if (message_arena != submessage_arena)
  12920. {
  12921. options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  12922. message_arena, options, submessage_arena
  12923. );
  12924. }
  12925. _impl_._has_bits_[0] |= 0x00000002u;
  12926. }
  12927. else
  12928. {
  12929. _impl_._has_bits_[0] &= ~0x00000002u;
  12930. }
  12931. _impl_.options_ = options;
  12932. // @@protoc_insertion_point(field_set_allocated:google.protobuf.ServiceDescriptorProto.options)
  12933. }
  12934. // -------------------------------------------------------------------
  12935. // MethodDescriptorProto
  12936. // optional string name = 1;
  12937. inline bool MethodDescriptorProto::_internal_has_name() const
  12938. {
  12939. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  12940. return value;
  12941. }
  12942. inline bool MethodDescriptorProto::has_name() const
  12943. {
  12944. return _internal_has_name();
  12945. }
  12946. inline void MethodDescriptorProto::clear_name()
  12947. {
  12948. _impl_.name_.ClearToEmpty();
  12949. _impl_._has_bits_[0] &= ~0x00000001u;
  12950. }
  12951. inline const std::string& MethodDescriptorProto::name() const
  12952. {
  12953. // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.name)
  12954. return _internal_name();
  12955. }
  12956. template<typename ArgT0, typename... ArgT>
  12957. inline PROTOBUF_ALWAYS_INLINE void MethodDescriptorProto::set_name(ArgT0&& arg0, ArgT... args)
  12958. {
  12959. _impl_._has_bits_[0] |= 0x00000001u;
  12960. _impl_.name_.Set(static_cast<ArgT0&&>(arg0), args..., GetArenaForAllocation());
  12961. // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.name)
  12962. }
  12963. inline std::string* MethodDescriptorProto::mutable_name()
  12964. {
  12965. std::string* _s = _internal_mutable_name();
  12966. // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProto.name)
  12967. return _s;
  12968. }
  12969. inline const std::string& MethodDescriptorProto::_internal_name() const
  12970. {
  12971. return _impl_.name_.Get();
  12972. }
  12973. inline void MethodDescriptorProto::_internal_set_name(const std::string& value)
  12974. {
  12975. _impl_._has_bits_[0] |= 0x00000001u;
  12976. _impl_.name_.Set(value, GetArenaForAllocation());
  12977. }
  12978. inline std::string* MethodDescriptorProto::_internal_mutable_name()
  12979. {
  12980. _impl_._has_bits_[0] |= 0x00000001u;
  12981. return _impl_.name_.Mutable(GetArenaForAllocation());
  12982. }
  12983. inline std::string* MethodDescriptorProto::release_name()
  12984. {
  12985. // @@protoc_insertion_point(field_release:google.protobuf.MethodDescriptorProto.name)
  12986. if (!_internal_has_name())
  12987. {
  12988. return nullptr;
  12989. }
  12990. _impl_._has_bits_[0] &= ~0x00000001u;
  12991. auto* p = _impl_.name_.Release();
  12992. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  12993. if (_impl_.name_.IsDefault())
  12994. {
  12995. _impl_.name_.Set("", GetArenaForAllocation());
  12996. }
  12997. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  12998. return p;
  12999. }
  13000. inline void MethodDescriptorProto::set_allocated_name(std::string* name)
  13001. {
  13002. if (name != nullptr)
  13003. {
  13004. _impl_._has_bits_[0] |= 0x00000001u;
  13005. }
  13006. else
  13007. {
  13008. _impl_._has_bits_[0] &= ~0x00000001u;
  13009. }
  13010. _impl_.name_.SetAllocated(name, GetArenaForAllocation());
  13011. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  13012. if (_impl_.name_.IsDefault())
  13013. {
  13014. _impl_.name_.Set("", GetArenaForAllocation());
  13015. }
  13016. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  13017. // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescriptorProto.name)
  13018. }
  13019. // optional string input_type = 2;
  13020. inline bool MethodDescriptorProto::_internal_has_input_type() const
  13021. {
  13022. bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
  13023. return value;
  13024. }
  13025. inline bool MethodDescriptorProto::has_input_type() const
  13026. {
  13027. return _internal_has_input_type();
  13028. }
  13029. inline void MethodDescriptorProto::clear_input_type()
  13030. {
  13031. _impl_.input_type_.ClearToEmpty();
  13032. _impl_._has_bits_[0] &= ~0x00000002u;
  13033. }
  13034. inline const std::string& MethodDescriptorProto::input_type() const
  13035. {
  13036. // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.input_type)
  13037. return _internal_input_type();
  13038. }
  13039. template<typename ArgT0, typename... ArgT>
  13040. inline PROTOBUF_ALWAYS_INLINE void MethodDescriptorProto::set_input_type(ArgT0&& arg0, ArgT... args)
  13041. {
  13042. _impl_._has_bits_[0] |= 0x00000002u;
  13043. _impl_.input_type_.Set(static_cast<ArgT0&&>(arg0), args..., GetArenaForAllocation());
  13044. // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.input_type)
  13045. }
  13046. inline std::string* MethodDescriptorProto::mutable_input_type()
  13047. {
  13048. std::string* _s = _internal_mutable_input_type();
  13049. // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProto.input_type)
  13050. return _s;
  13051. }
  13052. inline const std::string& MethodDescriptorProto::_internal_input_type() const
  13053. {
  13054. return _impl_.input_type_.Get();
  13055. }
  13056. inline void MethodDescriptorProto::_internal_set_input_type(const std::string& value)
  13057. {
  13058. _impl_._has_bits_[0] |= 0x00000002u;
  13059. _impl_.input_type_.Set(value, GetArenaForAllocation());
  13060. }
  13061. inline std::string* MethodDescriptorProto::_internal_mutable_input_type()
  13062. {
  13063. _impl_._has_bits_[0] |= 0x00000002u;
  13064. return _impl_.input_type_.Mutable(GetArenaForAllocation());
  13065. }
  13066. inline std::string* MethodDescriptorProto::release_input_type()
  13067. {
  13068. // @@protoc_insertion_point(field_release:google.protobuf.MethodDescriptorProto.input_type)
  13069. if (!_internal_has_input_type())
  13070. {
  13071. return nullptr;
  13072. }
  13073. _impl_._has_bits_[0] &= ~0x00000002u;
  13074. auto* p = _impl_.input_type_.Release();
  13075. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  13076. if (_impl_.input_type_.IsDefault())
  13077. {
  13078. _impl_.input_type_.Set("", GetArenaForAllocation());
  13079. }
  13080. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  13081. return p;
  13082. }
  13083. inline void MethodDescriptorProto::set_allocated_input_type(std::string* input_type)
  13084. {
  13085. if (input_type != nullptr)
  13086. {
  13087. _impl_._has_bits_[0] |= 0x00000002u;
  13088. }
  13089. else
  13090. {
  13091. _impl_._has_bits_[0] &= ~0x00000002u;
  13092. }
  13093. _impl_.input_type_.SetAllocated(input_type, GetArenaForAllocation());
  13094. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  13095. if (_impl_.input_type_.IsDefault())
  13096. {
  13097. _impl_.input_type_.Set("", GetArenaForAllocation());
  13098. }
  13099. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  13100. // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescriptorProto.input_type)
  13101. }
  13102. // optional string output_type = 3;
  13103. inline bool MethodDescriptorProto::_internal_has_output_type() const
  13104. {
  13105. bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
  13106. return value;
  13107. }
  13108. inline bool MethodDescriptorProto::has_output_type() const
  13109. {
  13110. return _internal_has_output_type();
  13111. }
  13112. inline void MethodDescriptorProto::clear_output_type()
  13113. {
  13114. _impl_.output_type_.ClearToEmpty();
  13115. _impl_._has_bits_[0] &= ~0x00000004u;
  13116. }
  13117. inline const std::string& MethodDescriptorProto::output_type() const
  13118. {
  13119. // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.output_type)
  13120. return _internal_output_type();
  13121. }
  13122. template<typename ArgT0, typename... ArgT>
  13123. inline PROTOBUF_ALWAYS_INLINE void MethodDescriptorProto::set_output_type(ArgT0&& arg0, ArgT... args)
  13124. {
  13125. _impl_._has_bits_[0] |= 0x00000004u;
  13126. _impl_.output_type_.Set(static_cast<ArgT0&&>(arg0), args..., GetArenaForAllocation());
  13127. // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.output_type)
  13128. }
  13129. inline std::string* MethodDescriptorProto::mutable_output_type()
  13130. {
  13131. std::string* _s = _internal_mutable_output_type();
  13132. // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProto.output_type)
  13133. return _s;
  13134. }
  13135. inline const std::string& MethodDescriptorProto::_internal_output_type() const
  13136. {
  13137. return _impl_.output_type_.Get();
  13138. }
  13139. inline void MethodDescriptorProto::_internal_set_output_type(const std::string& value)
  13140. {
  13141. _impl_._has_bits_[0] |= 0x00000004u;
  13142. _impl_.output_type_.Set(value, GetArenaForAllocation());
  13143. }
  13144. inline std::string* MethodDescriptorProto::_internal_mutable_output_type()
  13145. {
  13146. _impl_._has_bits_[0] |= 0x00000004u;
  13147. return _impl_.output_type_.Mutable(GetArenaForAllocation());
  13148. }
  13149. inline std::string* MethodDescriptorProto::release_output_type()
  13150. {
  13151. // @@protoc_insertion_point(field_release:google.protobuf.MethodDescriptorProto.output_type)
  13152. if (!_internal_has_output_type())
  13153. {
  13154. return nullptr;
  13155. }
  13156. _impl_._has_bits_[0] &= ~0x00000004u;
  13157. auto* p = _impl_.output_type_.Release();
  13158. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  13159. if (_impl_.output_type_.IsDefault())
  13160. {
  13161. _impl_.output_type_.Set("", GetArenaForAllocation());
  13162. }
  13163. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  13164. return p;
  13165. }
  13166. inline void MethodDescriptorProto::set_allocated_output_type(std::string* output_type)
  13167. {
  13168. if (output_type != nullptr)
  13169. {
  13170. _impl_._has_bits_[0] |= 0x00000004u;
  13171. }
  13172. else
  13173. {
  13174. _impl_._has_bits_[0] &= ~0x00000004u;
  13175. }
  13176. _impl_.output_type_.SetAllocated(output_type, GetArenaForAllocation());
  13177. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  13178. if (_impl_.output_type_.IsDefault())
  13179. {
  13180. _impl_.output_type_.Set("", GetArenaForAllocation());
  13181. }
  13182. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  13183. // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescriptorProto.output_type)
  13184. }
  13185. // optional .google.protobuf.MethodOptions options = 4;
  13186. inline bool MethodDescriptorProto::_internal_has_options() const
  13187. {
  13188. bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
  13189. PROTOBUF_ASSUME(!value || _impl_.options_ != nullptr);
  13190. return value;
  13191. }
  13192. inline bool MethodDescriptorProto::has_options() const
  13193. {
  13194. return _internal_has_options();
  13195. }
  13196. inline void MethodDescriptorProto::clear_options()
  13197. {
  13198. if (_impl_.options_ != nullptr)
  13199. _impl_.options_->Clear();
  13200. _impl_._has_bits_[0] &= ~0x00000008u;
  13201. }
  13202. inline const ::PROTOBUF_NAMESPACE_ID::MethodOptions& MethodDescriptorProto::_internal_options() const
  13203. {
  13204. const ::PROTOBUF_NAMESPACE_ID::MethodOptions* p = _impl_.options_;
  13205. return p != nullptr ? *p : reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::MethodOptions&>(::PROTOBUF_NAMESPACE_ID::_MethodOptions_default_instance_);
  13206. }
  13207. inline const ::PROTOBUF_NAMESPACE_ID::MethodOptions& MethodDescriptorProto::options() const
  13208. {
  13209. // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.options)
  13210. return _internal_options();
  13211. }
  13212. inline void MethodDescriptorProto::unsafe_arena_set_allocated_options(
  13213. ::PROTOBUF_NAMESPACE_ID::MethodOptions* options
  13214. )
  13215. {
  13216. if (GetArenaForAllocation() == nullptr)
  13217. {
  13218. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.options_);
  13219. }
  13220. _impl_.options_ = options;
  13221. if (options)
  13222. {
  13223. _impl_._has_bits_[0] |= 0x00000008u;
  13224. }
  13225. else
  13226. {
  13227. _impl_._has_bits_[0] &= ~0x00000008u;
  13228. }
  13229. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.MethodDescriptorProto.options)
  13230. }
  13231. inline ::PROTOBUF_NAMESPACE_ID::MethodOptions* MethodDescriptorProto::release_options()
  13232. {
  13233. _impl_._has_bits_[0] &= ~0x00000008u;
  13234. ::PROTOBUF_NAMESPACE_ID::MethodOptions* temp = _impl_.options_;
  13235. _impl_.options_ = nullptr;
  13236. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  13237. auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
  13238. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  13239. if (GetArenaForAllocation() == nullptr)
  13240. {
  13241. delete old;
  13242. }
  13243. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  13244. if (GetArenaForAllocation() != nullptr)
  13245. {
  13246. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  13247. }
  13248. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  13249. return temp;
  13250. }
  13251. inline ::PROTOBUF_NAMESPACE_ID::MethodOptions* MethodDescriptorProto::unsafe_arena_release_options()
  13252. {
  13253. // @@protoc_insertion_point(field_release:google.protobuf.MethodDescriptorProto.options)
  13254. _impl_._has_bits_[0] &= ~0x00000008u;
  13255. ::PROTOBUF_NAMESPACE_ID::MethodOptions* temp = _impl_.options_;
  13256. _impl_.options_ = nullptr;
  13257. return temp;
  13258. }
  13259. inline ::PROTOBUF_NAMESPACE_ID::MethodOptions* MethodDescriptorProto::_internal_mutable_options()
  13260. {
  13261. _impl_._has_bits_[0] |= 0x00000008u;
  13262. if (_impl_.options_ == nullptr)
  13263. {
  13264. auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::MethodOptions>(GetArenaForAllocation());
  13265. _impl_.options_ = p;
  13266. }
  13267. return _impl_.options_;
  13268. }
  13269. inline ::PROTOBUF_NAMESPACE_ID::MethodOptions* MethodDescriptorProto::mutable_options()
  13270. {
  13271. ::PROTOBUF_NAMESPACE_ID::MethodOptions* _msg = _internal_mutable_options();
  13272. // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProto.options)
  13273. return _msg;
  13274. }
  13275. inline void MethodDescriptorProto::set_allocated_options(::PROTOBUF_NAMESPACE_ID::MethodOptions* options)
  13276. {
  13277. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  13278. if (message_arena == nullptr)
  13279. {
  13280. delete _impl_.options_;
  13281. }
  13282. if (options)
  13283. {
  13284. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  13285. ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(options);
  13286. if (message_arena != submessage_arena)
  13287. {
  13288. options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  13289. message_arena, options, submessage_arena
  13290. );
  13291. }
  13292. _impl_._has_bits_[0] |= 0x00000008u;
  13293. }
  13294. else
  13295. {
  13296. _impl_._has_bits_[0] &= ~0x00000008u;
  13297. }
  13298. _impl_.options_ = options;
  13299. // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescriptorProto.options)
  13300. }
  13301. // optional bool client_streaming = 5 [default = false];
  13302. inline bool MethodDescriptorProto::_internal_has_client_streaming() const
  13303. {
  13304. bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
  13305. return value;
  13306. }
  13307. inline bool MethodDescriptorProto::has_client_streaming() const
  13308. {
  13309. return _internal_has_client_streaming();
  13310. }
  13311. inline void MethodDescriptorProto::clear_client_streaming()
  13312. {
  13313. _impl_.client_streaming_ = false;
  13314. _impl_._has_bits_[0] &= ~0x00000010u;
  13315. }
  13316. inline bool MethodDescriptorProto::_internal_client_streaming() const
  13317. {
  13318. return _impl_.client_streaming_;
  13319. }
  13320. inline bool MethodDescriptorProto::client_streaming() const
  13321. {
  13322. // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.client_streaming)
  13323. return _internal_client_streaming();
  13324. }
  13325. inline void MethodDescriptorProto::_internal_set_client_streaming(bool value)
  13326. {
  13327. _impl_._has_bits_[0] |= 0x00000010u;
  13328. _impl_.client_streaming_ = value;
  13329. }
  13330. inline void MethodDescriptorProto::set_client_streaming(bool value)
  13331. {
  13332. _internal_set_client_streaming(value);
  13333. // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.client_streaming)
  13334. }
  13335. // optional bool server_streaming = 6 [default = false];
  13336. inline bool MethodDescriptorProto::_internal_has_server_streaming() const
  13337. {
  13338. bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0;
  13339. return value;
  13340. }
  13341. inline bool MethodDescriptorProto::has_server_streaming() const
  13342. {
  13343. return _internal_has_server_streaming();
  13344. }
  13345. inline void MethodDescriptorProto::clear_server_streaming()
  13346. {
  13347. _impl_.server_streaming_ = false;
  13348. _impl_._has_bits_[0] &= ~0x00000020u;
  13349. }
  13350. inline bool MethodDescriptorProto::_internal_server_streaming() const
  13351. {
  13352. return _impl_.server_streaming_;
  13353. }
  13354. inline bool MethodDescriptorProto::server_streaming() const
  13355. {
  13356. // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.server_streaming)
  13357. return _internal_server_streaming();
  13358. }
  13359. inline void MethodDescriptorProto::_internal_set_server_streaming(bool value)
  13360. {
  13361. _impl_._has_bits_[0] |= 0x00000020u;
  13362. _impl_.server_streaming_ = value;
  13363. }
  13364. inline void MethodDescriptorProto::set_server_streaming(bool value)
  13365. {
  13366. _internal_set_server_streaming(value);
  13367. // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.server_streaming)
  13368. }
  13369. // -------------------------------------------------------------------
  13370. // FileOptions
  13371. // optional string java_package = 1;
  13372. inline bool FileOptions::_internal_has_java_package() const
  13373. {
  13374. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  13375. return value;
  13376. }
  13377. inline bool FileOptions::has_java_package() const
  13378. {
  13379. return _internal_has_java_package();
  13380. }
  13381. inline void FileOptions::clear_java_package()
  13382. {
  13383. _impl_.java_package_.ClearToEmpty();
  13384. _impl_._has_bits_[0] &= ~0x00000001u;
  13385. }
  13386. inline const std::string& FileOptions::java_package() const
  13387. {
  13388. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_package)
  13389. return _internal_java_package();
  13390. }
  13391. template<typename ArgT0, typename... ArgT>
  13392. inline PROTOBUF_ALWAYS_INLINE void FileOptions::set_java_package(ArgT0&& arg0, ArgT... args)
  13393. {
  13394. _impl_._has_bits_[0] |= 0x00000001u;
  13395. _impl_.java_package_.Set(static_cast<ArgT0&&>(arg0), args..., GetArenaForAllocation());
  13396. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_package)
  13397. }
  13398. inline std::string* FileOptions::mutable_java_package()
  13399. {
  13400. std::string* _s = _internal_mutable_java_package();
  13401. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.java_package)
  13402. return _s;
  13403. }
  13404. inline const std::string& FileOptions::_internal_java_package() const
  13405. {
  13406. return _impl_.java_package_.Get();
  13407. }
  13408. inline void FileOptions::_internal_set_java_package(const std::string& value)
  13409. {
  13410. _impl_._has_bits_[0] |= 0x00000001u;
  13411. _impl_.java_package_.Set(value, GetArenaForAllocation());
  13412. }
  13413. inline std::string* FileOptions::_internal_mutable_java_package()
  13414. {
  13415. _impl_._has_bits_[0] |= 0x00000001u;
  13416. return _impl_.java_package_.Mutable(GetArenaForAllocation());
  13417. }
  13418. inline std::string* FileOptions::release_java_package()
  13419. {
  13420. // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.java_package)
  13421. if (!_internal_has_java_package())
  13422. {
  13423. return nullptr;
  13424. }
  13425. _impl_._has_bits_[0] &= ~0x00000001u;
  13426. auto* p = _impl_.java_package_.Release();
  13427. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  13428. if (_impl_.java_package_.IsDefault())
  13429. {
  13430. _impl_.java_package_.Set("", GetArenaForAllocation());
  13431. }
  13432. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  13433. return p;
  13434. }
  13435. inline void FileOptions::set_allocated_java_package(std::string* java_package)
  13436. {
  13437. if (java_package != nullptr)
  13438. {
  13439. _impl_._has_bits_[0] |= 0x00000001u;
  13440. }
  13441. else
  13442. {
  13443. _impl_._has_bits_[0] &= ~0x00000001u;
  13444. }
  13445. _impl_.java_package_.SetAllocated(java_package, GetArenaForAllocation());
  13446. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  13447. if (_impl_.java_package_.IsDefault())
  13448. {
  13449. _impl_.java_package_.Set("", GetArenaForAllocation());
  13450. }
  13451. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  13452. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.java_package)
  13453. }
  13454. // optional string java_outer_classname = 8;
  13455. inline bool FileOptions::_internal_has_java_outer_classname() const
  13456. {
  13457. bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
  13458. return value;
  13459. }
  13460. inline bool FileOptions::has_java_outer_classname() const
  13461. {
  13462. return _internal_has_java_outer_classname();
  13463. }
  13464. inline void FileOptions::clear_java_outer_classname()
  13465. {
  13466. _impl_.java_outer_classname_.ClearToEmpty();
  13467. _impl_._has_bits_[0] &= ~0x00000002u;
  13468. }
  13469. inline const std::string& FileOptions::java_outer_classname() const
  13470. {
  13471. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_outer_classname)
  13472. return _internal_java_outer_classname();
  13473. }
  13474. template<typename ArgT0, typename... ArgT>
  13475. inline PROTOBUF_ALWAYS_INLINE void FileOptions::set_java_outer_classname(ArgT0&& arg0, ArgT... args)
  13476. {
  13477. _impl_._has_bits_[0] |= 0x00000002u;
  13478. _impl_.java_outer_classname_.Set(static_cast<ArgT0&&>(arg0), args..., GetArenaForAllocation());
  13479. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_outer_classname)
  13480. }
  13481. inline std::string* FileOptions::mutable_java_outer_classname()
  13482. {
  13483. std::string* _s = _internal_mutable_java_outer_classname();
  13484. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.java_outer_classname)
  13485. return _s;
  13486. }
  13487. inline const std::string& FileOptions::_internal_java_outer_classname() const
  13488. {
  13489. return _impl_.java_outer_classname_.Get();
  13490. }
  13491. inline void FileOptions::_internal_set_java_outer_classname(const std::string& value)
  13492. {
  13493. _impl_._has_bits_[0] |= 0x00000002u;
  13494. _impl_.java_outer_classname_.Set(value, GetArenaForAllocation());
  13495. }
  13496. inline std::string* FileOptions::_internal_mutable_java_outer_classname()
  13497. {
  13498. _impl_._has_bits_[0] |= 0x00000002u;
  13499. return _impl_.java_outer_classname_.Mutable(GetArenaForAllocation());
  13500. }
  13501. inline std::string* FileOptions::release_java_outer_classname()
  13502. {
  13503. // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.java_outer_classname)
  13504. if (!_internal_has_java_outer_classname())
  13505. {
  13506. return nullptr;
  13507. }
  13508. _impl_._has_bits_[0] &= ~0x00000002u;
  13509. auto* p = _impl_.java_outer_classname_.Release();
  13510. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  13511. if (_impl_.java_outer_classname_.IsDefault())
  13512. {
  13513. _impl_.java_outer_classname_.Set("", GetArenaForAllocation());
  13514. }
  13515. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  13516. return p;
  13517. }
  13518. inline void FileOptions::set_allocated_java_outer_classname(std::string* java_outer_classname)
  13519. {
  13520. if (java_outer_classname != nullptr)
  13521. {
  13522. _impl_._has_bits_[0] |= 0x00000002u;
  13523. }
  13524. else
  13525. {
  13526. _impl_._has_bits_[0] &= ~0x00000002u;
  13527. }
  13528. _impl_.java_outer_classname_.SetAllocated(java_outer_classname, GetArenaForAllocation());
  13529. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  13530. if (_impl_.java_outer_classname_.IsDefault())
  13531. {
  13532. _impl_.java_outer_classname_.Set("", GetArenaForAllocation());
  13533. }
  13534. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  13535. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.java_outer_classname)
  13536. }
  13537. // optional bool java_multiple_files = 10 [default = false];
  13538. inline bool FileOptions::_internal_has_java_multiple_files() const
  13539. {
  13540. bool value = (_impl_._has_bits_[0] & 0x00000400u) != 0;
  13541. return value;
  13542. }
  13543. inline bool FileOptions::has_java_multiple_files() const
  13544. {
  13545. return _internal_has_java_multiple_files();
  13546. }
  13547. inline void FileOptions::clear_java_multiple_files()
  13548. {
  13549. _impl_.java_multiple_files_ = false;
  13550. _impl_._has_bits_[0] &= ~0x00000400u;
  13551. }
  13552. inline bool FileOptions::_internal_java_multiple_files() const
  13553. {
  13554. return _impl_.java_multiple_files_;
  13555. }
  13556. inline bool FileOptions::java_multiple_files() const
  13557. {
  13558. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_multiple_files)
  13559. return _internal_java_multiple_files();
  13560. }
  13561. inline void FileOptions::_internal_set_java_multiple_files(bool value)
  13562. {
  13563. _impl_._has_bits_[0] |= 0x00000400u;
  13564. _impl_.java_multiple_files_ = value;
  13565. }
  13566. inline void FileOptions::set_java_multiple_files(bool value)
  13567. {
  13568. _internal_set_java_multiple_files(value);
  13569. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_multiple_files)
  13570. }
  13571. // optional bool java_generate_equals_and_hash = 20 [deprecated = true];
  13572. inline bool FileOptions::_internal_has_java_generate_equals_and_hash() const
  13573. {
  13574. bool value = (_impl_._has_bits_[0] & 0x00000800u) != 0;
  13575. return value;
  13576. }
  13577. inline bool FileOptions::has_java_generate_equals_and_hash() const
  13578. {
  13579. return _internal_has_java_generate_equals_and_hash();
  13580. }
  13581. inline void FileOptions::clear_java_generate_equals_and_hash()
  13582. {
  13583. _impl_.java_generate_equals_and_hash_ = false;
  13584. _impl_._has_bits_[0] &= ~0x00000800u;
  13585. }
  13586. inline bool FileOptions::_internal_java_generate_equals_and_hash() const
  13587. {
  13588. return _impl_.java_generate_equals_and_hash_;
  13589. }
  13590. inline bool FileOptions::java_generate_equals_and_hash() const
  13591. {
  13592. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_generate_equals_and_hash)
  13593. return _internal_java_generate_equals_and_hash();
  13594. }
  13595. inline void FileOptions::_internal_set_java_generate_equals_and_hash(bool value)
  13596. {
  13597. _impl_._has_bits_[0] |= 0x00000800u;
  13598. _impl_.java_generate_equals_and_hash_ = value;
  13599. }
  13600. inline void FileOptions::set_java_generate_equals_and_hash(bool value)
  13601. {
  13602. _internal_set_java_generate_equals_and_hash(value);
  13603. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_generate_equals_and_hash)
  13604. }
  13605. // optional bool java_string_check_utf8 = 27 [default = false];
  13606. inline bool FileOptions::_internal_has_java_string_check_utf8() const
  13607. {
  13608. bool value = (_impl_._has_bits_[0] & 0x00001000u) != 0;
  13609. return value;
  13610. }
  13611. inline bool FileOptions::has_java_string_check_utf8() const
  13612. {
  13613. return _internal_has_java_string_check_utf8();
  13614. }
  13615. inline void FileOptions::clear_java_string_check_utf8()
  13616. {
  13617. _impl_.java_string_check_utf8_ = false;
  13618. _impl_._has_bits_[0] &= ~0x00001000u;
  13619. }
  13620. inline bool FileOptions::_internal_java_string_check_utf8() const
  13621. {
  13622. return _impl_.java_string_check_utf8_;
  13623. }
  13624. inline bool FileOptions::java_string_check_utf8() const
  13625. {
  13626. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_string_check_utf8)
  13627. return _internal_java_string_check_utf8();
  13628. }
  13629. inline void FileOptions::_internal_set_java_string_check_utf8(bool value)
  13630. {
  13631. _impl_._has_bits_[0] |= 0x00001000u;
  13632. _impl_.java_string_check_utf8_ = value;
  13633. }
  13634. inline void FileOptions::set_java_string_check_utf8(bool value)
  13635. {
  13636. _internal_set_java_string_check_utf8(value);
  13637. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_string_check_utf8)
  13638. }
  13639. // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
  13640. inline bool FileOptions::_internal_has_optimize_for() const
  13641. {
  13642. bool value = (_impl_._has_bits_[0] & 0x00040000u) != 0;
  13643. return value;
  13644. }
  13645. inline bool FileOptions::has_optimize_for() const
  13646. {
  13647. return _internal_has_optimize_for();
  13648. }
  13649. inline void FileOptions::clear_optimize_for()
  13650. {
  13651. _impl_.optimize_for_ = 1;
  13652. _impl_._has_bits_[0] &= ~0x00040000u;
  13653. }
  13654. inline ::PROTOBUF_NAMESPACE_ID::FileOptions_OptimizeMode FileOptions::_internal_optimize_for() const
  13655. {
  13656. return static_cast<::PROTOBUF_NAMESPACE_ID::FileOptions_OptimizeMode>(_impl_.optimize_for_);
  13657. }
  13658. inline ::PROTOBUF_NAMESPACE_ID::FileOptions_OptimizeMode FileOptions::optimize_for() const
  13659. {
  13660. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.optimize_for)
  13661. return _internal_optimize_for();
  13662. }
  13663. inline void FileOptions::_internal_set_optimize_for(::PROTOBUF_NAMESPACE_ID::FileOptions_OptimizeMode value)
  13664. {
  13665. assert(::PROTOBUF_NAMESPACE_ID::FileOptions_OptimizeMode_IsValid(value));
  13666. _impl_._has_bits_[0] |= 0x00040000u;
  13667. _impl_.optimize_for_ = value;
  13668. }
  13669. inline void FileOptions::set_optimize_for(::PROTOBUF_NAMESPACE_ID::FileOptions_OptimizeMode value)
  13670. {
  13671. _internal_set_optimize_for(value);
  13672. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.optimize_for)
  13673. }
  13674. // optional string go_package = 11;
  13675. inline bool FileOptions::_internal_has_go_package() const
  13676. {
  13677. bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
  13678. return value;
  13679. }
  13680. inline bool FileOptions::has_go_package() const
  13681. {
  13682. return _internal_has_go_package();
  13683. }
  13684. inline void FileOptions::clear_go_package()
  13685. {
  13686. _impl_.go_package_.ClearToEmpty();
  13687. _impl_._has_bits_[0] &= ~0x00000004u;
  13688. }
  13689. inline const std::string& FileOptions::go_package() const
  13690. {
  13691. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.go_package)
  13692. return _internal_go_package();
  13693. }
  13694. template<typename ArgT0, typename... ArgT>
  13695. inline PROTOBUF_ALWAYS_INLINE void FileOptions::set_go_package(ArgT0&& arg0, ArgT... args)
  13696. {
  13697. _impl_._has_bits_[0] |= 0x00000004u;
  13698. _impl_.go_package_.Set(static_cast<ArgT0&&>(arg0), args..., GetArenaForAllocation());
  13699. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.go_package)
  13700. }
  13701. inline std::string* FileOptions::mutable_go_package()
  13702. {
  13703. std::string* _s = _internal_mutable_go_package();
  13704. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.go_package)
  13705. return _s;
  13706. }
  13707. inline const std::string& FileOptions::_internal_go_package() const
  13708. {
  13709. return _impl_.go_package_.Get();
  13710. }
  13711. inline void FileOptions::_internal_set_go_package(const std::string& value)
  13712. {
  13713. _impl_._has_bits_[0] |= 0x00000004u;
  13714. _impl_.go_package_.Set(value, GetArenaForAllocation());
  13715. }
  13716. inline std::string* FileOptions::_internal_mutable_go_package()
  13717. {
  13718. _impl_._has_bits_[0] |= 0x00000004u;
  13719. return _impl_.go_package_.Mutable(GetArenaForAllocation());
  13720. }
  13721. inline std::string* FileOptions::release_go_package()
  13722. {
  13723. // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.go_package)
  13724. if (!_internal_has_go_package())
  13725. {
  13726. return nullptr;
  13727. }
  13728. _impl_._has_bits_[0] &= ~0x00000004u;
  13729. auto* p = _impl_.go_package_.Release();
  13730. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  13731. if (_impl_.go_package_.IsDefault())
  13732. {
  13733. _impl_.go_package_.Set("", GetArenaForAllocation());
  13734. }
  13735. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  13736. return p;
  13737. }
  13738. inline void FileOptions::set_allocated_go_package(std::string* go_package)
  13739. {
  13740. if (go_package != nullptr)
  13741. {
  13742. _impl_._has_bits_[0] |= 0x00000004u;
  13743. }
  13744. else
  13745. {
  13746. _impl_._has_bits_[0] &= ~0x00000004u;
  13747. }
  13748. _impl_.go_package_.SetAllocated(go_package, GetArenaForAllocation());
  13749. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  13750. if (_impl_.go_package_.IsDefault())
  13751. {
  13752. _impl_.go_package_.Set("", GetArenaForAllocation());
  13753. }
  13754. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  13755. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.go_package)
  13756. }
  13757. // optional bool cc_generic_services = 16 [default = false];
  13758. inline bool FileOptions::_internal_has_cc_generic_services() const
  13759. {
  13760. bool value = (_impl_._has_bits_[0] & 0x00002000u) != 0;
  13761. return value;
  13762. }
  13763. inline bool FileOptions::has_cc_generic_services() const
  13764. {
  13765. return _internal_has_cc_generic_services();
  13766. }
  13767. inline void FileOptions::clear_cc_generic_services()
  13768. {
  13769. _impl_.cc_generic_services_ = false;
  13770. _impl_._has_bits_[0] &= ~0x00002000u;
  13771. }
  13772. inline bool FileOptions::_internal_cc_generic_services() const
  13773. {
  13774. return _impl_.cc_generic_services_;
  13775. }
  13776. inline bool FileOptions::cc_generic_services() const
  13777. {
  13778. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.cc_generic_services)
  13779. return _internal_cc_generic_services();
  13780. }
  13781. inline void FileOptions::_internal_set_cc_generic_services(bool value)
  13782. {
  13783. _impl_._has_bits_[0] |= 0x00002000u;
  13784. _impl_.cc_generic_services_ = value;
  13785. }
  13786. inline void FileOptions::set_cc_generic_services(bool value)
  13787. {
  13788. _internal_set_cc_generic_services(value);
  13789. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.cc_generic_services)
  13790. }
  13791. // optional bool java_generic_services = 17 [default = false];
  13792. inline bool FileOptions::_internal_has_java_generic_services() const
  13793. {
  13794. bool value = (_impl_._has_bits_[0] & 0x00004000u) != 0;
  13795. return value;
  13796. }
  13797. inline bool FileOptions::has_java_generic_services() const
  13798. {
  13799. return _internal_has_java_generic_services();
  13800. }
  13801. inline void FileOptions::clear_java_generic_services()
  13802. {
  13803. _impl_.java_generic_services_ = false;
  13804. _impl_._has_bits_[0] &= ~0x00004000u;
  13805. }
  13806. inline bool FileOptions::_internal_java_generic_services() const
  13807. {
  13808. return _impl_.java_generic_services_;
  13809. }
  13810. inline bool FileOptions::java_generic_services() const
  13811. {
  13812. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_generic_services)
  13813. return _internal_java_generic_services();
  13814. }
  13815. inline void FileOptions::_internal_set_java_generic_services(bool value)
  13816. {
  13817. _impl_._has_bits_[0] |= 0x00004000u;
  13818. _impl_.java_generic_services_ = value;
  13819. }
  13820. inline void FileOptions::set_java_generic_services(bool value)
  13821. {
  13822. _internal_set_java_generic_services(value);
  13823. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_generic_services)
  13824. }
  13825. // optional bool py_generic_services = 18 [default = false];
  13826. inline bool FileOptions::_internal_has_py_generic_services() const
  13827. {
  13828. bool value = (_impl_._has_bits_[0] & 0x00008000u) != 0;
  13829. return value;
  13830. }
  13831. inline bool FileOptions::has_py_generic_services() const
  13832. {
  13833. return _internal_has_py_generic_services();
  13834. }
  13835. inline void FileOptions::clear_py_generic_services()
  13836. {
  13837. _impl_.py_generic_services_ = false;
  13838. _impl_._has_bits_[0] &= ~0x00008000u;
  13839. }
  13840. inline bool FileOptions::_internal_py_generic_services() const
  13841. {
  13842. return _impl_.py_generic_services_;
  13843. }
  13844. inline bool FileOptions::py_generic_services() const
  13845. {
  13846. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.py_generic_services)
  13847. return _internal_py_generic_services();
  13848. }
  13849. inline void FileOptions::_internal_set_py_generic_services(bool value)
  13850. {
  13851. _impl_._has_bits_[0] |= 0x00008000u;
  13852. _impl_.py_generic_services_ = value;
  13853. }
  13854. inline void FileOptions::set_py_generic_services(bool value)
  13855. {
  13856. _internal_set_py_generic_services(value);
  13857. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.py_generic_services)
  13858. }
  13859. // optional bool php_generic_services = 42 [default = false];
  13860. inline bool FileOptions::_internal_has_php_generic_services() const
  13861. {
  13862. bool value = (_impl_._has_bits_[0] & 0x00010000u) != 0;
  13863. return value;
  13864. }
  13865. inline bool FileOptions::has_php_generic_services() const
  13866. {
  13867. return _internal_has_php_generic_services();
  13868. }
  13869. inline void FileOptions::clear_php_generic_services()
  13870. {
  13871. _impl_.php_generic_services_ = false;
  13872. _impl_._has_bits_[0] &= ~0x00010000u;
  13873. }
  13874. inline bool FileOptions::_internal_php_generic_services() const
  13875. {
  13876. return _impl_.php_generic_services_;
  13877. }
  13878. inline bool FileOptions::php_generic_services() const
  13879. {
  13880. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.php_generic_services)
  13881. return _internal_php_generic_services();
  13882. }
  13883. inline void FileOptions::_internal_set_php_generic_services(bool value)
  13884. {
  13885. _impl_._has_bits_[0] |= 0x00010000u;
  13886. _impl_.php_generic_services_ = value;
  13887. }
  13888. inline void FileOptions::set_php_generic_services(bool value)
  13889. {
  13890. _internal_set_php_generic_services(value);
  13891. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.php_generic_services)
  13892. }
  13893. // optional bool deprecated = 23 [default = false];
  13894. inline bool FileOptions::_internal_has_deprecated() const
  13895. {
  13896. bool value = (_impl_._has_bits_[0] & 0x00020000u) != 0;
  13897. return value;
  13898. }
  13899. inline bool FileOptions::has_deprecated() const
  13900. {
  13901. return _internal_has_deprecated();
  13902. }
  13903. inline void FileOptions::clear_deprecated()
  13904. {
  13905. _impl_.deprecated_ = false;
  13906. _impl_._has_bits_[0] &= ~0x00020000u;
  13907. }
  13908. inline bool FileOptions::_internal_deprecated() const
  13909. {
  13910. return _impl_.deprecated_;
  13911. }
  13912. inline bool FileOptions::deprecated() const
  13913. {
  13914. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.deprecated)
  13915. return _internal_deprecated();
  13916. }
  13917. inline void FileOptions::_internal_set_deprecated(bool value)
  13918. {
  13919. _impl_._has_bits_[0] |= 0x00020000u;
  13920. _impl_.deprecated_ = value;
  13921. }
  13922. inline void FileOptions::set_deprecated(bool value)
  13923. {
  13924. _internal_set_deprecated(value);
  13925. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.deprecated)
  13926. }
  13927. // optional bool cc_enable_arenas = 31 [default = true];
  13928. inline bool FileOptions::_internal_has_cc_enable_arenas() const
  13929. {
  13930. bool value = (_impl_._has_bits_[0] & 0x00080000u) != 0;
  13931. return value;
  13932. }
  13933. inline bool FileOptions::has_cc_enable_arenas() const
  13934. {
  13935. return _internal_has_cc_enable_arenas();
  13936. }
  13937. inline void FileOptions::clear_cc_enable_arenas()
  13938. {
  13939. _impl_.cc_enable_arenas_ = true;
  13940. _impl_._has_bits_[0] &= ~0x00080000u;
  13941. }
  13942. inline bool FileOptions::_internal_cc_enable_arenas() const
  13943. {
  13944. return _impl_.cc_enable_arenas_;
  13945. }
  13946. inline bool FileOptions::cc_enable_arenas() const
  13947. {
  13948. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.cc_enable_arenas)
  13949. return _internal_cc_enable_arenas();
  13950. }
  13951. inline void FileOptions::_internal_set_cc_enable_arenas(bool value)
  13952. {
  13953. _impl_._has_bits_[0] |= 0x00080000u;
  13954. _impl_.cc_enable_arenas_ = value;
  13955. }
  13956. inline void FileOptions::set_cc_enable_arenas(bool value)
  13957. {
  13958. _internal_set_cc_enable_arenas(value);
  13959. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.cc_enable_arenas)
  13960. }
  13961. // optional string objc_class_prefix = 36;
  13962. inline bool FileOptions::_internal_has_objc_class_prefix() const
  13963. {
  13964. bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
  13965. return value;
  13966. }
  13967. inline bool FileOptions::has_objc_class_prefix() const
  13968. {
  13969. return _internal_has_objc_class_prefix();
  13970. }
  13971. inline void FileOptions::clear_objc_class_prefix()
  13972. {
  13973. _impl_.objc_class_prefix_.ClearToEmpty();
  13974. _impl_._has_bits_[0] &= ~0x00000008u;
  13975. }
  13976. inline const std::string& FileOptions::objc_class_prefix() const
  13977. {
  13978. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.objc_class_prefix)
  13979. return _internal_objc_class_prefix();
  13980. }
  13981. template<typename ArgT0, typename... ArgT>
  13982. inline PROTOBUF_ALWAYS_INLINE void FileOptions::set_objc_class_prefix(ArgT0&& arg0, ArgT... args)
  13983. {
  13984. _impl_._has_bits_[0] |= 0x00000008u;
  13985. _impl_.objc_class_prefix_.Set(static_cast<ArgT0&&>(arg0), args..., GetArenaForAllocation());
  13986. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.objc_class_prefix)
  13987. }
  13988. inline std::string* FileOptions::mutable_objc_class_prefix()
  13989. {
  13990. std::string* _s = _internal_mutable_objc_class_prefix();
  13991. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.objc_class_prefix)
  13992. return _s;
  13993. }
  13994. inline const std::string& FileOptions::_internal_objc_class_prefix() const
  13995. {
  13996. return _impl_.objc_class_prefix_.Get();
  13997. }
  13998. inline void FileOptions::_internal_set_objc_class_prefix(const std::string& value)
  13999. {
  14000. _impl_._has_bits_[0] |= 0x00000008u;
  14001. _impl_.objc_class_prefix_.Set(value, GetArenaForAllocation());
  14002. }
  14003. inline std::string* FileOptions::_internal_mutable_objc_class_prefix()
  14004. {
  14005. _impl_._has_bits_[0] |= 0x00000008u;
  14006. return _impl_.objc_class_prefix_.Mutable(GetArenaForAllocation());
  14007. }
  14008. inline std::string* FileOptions::release_objc_class_prefix()
  14009. {
  14010. // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.objc_class_prefix)
  14011. if (!_internal_has_objc_class_prefix())
  14012. {
  14013. return nullptr;
  14014. }
  14015. _impl_._has_bits_[0] &= ~0x00000008u;
  14016. auto* p = _impl_.objc_class_prefix_.Release();
  14017. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  14018. if (_impl_.objc_class_prefix_.IsDefault())
  14019. {
  14020. _impl_.objc_class_prefix_.Set("", GetArenaForAllocation());
  14021. }
  14022. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  14023. return p;
  14024. }
  14025. inline void FileOptions::set_allocated_objc_class_prefix(std::string* objc_class_prefix)
  14026. {
  14027. if (objc_class_prefix != nullptr)
  14028. {
  14029. _impl_._has_bits_[0] |= 0x00000008u;
  14030. }
  14031. else
  14032. {
  14033. _impl_._has_bits_[0] &= ~0x00000008u;
  14034. }
  14035. _impl_.objc_class_prefix_.SetAllocated(objc_class_prefix, GetArenaForAllocation());
  14036. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  14037. if (_impl_.objc_class_prefix_.IsDefault())
  14038. {
  14039. _impl_.objc_class_prefix_.Set("", GetArenaForAllocation());
  14040. }
  14041. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  14042. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.objc_class_prefix)
  14043. }
  14044. // optional string csharp_namespace = 37;
  14045. inline bool FileOptions::_internal_has_csharp_namespace() const
  14046. {
  14047. bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
  14048. return value;
  14049. }
  14050. inline bool FileOptions::has_csharp_namespace() const
  14051. {
  14052. return _internal_has_csharp_namespace();
  14053. }
  14054. inline void FileOptions::clear_csharp_namespace()
  14055. {
  14056. _impl_.csharp_namespace_.ClearToEmpty();
  14057. _impl_._has_bits_[0] &= ~0x00000010u;
  14058. }
  14059. inline const std::string& FileOptions::csharp_namespace() const
  14060. {
  14061. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.csharp_namespace)
  14062. return _internal_csharp_namespace();
  14063. }
  14064. template<typename ArgT0, typename... ArgT>
  14065. inline PROTOBUF_ALWAYS_INLINE void FileOptions::set_csharp_namespace(ArgT0&& arg0, ArgT... args)
  14066. {
  14067. _impl_._has_bits_[0] |= 0x00000010u;
  14068. _impl_.csharp_namespace_.Set(static_cast<ArgT0&&>(arg0), args..., GetArenaForAllocation());
  14069. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.csharp_namespace)
  14070. }
  14071. inline std::string* FileOptions::mutable_csharp_namespace()
  14072. {
  14073. std::string* _s = _internal_mutable_csharp_namespace();
  14074. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.csharp_namespace)
  14075. return _s;
  14076. }
  14077. inline const std::string& FileOptions::_internal_csharp_namespace() const
  14078. {
  14079. return _impl_.csharp_namespace_.Get();
  14080. }
  14081. inline void FileOptions::_internal_set_csharp_namespace(const std::string& value)
  14082. {
  14083. _impl_._has_bits_[0] |= 0x00000010u;
  14084. _impl_.csharp_namespace_.Set(value, GetArenaForAllocation());
  14085. }
  14086. inline std::string* FileOptions::_internal_mutable_csharp_namespace()
  14087. {
  14088. _impl_._has_bits_[0] |= 0x00000010u;
  14089. return _impl_.csharp_namespace_.Mutable(GetArenaForAllocation());
  14090. }
  14091. inline std::string* FileOptions::release_csharp_namespace()
  14092. {
  14093. // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.csharp_namespace)
  14094. if (!_internal_has_csharp_namespace())
  14095. {
  14096. return nullptr;
  14097. }
  14098. _impl_._has_bits_[0] &= ~0x00000010u;
  14099. auto* p = _impl_.csharp_namespace_.Release();
  14100. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  14101. if (_impl_.csharp_namespace_.IsDefault())
  14102. {
  14103. _impl_.csharp_namespace_.Set("", GetArenaForAllocation());
  14104. }
  14105. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  14106. return p;
  14107. }
  14108. inline void FileOptions::set_allocated_csharp_namespace(std::string* csharp_namespace)
  14109. {
  14110. if (csharp_namespace != nullptr)
  14111. {
  14112. _impl_._has_bits_[0] |= 0x00000010u;
  14113. }
  14114. else
  14115. {
  14116. _impl_._has_bits_[0] &= ~0x00000010u;
  14117. }
  14118. _impl_.csharp_namespace_.SetAllocated(csharp_namespace, GetArenaForAllocation());
  14119. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  14120. if (_impl_.csharp_namespace_.IsDefault())
  14121. {
  14122. _impl_.csharp_namespace_.Set("", GetArenaForAllocation());
  14123. }
  14124. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  14125. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.csharp_namespace)
  14126. }
  14127. // optional string swift_prefix = 39;
  14128. inline bool FileOptions::_internal_has_swift_prefix() const
  14129. {
  14130. bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0;
  14131. return value;
  14132. }
  14133. inline bool FileOptions::has_swift_prefix() const
  14134. {
  14135. return _internal_has_swift_prefix();
  14136. }
  14137. inline void FileOptions::clear_swift_prefix()
  14138. {
  14139. _impl_.swift_prefix_.ClearToEmpty();
  14140. _impl_._has_bits_[0] &= ~0x00000020u;
  14141. }
  14142. inline const std::string& FileOptions::swift_prefix() const
  14143. {
  14144. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.swift_prefix)
  14145. return _internal_swift_prefix();
  14146. }
  14147. template<typename ArgT0, typename... ArgT>
  14148. inline PROTOBUF_ALWAYS_INLINE void FileOptions::set_swift_prefix(ArgT0&& arg0, ArgT... args)
  14149. {
  14150. _impl_._has_bits_[0] |= 0x00000020u;
  14151. _impl_.swift_prefix_.Set(static_cast<ArgT0&&>(arg0), args..., GetArenaForAllocation());
  14152. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.swift_prefix)
  14153. }
  14154. inline std::string* FileOptions::mutable_swift_prefix()
  14155. {
  14156. std::string* _s = _internal_mutable_swift_prefix();
  14157. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.swift_prefix)
  14158. return _s;
  14159. }
  14160. inline const std::string& FileOptions::_internal_swift_prefix() const
  14161. {
  14162. return _impl_.swift_prefix_.Get();
  14163. }
  14164. inline void FileOptions::_internal_set_swift_prefix(const std::string& value)
  14165. {
  14166. _impl_._has_bits_[0] |= 0x00000020u;
  14167. _impl_.swift_prefix_.Set(value, GetArenaForAllocation());
  14168. }
  14169. inline std::string* FileOptions::_internal_mutable_swift_prefix()
  14170. {
  14171. _impl_._has_bits_[0] |= 0x00000020u;
  14172. return _impl_.swift_prefix_.Mutable(GetArenaForAllocation());
  14173. }
  14174. inline std::string* FileOptions::release_swift_prefix()
  14175. {
  14176. // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.swift_prefix)
  14177. if (!_internal_has_swift_prefix())
  14178. {
  14179. return nullptr;
  14180. }
  14181. _impl_._has_bits_[0] &= ~0x00000020u;
  14182. auto* p = _impl_.swift_prefix_.Release();
  14183. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  14184. if (_impl_.swift_prefix_.IsDefault())
  14185. {
  14186. _impl_.swift_prefix_.Set("", GetArenaForAllocation());
  14187. }
  14188. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  14189. return p;
  14190. }
  14191. inline void FileOptions::set_allocated_swift_prefix(std::string* swift_prefix)
  14192. {
  14193. if (swift_prefix != nullptr)
  14194. {
  14195. _impl_._has_bits_[0] |= 0x00000020u;
  14196. }
  14197. else
  14198. {
  14199. _impl_._has_bits_[0] &= ~0x00000020u;
  14200. }
  14201. _impl_.swift_prefix_.SetAllocated(swift_prefix, GetArenaForAllocation());
  14202. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  14203. if (_impl_.swift_prefix_.IsDefault())
  14204. {
  14205. _impl_.swift_prefix_.Set("", GetArenaForAllocation());
  14206. }
  14207. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  14208. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.swift_prefix)
  14209. }
  14210. // optional string php_class_prefix = 40;
  14211. inline bool FileOptions::_internal_has_php_class_prefix() const
  14212. {
  14213. bool value = (_impl_._has_bits_[0] & 0x00000040u) != 0;
  14214. return value;
  14215. }
  14216. inline bool FileOptions::has_php_class_prefix() const
  14217. {
  14218. return _internal_has_php_class_prefix();
  14219. }
  14220. inline void FileOptions::clear_php_class_prefix()
  14221. {
  14222. _impl_.php_class_prefix_.ClearToEmpty();
  14223. _impl_._has_bits_[0] &= ~0x00000040u;
  14224. }
  14225. inline const std::string& FileOptions::php_class_prefix() const
  14226. {
  14227. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.php_class_prefix)
  14228. return _internal_php_class_prefix();
  14229. }
  14230. template<typename ArgT0, typename... ArgT>
  14231. inline PROTOBUF_ALWAYS_INLINE void FileOptions::set_php_class_prefix(ArgT0&& arg0, ArgT... args)
  14232. {
  14233. _impl_._has_bits_[0] |= 0x00000040u;
  14234. _impl_.php_class_prefix_.Set(static_cast<ArgT0&&>(arg0), args..., GetArenaForAllocation());
  14235. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.php_class_prefix)
  14236. }
  14237. inline std::string* FileOptions::mutable_php_class_prefix()
  14238. {
  14239. std::string* _s = _internal_mutable_php_class_prefix();
  14240. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.php_class_prefix)
  14241. return _s;
  14242. }
  14243. inline const std::string& FileOptions::_internal_php_class_prefix() const
  14244. {
  14245. return _impl_.php_class_prefix_.Get();
  14246. }
  14247. inline void FileOptions::_internal_set_php_class_prefix(const std::string& value)
  14248. {
  14249. _impl_._has_bits_[0] |= 0x00000040u;
  14250. _impl_.php_class_prefix_.Set(value, GetArenaForAllocation());
  14251. }
  14252. inline std::string* FileOptions::_internal_mutable_php_class_prefix()
  14253. {
  14254. _impl_._has_bits_[0] |= 0x00000040u;
  14255. return _impl_.php_class_prefix_.Mutable(GetArenaForAllocation());
  14256. }
  14257. inline std::string* FileOptions::release_php_class_prefix()
  14258. {
  14259. // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.php_class_prefix)
  14260. if (!_internal_has_php_class_prefix())
  14261. {
  14262. return nullptr;
  14263. }
  14264. _impl_._has_bits_[0] &= ~0x00000040u;
  14265. auto* p = _impl_.php_class_prefix_.Release();
  14266. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  14267. if (_impl_.php_class_prefix_.IsDefault())
  14268. {
  14269. _impl_.php_class_prefix_.Set("", GetArenaForAllocation());
  14270. }
  14271. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  14272. return p;
  14273. }
  14274. inline void FileOptions::set_allocated_php_class_prefix(std::string* php_class_prefix)
  14275. {
  14276. if (php_class_prefix != nullptr)
  14277. {
  14278. _impl_._has_bits_[0] |= 0x00000040u;
  14279. }
  14280. else
  14281. {
  14282. _impl_._has_bits_[0] &= ~0x00000040u;
  14283. }
  14284. _impl_.php_class_prefix_.SetAllocated(php_class_prefix, GetArenaForAllocation());
  14285. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  14286. if (_impl_.php_class_prefix_.IsDefault())
  14287. {
  14288. _impl_.php_class_prefix_.Set("", GetArenaForAllocation());
  14289. }
  14290. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  14291. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.php_class_prefix)
  14292. }
  14293. // optional string php_namespace = 41;
  14294. inline bool FileOptions::_internal_has_php_namespace() const
  14295. {
  14296. bool value = (_impl_._has_bits_[0] & 0x00000080u) != 0;
  14297. return value;
  14298. }
  14299. inline bool FileOptions::has_php_namespace() const
  14300. {
  14301. return _internal_has_php_namespace();
  14302. }
  14303. inline void FileOptions::clear_php_namespace()
  14304. {
  14305. _impl_.php_namespace_.ClearToEmpty();
  14306. _impl_._has_bits_[0] &= ~0x00000080u;
  14307. }
  14308. inline const std::string& FileOptions::php_namespace() const
  14309. {
  14310. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.php_namespace)
  14311. return _internal_php_namespace();
  14312. }
  14313. template<typename ArgT0, typename... ArgT>
  14314. inline PROTOBUF_ALWAYS_INLINE void FileOptions::set_php_namespace(ArgT0&& arg0, ArgT... args)
  14315. {
  14316. _impl_._has_bits_[0] |= 0x00000080u;
  14317. _impl_.php_namespace_.Set(static_cast<ArgT0&&>(arg0), args..., GetArenaForAllocation());
  14318. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.php_namespace)
  14319. }
  14320. inline std::string* FileOptions::mutable_php_namespace()
  14321. {
  14322. std::string* _s = _internal_mutable_php_namespace();
  14323. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.php_namespace)
  14324. return _s;
  14325. }
  14326. inline const std::string& FileOptions::_internal_php_namespace() const
  14327. {
  14328. return _impl_.php_namespace_.Get();
  14329. }
  14330. inline void FileOptions::_internal_set_php_namespace(const std::string& value)
  14331. {
  14332. _impl_._has_bits_[0] |= 0x00000080u;
  14333. _impl_.php_namespace_.Set(value, GetArenaForAllocation());
  14334. }
  14335. inline std::string* FileOptions::_internal_mutable_php_namespace()
  14336. {
  14337. _impl_._has_bits_[0] |= 0x00000080u;
  14338. return _impl_.php_namespace_.Mutable(GetArenaForAllocation());
  14339. }
  14340. inline std::string* FileOptions::release_php_namespace()
  14341. {
  14342. // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.php_namespace)
  14343. if (!_internal_has_php_namespace())
  14344. {
  14345. return nullptr;
  14346. }
  14347. _impl_._has_bits_[0] &= ~0x00000080u;
  14348. auto* p = _impl_.php_namespace_.Release();
  14349. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  14350. if (_impl_.php_namespace_.IsDefault())
  14351. {
  14352. _impl_.php_namespace_.Set("", GetArenaForAllocation());
  14353. }
  14354. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  14355. return p;
  14356. }
  14357. inline void FileOptions::set_allocated_php_namespace(std::string* php_namespace)
  14358. {
  14359. if (php_namespace != nullptr)
  14360. {
  14361. _impl_._has_bits_[0] |= 0x00000080u;
  14362. }
  14363. else
  14364. {
  14365. _impl_._has_bits_[0] &= ~0x00000080u;
  14366. }
  14367. _impl_.php_namespace_.SetAllocated(php_namespace, GetArenaForAllocation());
  14368. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  14369. if (_impl_.php_namespace_.IsDefault())
  14370. {
  14371. _impl_.php_namespace_.Set("", GetArenaForAllocation());
  14372. }
  14373. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  14374. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.php_namespace)
  14375. }
  14376. // optional string php_metadata_namespace = 44;
  14377. inline bool FileOptions::_internal_has_php_metadata_namespace() const
  14378. {
  14379. bool value = (_impl_._has_bits_[0] & 0x00000100u) != 0;
  14380. return value;
  14381. }
  14382. inline bool FileOptions::has_php_metadata_namespace() const
  14383. {
  14384. return _internal_has_php_metadata_namespace();
  14385. }
  14386. inline void FileOptions::clear_php_metadata_namespace()
  14387. {
  14388. _impl_.php_metadata_namespace_.ClearToEmpty();
  14389. _impl_._has_bits_[0] &= ~0x00000100u;
  14390. }
  14391. inline const std::string& FileOptions::php_metadata_namespace() const
  14392. {
  14393. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.php_metadata_namespace)
  14394. return _internal_php_metadata_namespace();
  14395. }
  14396. template<typename ArgT0, typename... ArgT>
  14397. inline PROTOBUF_ALWAYS_INLINE void FileOptions::set_php_metadata_namespace(ArgT0&& arg0, ArgT... args)
  14398. {
  14399. _impl_._has_bits_[0] |= 0x00000100u;
  14400. _impl_.php_metadata_namespace_.Set(static_cast<ArgT0&&>(arg0), args..., GetArenaForAllocation());
  14401. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.php_metadata_namespace)
  14402. }
  14403. inline std::string* FileOptions::mutable_php_metadata_namespace()
  14404. {
  14405. std::string* _s = _internal_mutable_php_metadata_namespace();
  14406. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.php_metadata_namespace)
  14407. return _s;
  14408. }
  14409. inline const std::string& FileOptions::_internal_php_metadata_namespace() const
  14410. {
  14411. return _impl_.php_metadata_namespace_.Get();
  14412. }
  14413. inline void FileOptions::_internal_set_php_metadata_namespace(const std::string& value)
  14414. {
  14415. _impl_._has_bits_[0] |= 0x00000100u;
  14416. _impl_.php_metadata_namespace_.Set(value, GetArenaForAllocation());
  14417. }
  14418. inline std::string* FileOptions::_internal_mutable_php_metadata_namespace()
  14419. {
  14420. _impl_._has_bits_[0] |= 0x00000100u;
  14421. return _impl_.php_metadata_namespace_.Mutable(GetArenaForAllocation());
  14422. }
  14423. inline std::string* FileOptions::release_php_metadata_namespace()
  14424. {
  14425. // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.php_metadata_namespace)
  14426. if (!_internal_has_php_metadata_namespace())
  14427. {
  14428. return nullptr;
  14429. }
  14430. _impl_._has_bits_[0] &= ~0x00000100u;
  14431. auto* p = _impl_.php_metadata_namespace_.Release();
  14432. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  14433. if (_impl_.php_metadata_namespace_.IsDefault())
  14434. {
  14435. _impl_.php_metadata_namespace_.Set("", GetArenaForAllocation());
  14436. }
  14437. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  14438. return p;
  14439. }
  14440. inline void FileOptions::set_allocated_php_metadata_namespace(std::string* php_metadata_namespace)
  14441. {
  14442. if (php_metadata_namespace != nullptr)
  14443. {
  14444. _impl_._has_bits_[0] |= 0x00000100u;
  14445. }
  14446. else
  14447. {
  14448. _impl_._has_bits_[0] &= ~0x00000100u;
  14449. }
  14450. _impl_.php_metadata_namespace_.SetAllocated(php_metadata_namespace, GetArenaForAllocation());
  14451. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  14452. if (_impl_.php_metadata_namespace_.IsDefault())
  14453. {
  14454. _impl_.php_metadata_namespace_.Set("", GetArenaForAllocation());
  14455. }
  14456. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  14457. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.php_metadata_namespace)
  14458. }
  14459. // optional string ruby_package = 45;
  14460. inline bool FileOptions::_internal_has_ruby_package() const
  14461. {
  14462. bool value = (_impl_._has_bits_[0] & 0x00000200u) != 0;
  14463. return value;
  14464. }
  14465. inline bool FileOptions::has_ruby_package() const
  14466. {
  14467. return _internal_has_ruby_package();
  14468. }
  14469. inline void FileOptions::clear_ruby_package()
  14470. {
  14471. _impl_.ruby_package_.ClearToEmpty();
  14472. _impl_._has_bits_[0] &= ~0x00000200u;
  14473. }
  14474. inline const std::string& FileOptions::ruby_package() const
  14475. {
  14476. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.ruby_package)
  14477. return _internal_ruby_package();
  14478. }
  14479. template<typename ArgT0, typename... ArgT>
  14480. inline PROTOBUF_ALWAYS_INLINE void FileOptions::set_ruby_package(ArgT0&& arg0, ArgT... args)
  14481. {
  14482. _impl_._has_bits_[0] |= 0x00000200u;
  14483. _impl_.ruby_package_.Set(static_cast<ArgT0&&>(arg0), args..., GetArenaForAllocation());
  14484. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.ruby_package)
  14485. }
  14486. inline std::string* FileOptions::mutable_ruby_package()
  14487. {
  14488. std::string* _s = _internal_mutable_ruby_package();
  14489. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.ruby_package)
  14490. return _s;
  14491. }
  14492. inline const std::string& FileOptions::_internal_ruby_package() const
  14493. {
  14494. return _impl_.ruby_package_.Get();
  14495. }
  14496. inline void FileOptions::_internal_set_ruby_package(const std::string& value)
  14497. {
  14498. _impl_._has_bits_[0] |= 0x00000200u;
  14499. _impl_.ruby_package_.Set(value, GetArenaForAllocation());
  14500. }
  14501. inline std::string* FileOptions::_internal_mutable_ruby_package()
  14502. {
  14503. _impl_._has_bits_[0] |= 0x00000200u;
  14504. return _impl_.ruby_package_.Mutable(GetArenaForAllocation());
  14505. }
  14506. inline std::string* FileOptions::release_ruby_package()
  14507. {
  14508. // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.ruby_package)
  14509. if (!_internal_has_ruby_package())
  14510. {
  14511. return nullptr;
  14512. }
  14513. _impl_._has_bits_[0] &= ~0x00000200u;
  14514. auto* p = _impl_.ruby_package_.Release();
  14515. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  14516. if (_impl_.ruby_package_.IsDefault())
  14517. {
  14518. _impl_.ruby_package_.Set("", GetArenaForAllocation());
  14519. }
  14520. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  14521. return p;
  14522. }
  14523. inline void FileOptions::set_allocated_ruby_package(std::string* ruby_package)
  14524. {
  14525. if (ruby_package != nullptr)
  14526. {
  14527. _impl_._has_bits_[0] |= 0x00000200u;
  14528. }
  14529. else
  14530. {
  14531. _impl_._has_bits_[0] &= ~0x00000200u;
  14532. }
  14533. _impl_.ruby_package_.SetAllocated(ruby_package, GetArenaForAllocation());
  14534. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  14535. if (_impl_.ruby_package_.IsDefault())
  14536. {
  14537. _impl_.ruby_package_.Set("", GetArenaForAllocation());
  14538. }
  14539. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  14540. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.ruby_package)
  14541. }
  14542. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  14543. inline int FileOptions::_internal_uninterpreted_option_size() const
  14544. {
  14545. return _impl_.uninterpreted_option_.size();
  14546. }
  14547. inline int FileOptions::uninterpreted_option_size() const
  14548. {
  14549. return _internal_uninterpreted_option_size();
  14550. }
  14551. inline void FileOptions::clear_uninterpreted_option()
  14552. {
  14553. _impl_.uninterpreted_option_.Clear();
  14554. }
  14555. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* FileOptions::mutable_uninterpreted_option(int index)
  14556. {
  14557. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.uninterpreted_option)
  14558. return _impl_.uninterpreted_option_.Mutable(index);
  14559. }
  14560. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::UninterpretedOption>*
  14561. FileOptions::mutable_uninterpreted_option()
  14562. {
  14563. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileOptions.uninterpreted_option)
  14564. return &_impl_.uninterpreted_option_;
  14565. }
  14566. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& FileOptions::_internal_uninterpreted_option(int index) const
  14567. {
  14568. return _impl_.uninterpreted_option_.Get(index);
  14569. }
  14570. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& FileOptions::uninterpreted_option(int index) const
  14571. {
  14572. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.uninterpreted_option)
  14573. return _internal_uninterpreted_option(index);
  14574. }
  14575. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* FileOptions::_internal_add_uninterpreted_option()
  14576. {
  14577. return _impl_.uninterpreted_option_.Add();
  14578. }
  14579. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* FileOptions::add_uninterpreted_option()
  14580. {
  14581. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* _add = _internal_add_uninterpreted_option();
  14582. // @@protoc_insertion_point(field_add:google.protobuf.FileOptions.uninterpreted_option)
  14583. return _add;
  14584. }
  14585. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::UninterpretedOption>&
  14586. FileOptions::uninterpreted_option() const
  14587. {
  14588. // @@protoc_insertion_point(field_list:google.protobuf.FileOptions.uninterpreted_option)
  14589. return _impl_.uninterpreted_option_;
  14590. }
  14591. // -------------------------------------------------------------------
  14592. // MessageOptions
  14593. // optional bool message_set_wire_format = 1 [default = false];
  14594. inline bool MessageOptions::_internal_has_message_set_wire_format() const
  14595. {
  14596. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  14597. return value;
  14598. }
  14599. inline bool MessageOptions::has_message_set_wire_format() const
  14600. {
  14601. return _internal_has_message_set_wire_format();
  14602. }
  14603. inline void MessageOptions::clear_message_set_wire_format()
  14604. {
  14605. _impl_.message_set_wire_format_ = false;
  14606. _impl_._has_bits_[0] &= ~0x00000001u;
  14607. }
  14608. inline bool MessageOptions::_internal_message_set_wire_format() const
  14609. {
  14610. return _impl_.message_set_wire_format_;
  14611. }
  14612. inline bool MessageOptions::message_set_wire_format() const
  14613. {
  14614. // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.message_set_wire_format)
  14615. return _internal_message_set_wire_format();
  14616. }
  14617. inline void MessageOptions::_internal_set_message_set_wire_format(bool value)
  14618. {
  14619. _impl_._has_bits_[0] |= 0x00000001u;
  14620. _impl_.message_set_wire_format_ = value;
  14621. }
  14622. inline void MessageOptions::set_message_set_wire_format(bool value)
  14623. {
  14624. _internal_set_message_set_wire_format(value);
  14625. // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.message_set_wire_format)
  14626. }
  14627. // optional bool no_standard_descriptor_accessor = 2 [default = false];
  14628. inline bool MessageOptions::_internal_has_no_standard_descriptor_accessor() const
  14629. {
  14630. bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
  14631. return value;
  14632. }
  14633. inline bool MessageOptions::has_no_standard_descriptor_accessor() const
  14634. {
  14635. return _internal_has_no_standard_descriptor_accessor();
  14636. }
  14637. inline void MessageOptions::clear_no_standard_descriptor_accessor()
  14638. {
  14639. _impl_.no_standard_descriptor_accessor_ = false;
  14640. _impl_._has_bits_[0] &= ~0x00000002u;
  14641. }
  14642. inline bool MessageOptions::_internal_no_standard_descriptor_accessor() const
  14643. {
  14644. return _impl_.no_standard_descriptor_accessor_;
  14645. }
  14646. inline bool MessageOptions::no_standard_descriptor_accessor() const
  14647. {
  14648. // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.no_standard_descriptor_accessor)
  14649. return _internal_no_standard_descriptor_accessor();
  14650. }
  14651. inline void MessageOptions::_internal_set_no_standard_descriptor_accessor(bool value)
  14652. {
  14653. _impl_._has_bits_[0] |= 0x00000002u;
  14654. _impl_.no_standard_descriptor_accessor_ = value;
  14655. }
  14656. inline void MessageOptions::set_no_standard_descriptor_accessor(bool value)
  14657. {
  14658. _internal_set_no_standard_descriptor_accessor(value);
  14659. // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.no_standard_descriptor_accessor)
  14660. }
  14661. // optional bool deprecated = 3 [default = false];
  14662. inline bool MessageOptions::_internal_has_deprecated() const
  14663. {
  14664. bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
  14665. return value;
  14666. }
  14667. inline bool MessageOptions::has_deprecated() const
  14668. {
  14669. return _internal_has_deprecated();
  14670. }
  14671. inline void MessageOptions::clear_deprecated()
  14672. {
  14673. _impl_.deprecated_ = false;
  14674. _impl_._has_bits_[0] &= ~0x00000004u;
  14675. }
  14676. inline bool MessageOptions::_internal_deprecated() const
  14677. {
  14678. return _impl_.deprecated_;
  14679. }
  14680. inline bool MessageOptions::deprecated() const
  14681. {
  14682. // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.deprecated)
  14683. return _internal_deprecated();
  14684. }
  14685. inline void MessageOptions::_internal_set_deprecated(bool value)
  14686. {
  14687. _impl_._has_bits_[0] |= 0x00000004u;
  14688. _impl_.deprecated_ = value;
  14689. }
  14690. inline void MessageOptions::set_deprecated(bool value)
  14691. {
  14692. _internal_set_deprecated(value);
  14693. // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.deprecated)
  14694. }
  14695. // optional bool map_entry = 7;
  14696. inline bool MessageOptions::_internal_has_map_entry() const
  14697. {
  14698. bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
  14699. return value;
  14700. }
  14701. inline bool MessageOptions::has_map_entry() const
  14702. {
  14703. return _internal_has_map_entry();
  14704. }
  14705. inline void MessageOptions::clear_map_entry()
  14706. {
  14707. _impl_.map_entry_ = false;
  14708. _impl_._has_bits_[0] &= ~0x00000008u;
  14709. }
  14710. inline bool MessageOptions::_internal_map_entry() const
  14711. {
  14712. return _impl_.map_entry_;
  14713. }
  14714. inline bool MessageOptions::map_entry() const
  14715. {
  14716. // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.map_entry)
  14717. return _internal_map_entry();
  14718. }
  14719. inline void MessageOptions::_internal_set_map_entry(bool value)
  14720. {
  14721. _impl_._has_bits_[0] |= 0x00000008u;
  14722. _impl_.map_entry_ = value;
  14723. }
  14724. inline void MessageOptions::set_map_entry(bool value)
  14725. {
  14726. _internal_set_map_entry(value);
  14727. // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.map_entry)
  14728. }
  14729. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  14730. inline int MessageOptions::_internal_uninterpreted_option_size() const
  14731. {
  14732. return _impl_.uninterpreted_option_.size();
  14733. }
  14734. inline int MessageOptions::uninterpreted_option_size() const
  14735. {
  14736. return _internal_uninterpreted_option_size();
  14737. }
  14738. inline void MessageOptions::clear_uninterpreted_option()
  14739. {
  14740. _impl_.uninterpreted_option_.Clear();
  14741. }
  14742. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* MessageOptions::mutable_uninterpreted_option(int index)
  14743. {
  14744. // @@protoc_insertion_point(field_mutable:google.protobuf.MessageOptions.uninterpreted_option)
  14745. return _impl_.uninterpreted_option_.Mutable(index);
  14746. }
  14747. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::UninterpretedOption>*
  14748. MessageOptions::mutable_uninterpreted_option()
  14749. {
  14750. // @@protoc_insertion_point(field_mutable_list:google.protobuf.MessageOptions.uninterpreted_option)
  14751. return &_impl_.uninterpreted_option_;
  14752. }
  14753. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& MessageOptions::_internal_uninterpreted_option(int index) const
  14754. {
  14755. return _impl_.uninterpreted_option_.Get(index);
  14756. }
  14757. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& MessageOptions::uninterpreted_option(int index) const
  14758. {
  14759. // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.uninterpreted_option)
  14760. return _internal_uninterpreted_option(index);
  14761. }
  14762. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* MessageOptions::_internal_add_uninterpreted_option()
  14763. {
  14764. return _impl_.uninterpreted_option_.Add();
  14765. }
  14766. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* MessageOptions::add_uninterpreted_option()
  14767. {
  14768. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* _add = _internal_add_uninterpreted_option();
  14769. // @@protoc_insertion_point(field_add:google.protobuf.MessageOptions.uninterpreted_option)
  14770. return _add;
  14771. }
  14772. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::UninterpretedOption>&
  14773. MessageOptions::uninterpreted_option() const
  14774. {
  14775. // @@protoc_insertion_point(field_list:google.protobuf.MessageOptions.uninterpreted_option)
  14776. return _impl_.uninterpreted_option_;
  14777. }
  14778. // -------------------------------------------------------------------
  14779. // FieldOptions
  14780. // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
  14781. inline bool FieldOptions::_internal_has_ctype() const
  14782. {
  14783. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  14784. return value;
  14785. }
  14786. inline bool FieldOptions::has_ctype() const
  14787. {
  14788. return _internal_has_ctype();
  14789. }
  14790. inline void FieldOptions::clear_ctype()
  14791. {
  14792. _impl_.ctype_ = 0;
  14793. _impl_._has_bits_[0] &= ~0x00000001u;
  14794. }
  14795. inline ::PROTOBUF_NAMESPACE_ID::FieldOptions_CType FieldOptions::_internal_ctype() const
  14796. {
  14797. return static_cast<::PROTOBUF_NAMESPACE_ID::FieldOptions_CType>(_impl_.ctype_);
  14798. }
  14799. inline ::PROTOBUF_NAMESPACE_ID::FieldOptions_CType FieldOptions::ctype() const
  14800. {
  14801. // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.ctype)
  14802. return _internal_ctype();
  14803. }
  14804. inline void FieldOptions::_internal_set_ctype(::PROTOBUF_NAMESPACE_ID::FieldOptions_CType value)
  14805. {
  14806. assert(::PROTOBUF_NAMESPACE_ID::FieldOptions_CType_IsValid(value));
  14807. _impl_._has_bits_[0] |= 0x00000001u;
  14808. _impl_.ctype_ = value;
  14809. }
  14810. inline void FieldOptions::set_ctype(::PROTOBUF_NAMESPACE_ID::FieldOptions_CType value)
  14811. {
  14812. _internal_set_ctype(value);
  14813. // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.ctype)
  14814. }
  14815. // optional bool packed = 2;
  14816. inline bool FieldOptions::_internal_has_packed() const
  14817. {
  14818. bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
  14819. return value;
  14820. }
  14821. inline bool FieldOptions::has_packed() const
  14822. {
  14823. return _internal_has_packed();
  14824. }
  14825. inline void FieldOptions::clear_packed()
  14826. {
  14827. _impl_.packed_ = false;
  14828. _impl_._has_bits_[0] &= ~0x00000004u;
  14829. }
  14830. inline bool FieldOptions::_internal_packed() const
  14831. {
  14832. return _impl_.packed_;
  14833. }
  14834. inline bool FieldOptions::packed() const
  14835. {
  14836. // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.packed)
  14837. return _internal_packed();
  14838. }
  14839. inline void FieldOptions::_internal_set_packed(bool value)
  14840. {
  14841. _impl_._has_bits_[0] |= 0x00000004u;
  14842. _impl_.packed_ = value;
  14843. }
  14844. inline void FieldOptions::set_packed(bool value)
  14845. {
  14846. _internal_set_packed(value);
  14847. // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.packed)
  14848. }
  14849. // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];
  14850. inline bool FieldOptions::_internal_has_jstype() const
  14851. {
  14852. bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
  14853. return value;
  14854. }
  14855. inline bool FieldOptions::has_jstype() const
  14856. {
  14857. return _internal_has_jstype();
  14858. }
  14859. inline void FieldOptions::clear_jstype()
  14860. {
  14861. _impl_.jstype_ = 0;
  14862. _impl_._has_bits_[0] &= ~0x00000002u;
  14863. }
  14864. inline ::PROTOBUF_NAMESPACE_ID::FieldOptions_JSType FieldOptions::_internal_jstype() const
  14865. {
  14866. return static_cast<::PROTOBUF_NAMESPACE_ID::FieldOptions_JSType>(_impl_.jstype_);
  14867. }
  14868. inline ::PROTOBUF_NAMESPACE_ID::FieldOptions_JSType FieldOptions::jstype() const
  14869. {
  14870. // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.jstype)
  14871. return _internal_jstype();
  14872. }
  14873. inline void FieldOptions::_internal_set_jstype(::PROTOBUF_NAMESPACE_ID::FieldOptions_JSType value)
  14874. {
  14875. assert(::PROTOBUF_NAMESPACE_ID::FieldOptions_JSType_IsValid(value));
  14876. _impl_._has_bits_[0] |= 0x00000002u;
  14877. _impl_.jstype_ = value;
  14878. }
  14879. inline void FieldOptions::set_jstype(::PROTOBUF_NAMESPACE_ID::FieldOptions_JSType value)
  14880. {
  14881. _internal_set_jstype(value);
  14882. // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.jstype)
  14883. }
  14884. // optional bool lazy = 5 [default = false];
  14885. inline bool FieldOptions::_internal_has_lazy() const
  14886. {
  14887. bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
  14888. return value;
  14889. }
  14890. inline bool FieldOptions::has_lazy() const
  14891. {
  14892. return _internal_has_lazy();
  14893. }
  14894. inline void FieldOptions::clear_lazy()
  14895. {
  14896. _impl_.lazy_ = false;
  14897. _impl_._has_bits_[0] &= ~0x00000008u;
  14898. }
  14899. inline bool FieldOptions::_internal_lazy() const
  14900. {
  14901. return _impl_.lazy_;
  14902. }
  14903. inline bool FieldOptions::lazy() const
  14904. {
  14905. // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.lazy)
  14906. return _internal_lazy();
  14907. }
  14908. inline void FieldOptions::_internal_set_lazy(bool value)
  14909. {
  14910. _impl_._has_bits_[0] |= 0x00000008u;
  14911. _impl_.lazy_ = value;
  14912. }
  14913. inline void FieldOptions::set_lazy(bool value)
  14914. {
  14915. _internal_set_lazy(value);
  14916. // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.lazy)
  14917. }
  14918. // optional bool unverified_lazy = 15 [default = false];
  14919. inline bool FieldOptions::_internal_has_unverified_lazy() const
  14920. {
  14921. bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
  14922. return value;
  14923. }
  14924. inline bool FieldOptions::has_unverified_lazy() const
  14925. {
  14926. return _internal_has_unverified_lazy();
  14927. }
  14928. inline void FieldOptions::clear_unverified_lazy()
  14929. {
  14930. _impl_.unverified_lazy_ = false;
  14931. _impl_._has_bits_[0] &= ~0x00000010u;
  14932. }
  14933. inline bool FieldOptions::_internal_unverified_lazy() const
  14934. {
  14935. return _impl_.unverified_lazy_;
  14936. }
  14937. inline bool FieldOptions::unverified_lazy() const
  14938. {
  14939. // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.unverified_lazy)
  14940. return _internal_unverified_lazy();
  14941. }
  14942. inline void FieldOptions::_internal_set_unverified_lazy(bool value)
  14943. {
  14944. _impl_._has_bits_[0] |= 0x00000010u;
  14945. _impl_.unverified_lazy_ = value;
  14946. }
  14947. inline void FieldOptions::set_unverified_lazy(bool value)
  14948. {
  14949. _internal_set_unverified_lazy(value);
  14950. // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.unverified_lazy)
  14951. }
  14952. // optional bool deprecated = 3 [default = false];
  14953. inline bool FieldOptions::_internal_has_deprecated() const
  14954. {
  14955. bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0;
  14956. return value;
  14957. }
  14958. inline bool FieldOptions::has_deprecated() const
  14959. {
  14960. return _internal_has_deprecated();
  14961. }
  14962. inline void FieldOptions::clear_deprecated()
  14963. {
  14964. _impl_.deprecated_ = false;
  14965. _impl_._has_bits_[0] &= ~0x00000020u;
  14966. }
  14967. inline bool FieldOptions::_internal_deprecated() const
  14968. {
  14969. return _impl_.deprecated_;
  14970. }
  14971. inline bool FieldOptions::deprecated() const
  14972. {
  14973. // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.deprecated)
  14974. return _internal_deprecated();
  14975. }
  14976. inline void FieldOptions::_internal_set_deprecated(bool value)
  14977. {
  14978. _impl_._has_bits_[0] |= 0x00000020u;
  14979. _impl_.deprecated_ = value;
  14980. }
  14981. inline void FieldOptions::set_deprecated(bool value)
  14982. {
  14983. _internal_set_deprecated(value);
  14984. // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.deprecated)
  14985. }
  14986. // optional bool weak = 10 [default = false];
  14987. inline bool FieldOptions::_internal_has_weak() const
  14988. {
  14989. bool value = (_impl_._has_bits_[0] & 0x00000040u) != 0;
  14990. return value;
  14991. }
  14992. inline bool FieldOptions::has_weak() const
  14993. {
  14994. return _internal_has_weak();
  14995. }
  14996. inline void FieldOptions::clear_weak()
  14997. {
  14998. _impl_.weak_ = false;
  14999. _impl_._has_bits_[0] &= ~0x00000040u;
  15000. }
  15001. inline bool FieldOptions::_internal_weak() const
  15002. {
  15003. return _impl_.weak_;
  15004. }
  15005. inline bool FieldOptions::weak() const
  15006. {
  15007. // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.weak)
  15008. return _internal_weak();
  15009. }
  15010. inline void FieldOptions::_internal_set_weak(bool value)
  15011. {
  15012. _impl_._has_bits_[0] |= 0x00000040u;
  15013. _impl_.weak_ = value;
  15014. }
  15015. inline void FieldOptions::set_weak(bool value)
  15016. {
  15017. _internal_set_weak(value);
  15018. // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.weak)
  15019. }
  15020. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  15021. inline int FieldOptions::_internal_uninterpreted_option_size() const
  15022. {
  15023. return _impl_.uninterpreted_option_.size();
  15024. }
  15025. inline int FieldOptions::uninterpreted_option_size() const
  15026. {
  15027. return _internal_uninterpreted_option_size();
  15028. }
  15029. inline void FieldOptions::clear_uninterpreted_option()
  15030. {
  15031. _impl_.uninterpreted_option_.Clear();
  15032. }
  15033. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* FieldOptions::mutable_uninterpreted_option(int index)
  15034. {
  15035. // @@protoc_insertion_point(field_mutable:google.protobuf.FieldOptions.uninterpreted_option)
  15036. return _impl_.uninterpreted_option_.Mutable(index);
  15037. }
  15038. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::UninterpretedOption>*
  15039. FieldOptions::mutable_uninterpreted_option()
  15040. {
  15041. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FieldOptions.uninterpreted_option)
  15042. return &_impl_.uninterpreted_option_;
  15043. }
  15044. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& FieldOptions::_internal_uninterpreted_option(int index) const
  15045. {
  15046. return _impl_.uninterpreted_option_.Get(index);
  15047. }
  15048. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& FieldOptions::uninterpreted_option(int index) const
  15049. {
  15050. // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.uninterpreted_option)
  15051. return _internal_uninterpreted_option(index);
  15052. }
  15053. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* FieldOptions::_internal_add_uninterpreted_option()
  15054. {
  15055. return _impl_.uninterpreted_option_.Add();
  15056. }
  15057. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* FieldOptions::add_uninterpreted_option()
  15058. {
  15059. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* _add = _internal_add_uninterpreted_option();
  15060. // @@protoc_insertion_point(field_add:google.protobuf.FieldOptions.uninterpreted_option)
  15061. return _add;
  15062. }
  15063. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::UninterpretedOption>&
  15064. FieldOptions::uninterpreted_option() const
  15065. {
  15066. // @@protoc_insertion_point(field_list:google.protobuf.FieldOptions.uninterpreted_option)
  15067. return _impl_.uninterpreted_option_;
  15068. }
  15069. // -------------------------------------------------------------------
  15070. // OneofOptions
  15071. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  15072. inline int OneofOptions::_internal_uninterpreted_option_size() const
  15073. {
  15074. return _impl_.uninterpreted_option_.size();
  15075. }
  15076. inline int OneofOptions::uninterpreted_option_size() const
  15077. {
  15078. return _internal_uninterpreted_option_size();
  15079. }
  15080. inline void OneofOptions::clear_uninterpreted_option()
  15081. {
  15082. _impl_.uninterpreted_option_.Clear();
  15083. }
  15084. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* OneofOptions::mutable_uninterpreted_option(int index)
  15085. {
  15086. // @@protoc_insertion_point(field_mutable:google.protobuf.OneofOptions.uninterpreted_option)
  15087. return _impl_.uninterpreted_option_.Mutable(index);
  15088. }
  15089. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::UninterpretedOption>*
  15090. OneofOptions::mutable_uninterpreted_option()
  15091. {
  15092. // @@protoc_insertion_point(field_mutable_list:google.protobuf.OneofOptions.uninterpreted_option)
  15093. return &_impl_.uninterpreted_option_;
  15094. }
  15095. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& OneofOptions::_internal_uninterpreted_option(int index) const
  15096. {
  15097. return _impl_.uninterpreted_option_.Get(index);
  15098. }
  15099. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& OneofOptions::uninterpreted_option(int index) const
  15100. {
  15101. // @@protoc_insertion_point(field_get:google.protobuf.OneofOptions.uninterpreted_option)
  15102. return _internal_uninterpreted_option(index);
  15103. }
  15104. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* OneofOptions::_internal_add_uninterpreted_option()
  15105. {
  15106. return _impl_.uninterpreted_option_.Add();
  15107. }
  15108. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* OneofOptions::add_uninterpreted_option()
  15109. {
  15110. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* _add = _internal_add_uninterpreted_option();
  15111. // @@protoc_insertion_point(field_add:google.protobuf.OneofOptions.uninterpreted_option)
  15112. return _add;
  15113. }
  15114. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::UninterpretedOption>&
  15115. OneofOptions::uninterpreted_option() const
  15116. {
  15117. // @@protoc_insertion_point(field_list:google.protobuf.OneofOptions.uninterpreted_option)
  15118. return _impl_.uninterpreted_option_;
  15119. }
  15120. // -------------------------------------------------------------------
  15121. // EnumOptions
  15122. // optional bool allow_alias = 2;
  15123. inline bool EnumOptions::_internal_has_allow_alias() const
  15124. {
  15125. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  15126. return value;
  15127. }
  15128. inline bool EnumOptions::has_allow_alias() const
  15129. {
  15130. return _internal_has_allow_alias();
  15131. }
  15132. inline void EnumOptions::clear_allow_alias()
  15133. {
  15134. _impl_.allow_alias_ = false;
  15135. _impl_._has_bits_[0] &= ~0x00000001u;
  15136. }
  15137. inline bool EnumOptions::_internal_allow_alias() const
  15138. {
  15139. return _impl_.allow_alias_;
  15140. }
  15141. inline bool EnumOptions::allow_alias() const
  15142. {
  15143. // @@protoc_insertion_point(field_get:google.protobuf.EnumOptions.allow_alias)
  15144. return _internal_allow_alias();
  15145. }
  15146. inline void EnumOptions::_internal_set_allow_alias(bool value)
  15147. {
  15148. _impl_._has_bits_[0] |= 0x00000001u;
  15149. _impl_.allow_alias_ = value;
  15150. }
  15151. inline void EnumOptions::set_allow_alias(bool value)
  15152. {
  15153. _internal_set_allow_alias(value);
  15154. // @@protoc_insertion_point(field_set:google.protobuf.EnumOptions.allow_alias)
  15155. }
  15156. // optional bool deprecated = 3 [default = false];
  15157. inline bool EnumOptions::_internal_has_deprecated() const
  15158. {
  15159. bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
  15160. return value;
  15161. }
  15162. inline bool EnumOptions::has_deprecated() const
  15163. {
  15164. return _internal_has_deprecated();
  15165. }
  15166. inline void EnumOptions::clear_deprecated()
  15167. {
  15168. _impl_.deprecated_ = false;
  15169. _impl_._has_bits_[0] &= ~0x00000002u;
  15170. }
  15171. inline bool EnumOptions::_internal_deprecated() const
  15172. {
  15173. return _impl_.deprecated_;
  15174. }
  15175. inline bool EnumOptions::deprecated() const
  15176. {
  15177. // @@protoc_insertion_point(field_get:google.protobuf.EnumOptions.deprecated)
  15178. return _internal_deprecated();
  15179. }
  15180. inline void EnumOptions::_internal_set_deprecated(bool value)
  15181. {
  15182. _impl_._has_bits_[0] |= 0x00000002u;
  15183. _impl_.deprecated_ = value;
  15184. }
  15185. inline void EnumOptions::set_deprecated(bool value)
  15186. {
  15187. _internal_set_deprecated(value);
  15188. // @@protoc_insertion_point(field_set:google.protobuf.EnumOptions.deprecated)
  15189. }
  15190. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  15191. inline int EnumOptions::_internal_uninterpreted_option_size() const
  15192. {
  15193. return _impl_.uninterpreted_option_.size();
  15194. }
  15195. inline int EnumOptions::uninterpreted_option_size() const
  15196. {
  15197. return _internal_uninterpreted_option_size();
  15198. }
  15199. inline void EnumOptions::clear_uninterpreted_option()
  15200. {
  15201. _impl_.uninterpreted_option_.Clear();
  15202. }
  15203. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* EnumOptions::mutable_uninterpreted_option(int index)
  15204. {
  15205. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumOptions.uninterpreted_option)
  15206. return _impl_.uninterpreted_option_.Mutable(index);
  15207. }
  15208. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::UninterpretedOption>*
  15209. EnumOptions::mutable_uninterpreted_option()
  15210. {
  15211. // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumOptions.uninterpreted_option)
  15212. return &_impl_.uninterpreted_option_;
  15213. }
  15214. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& EnumOptions::_internal_uninterpreted_option(int index) const
  15215. {
  15216. return _impl_.uninterpreted_option_.Get(index);
  15217. }
  15218. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& EnumOptions::uninterpreted_option(int index) const
  15219. {
  15220. // @@protoc_insertion_point(field_get:google.protobuf.EnumOptions.uninterpreted_option)
  15221. return _internal_uninterpreted_option(index);
  15222. }
  15223. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* EnumOptions::_internal_add_uninterpreted_option()
  15224. {
  15225. return _impl_.uninterpreted_option_.Add();
  15226. }
  15227. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* EnumOptions::add_uninterpreted_option()
  15228. {
  15229. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* _add = _internal_add_uninterpreted_option();
  15230. // @@protoc_insertion_point(field_add:google.protobuf.EnumOptions.uninterpreted_option)
  15231. return _add;
  15232. }
  15233. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::UninterpretedOption>&
  15234. EnumOptions::uninterpreted_option() const
  15235. {
  15236. // @@protoc_insertion_point(field_list:google.protobuf.EnumOptions.uninterpreted_option)
  15237. return _impl_.uninterpreted_option_;
  15238. }
  15239. // -------------------------------------------------------------------
  15240. // EnumValueOptions
  15241. // optional bool deprecated = 1 [default = false];
  15242. inline bool EnumValueOptions::_internal_has_deprecated() const
  15243. {
  15244. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  15245. return value;
  15246. }
  15247. inline bool EnumValueOptions::has_deprecated() const
  15248. {
  15249. return _internal_has_deprecated();
  15250. }
  15251. inline void EnumValueOptions::clear_deprecated()
  15252. {
  15253. _impl_.deprecated_ = false;
  15254. _impl_._has_bits_[0] &= ~0x00000001u;
  15255. }
  15256. inline bool EnumValueOptions::_internal_deprecated() const
  15257. {
  15258. return _impl_.deprecated_;
  15259. }
  15260. inline bool EnumValueOptions::deprecated() const
  15261. {
  15262. // @@protoc_insertion_point(field_get:google.protobuf.EnumValueOptions.deprecated)
  15263. return _internal_deprecated();
  15264. }
  15265. inline void EnumValueOptions::_internal_set_deprecated(bool value)
  15266. {
  15267. _impl_._has_bits_[0] |= 0x00000001u;
  15268. _impl_.deprecated_ = value;
  15269. }
  15270. inline void EnumValueOptions::set_deprecated(bool value)
  15271. {
  15272. _internal_set_deprecated(value);
  15273. // @@protoc_insertion_point(field_set:google.protobuf.EnumValueOptions.deprecated)
  15274. }
  15275. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  15276. inline int EnumValueOptions::_internal_uninterpreted_option_size() const
  15277. {
  15278. return _impl_.uninterpreted_option_.size();
  15279. }
  15280. inline int EnumValueOptions::uninterpreted_option_size() const
  15281. {
  15282. return _internal_uninterpreted_option_size();
  15283. }
  15284. inline void EnumValueOptions::clear_uninterpreted_option()
  15285. {
  15286. _impl_.uninterpreted_option_.Clear();
  15287. }
  15288. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* EnumValueOptions::mutable_uninterpreted_option(int index)
  15289. {
  15290. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValueOptions.uninterpreted_option)
  15291. return _impl_.uninterpreted_option_.Mutable(index);
  15292. }
  15293. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::UninterpretedOption>*
  15294. EnumValueOptions::mutable_uninterpreted_option()
  15295. {
  15296. // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumValueOptions.uninterpreted_option)
  15297. return &_impl_.uninterpreted_option_;
  15298. }
  15299. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& EnumValueOptions::_internal_uninterpreted_option(int index) const
  15300. {
  15301. return _impl_.uninterpreted_option_.Get(index);
  15302. }
  15303. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& EnumValueOptions::uninterpreted_option(int index) const
  15304. {
  15305. // @@protoc_insertion_point(field_get:google.protobuf.EnumValueOptions.uninterpreted_option)
  15306. return _internal_uninterpreted_option(index);
  15307. }
  15308. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* EnumValueOptions::_internal_add_uninterpreted_option()
  15309. {
  15310. return _impl_.uninterpreted_option_.Add();
  15311. }
  15312. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* EnumValueOptions::add_uninterpreted_option()
  15313. {
  15314. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* _add = _internal_add_uninterpreted_option();
  15315. // @@protoc_insertion_point(field_add:google.protobuf.EnumValueOptions.uninterpreted_option)
  15316. return _add;
  15317. }
  15318. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::UninterpretedOption>&
  15319. EnumValueOptions::uninterpreted_option() const
  15320. {
  15321. // @@protoc_insertion_point(field_list:google.protobuf.EnumValueOptions.uninterpreted_option)
  15322. return _impl_.uninterpreted_option_;
  15323. }
  15324. // -------------------------------------------------------------------
  15325. // ServiceOptions
  15326. // optional bool deprecated = 33 [default = false];
  15327. inline bool ServiceOptions::_internal_has_deprecated() const
  15328. {
  15329. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  15330. return value;
  15331. }
  15332. inline bool ServiceOptions::has_deprecated() const
  15333. {
  15334. return _internal_has_deprecated();
  15335. }
  15336. inline void ServiceOptions::clear_deprecated()
  15337. {
  15338. _impl_.deprecated_ = false;
  15339. _impl_._has_bits_[0] &= ~0x00000001u;
  15340. }
  15341. inline bool ServiceOptions::_internal_deprecated() const
  15342. {
  15343. return _impl_.deprecated_;
  15344. }
  15345. inline bool ServiceOptions::deprecated() const
  15346. {
  15347. // @@protoc_insertion_point(field_get:google.protobuf.ServiceOptions.deprecated)
  15348. return _internal_deprecated();
  15349. }
  15350. inline void ServiceOptions::_internal_set_deprecated(bool value)
  15351. {
  15352. _impl_._has_bits_[0] |= 0x00000001u;
  15353. _impl_.deprecated_ = value;
  15354. }
  15355. inline void ServiceOptions::set_deprecated(bool value)
  15356. {
  15357. _internal_set_deprecated(value);
  15358. // @@protoc_insertion_point(field_set:google.protobuf.ServiceOptions.deprecated)
  15359. }
  15360. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  15361. inline int ServiceOptions::_internal_uninterpreted_option_size() const
  15362. {
  15363. return _impl_.uninterpreted_option_.size();
  15364. }
  15365. inline int ServiceOptions::uninterpreted_option_size() const
  15366. {
  15367. return _internal_uninterpreted_option_size();
  15368. }
  15369. inline void ServiceOptions::clear_uninterpreted_option()
  15370. {
  15371. _impl_.uninterpreted_option_.Clear();
  15372. }
  15373. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* ServiceOptions::mutable_uninterpreted_option(int index)
  15374. {
  15375. // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceOptions.uninterpreted_option)
  15376. return _impl_.uninterpreted_option_.Mutable(index);
  15377. }
  15378. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::UninterpretedOption>*
  15379. ServiceOptions::mutable_uninterpreted_option()
  15380. {
  15381. // @@protoc_insertion_point(field_mutable_list:google.protobuf.ServiceOptions.uninterpreted_option)
  15382. return &_impl_.uninterpreted_option_;
  15383. }
  15384. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& ServiceOptions::_internal_uninterpreted_option(int index) const
  15385. {
  15386. return _impl_.uninterpreted_option_.Get(index);
  15387. }
  15388. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& ServiceOptions::uninterpreted_option(int index) const
  15389. {
  15390. // @@protoc_insertion_point(field_get:google.protobuf.ServiceOptions.uninterpreted_option)
  15391. return _internal_uninterpreted_option(index);
  15392. }
  15393. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* ServiceOptions::_internal_add_uninterpreted_option()
  15394. {
  15395. return _impl_.uninterpreted_option_.Add();
  15396. }
  15397. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* ServiceOptions::add_uninterpreted_option()
  15398. {
  15399. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* _add = _internal_add_uninterpreted_option();
  15400. // @@protoc_insertion_point(field_add:google.protobuf.ServiceOptions.uninterpreted_option)
  15401. return _add;
  15402. }
  15403. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::UninterpretedOption>&
  15404. ServiceOptions::uninterpreted_option() const
  15405. {
  15406. // @@protoc_insertion_point(field_list:google.protobuf.ServiceOptions.uninterpreted_option)
  15407. return _impl_.uninterpreted_option_;
  15408. }
  15409. // -------------------------------------------------------------------
  15410. // MethodOptions
  15411. // optional bool deprecated = 33 [default = false];
  15412. inline bool MethodOptions::_internal_has_deprecated() const
  15413. {
  15414. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  15415. return value;
  15416. }
  15417. inline bool MethodOptions::has_deprecated() const
  15418. {
  15419. return _internal_has_deprecated();
  15420. }
  15421. inline void MethodOptions::clear_deprecated()
  15422. {
  15423. _impl_.deprecated_ = false;
  15424. _impl_._has_bits_[0] &= ~0x00000001u;
  15425. }
  15426. inline bool MethodOptions::_internal_deprecated() const
  15427. {
  15428. return _impl_.deprecated_;
  15429. }
  15430. inline bool MethodOptions::deprecated() const
  15431. {
  15432. // @@protoc_insertion_point(field_get:google.protobuf.MethodOptions.deprecated)
  15433. return _internal_deprecated();
  15434. }
  15435. inline void MethodOptions::_internal_set_deprecated(bool value)
  15436. {
  15437. _impl_._has_bits_[0] |= 0x00000001u;
  15438. _impl_.deprecated_ = value;
  15439. }
  15440. inline void MethodOptions::set_deprecated(bool value)
  15441. {
  15442. _internal_set_deprecated(value);
  15443. // @@protoc_insertion_point(field_set:google.protobuf.MethodOptions.deprecated)
  15444. }
  15445. // optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];
  15446. inline bool MethodOptions::_internal_has_idempotency_level() const
  15447. {
  15448. bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
  15449. return value;
  15450. }
  15451. inline bool MethodOptions::has_idempotency_level() const
  15452. {
  15453. return _internal_has_idempotency_level();
  15454. }
  15455. inline void MethodOptions::clear_idempotency_level()
  15456. {
  15457. _impl_.idempotency_level_ = 0;
  15458. _impl_._has_bits_[0] &= ~0x00000002u;
  15459. }
  15460. inline ::PROTOBUF_NAMESPACE_ID::MethodOptions_IdempotencyLevel MethodOptions::_internal_idempotency_level() const
  15461. {
  15462. return static_cast<::PROTOBUF_NAMESPACE_ID::MethodOptions_IdempotencyLevel>(_impl_.idempotency_level_);
  15463. }
  15464. inline ::PROTOBUF_NAMESPACE_ID::MethodOptions_IdempotencyLevel MethodOptions::idempotency_level() const
  15465. {
  15466. // @@protoc_insertion_point(field_get:google.protobuf.MethodOptions.idempotency_level)
  15467. return _internal_idempotency_level();
  15468. }
  15469. inline void MethodOptions::_internal_set_idempotency_level(::PROTOBUF_NAMESPACE_ID::MethodOptions_IdempotencyLevel value)
  15470. {
  15471. assert(::PROTOBUF_NAMESPACE_ID::MethodOptions_IdempotencyLevel_IsValid(value));
  15472. _impl_._has_bits_[0] |= 0x00000002u;
  15473. _impl_.idempotency_level_ = value;
  15474. }
  15475. inline void MethodOptions::set_idempotency_level(::PROTOBUF_NAMESPACE_ID::MethodOptions_IdempotencyLevel value)
  15476. {
  15477. _internal_set_idempotency_level(value);
  15478. // @@protoc_insertion_point(field_set:google.protobuf.MethodOptions.idempotency_level)
  15479. }
  15480. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  15481. inline int MethodOptions::_internal_uninterpreted_option_size() const
  15482. {
  15483. return _impl_.uninterpreted_option_.size();
  15484. }
  15485. inline int MethodOptions::uninterpreted_option_size() const
  15486. {
  15487. return _internal_uninterpreted_option_size();
  15488. }
  15489. inline void MethodOptions::clear_uninterpreted_option()
  15490. {
  15491. _impl_.uninterpreted_option_.Clear();
  15492. }
  15493. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* MethodOptions::mutable_uninterpreted_option(int index)
  15494. {
  15495. // @@protoc_insertion_point(field_mutable:google.protobuf.MethodOptions.uninterpreted_option)
  15496. return _impl_.uninterpreted_option_.Mutable(index);
  15497. }
  15498. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::UninterpretedOption>*
  15499. MethodOptions::mutable_uninterpreted_option()
  15500. {
  15501. // @@protoc_insertion_point(field_mutable_list:google.protobuf.MethodOptions.uninterpreted_option)
  15502. return &_impl_.uninterpreted_option_;
  15503. }
  15504. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& MethodOptions::_internal_uninterpreted_option(int index) const
  15505. {
  15506. return _impl_.uninterpreted_option_.Get(index);
  15507. }
  15508. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& MethodOptions::uninterpreted_option(int index) const
  15509. {
  15510. // @@protoc_insertion_point(field_get:google.protobuf.MethodOptions.uninterpreted_option)
  15511. return _internal_uninterpreted_option(index);
  15512. }
  15513. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* MethodOptions::_internal_add_uninterpreted_option()
  15514. {
  15515. return _impl_.uninterpreted_option_.Add();
  15516. }
  15517. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* MethodOptions::add_uninterpreted_option()
  15518. {
  15519. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* _add = _internal_add_uninterpreted_option();
  15520. // @@protoc_insertion_point(field_add:google.protobuf.MethodOptions.uninterpreted_option)
  15521. return _add;
  15522. }
  15523. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::UninterpretedOption>&
  15524. MethodOptions::uninterpreted_option() const
  15525. {
  15526. // @@protoc_insertion_point(field_list:google.protobuf.MethodOptions.uninterpreted_option)
  15527. return _impl_.uninterpreted_option_;
  15528. }
  15529. // -------------------------------------------------------------------
  15530. // UninterpretedOption_NamePart
  15531. // required string name_part = 1;
  15532. inline bool UninterpretedOption_NamePart::_internal_has_name_part() const
  15533. {
  15534. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  15535. return value;
  15536. }
  15537. inline bool UninterpretedOption_NamePart::has_name_part() const
  15538. {
  15539. return _internal_has_name_part();
  15540. }
  15541. inline void UninterpretedOption_NamePart::clear_name_part()
  15542. {
  15543. _impl_.name_part_.ClearToEmpty();
  15544. _impl_._has_bits_[0] &= ~0x00000001u;
  15545. }
  15546. inline const std::string& UninterpretedOption_NamePart::name_part() const
  15547. {
  15548. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.NamePart.name_part)
  15549. return _internal_name_part();
  15550. }
  15551. template<typename ArgT0, typename... ArgT>
  15552. inline PROTOBUF_ALWAYS_INLINE void UninterpretedOption_NamePart::set_name_part(ArgT0&& arg0, ArgT... args)
  15553. {
  15554. _impl_._has_bits_[0] |= 0x00000001u;
  15555. _impl_.name_part_.Set(static_cast<ArgT0&&>(arg0), args..., GetArenaForAllocation());
  15556. // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.NamePart.name_part)
  15557. }
  15558. inline std::string* UninterpretedOption_NamePart::mutable_name_part()
  15559. {
  15560. std::string* _s = _internal_mutable_name_part();
  15561. // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.NamePart.name_part)
  15562. return _s;
  15563. }
  15564. inline const std::string& UninterpretedOption_NamePart::_internal_name_part() const
  15565. {
  15566. return _impl_.name_part_.Get();
  15567. }
  15568. inline void UninterpretedOption_NamePart::_internal_set_name_part(const std::string& value)
  15569. {
  15570. _impl_._has_bits_[0] |= 0x00000001u;
  15571. _impl_.name_part_.Set(value, GetArenaForAllocation());
  15572. }
  15573. inline std::string* UninterpretedOption_NamePart::_internal_mutable_name_part()
  15574. {
  15575. _impl_._has_bits_[0] |= 0x00000001u;
  15576. return _impl_.name_part_.Mutable(GetArenaForAllocation());
  15577. }
  15578. inline std::string* UninterpretedOption_NamePart::release_name_part()
  15579. {
  15580. // @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption.NamePart.name_part)
  15581. if (!_internal_has_name_part())
  15582. {
  15583. return nullptr;
  15584. }
  15585. _impl_._has_bits_[0] &= ~0x00000001u;
  15586. auto* p = _impl_.name_part_.Release();
  15587. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  15588. if (_impl_.name_part_.IsDefault())
  15589. {
  15590. _impl_.name_part_.Set("", GetArenaForAllocation());
  15591. }
  15592. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  15593. return p;
  15594. }
  15595. inline void UninterpretedOption_NamePart::set_allocated_name_part(std::string* name_part)
  15596. {
  15597. if (name_part != nullptr)
  15598. {
  15599. _impl_._has_bits_[0] |= 0x00000001u;
  15600. }
  15601. else
  15602. {
  15603. _impl_._has_bits_[0] &= ~0x00000001u;
  15604. }
  15605. _impl_.name_part_.SetAllocated(name_part, GetArenaForAllocation());
  15606. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  15607. if (_impl_.name_part_.IsDefault())
  15608. {
  15609. _impl_.name_part_.Set("", GetArenaForAllocation());
  15610. }
  15611. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  15612. // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedOption.NamePart.name_part)
  15613. }
  15614. // required bool is_extension = 2;
  15615. inline bool UninterpretedOption_NamePart::_internal_has_is_extension() const
  15616. {
  15617. bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
  15618. return value;
  15619. }
  15620. inline bool UninterpretedOption_NamePart::has_is_extension() const
  15621. {
  15622. return _internal_has_is_extension();
  15623. }
  15624. inline void UninterpretedOption_NamePart::clear_is_extension()
  15625. {
  15626. _impl_.is_extension_ = false;
  15627. _impl_._has_bits_[0] &= ~0x00000002u;
  15628. }
  15629. inline bool UninterpretedOption_NamePart::_internal_is_extension() const
  15630. {
  15631. return _impl_.is_extension_;
  15632. }
  15633. inline bool UninterpretedOption_NamePart::is_extension() const
  15634. {
  15635. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.NamePart.is_extension)
  15636. return _internal_is_extension();
  15637. }
  15638. inline void UninterpretedOption_NamePart::_internal_set_is_extension(bool value)
  15639. {
  15640. _impl_._has_bits_[0] |= 0x00000002u;
  15641. _impl_.is_extension_ = value;
  15642. }
  15643. inline void UninterpretedOption_NamePart::set_is_extension(bool value)
  15644. {
  15645. _internal_set_is_extension(value);
  15646. // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.NamePart.is_extension)
  15647. }
  15648. // -------------------------------------------------------------------
  15649. // UninterpretedOption
  15650. // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
  15651. inline int UninterpretedOption::_internal_name_size() const
  15652. {
  15653. return _impl_.name_.size();
  15654. }
  15655. inline int UninterpretedOption::name_size() const
  15656. {
  15657. return _internal_name_size();
  15658. }
  15659. inline void UninterpretedOption::clear_name()
  15660. {
  15661. _impl_.name_.Clear();
  15662. }
  15663. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart* UninterpretedOption::mutable_name(int index)
  15664. {
  15665. // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.name)
  15666. return _impl_.name_.Mutable(index);
  15667. }
  15668. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart>*
  15669. UninterpretedOption::mutable_name()
  15670. {
  15671. // @@protoc_insertion_point(field_mutable_list:google.protobuf.UninterpretedOption.name)
  15672. return &_impl_.name_;
  15673. }
  15674. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart& UninterpretedOption::_internal_name(int index) const
  15675. {
  15676. return _impl_.name_.Get(index);
  15677. }
  15678. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart& UninterpretedOption::name(int index) const
  15679. {
  15680. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.name)
  15681. return _internal_name(index);
  15682. }
  15683. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart* UninterpretedOption::_internal_add_name()
  15684. {
  15685. return _impl_.name_.Add();
  15686. }
  15687. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart* UninterpretedOption::add_name()
  15688. {
  15689. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart* _add = _internal_add_name();
  15690. // @@protoc_insertion_point(field_add:google.protobuf.UninterpretedOption.name)
  15691. return _add;
  15692. }
  15693. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart>&
  15694. UninterpretedOption::name() const
  15695. {
  15696. // @@protoc_insertion_point(field_list:google.protobuf.UninterpretedOption.name)
  15697. return _impl_.name_;
  15698. }
  15699. // optional string identifier_value = 3;
  15700. inline bool UninterpretedOption::_internal_has_identifier_value() const
  15701. {
  15702. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  15703. return value;
  15704. }
  15705. inline bool UninterpretedOption::has_identifier_value() const
  15706. {
  15707. return _internal_has_identifier_value();
  15708. }
  15709. inline void UninterpretedOption::clear_identifier_value()
  15710. {
  15711. _impl_.identifier_value_.ClearToEmpty();
  15712. _impl_._has_bits_[0] &= ~0x00000001u;
  15713. }
  15714. inline const std::string& UninterpretedOption::identifier_value() const
  15715. {
  15716. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.identifier_value)
  15717. return _internal_identifier_value();
  15718. }
  15719. template<typename ArgT0, typename... ArgT>
  15720. inline PROTOBUF_ALWAYS_INLINE void UninterpretedOption::set_identifier_value(ArgT0&& arg0, ArgT... args)
  15721. {
  15722. _impl_._has_bits_[0] |= 0x00000001u;
  15723. _impl_.identifier_value_.Set(static_cast<ArgT0&&>(arg0), args..., GetArenaForAllocation());
  15724. // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.identifier_value)
  15725. }
  15726. inline std::string* UninterpretedOption::mutable_identifier_value()
  15727. {
  15728. std::string* _s = _internal_mutable_identifier_value();
  15729. // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.identifier_value)
  15730. return _s;
  15731. }
  15732. inline const std::string& UninterpretedOption::_internal_identifier_value() const
  15733. {
  15734. return _impl_.identifier_value_.Get();
  15735. }
  15736. inline void UninterpretedOption::_internal_set_identifier_value(const std::string& value)
  15737. {
  15738. _impl_._has_bits_[0] |= 0x00000001u;
  15739. _impl_.identifier_value_.Set(value, GetArenaForAllocation());
  15740. }
  15741. inline std::string* UninterpretedOption::_internal_mutable_identifier_value()
  15742. {
  15743. _impl_._has_bits_[0] |= 0x00000001u;
  15744. return _impl_.identifier_value_.Mutable(GetArenaForAllocation());
  15745. }
  15746. inline std::string* UninterpretedOption::release_identifier_value()
  15747. {
  15748. // @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption.identifier_value)
  15749. if (!_internal_has_identifier_value())
  15750. {
  15751. return nullptr;
  15752. }
  15753. _impl_._has_bits_[0] &= ~0x00000001u;
  15754. auto* p = _impl_.identifier_value_.Release();
  15755. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  15756. if (_impl_.identifier_value_.IsDefault())
  15757. {
  15758. _impl_.identifier_value_.Set("", GetArenaForAllocation());
  15759. }
  15760. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  15761. return p;
  15762. }
  15763. inline void UninterpretedOption::set_allocated_identifier_value(std::string* identifier_value)
  15764. {
  15765. if (identifier_value != nullptr)
  15766. {
  15767. _impl_._has_bits_[0] |= 0x00000001u;
  15768. }
  15769. else
  15770. {
  15771. _impl_._has_bits_[0] &= ~0x00000001u;
  15772. }
  15773. _impl_.identifier_value_.SetAllocated(identifier_value, GetArenaForAllocation());
  15774. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  15775. if (_impl_.identifier_value_.IsDefault())
  15776. {
  15777. _impl_.identifier_value_.Set("", GetArenaForAllocation());
  15778. }
  15779. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  15780. // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedOption.identifier_value)
  15781. }
  15782. // optional uint64 positive_int_value = 4;
  15783. inline bool UninterpretedOption::_internal_has_positive_int_value() const
  15784. {
  15785. bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
  15786. return value;
  15787. }
  15788. inline bool UninterpretedOption::has_positive_int_value() const
  15789. {
  15790. return _internal_has_positive_int_value();
  15791. }
  15792. inline void UninterpretedOption::clear_positive_int_value()
  15793. {
  15794. _impl_.positive_int_value_ = uint64_t{0u};
  15795. _impl_._has_bits_[0] &= ~0x00000008u;
  15796. }
  15797. inline uint64_t UninterpretedOption::_internal_positive_int_value() const
  15798. {
  15799. return _impl_.positive_int_value_;
  15800. }
  15801. inline uint64_t UninterpretedOption::positive_int_value() const
  15802. {
  15803. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.positive_int_value)
  15804. return _internal_positive_int_value();
  15805. }
  15806. inline void UninterpretedOption::_internal_set_positive_int_value(uint64_t value)
  15807. {
  15808. _impl_._has_bits_[0] |= 0x00000008u;
  15809. _impl_.positive_int_value_ = value;
  15810. }
  15811. inline void UninterpretedOption::set_positive_int_value(uint64_t value)
  15812. {
  15813. _internal_set_positive_int_value(value);
  15814. // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.positive_int_value)
  15815. }
  15816. // optional int64 negative_int_value = 5;
  15817. inline bool UninterpretedOption::_internal_has_negative_int_value() const
  15818. {
  15819. bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
  15820. return value;
  15821. }
  15822. inline bool UninterpretedOption::has_negative_int_value() const
  15823. {
  15824. return _internal_has_negative_int_value();
  15825. }
  15826. inline void UninterpretedOption::clear_negative_int_value()
  15827. {
  15828. _impl_.negative_int_value_ = int64_t{0};
  15829. _impl_._has_bits_[0] &= ~0x00000010u;
  15830. }
  15831. inline int64_t UninterpretedOption::_internal_negative_int_value() const
  15832. {
  15833. return _impl_.negative_int_value_;
  15834. }
  15835. inline int64_t UninterpretedOption::negative_int_value() const
  15836. {
  15837. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.negative_int_value)
  15838. return _internal_negative_int_value();
  15839. }
  15840. inline void UninterpretedOption::_internal_set_negative_int_value(int64_t value)
  15841. {
  15842. _impl_._has_bits_[0] |= 0x00000010u;
  15843. _impl_.negative_int_value_ = value;
  15844. }
  15845. inline void UninterpretedOption::set_negative_int_value(int64_t value)
  15846. {
  15847. _internal_set_negative_int_value(value);
  15848. // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.negative_int_value)
  15849. }
  15850. // optional double double_value = 6;
  15851. inline bool UninterpretedOption::_internal_has_double_value() const
  15852. {
  15853. bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0;
  15854. return value;
  15855. }
  15856. inline bool UninterpretedOption::has_double_value() const
  15857. {
  15858. return _internal_has_double_value();
  15859. }
  15860. inline void UninterpretedOption::clear_double_value()
  15861. {
  15862. _impl_.double_value_ = 0;
  15863. _impl_._has_bits_[0] &= ~0x00000020u;
  15864. }
  15865. inline double UninterpretedOption::_internal_double_value() const
  15866. {
  15867. return _impl_.double_value_;
  15868. }
  15869. inline double UninterpretedOption::double_value() const
  15870. {
  15871. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.double_value)
  15872. return _internal_double_value();
  15873. }
  15874. inline void UninterpretedOption::_internal_set_double_value(double value)
  15875. {
  15876. _impl_._has_bits_[0] |= 0x00000020u;
  15877. _impl_.double_value_ = value;
  15878. }
  15879. inline void UninterpretedOption::set_double_value(double value)
  15880. {
  15881. _internal_set_double_value(value);
  15882. // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.double_value)
  15883. }
  15884. // optional bytes string_value = 7;
  15885. inline bool UninterpretedOption::_internal_has_string_value() const
  15886. {
  15887. bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
  15888. return value;
  15889. }
  15890. inline bool UninterpretedOption::has_string_value() const
  15891. {
  15892. return _internal_has_string_value();
  15893. }
  15894. inline void UninterpretedOption::clear_string_value()
  15895. {
  15896. _impl_.string_value_.ClearToEmpty();
  15897. _impl_._has_bits_[0] &= ~0x00000002u;
  15898. }
  15899. inline const std::string& UninterpretedOption::string_value() const
  15900. {
  15901. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.string_value)
  15902. return _internal_string_value();
  15903. }
  15904. template<typename ArgT0, typename... ArgT>
  15905. inline PROTOBUF_ALWAYS_INLINE void UninterpretedOption::set_string_value(ArgT0&& arg0, ArgT... args)
  15906. {
  15907. _impl_._has_bits_[0] |= 0x00000002u;
  15908. _impl_.string_value_.SetBytes(static_cast<ArgT0&&>(arg0), args..., GetArenaForAllocation());
  15909. // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.string_value)
  15910. }
  15911. inline std::string* UninterpretedOption::mutable_string_value()
  15912. {
  15913. std::string* _s = _internal_mutable_string_value();
  15914. // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.string_value)
  15915. return _s;
  15916. }
  15917. inline const std::string& UninterpretedOption::_internal_string_value() const
  15918. {
  15919. return _impl_.string_value_.Get();
  15920. }
  15921. inline void UninterpretedOption::_internal_set_string_value(const std::string& value)
  15922. {
  15923. _impl_._has_bits_[0] |= 0x00000002u;
  15924. _impl_.string_value_.Set(value, GetArenaForAllocation());
  15925. }
  15926. inline std::string* UninterpretedOption::_internal_mutable_string_value()
  15927. {
  15928. _impl_._has_bits_[0] |= 0x00000002u;
  15929. return _impl_.string_value_.Mutable(GetArenaForAllocation());
  15930. }
  15931. inline std::string* UninterpretedOption::release_string_value()
  15932. {
  15933. // @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption.string_value)
  15934. if (!_internal_has_string_value())
  15935. {
  15936. return nullptr;
  15937. }
  15938. _impl_._has_bits_[0] &= ~0x00000002u;
  15939. auto* p = _impl_.string_value_.Release();
  15940. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  15941. if (_impl_.string_value_.IsDefault())
  15942. {
  15943. _impl_.string_value_.Set("", GetArenaForAllocation());
  15944. }
  15945. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  15946. return p;
  15947. }
  15948. inline void UninterpretedOption::set_allocated_string_value(std::string* string_value)
  15949. {
  15950. if (string_value != nullptr)
  15951. {
  15952. _impl_._has_bits_[0] |= 0x00000002u;
  15953. }
  15954. else
  15955. {
  15956. _impl_._has_bits_[0] &= ~0x00000002u;
  15957. }
  15958. _impl_.string_value_.SetAllocated(string_value, GetArenaForAllocation());
  15959. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  15960. if (_impl_.string_value_.IsDefault())
  15961. {
  15962. _impl_.string_value_.Set("", GetArenaForAllocation());
  15963. }
  15964. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  15965. // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedOption.string_value)
  15966. }
  15967. // optional string aggregate_value = 8;
  15968. inline bool UninterpretedOption::_internal_has_aggregate_value() const
  15969. {
  15970. bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
  15971. return value;
  15972. }
  15973. inline bool UninterpretedOption::has_aggregate_value() const
  15974. {
  15975. return _internal_has_aggregate_value();
  15976. }
  15977. inline void UninterpretedOption::clear_aggregate_value()
  15978. {
  15979. _impl_.aggregate_value_.ClearToEmpty();
  15980. _impl_._has_bits_[0] &= ~0x00000004u;
  15981. }
  15982. inline const std::string& UninterpretedOption::aggregate_value() const
  15983. {
  15984. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.aggregate_value)
  15985. return _internal_aggregate_value();
  15986. }
  15987. template<typename ArgT0, typename... ArgT>
  15988. inline PROTOBUF_ALWAYS_INLINE void UninterpretedOption::set_aggregate_value(ArgT0&& arg0, ArgT... args)
  15989. {
  15990. _impl_._has_bits_[0] |= 0x00000004u;
  15991. _impl_.aggregate_value_.Set(static_cast<ArgT0&&>(arg0), args..., GetArenaForAllocation());
  15992. // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.aggregate_value)
  15993. }
  15994. inline std::string* UninterpretedOption::mutable_aggregate_value()
  15995. {
  15996. std::string* _s = _internal_mutable_aggregate_value();
  15997. // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.aggregate_value)
  15998. return _s;
  15999. }
  16000. inline const std::string& UninterpretedOption::_internal_aggregate_value() const
  16001. {
  16002. return _impl_.aggregate_value_.Get();
  16003. }
  16004. inline void UninterpretedOption::_internal_set_aggregate_value(const std::string& value)
  16005. {
  16006. _impl_._has_bits_[0] |= 0x00000004u;
  16007. _impl_.aggregate_value_.Set(value, GetArenaForAllocation());
  16008. }
  16009. inline std::string* UninterpretedOption::_internal_mutable_aggregate_value()
  16010. {
  16011. _impl_._has_bits_[0] |= 0x00000004u;
  16012. return _impl_.aggregate_value_.Mutable(GetArenaForAllocation());
  16013. }
  16014. inline std::string* UninterpretedOption::release_aggregate_value()
  16015. {
  16016. // @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption.aggregate_value)
  16017. if (!_internal_has_aggregate_value())
  16018. {
  16019. return nullptr;
  16020. }
  16021. _impl_._has_bits_[0] &= ~0x00000004u;
  16022. auto* p = _impl_.aggregate_value_.Release();
  16023. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  16024. if (_impl_.aggregate_value_.IsDefault())
  16025. {
  16026. _impl_.aggregate_value_.Set("", GetArenaForAllocation());
  16027. }
  16028. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  16029. return p;
  16030. }
  16031. inline void UninterpretedOption::set_allocated_aggregate_value(std::string* aggregate_value)
  16032. {
  16033. if (aggregate_value != nullptr)
  16034. {
  16035. _impl_._has_bits_[0] |= 0x00000004u;
  16036. }
  16037. else
  16038. {
  16039. _impl_._has_bits_[0] &= ~0x00000004u;
  16040. }
  16041. _impl_.aggregate_value_.SetAllocated(aggregate_value, GetArenaForAllocation());
  16042. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  16043. if (_impl_.aggregate_value_.IsDefault())
  16044. {
  16045. _impl_.aggregate_value_.Set("", GetArenaForAllocation());
  16046. }
  16047. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  16048. // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedOption.aggregate_value)
  16049. }
  16050. // -------------------------------------------------------------------
  16051. // SourceCodeInfo_Location
  16052. // repeated int32 path = 1 [packed = true];
  16053. inline int SourceCodeInfo_Location::_internal_path_size() const
  16054. {
  16055. return _impl_.path_.size();
  16056. }
  16057. inline int SourceCodeInfo_Location::path_size() const
  16058. {
  16059. return _internal_path_size();
  16060. }
  16061. inline void SourceCodeInfo_Location::clear_path()
  16062. {
  16063. _impl_.path_.Clear();
  16064. }
  16065. inline int32_t SourceCodeInfo_Location::_internal_path(int index) const
  16066. {
  16067. return _impl_.path_.Get(index);
  16068. }
  16069. inline int32_t SourceCodeInfo_Location::path(int index) const
  16070. {
  16071. // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.path)
  16072. return _internal_path(index);
  16073. }
  16074. inline void SourceCodeInfo_Location::set_path(int index, int32_t value)
  16075. {
  16076. _impl_.path_.Set(index, value);
  16077. // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.path)
  16078. }
  16079. inline void SourceCodeInfo_Location::_internal_add_path(int32_t value)
  16080. {
  16081. _impl_.path_.Add(value);
  16082. }
  16083. inline void SourceCodeInfo_Location::add_path(int32_t value)
  16084. {
  16085. _internal_add_path(value);
  16086. // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location.path)
  16087. }
  16088. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField<int32_t>&
  16089. SourceCodeInfo_Location::_internal_path() const
  16090. {
  16091. return _impl_.path_;
  16092. }
  16093. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField<int32_t>&
  16094. SourceCodeInfo_Location::path() const
  16095. {
  16096. // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.Location.path)
  16097. return _internal_path();
  16098. }
  16099. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField<int32_t>*
  16100. SourceCodeInfo_Location::_internal_mutable_path()
  16101. {
  16102. return &_impl_.path_;
  16103. }
  16104. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField<int32_t>*
  16105. SourceCodeInfo_Location::mutable_path()
  16106. {
  16107. // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo.Location.path)
  16108. return _internal_mutable_path();
  16109. }
  16110. // repeated int32 span = 2 [packed = true];
  16111. inline int SourceCodeInfo_Location::_internal_span_size() const
  16112. {
  16113. return _impl_.span_.size();
  16114. }
  16115. inline int SourceCodeInfo_Location::span_size() const
  16116. {
  16117. return _internal_span_size();
  16118. }
  16119. inline void SourceCodeInfo_Location::clear_span()
  16120. {
  16121. _impl_.span_.Clear();
  16122. }
  16123. inline int32_t SourceCodeInfo_Location::_internal_span(int index) const
  16124. {
  16125. return _impl_.span_.Get(index);
  16126. }
  16127. inline int32_t SourceCodeInfo_Location::span(int index) const
  16128. {
  16129. // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.span)
  16130. return _internal_span(index);
  16131. }
  16132. inline void SourceCodeInfo_Location::set_span(int index, int32_t value)
  16133. {
  16134. _impl_.span_.Set(index, value);
  16135. // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.span)
  16136. }
  16137. inline void SourceCodeInfo_Location::_internal_add_span(int32_t value)
  16138. {
  16139. _impl_.span_.Add(value);
  16140. }
  16141. inline void SourceCodeInfo_Location::add_span(int32_t value)
  16142. {
  16143. _internal_add_span(value);
  16144. // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location.span)
  16145. }
  16146. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField<int32_t>&
  16147. SourceCodeInfo_Location::_internal_span() const
  16148. {
  16149. return _impl_.span_;
  16150. }
  16151. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField<int32_t>&
  16152. SourceCodeInfo_Location::span() const
  16153. {
  16154. // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.Location.span)
  16155. return _internal_span();
  16156. }
  16157. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField<int32_t>*
  16158. SourceCodeInfo_Location::_internal_mutable_span()
  16159. {
  16160. return &_impl_.span_;
  16161. }
  16162. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField<int32_t>*
  16163. SourceCodeInfo_Location::mutable_span()
  16164. {
  16165. // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo.Location.span)
  16166. return _internal_mutable_span();
  16167. }
  16168. // optional string leading_comments = 3;
  16169. inline bool SourceCodeInfo_Location::_internal_has_leading_comments() const
  16170. {
  16171. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  16172. return value;
  16173. }
  16174. inline bool SourceCodeInfo_Location::has_leading_comments() const
  16175. {
  16176. return _internal_has_leading_comments();
  16177. }
  16178. inline void SourceCodeInfo_Location::clear_leading_comments()
  16179. {
  16180. _impl_.leading_comments_.ClearToEmpty();
  16181. _impl_._has_bits_[0] &= ~0x00000001u;
  16182. }
  16183. inline const std::string& SourceCodeInfo_Location::leading_comments() const
  16184. {
  16185. // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.leading_comments)
  16186. return _internal_leading_comments();
  16187. }
  16188. template<typename ArgT0, typename... ArgT>
  16189. inline PROTOBUF_ALWAYS_INLINE void SourceCodeInfo_Location::set_leading_comments(ArgT0&& arg0, ArgT... args)
  16190. {
  16191. _impl_._has_bits_[0] |= 0x00000001u;
  16192. _impl_.leading_comments_.Set(static_cast<ArgT0&&>(arg0), args..., GetArenaForAllocation());
  16193. // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.leading_comments)
  16194. }
  16195. inline std::string* SourceCodeInfo_Location::mutable_leading_comments()
  16196. {
  16197. std::string* _s = _internal_mutable_leading_comments();
  16198. // @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.Location.leading_comments)
  16199. return _s;
  16200. }
  16201. inline const std::string& SourceCodeInfo_Location::_internal_leading_comments() const
  16202. {
  16203. return _impl_.leading_comments_.Get();
  16204. }
  16205. inline void SourceCodeInfo_Location::_internal_set_leading_comments(const std::string& value)
  16206. {
  16207. _impl_._has_bits_[0] |= 0x00000001u;
  16208. _impl_.leading_comments_.Set(value, GetArenaForAllocation());
  16209. }
  16210. inline std::string* SourceCodeInfo_Location::_internal_mutable_leading_comments()
  16211. {
  16212. _impl_._has_bits_[0] |= 0x00000001u;
  16213. return _impl_.leading_comments_.Mutable(GetArenaForAllocation());
  16214. }
  16215. inline std::string* SourceCodeInfo_Location::release_leading_comments()
  16216. {
  16217. // @@protoc_insertion_point(field_release:google.protobuf.SourceCodeInfo.Location.leading_comments)
  16218. if (!_internal_has_leading_comments())
  16219. {
  16220. return nullptr;
  16221. }
  16222. _impl_._has_bits_[0] &= ~0x00000001u;
  16223. auto* p = _impl_.leading_comments_.Release();
  16224. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  16225. if (_impl_.leading_comments_.IsDefault())
  16226. {
  16227. _impl_.leading_comments_.Set("", GetArenaForAllocation());
  16228. }
  16229. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  16230. return p;
  16231. }
  16232. inline void SourceCodeInfo_Location::set_allocated_leading_comments(std::string* leading_comments)
  16233. {
  16234. if (leading_comments != nullptr)
  16235. {
  16236. _impl_._has_bits_[0] |= 0x00000001u;
  16237. }
  16238. else
  16239. {
  16240. _impl_._has_bits_[0] &= ~0x00000001u;
  16241. }
  16242. _impl_.leading_comments_.SetAllocated(leading_comments, GetArenaForAllocation());
  16243. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  16244. if (_impl_.leading_comments_.IsDefault())
  16245. {
  16246. _impl_.leading_comments_.Set("", GetArenaForAllocation());
  16247. }
  16248. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  16249. // @@protoc_insertion_point(field_set_allocated:google.protobuf.SourceCodeInfo.Location.leading_comments)
  16250. }
  16251. // optional string trailing_comments = 4;
  16252. inline bool SourceCodeInfo_Location::_internal_has_trailing_comments() const
  16253. {
  16254. bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
  16255. return value;
  16256. }
  16257. inline bool SourceCodeInfo_Location::has_trailing_comments() const
  16258. {
  16259. return _internal_has_trailing_comments();
  16260. }
  16261. inline void SourceCodeInfo_Location::clear_trailing_comments()
  16262. {
  16263. _impl_.trailing_comments_.ClearToEmpty();
  16264. _impl_._has_bits_[0] &= ~0x00000002u;
  16265. }
  16266. inline const std::string& SourceCodeInfo_Location::trailing_comments() const
  16267. {
  16268. // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.trailing_comments)
  16269. return _internal_trailing_comments();
  16270. }
  16271. template<typename ArgT0, typename... ArgT>
  16272. inline PROTOBUF_ALWAYS_INLINE void SourceCodeInfo_Location::set_trailing_comments(ArgT0&& arg0, ArgT... args)
  16273. {
  16274. _impl_._has_bits_[0] |= 0x00000002u;
  16275. _impl_.trailing_comments_.Set(static_cast<ArgT0&&>(arg0), args..., GetArenaForAllocation());
  16276. // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.trailing_comments)
  16277. }
  16278. inline std::string* SourceCodeInfo_Location::mutable_trailing_comments()
  16279. {
  16280. std::string* _s = _internal_mutable_trailing_comments();
  16281. // @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.Location.trailing_comments)
  16282. return _s;
  16283. }
  16284. inline const std::string& SourceCodeInfo_Location::_internal_trailing_comments() const
  16285. {
  16286. return _impl_.trailing_comments_.Get();
  16287. }
  16288. inline void SourceCodeInfo_Location::_internal_set_trailing_comments(const std::string& value)
  16289. {
  16290. _impl_._has_bits_[0] |= 0x00000002u;
  16291. _impl_.trailing_comments_.Set(value, GetArenaForAllocation());
  16292. }
  16293. inline std::string* SourceCodeInfo_Location::_internal_mutable_trailing_comments()
  16294. {
  16295. _impl_._has_bits_[0] |= 0x00000002u;
  16296. return _impl_.trailing_comments_.Mutable(GetArenaForAllocation());
  16297. }
  16298. inline std::string* SourceCodeInfo_Location::release_trailing_comments()
  16299. {
  16300. // @@protoc_insertion_point(field_release:google.protobuf.SourceCodeInfo.Location.trailing_comments)
  16301. if (!_internal_has_trailing_comments())
  16302. {
  16303. return nullptr;
  16304. }
  16305. _impl_._has_bits_[0] &= ~0x00000002u;
  16306. auto* p = _impl_.trailing_comments_.Release();
  16307. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  16308. if (_impl_.trailing_comments_.IsDefault())
  16309. {
  16310. _impl_.trailing_comments_.Set("", GetArenaForAllocation());
  16311. }
  16312. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  16313. return p;
  16314. }
  16315. inline void SourceCodeInfo_Location::set_allocated_trailing_comments(std::string* trailing_comments)
  16316. {
  16317. if (trailing_comments != nullptr)
  16318. {
  16319. _impl_._has_bits_[0] |= 0x00000002u;
  16320. }
  16321. else
  16322. {
  16323. _impl_._has_bits_[0] &= ~0x00000002u;
  16324. }
  16325. _impl_.trailing_comments_.SetAllocated(trailing_comments, GetArenaForAllocation());
  16326. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  16327. if (_impl_.trailing_comments_.IsDefault())
  16328. {
  16329. _impl_.trailing_comments_.Set("", GetArenaForAllocation());
  16330. }
  16331. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  16332. // @@protoc_insertion_point(field_set_allocated:google.protobuf.SourceCodeInfo.Location.trailing_comments)
  16333. }
  16334. // repeated string leading_detached_comments = 6;
  16335. inline int SourceCodeInfo_Location::_internal_leading_detached_comments_size() const
  16336. {
  16337. return _impl_.leading_detached_comments_.size();
  16338. }
  16339. inline int SourceCodeInfo_Location::leading_detached_comments_size() const
  16340. {
  16341. return _internal_leading_detached_comments_size();
  16342. }
  16343. inline void SourceCodeInfo_Location::clear_leading_detached_comments()
  16344. {
  16345. _impl_.leading_detached_comments_.Clear();
  16346. }
  16347. inline std::string* SourceCodeInfo_Location::add_leading_detached_comments()
  16348. {
  16349. std::string* _s = _internal_add_leading_detached_comments();
  16350. // @@protoc_insertion_point(field_add_mutable:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  16351. return _s;
  16352. }
  16353. inline const std::string& SourceCodeInfo_Location::_internal_leading_detached_comments(int index) const
  16354. {
  16355. return _impl_.leading_detached_comments_.Get(index);
  16356. }
  16357. inline const std::string& SourceCodeInfo_Location::leading_detached_comments(int index) const
  16358. {
  16359. // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  16360. return _internal_leading_detached_comments(index);
  16361. }
  16362. inline std::string* SourceCodeInfo_Location::mutable_leading_detached_comments(int index)
  16363. {
  16364. // @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  16365. return _impl_.leading_detached_comments_.Mutable(index);
  16366. }
  16367. inline void SourceCodeInfo_Location::set_leading_detached_comments(int index, const std::string& value)
  16368. {
  16369. _impl_.leading_detached_comments_.Mutable(index)->assign(value);
  16370. // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  16371. }
  16372. inline void SourceCodeInfo_Location::set_leading_detached_comments(int index, std::string&& value)
  16373. {
  16374. _impl_.leading_detached_comments_.Mutable(index)->assign(std::move(value));
  16375. // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  16376. }
  16377. inline void SourceCodeInfo_Location::set_leading_detached_comments(int index, const char* value)
  16378. {
  16379. GOOGLE_DCHECK(value != nullptr);
  16380. _impl_.leading_detached_comments_.Mutable(index)->assign(value);
  16381. // @@protoc_insertion_point(field_set_char:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  16382. }
  16383. inline void SourceCodeInfo_Location::set_leading_detached_comments(int index, const char* value, size_t size)
  16384. {
  16385. _impl_.leading_detached_comments_.Mutable(index)->assign(
  16386. reinterpret_cast<const char*>(value), size
  16387. );
  16388. // @@protoc_insertion_point(field_set_pointer:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  16389. }
  16390. inline std::string* SourceCodeInfo_Location::_internal_add_leading_detached_comments()
  16391. {
  16392. return _impl_.leading_detached_comments_.Add();
  16393. }
  16394. inline void SourceCodeInfo_Location::add_leading_detached_comments(const std::string& value)
  16395. {
  16396. _impl_.leading_detached_comments_.Add()->assign(value);
  16397. // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  16398. }
  16399. inline void SourceCodeInfo_Location::add_leading_detached_comments(std::string&& value)
  16400. {
  16401. _impl_.leading_detached_comments_.Add(std::move(value));
  16402. // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  16403. }
  16404. inline void SourceCodeInfo_Location::add_leading_detached_comments(const char* value)
  16405. {
  16406. GOOGLE_DCHECK(value != nullptr);
  16407. _impl_.leading_detached_comments_.Add()->assign(value);
  16408. // @@protoc_insertion_point(field_add_char:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  16409. }
  16410. inline void SourceCodeInfo_Location::add_leading_detached_comments(const char* value, size_t size)
  16411. {
  16412. _impl_.leading_detached_comments_.Add()->assign(reinterpret_cast<const char*>(value), size);
  16413. // @@protoc_insertion_point(field_add_pointer:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  16414. }
  16415. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
  16416. SourceCodeInfo_Location::leading_detached_comments() const
  16417. {
  16418. // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  16419. return _impl_.leading_detached_comments_;
  16420. }
  16421. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
  16422. SourceCodeInfo_Location::mutable_leading_detached_comments()
  16423. {
  16424. // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  16425. return &_impl_.leading_detached_comments_;
  16426. }
  16427. // -------------------------------------------------------------------
  16428. // SourceCodeInfo
  16429. // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
  16430. inline int SourceCodeInfo::_internal_location_size() const
  16431. {
  16432. return _impl_.location_.size();
  16433. }
  16434. inline int SourceCodeInfo::location_size() const
  16435. {
  16436. return _internal_location_size();
  16437. }
  16438. inline void SourceCodeInfo::clear_location()
  16439. {
  16440. _impl_.location_.Clear();
  16441. }
  16442. inline ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location* SourceCodeInfo::mutable_location(int index)
  16443. {
  16444. // @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.location)
  16445. return _impl_.location_.Mutable(index);
  16446. }
  16447. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location>*
  16448. SourceCodeInfo::mutable_location()
  16449. {
  16450. // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo.location)
  16451. return &_impl_.location_;
  16452. }
  16453. inline const ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location& SourceCodeInfo::_internal_location(int index) const
  16454. {
  16455. return _impl_.location_.Get(index);
  16456. }
  16457. inline const ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location& SourceCodeInfo::location(int index) const
  16458. {
  16459. // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.location)
  16460. return _internal_location(index);
  16461. }
  16462. inline ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location* SourceCodeInfo::_internal_add_location()
  16463. {
  16464. return _impl_.location_.Add();
  16465. }
  16466. inline ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location* SourceCodeInfo::add_location()
  16467. {
  16468. ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location* _add = _internal_add_location();
  16469. // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.location)
  16470. return _add;
  16471. }
  16472. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location>&
  16473. SourceCodeInfo::location() const
  16474. {
  16475. // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.location)
  16476. return _impl_.location_;
  16477. }
  16478. // -------------------------------------------------------------------
  16479. // GeneratedCodeInfo_Annotation
  16480. // repeated int32 path = 1 [packed = true];
  16481. inline int GeneratedCodeInfo_Annotation::_internal_path_size() const
  16482. {
  16483. return _impl_.path_.size();
  16484. }
  16485. inline int GeneratedCodeInfo_Annotation::path_size() const
  16486. {
  16487. return _internal_path_size();
  16488. }
  16489. inline void GeneratedCodeInfo_Annotation::clear_path()
  16490. {
  16491. _impl_.path_.Clear();
  16492. }
  16493. inline int32_t GeneratedCodeInfo_Annotation::_internal_path(int index) const
  16494. {
  16495. return _impl_.path_.Get(index);
  16496. }
  16497. inline int32_t GeneratedCodeInfo_Annotation::path(int index) const
  16498. {
  16499. // @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.Annotation.path)
  16500. return _internal_path(index);
  16501. }
  16502. inline void GeneratedCodeInfo_Annotation::set_path(int index, int32_t value)
  16503. {
  16504. _impl_.path_.Set(index, value);
  16505. // @@protoc_insertion_point(field_set:google.protobuf.GeneratedCodeInfo.Annotation.path)
  16506. }
  16507. inline void GeneratedCodeInfo_Annotation::_internal_add_path(int32_t value)
  16508. {
  16509. _impl_.path_.Add(value);
  16510. }
  16511. inline void GeneratedCodeInfo_Annotation::add_path(int32_t value)
  16512. {
  16513. _internal_add_path(value);
  16514. // @@protoc_insertion_point(field_add:google.protobuf.GeneratedCodeInfo.Annotation.path)
  16515. }
  16516. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField<int32_t>&
  16517. GeneratedCodeInfo_Annotation::_internal_path() const
  16518. {
  16519. return _impl_.path_;
  16520. }
  16521. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField<int32_t>&
  16522. GeneratedCodeInfo_Annotation::path() const
  16523. {
  16524. // @@protoc_insertion_point(field_list:google.protobuf.GeneratedCodeInfo.Annotation.path)
  16525. return _internal_path();
  16526. }
  16527. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField<int32_t>*
  16528. GeneratedCodeInfo_Annotation::_internal_mutable_path()
  16529. {
  16530. return &_impl_.path_;
  16531. }
  16532. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField<int32_t>*
  16533. GeneratedCodeInfo_Annotation::mutable_path()
  16534. {
  16535. // @@protoc_insertion_point(field_mutable_list:google.protobuf.GeneratedCodeInfo.Annotation.path)
  16536. return _internal_mutable_path();
  16537. }
  16538. // optional string source_file = 2;
  16539. inline bool GeneratedCodeInfo_Annotation::_internal_has_source_file() const
  16540. {
  16541. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  16542. return value;
  16543. }
  16544. inline bool GeneratedCodeInfo_Annotation::has_source_file() const
  16545. {
  16546. return _internal_has_source_file();
  16547. }
  16548. inline void GeneratedCodeInfo_Annotation::clear_source_file()
  16549. {
  16550. _impl_.source_file_.ClearToEmpty();
  16551. _impl_._has_bits_[0] &= ~0x00000001u;
  16552. }
  16553. inline const std::string& GeneratedCodeInfo_Annotation::source_file() const
  16554. {
  16555. // @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.Annotation.source_file)
  16556. return _internal_source_file();
  16557. }
  16558. template<typename ArgT0, typename... ArgT>
  16559. inline PROTOBUF_ALWAYS_INLINE void GeneratedCodeInfo_Annotation::set_source_file(ArgT0&& arg0, ArgT... args)
  16560. {
  16561. _impl_._has_bits_[0] |= 0x00000001u;
  16562. _impl_.source_file_.Set(static_cast<ArgT0&&>(arg0), args..., GetArenaForAllocation());
  16563. // @@protoc_insertion_point(field_set:google.protobuf.GeneratedCodeInfo.Annotation.source_file)
  16564. }
  16565. inline std::string* GeneratedCodeInfo_Annotation::mutable_source_file()
  16566. {
  16567. std::string* _s = _internal_mutable_source_file();
  16568. // @@protoc_insertion_point(field_mutable:google.protobuf.GeneratedCodeInfo.Annotation.source_file)
  16569. return _s;
  16570. }
  16571. inline const std::string& GeneratedCodeInfo_Annotation::_internal_source_file() const
  16572. {
  16573. return _impl_.source_file_.Get();
  16574. }
  16575. inline void GeneratedCodeInfo_Annotation::_internal_set_source_file(const std::string& value)
  16576. {
  16577. _impl_._has_bits_[0] |= 0x00000001u;
  16578. _impl_.source_file_.Set(value, GetArenaForAllocation());
  16579. }
  16580. inline std::string* GeneratedCodeInfo_Annotation::_internal_mutable_source_file()
  16581. {
  16582. _impl_._has_bits_[0] |= 0x00000001u;
  16583. return _impl_.source_file_.Mutable(GetArenaForAllocation());
  16584. }
  16585. inline std::string* GeneratedCodeInfo_Annotation::release_source_file()
  16586. {
  16587. // @@protoc_insertion_point(field_release:google.protobuf.GeneratedCodeInfo.Annotation.source_file)
  16588. if (!_internal_has_source_file())
  16589. {
  16590. return nullptr;
  16591. }
  16592. _impl_._has_bits_[0] &= ~0x00000001u;
  16593. auto* p = _impl_.source_file_.Release();
  16594. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  16595. if (_impl_.source_file_.IsDefault())
  16596. {
  16597. _impl_.source_file_.Set("", GetArenaForAllocation());
  16598. }
  16599. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  16600. return p;
  16601. }
  16602. inline void GeneratedCodeInfo_Annotation::set_allocated_source_file(std::string* source_file)
  16603. {
  16604. if (source_file != nullptr)
  16605. {
  16606. _impl_._has_bits_[0] |= 0x00000001u;
  16607. }
  16608. else
  16609. {
  16610. _impl_._has_bits_[0] &= ~0x00000001u;
  16611. }
  16612. _impl_.source_file_.SetAllocated(source_file, GetArenaForAllocation());
  16613. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  16614. if (_impl_.source_file_.IsDefault())
  16615. {
  16616. _impl_.source_file_.Set("", GetArenaForAllocation());
  16617. }
  16618. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  16619. // @@protoc_insertion_point(field_set_allocated:google.protobuf.GeneratedCodeInfo.Annotation.source_file)
  16620. }
  16621. // optional int32 begin = 3;
  16622. inline bool GeneratedCodeInfo_Annotation::_internal_has_begin() const
  16623. {
  16624. bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
  16625. return value;
  16626. }
  16627. inline bool GeneratedCodeInfo_Annotation::has_begin() const
  16628. {
  16629. return _internal_has_begin();
  16630. }
  16631. inline void GeneratedCodeInfo_Annotation::clear_begin()
  16632. {
  16633. _impl_.begin_ = 0;
  16634. _impl_._has_bits_[0] &= ~0x00000002u;
  16635. }
  16636. inline int32_t GeneratedCodeInfo_Annotation::_internal_begin() const
  16637. {
  16638. return _impl_.begin_;
  16639. }
  16640. inline int32_t GeneratedCodeInfo_Annotation::begin() const
  16641. {
  16642. // @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.Annotation.begin)
  16643. return _internal_begin();
  16644. }
  16645. inline void GeneratedCodeInfo_Annotation::_internal_set_begin(int32_t value)
  16646. {
  16647. _impl_._has_bits_[0] |= 0x00000002u;
  16648. _impl_.begin_ = value;
  16649. }
  16650. inline void GeneratedCodeInfo_Annotation::set_begin(int32_t value)
  16651. {
  16652. _internal_set_begin(value);
  16653. // @@protoc_insertion_point(field_set:google.protobuf.GeneratedCodeInfo.Annotation.begin)
  16654. }
  16655. // optional int32 end = 4;
  16656. inline bool GeneratedCodeInfo_Annotation::_internal_has_end() const
  16657. {
  16658. bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
  16659. return value;
  16660. }
  16661. inline bool GeneratedCodeInfo_Annotation::has_end() const
  16662. {
  16663. return _internal_has_end();
  16664. }
  16665. inline void GeneratedCodeInfo_Annotation::clear_end()
  16666. {
  16667. _impl_.end_ = 0;
  16668. _impl_._has_bits_[0] &= ~0x00000004u;
  16669. }
  16670. inline int32_t GeneratedCodeInfo_Annotation::_internal_end() const
  16671. {
  16672. return _impl_.end_;
  16673. }
  16674. inline int32_t GeneratedCodeInfo_Annotation::end() const
  16675. {
  16676. // @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.Annotation.end)
  16677. return _internal_end();
  16678. }
  16679. inline void GeneratedCodeInfo_Annotation::_internal_set_end(int32_t value)
  16680. {
  16681. _impl_._has_bits_[0] |= 0x00000004u;
  16682. _impl_.end_ = value;
  16683. }
  16684. inline void GeneratedCodeInfo_Annotation::set_end(int32_t value)
  16685. {
  16686. _internal_set_end(value);
  16687. // @@protoc_insertion_point(field_set:google.protobuf.GeneratedCodeInfo.Annotation.end)
  16688. }
  16689. // -------------------------------------------------------------------
  16690. // GeneratedCodeInfo
  16691. // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
  16692. inline int GeneratedCodeInfo::_internal_annotation_size() const
  16693. {
  16694. return _impl_.annotation_.size();
  16695. }
  16696. inline int GeneratedCodeInfo::annotation_size() const
  16697. {
  16698. return _internal_annotation_size();
  16699. }
  16700. inline void GeneratedCodeInfo::clear_annotation()
  16701. {
  16702. _impl_.annotation_.Clear();
  16703. }
  16704. inline ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation* GeneratedCodeInfo::mutable_annotation(int index)
  16705. {
  16706. // @@protoc_insertion_point(field_mutable:google.protobuf.GeneratedCodeInfo.annotation)
  16707. return _impl_.annotation_.Mutable(index);
  16708. }
  16709. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation>*
  16710. GeneratedCodeInfo::mutable_annotation()
  16711. {
  16712. // @@protoc_insertion_point(field_mutable_list:google.protobuf.GeneratedCodeInfo.annotation)
  16713. return &_impl_.annotation_;
  16714. }
  16715. inline const ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation& GeneratedCodeInfo::_internal_annotation(int index) const
  16716. {
  16717. return _impl_.annotation_.Get(index);
  16718. }
  16719. inline const ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation& GeneratedCodeInfo::annotation(int index) const
  16720. {
  16721. // @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.annotation)
  16722. return _internal_annotation(index);
  16723. }
  16724. inline ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation* GeneratedCodeInfo::_internal_add_annotation()
  16725. {
  16726. return _impl_.annotation_.Add();
  16727. }
  16728. inline ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation* GeneratedCodeInfo::add_annotation()
  16729. {
  16730. ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation* _add = _internal_add_annotation();
  16731. // @@protoc_insertion_point(field_add:google.protobuf.GeneratedCodeInfo.annotation)
  16732. return _add;
  16733. }
  16734. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation>&
  16735. GeneratedCodeInfo::annotation() const
  16736. {
  16737. // @@protoc_insertion_point(field_list:google.protobuf.GeneratedCodeInfo.annotation)
  16738. return _impl_.annotation_;
  16739. }
  16740. #ifdef __GNUC__
  16741. #pragma GCC diagnostic pop
  16742. #endif // __GNUC__
  16743. // -------------------------------------------------------------------
  16744. // -------------------------------------------------------------------
  16745. // -------------------------------------------------------------------
  16746. // -------------------------------------------------------------------
  16747. // -------------------------------------------------------------------
  16748. // -------------------------------------------------------------------
  16749. // -------------------------------------------------------------------
  16750. // -------------------------------------------------------------------
  16751. // -------------------------------------------------------------------
  16752. // -------------------------------------------------------------------
  16753. // -------------------------------------------------------------------
  16754. // -------------------------------------------------------------------
  16755. // -------------------------------------------------------------------
  16756. // -------------------------------------------------------------------
  16757. // -------------------------------------------------------------------
  16758. // -------------------------------------------------------------------
  16759. // -------------------------------------------------------------------
  16760. // -------------------------------------------------------------------
  16761. // -------------------------------------------------------------------
  16762. // -------------------------------------------------------------------
  16763. // -------------------------------------------------------------------
  16764. // -------------------------------------------------------------------
  16765. // -------------------------------------------------------------------
  16766. // -------------------------------------------------------------------
  16767. // -------------------------------------------------------------------
  16768. // -------------------------------------------------------------------
  16769. // @@protoc_insertion_point(namespace_scope)
  16770. PROTOBUF_NAMESPACE_CLOSE
  16771. PROTOBUF_NAMESPACE_OPEN
  16772. template<>
  16773. struct is_proto_enum<::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Type> : ::std::true_type
  16774. {
  16775. };
  16776. template<>
  16777. inline const EnumDescriptor* GetEnumDescriptor<::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Type>()
  16778. {
  16779. return ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Type_descriptor();
  16780. }
  16781. template<>
  16782. struct is_proto_enum<::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Label> : ::std::true_type
  16783. {
  16784. };
  16785. template<>
  16786. inline const EnumDescriptor* GetEnumDescriptor<::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Label>()
  16787. {
  16788. return ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Label_descriptor();
  16789. }
  16790. template<>
  16791. struct is_proto_enum<::PROTOBUF_NAMESPACE_ID::FileOptions_OptimizeMode> : ::std::true_type
  16792. {
  16793. };
  16794. template<>
  16795. inline const EnumDescriptor* GetEnumDescriptor<::PROTOBUF_NAMESPACE_ID::FileOptions_OptimizeMode>()
  16796. {
  16797. return ::PROTOBUF_NAMESPACE_ID::FileOptions_OptimizeMode_descriptor();
  16798. }
  16799. template<>
  16800. struct is_proto_enum<::PROTOBUF_NAMESPACE_ID::FieldOptions_CType> : ::std::true_type
  16801. {
  16802. };
  16803. template<>
  16804. inline const EnumDescriptor* GetEnumDescriptor<::PROTOBUF_NAMESPACE_ID::FieldOptions_CType>()
  16805. {
  16806. return ::PROTOBUF_NAMESPACE_ID::FieldOptions_CType_descriptor();
  16807. }
  16808. template<>
  16809. struct is_proto_enum<::PROTOBUF_NAMESPACE_ID::FieldOptions_JSType> : ::std::true_type
  16810. {
  16811. };
  16812. template<>
  16813. inline const EnumDescriptor* GetEnumDescriptor<::PROTOBUF_NAMESPACE_ID::FieldOptions_JSType>()
  16814. {
  16815. return ::PROTOBUF_NAMESPACE_ID::FieldOptions_JSType_descriptor();
  16816. }
  16817. template<>
  16818. struct is_proto_enum<::PROTOBUF_NAMESPACE_ID::MethodOptions_IdempotencyLevel> : ::std::true_type
  16819. {
  16820. };
  16821. template<>
  16822. inline const EnumDescriptor* GetEnumDescriptor<::PROTOBUF_NAMESPACE_ID::MethodOptions_IdempotencyLevel>()
  16823. {
  16824. return ::PROTOBUF_NAMESPACE_ID::MethodOptions_IdempotencyLevel_descriptor();
  16825. }
  16826. PROTOBUF_NAMESPACE_CLOSE
  16827. // @@protoc_insertion_point(global_scope)
  16828. #include <google/protobuf/port_undef.inc>
  16829. #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fdescriptor_2eproto