descriptor.pb.cc 524 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: google/protobuf/descriptor.proto
  3. #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
  4. #include "google/protobuf/descriptor.pb.h"
  5. #include <algorithm>
  6. #include <google/protobuf/stubs/common.h>
  7. #include <google/protobuf/stubs/once.h>
  8. #include <google/protobuf/io/coded_stream.h>
  9. #include <google/protobuf/wire_format_lite_inl.h>
  10. #include <google/protobuf/descriptor.h>
  11. #include <google/protobuf/generated_message_reflection.h>
  12. #include <google/protobuf/reflection_ops.h>
  13. #include <google/protobuf/wire_format.h>
  14. // @@protoc_insertion_point(includes)
  15. namespace google {
  16. namespace protobuf {
  17. namespace {
  18. const ::google::protobuf::Descriptor* FileDescriptorSet_descriptor_ = NULL;
  19. const ::google::protobuf::internal::GeneratedMessageReflection*
  20. FileDescriptorSet_reflection_ = NULL;
  21. const ::google::protobuf::Descriptor* FileDescriptorProto_descriptor_ = NULL;
  22. const ::google::protobuf::internal::GeneratedMessageReflection*
  23. FileDescriptorProto_reflection_ = NULL;
  24. const ::google::protobuf::Descriptor* DescriptorProto_descriptor_ = NULL;
  25. const ::google::protobuf::internal::GeneratedMessageReflection*
  26. DescriptorProto_reflection_ = NULL;
  27. const ::google::protobuf::Descriptor* DescriptorProto_ExtensionRange_descriptor_ = NULL;
  28. const ::google::protobuf::internal::GeneratedMessageReflection*
  29. DescriptorProto_ExtensionRange_reflection_ = NULL;
  30. const ::google::protobuf::Descriptor* DescriptorProto_ReservedRange_descriptor_ = NULL;
  31. const ::google::protobuf::internal::GeneratedMessageReflection*
  32. DescriptorProto_ReservedRange_reflection_ = NULL;
  33. const ::google::protobuf::Descriptor* FieldDescriptorProto_descriptor_ = NULL;
  34. const ::google::protobuf::internal::GeneratedMessageReflection*
  35. FieldDescriptorProto_reflection_ = NULL;
  36. const ::google::protobuf::EnumDescriptor* FieldDescriptorProto_Type_descriptor_ = NULL;
  37. const ::google::protobuf::EnumDescriptor* FieldDescriptorProto_Label_descriptor_ = NULL;
  38. const ::google::protobuf::Descriptor* OneofDescriptorProto_descriptor_ = NULL;
  39. const ::google::protobuf::internal::GeneratedMessageReflection*
  40. OneofDescriptorProto_reflection_ = NULL;
  41. const ::google::protobuf::Descriptor* EnumDescriptorProto_descriptor_ = NULL;
  42. const ::google::protobuf::internal::GeneratedMessageReflection*
  43. EnumDescriptorProto_reflection_ = NULL;
  44. const ::google::protobuf::Descriptor* EnumValueDescriptorProto_descriptor_ = NULL;
  45. const ::google::protobuf::internal::GeneratedMessageReflection*
  46. EnumValueDescriptorProto_reflection_ = NULL;
  47. const ::google::protobuf::Descriptor* ServiceDescriptorProto_descriptor_ = NULL;
  48. const ::google::protobuf::internal::GeneratedMessageReflection*
  49. ServiceDescriptorProto_reflection_ = NULL;
  50. const ::google::protobuf::Descriptor* MethodDescriptorProto_descriptor_ = NULL;
  51. const ::google::protobuf::internal::GeneratedMessageReflection*
  52. MethodDescriptorProto_reflection_ = NULL;
  53. const ::google::protobuf::Descriptor* FileOptions_descriptor_ = NULL;
  54. const ::google::protobuf::internal::GeneratedMessageReflection*
  55. FileOptions_reflection_ = NULL;
  56. const ::google::protobuf::EnumDescriptor* FileOptions_OptimizeMode_descriptor_ = NULL;
  57. const ::google::protobuf::Descriptor* MessageOptions_descriptor_ = NULL;
  58. const ::google::protobuf::internal::GeneratedMessageReflection*
  59. MessageOptions_reflection_ = NULL;
  60. const ::google::protobuf::Descriptor* FieldOptions_descriptor_ = NULL;
  61. const ::google::protobuf::internal::GeneratedMessageReflection*
  62. FieldOptions_reflection_ = NULL;
  63. const ::google::protobuf::EnumDescriptor* FieldOptions_CType_descriptor_ = NULL;
  64. const ::google::protobuf::EnumDescriptor* FieldOptions_JSType_descriptor_ = NULL;
  65. const ::google::protobuf::Descriptor* EnumOptions_descriptor_ = NULL;
  66. const ::google::protobuf::internal::GeneratedMessageReflection*
  67. EnumOptions_reflection_ = NULL;
  68. const ::google::protobuf::Descriptor* EnumValueOptions_descriptor_ = NULL;
  69. const ::google::protobuf::internal::GeneratedMessageReflection*
  70. EnumValueOptions_reflection_ = NULL;
  71. const ::google::protobuf::Descriptor* ServiceOptions_descriptor_ = NULL;
  72. const ::google::protobuf::internal::GeneratedMessageReflection*
  73. ServiceOptions_reflection_ = NULL;
  74. const ::google::protobuf::Descriptor* MethodOptions_descriptor_ = NULL;
  75. const ::google::protobuf::internal::GeneratedMessageReflection*
  76. MethodOptions_reflection_ = NULL;
  77. const ::google::protobuf::Descriptor* UninterpretedOption_descriptor_ = NULL;
  78. const ::google::protobuf::internal::GeneratedMessageReflection*
  79. UninterpretedOption_reflection_ = NULL;
  80. const ::google::protobuf::Descriptor* UninterpretedOption_NamePart_descriptor_ = NULL;
  81. const ::google::protobuf::internal::GeneratedMessageReflection*
  82. UninterpretedOption_NamePart_reflection_ = NULL;
  83. const ::google::protobuf::Descriptor* SourceCodeInfo_descriptor_ = NULL;
  84. const ::google::protobuf::internal::GeneratedMessageReflection*
  85. SourceCodeInfo_reflection_ = NULL;
  86. const ::google::protobuf::Descriptor* SourceCodeInfo_Location_descriptor_ = NULL;
  87. const ::google::protobuf::internal::GeneratedMessageReflection*
  88. SourceCodeInfo_Location_reflection_ = NULL;
  89. } // namespace
  90. void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto() {
  91. protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  92. const ::google::protobuf::FileDescriptor* file =
  93. ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
  94. "google/protobuf/descriptor.proto");
  95. GOOGLE_CHECK(file != NULL);
  96. FileDescriptorSet_descriptor_ = file->message_type(0);
  97. static const int FileDescriptorSet_offsets_[1] = {
  98. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorSet, file_),
  99. };
  100. FileDescriptorSet_reflection_ =
  101. ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
  102. FileDescriptorSet_descriptor_,
  103. FileDescriptorSet::default_instance_,
  104. FileDescriptorSet_offsets_,
  105. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorSet, _has_bits_[0]),
  106. -1,
  107. -1,
  108. sizeof(FileDescriptorSet),
  109. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorSet, _internal_metadata_),
  110. -1);
  111. FileDescriptorProto_descriptor_ = file->message_type(1);
  112. static const int FileDescriptorProto_offsets_[12] = {
  113. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, name_),
  114. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, package_),
  115. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, dependency_),
  116. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, public_dependency_),
  117. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, weak_dependency_),
  118. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, message_type_),
  119. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, enum_type_),
  120. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, service_),
  121. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, extension_),
  122. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, options_),
  123. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, source_code_info_),
  124. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, syntax_),
  125. };
  126. FileDescriptorProto_reflection_ =
  127. ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
  128. FileDescriptorProto_descriptor_,
  129. FileDescriptorProto::default_instance_,
  130. FileDescriptorProto_offsets_,
  131. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, _has_bits_[0]),
  132. -1,
  133. -1,
  134. sizeof(FileDescriptorProto),
  135. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, _internal_metadata_),
  136. -1);
  137. DescriptorProto_descriptor_ = file->message_type(2);
  138. static const int DescriptorProto_offsets_[10] = {
  139. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, name_),
  140. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, field_),
  141. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, extension_),
  142. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, nested_type_),
  143. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, enum_type_),
  144. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, extension_range_),
  145. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, oneof_decl_),
  146. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, options_),
  147. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, reserved_range_),
  148. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, reserved_name_),
  149. };
  150. DescriptorProto_reflection_ =
  151. ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
  152. DescriptorProto_descriptor_,
  153. DescriptorProto::default_instance_,
  154. DescriptorProto_offsets_,
  155. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, _has_bits_[0]),
  156. -1,
  157. -1,
  158. sizeof(DescriptorProto),
  159. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, _internal_metadata_),
  160. -1);
  161. DescriptorProto_ExtensionRange_descriptor_ = DescriptorProto_descriptor_->nested_type(0);
  162. static const int DescriptorProto_ExtensionRange_offsets_[2] = {
  163. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ExtensionRange, start_),
  164. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ExtensionRange, end_),
  165. };
  166. DescriptorProto_ExtensionRange_reflection_ =
  167. ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
  168. DescriptorProto_ExtensionRange_descriptor_,
  169. DescriptorProto_ExtensionRange::default_instance_,
  170. DescriptorProto_ExtensionRange_offsets_,
  171. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ExtensionRange, _has_bits_[0]),
  172. -1,
  173. -1,
  174. sizeof(DescriptorProto_ExtensionRange),
  175. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ExtensionRange, _internal_metadata_),
  176. -1);
  177. DescriptorProto_ReservedRange_descriptor_ = DescriptorProto_descriptor_->nested_type(1);
  178. static const int DescriptorProto_ReservedRange_offsets_[2] = {
  179. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ReservedRange, start_),
  180. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ReservedRange, end_),
  181. };
  182. DescriptorProto_ReservedRange_reflection_ =
  183. ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
  184. DescriptorProto_ReservedRange_descriptor_,
  185. DescriptorProto_ReservedRange::default_instance_,
  186. DescriptorProto_ReservedRange_offsets_,
  187. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ReservedRange, _has_bits_[0]),
  188. -1,
  189. -1,
  190. sizeof(DescriptorProto_ReservedRange),
  191. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ReservedRange, _internal_metadata_),
  192. -1);
  193. FieldDescriptorProto_descriptor_ = file->message_type(3);
  194. static const int FieldDescriptorProto_offsets_[10] = {
  195. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, name_),
  196. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, number_),
  197. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, label_),
  198. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, type_),
  199. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, type_name_),
  200. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, extendee_),
  201. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, default_value_),
  202. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, oneof_index_),
  203. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, json_name_),
  204. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, options_),
  205. };
  206. FieldDescriptorProto_reflection_ =
  207. ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
  208. FieldDescriptorProto_descriptor_,
  209. FieldDescriptorProto::default_instance_,
  210. FieldDescriptorProto_offsets_,
  211. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, _has_bits_[0]),
  212. -1,
  213. -1,
  214. sizeof(FieldDescriptorProto),
  215. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, _internal_metadata_),
  216. -1);
  217. FieldDescriptorProto_Type_descriptor_ = FieldDescriptorProto_descriptor_->enum_type(0);
  218. FieldDescriptorProto_Label_descriptor_ = FieldDescriptorProto_descriptor_->enum_type(1);
  219. OneofDescriptorProto_descriptor_ = file->message_type(4);
  220. static const int OneofDescriptorProto_offsets_[1] = {
  221. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OneofDescriptorProto, name_),
  222. };
  223. OneofDescriptorProto_reflection_ =
  224. ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
  225. OneofDescriptorProto_descriptor_,
  226. OneofDescriptorProto::default_instance_,
  227. OneofDescriptorProto_offsets_,
  228. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OneofDescriptorProto, _has_bits_[0]),
  229. -1,
  230. -1,
  231. sizeof(OneofDescriptorProto),
  232. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OneofDescriptorProto, _internal_metadata_),
  233. -1);
  234. EnumDescriptorProto_descriptor_ = file->message_type(5);
  235. static const int EnumDescriptorProto_offsets_[3] = {
  236. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, name_),
  237. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, value_),
  238. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, options_),
  239. };
  240. EnumDescriptorProto_reflection_ =
  241. ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
  242. EnumDescriptorProto_descriptor_,
  243. EnumDescriptorProto::default_instance_,
  244. EnumDescriptorProto_offsets_,
  245. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, _has_bits_[0]),
  246. -1,
  247. -1,
  248. sizeof(EnumDescriptorProto),
  249. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, _internal_metadata_),
  250. -1);
  251. EnumValueDescriptorProto_descriptor_ = file->message_type(6);
  252. static const int EnumValueDescriptorProto_offsets_[3] = {
  253. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, name_),
  254. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, number_),
  255. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, options_),
  256. };
  257. EnumValueDescriptorProto_reflection_ =
  258. ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
  259. EnumValueDescriptorProto_descriptor_,
  260. EnumValueDescriptorProto::default_instance_,
  261. EnumValueDescriptorProto_offsets_,
  262. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, _has_bits_[0]),
  263. -1,
  264. -1,
  265. sizeof(EnumValueDescriptorProto),
  266. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, _internal_metadata_),
  267. -1);
  268. ServiceDescriptorProto_descriptor_ = file->message_type(7);
  269. static const int ServiceDescriptorProto_offsets_[3] = {
  270. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, name_),
  271. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, method_),
  272. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, options_),
  273. };
  274. ServiceDescriptorProto_reflection_ =
  275. ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
  276. ServiceDescriptorProto_descriptor_,
  277. ServiceDescriptorProto::default_instance_,
  278. ServiceDescriptorProto_offsets_,
  279. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, _has_bits_[0]),
  280. -1,
  281. -1,
  282. sizeof(ServiceDescriptorProto),
  283. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, _internal_metadata_),
  284. -1);
  285. MethodDescriptorProto_descriptor_ = file->message_type(8);
  286. static const int MethodDescriptorProto_offsets_[6] = {
  287. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, name_),
  288. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, input_type_),
  289. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, output_type_),
  290. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, options_),
  291. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, client_streaming_),
  292. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, server_streaming_),
  293. };
  294. MethodDescriptorProto_reflection_ =
  295. ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
  296. MethodDescriptorProto_descriptor_,
  297. MethodDescriptorProto::default_instance_,
  298. MethodDescriptorProto_offsets_,
  299. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, _has_bits_[0]),
  300. -1,
  301. -1,
  302. sizeof(MethodDescriptorProto),
  303. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, _internal_metadata_),
  304. -1);
  305. FileOptions_descriptor_ = file->message_type(9);
  306. static const int FileOptions_offsets_[16] = {
  307. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_package_),
  308. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_outer_classname_),
  309. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_multiple_files_),
  310. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_generate_equals_and_hash_),
  311. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_string_check_utf8_),
  312. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, optimize_for_),
  313. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, go_package_),
  314. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, cc_generic_services_),
  315. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_generic_services_),
  316. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, py_generic_services_),
  317. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, deprecated_),
  318. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, cc_enable_arenas_),
  319. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, objc_class_prefix_),
  320. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, csharp_namespace_),
  321. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, javanano_use_deprecated_package_),
  322. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, uninterpreted_option_),
  323. };
  324. FileOptions_reflection_ =
  325. ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
  326. FileOptions_descriptor_,
  327. FileOptions::default_instance_,
  328. FileOptions_offsets_,
  329. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, _has_bits_[0]),
  330. -1,
  331. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, _extensions_),
  332. sizeof(FileOptions),
  333. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, _internal_metadata_),
  334. -1);
  335. FileOptions_OptimizeMode_descriptor_ = FileOptions_descriptor_->enum_type(0);
  336. MessageOptions_descriptor_ = file->message_type(10);
  337. static const int MessageOptions_offsets_[5] = {
  338. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, message_set_wire_format_),
  339. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, no_standard_descriptor_accessor_),
  340. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, deprecated_),
  341. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, map_entry_),
  342. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, uninterpreted_option_),
  343. };
  344. MessageOptions_reflection_ =
  345. ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
  346. MessageOptions_descriptor_,
  347. MessageOptions::default_instance_,
  348. MessageOptions_offsets_,
  349. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, _has_bits_[0]),
  350. -1,
  351. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, _extensions_),
  352. sizeof(MessageOptions),
  353. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, _internal_metadata_),
  354. -1);
  355. FieldOptions_descriptor_ = file->message_type(11);
  356. static const int FieldOptions_offsets_[7] = {
  357. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, ctype_),
  358. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, packed_),
  359. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, jstype_),
  360. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, lazy_),
  361. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, deprecated_),
  362. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, weak_),
  363. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, uninterpreted_option_),
  364. };
  365. FieldOptions_reflection_ =
  366. ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
  367. FieldOptions_descriptor_,
  368. FieldOptions::default_instance_,
  369. FieldOptions_offsets_,
  370. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, _has_bits_[0]),
  371. -1,
  372. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, _extensions_),
  373. sizeof(FieldOptions),
  374. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, _internal_metadata_),
  375. -1);
  376. FieldOptions_CType_descriptor_ = FieldOptions_descriptor_->enum_type(0);
  377. FieldOptions_JSType_descriptor_ = FieldOptions_descriptor_->enum_type(1);
  378. EnumOptions_descriptor_ = file->message_type(12);
  379. static const int EnumOptions_offsets_[3] = {
  380. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, allow_alias_),
  381. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, deprecated_),
  382. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, uninterpreted_option_),
  383. };
  384. EnumOptions_reflection_ =
  385. ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
  386. EnumOptions_descriptor_,
  387. EnumOptions::default_instance_,
  388. EnumOptions_offsets_,
  389. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, _has_bits_[0]),
  390. -1,
  391. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, _extensions_),
  392. sizeof(EnumOptions),
  393. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, _internal_metadata_),
  394. -1);
  395. EnumValueOptions_descriptor_ = file->message_type(13);
  396. static const int EnumValueOptions_offsets_[2] = {
  397. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, deprecated_),
  398. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, uninterpreted_option_),
  399. };
  400. EnumValueOptions_reflection_ =
  401. ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
  402. EnumValueOptions_descriptor_,
  403. EnumValueOptions::default_instance_,
  404. EnumValueOptions_offsets_,
  405. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, _has_bits_[0]),
  406. -1,
  407. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, _extensions_),
  408. sizeof(EnumValueOptions),
  409. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, _internal_metadata_),
  410. -1);
  411. ServiceOptions_descriptor_ = file->message_type(14);
  412. static const int ServiceOptions_offsets_[2] = {
  413. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, deprecated_),
  414. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, uninterpreted_option_),
  415. };
  416. ServiceOptions_reflection_ =
  417. ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
  418. ServiceOptions_descriptor_,
  419. ServiceOptions::default_instance_,
  420. ServiceOptions_offsets_,
  421. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, _has_bits_[0]),
  422. -1,
  423. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, _extensions_),
  424. sizeof(ServiceOptions),
  425. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, _internal_metadata_),
  426. -1);
  427. MethodOptions_descriptor_ = file->message_type(15);
  428. static const int MethodOptions_offsets_[2] = {
  429. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, deprecated_),
  430. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, uninterpreted_option_),
  431. };
  432. MethodOptions_reflection_ =
  433. ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
  434. MethodOptions_descriptor_,
  435. MethodOptions::default_instance_,
  436. MethodOptions_offsets_,
  437. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, _has_bits_[0]),
  438. -1,
  439. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, _extensions_),
  440. sizeof(MethodOptions),
  441. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, _internal_metadata_),
  442. -1);
  443. UninterpretedOption_descriptor_ = file->message_type(16);
  444. static const int UninterpretedOption_offsets_[7] = {
  445. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, name_),
  446. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, identifier_value_),
  447. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, positive_int_value_),
  448. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, negative_int_value_),
  449. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, double_value_),
  450. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, string_value_),
  451. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, aggregate_value_),
  452. };
  453. UninterpretedOption_reflection_ =
  454. ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
  455. UninterpretedOption_descriptor_,
  456. UninterpretedOption::default_instance_,
  457. UninterpretedOption_offsets_,
  458. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, _has_bits_[0]),
  459. -1,
  460. -1,
  461. sizeof(UninterpretedOption),
  462. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, _internal_metadata_),
  463. -1);
  464. UninterpretedOption_NamePart_descriptor_ = UninterpretedOption_descriptor_->nested_type(0);
  465. static const int UninterpretedOption_NamePart_offsets_[2] = {
  466. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption_NamePart, name_part_),
  467. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption_NamePart, is_extension_),
  468. };
  469. UninterpretedOption_NamePart_reflection_ =
  470. ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
  471. UninterpretedOption_NamePart_descriptor_,
  472. UninterpretedOption_NamePart::default_instance_,
  473. UninterpretedOption_NamePart_offsets_,
  474. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption_NamePart, _has_bits_[0]),
  475. -1,
  476. -1,
  477. sizeof(UninterpretedOption_NamePart),
  478. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption_NamePart, _internal_metadata_),
  479. -1);
  480. SourceCodeInfo_descriptor_ = file->message_type(17);
  481. static const int SourceCodeInfo_offsets_[1] = {
  482. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo, location_),
  483. };
  484. SourceCodeInfo_reflection_ =
  485. ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
  486. SourceCodeInfo_descriptor_,
  487. SourceCodeInfo::default_instance_,
  488. SourceCodeInfo_offsets_,
  489. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo, _has_bits_[0]),
  490. -1,
  491. -1,
  492. sizeof(SourceCodeInfo),
  493. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo, _internal_metadata_),
  494. -1);
  495. SourceCodeInfo_Location_descriptor_ = SourceCodeInfo_descriptor_->nested_type(0);
  496. static const int SourceCodeInfo_Location_offsets_[5] = {
  497. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, path_),
  498. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, span_),
  499. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, leading_comments_),
  500. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, trailing_comments_),
  501. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, leading_detached_comments_),
  502. };
  503. SourceCodeInfo_Location_reflection_ =
  504. ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
  505. SourceCodeInfo_Location_descriptor_,
  506. SourceCodeInfo_Location::default_instance_,
  507. SourceCodeInfo_Location_offsets_,
  508. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, _has_bits_[0]),
  509. -1,
  510. -1,
  511. sizeof(SourceCodeInfo_Location),
  512. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, _internal_metadata_),
  513. -1);
  514. }
  515. namespace {
  516. GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
  517. inline void protobuf_AssignDescriptorsOnce() {
  518. ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
  519. &protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto);
  520. }
  521. void protobuf_RegisterTypes(const ::std::string&) {
  522. protobuf_AssignDescriptorsOnce();
  523. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  524. FileDescriptorSet_descriptor_, &FileDescriptorSet::default_instance());
  525. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  526. FileDescriptorProto_descriptor_, &FileDescriptorProto::default_instance());
  527. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  528. DescriptorProto_descriptor_, &DescriptorProto::default_instance());
  529. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  530. DescriptorProto_ExtensionRange_descriptor_, &DescriptorProto_ExtensionRange::default_instance());
  531. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  532. DescriptorProto_ReservedRange_descriptor_, &DescriptorProto_ReservedRange::default_instance());
  533. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  534. FieldDescriptorProto_descriptor_, &FieldDescriptorProto::default_instance());
  535. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  536. OneofDescriptorProto_descriptor_, &OneofDescriptorProto::default_instance());
  537. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  538. EnumDescriptorProto_descriptor_, &EnumDescriptorProto::default_instance());
  539. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  540. EnumValueDescriptorProto_descriptor_, &EnumValueDescriptorProto::default_instance());
  541. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  542. ServiceDescriptorProto_descriptor_, &ServiceDescriptorProto::default_instance());
  543. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  544. MethodDescriptorProto_descriptor_, &MethodDescriptorProto::default_instance());
  545. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  546. FileOptions_descriptor_, &FileOptions::default_instance());
  547. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  548. MessageOptions_descriptor_, &MessageOptions::default_instance());
  549. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  550. FieldOptions_descriptor_, &FieldOptions::default_instance());
  551. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  552. EnumOptions_descriptor_, &EnumOptions::default_instance());
  553. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  554. EnumValueOptions_descriptor_, &EnumValueOptions::default_instance());
  555. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  556. ServiceOptions_descriptor_, &ServiceOptions::default_instance());
  557. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  558. MethodOptions_descriptor_, &MethodOptions::default_instance());
  559. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  560. UninterpretedOption_descriptor_, &UninterpretedOption::default_instance());
  561. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  562. UninterpretedOption_NamePart_descriptor_, &UninterpretedOption_NamePart::default_instance());
  563. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  564. SourceCodeInfo_descriptor_, &SourceCodeInfo::default_instance());
  565. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  566. SourceCodeInfo_Location_descriptor_, &SourceCodeInfo_Location::default_instance());
  567. }
  568. } // namespace
  569. void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto() {
  570. delete FileDescriptorSet::default_instance_;
  571. delete FileDescriptorSet_reflection_;
  572. delete FileDescriptorProto::default_instance_;
  573. delete FileDescriptorProto_reflection_;
  574. delete DescriptorProto::default_instance_;
  575. delete DescriptorProto_reflection_;
  576. delete DescriptorProto_ExtensionRange::default_instance_;
  577. delete DescriptorProto_ExtensionRange_reflection_;
  578. delete DescriptorProto_ReservedRange::default_instance_;
  579. delete DescriptorProto_ReservedRange_reflection_;
  580. delete FieldDescriptorProto::default_instance_;
  581. delete FieldDescriptorProto_reflection_;
  582. delete OneofDescriptorProto::default_instance_;
  583. delete OneofDescriptorProto_reflection_;
  584. delete EnumDescriptorProto::default_instance_;
  585. delete EnumDescriptorProto_reflection_;
  586. delete EnumValueDescriptorProto::default_instance_;
  587. delete EnumValueDescriptorProto_reflection_;
  588. delete ServiceDescriptorProto::default_instance_;
  589. delete ServiceDescriptorProto_reflection_;
  590. delete MethodDescriptorProto::default_instance_;
  591. delete MethodDescriptorProto_reflection_;
  592. delete FileOptions::default_instance_;
  593. delete FileOptions_reflection_;
  594. delete MessageOptions::default_instance_;
  595. delete MessageOptions_reflection_;
  596. delete FieldOptions::default_instance_;
  597. delete FieldOptions_reflection_;
  598. delete EnumOptions::default_instance_;
  599. delete EnumOptions_reflection_;
  600. delete EnumValueOptions::default_instance_;
  601. delete EnumValueOptions_reflection_;
  602. delete ServiceOptions::default_instance_;
  603. delete ServiceOptions_reflection_;
  604. delete MethodOptions::default_instance_;
  605. delete MethodOptions_reflection_;
  606. delete UninterpretedOption::default_instance_;
  607. delete UninterpretedOption_reflection_;
  608. delete UninterpretedOption_NamePart::default_instance_;
  609. delete UninterpretedOption_NamePart_reflection_;
  610. delete SourceCodeInfo::default_instance_;
  611. delete SourceCodeInfo_reflection_;
  612. delete SourceCodeInfo_Location::default_instance_;
  613. delete SourceCodeInfo_Location_reflection_;
  614. }
  615. void protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto() {
  616. static bool already_here = false;
  617. if (already_here) return;
  618. already_here = true;
  619. GOOGLE_PROTOBUF_VERIFY_VERSION;
  620. ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
  621. "\n google/protobuf/descriptor.proto\022\017goog"
  622. "le.protobuf\"G\n\021FileDescriptorSet\0222\n\004file"
  623. "\030\001 \003(\0132$.google.protobuf.FileDescriptorP"
  624. "roto\"\333\003\n\023FileDescriptorProto\022\014\n\004name\030\001 \001"
  625. "(\t\022\017\n\007package\030\002 \001(\t\022\022\n\ndependency\030\003 \003(\t\022"
  626. "\031\n\021public_dependency\030\n \003(\005\022\027\n\017weak_depen"
  627. "dency\030\013 \003(\005\0226\n\014message_type\030\004 \003(\0132 .goog"
  628. "le.protobuf.DescriptorProto\0227\n\tenum_type"
  629. "\030\005 \003(\0132$.google.protobuf.EnumDescriptorP"
  630. "roto\0228\n\007service\030\006 \003(\0132\'.google.protobuf."
  631. "ServiceDescriptorProto\0228\n\textension\030\007 \003("
  632. "\0132%.google.protobuf.FieldDescriptorProto"
  633. "\022-\n\007options\030\010 \001(\0132\034.google.protobuf.File"
  634. "Options\0229\n\020source_code_info\030\t \001(\0132\037.goog"
  635. "le.protobuf.SourceCodeInfo\022\016\n\006syntax\030\014 \001"
  636. "(\t\"\360\004\n\017DescriptorProto\022\014\n\004name\030\001 \001(\t\0224\n\005"
  637. "field\030\002 \003(\0132%.google.protobuf.FieldDescr"
  638. "iptorProto\0228\n\textension\030\006 \003(\0132%.google.p"
  639. "rotobuf.FieldDescriptorProto\0225\n\013nested_t"
  640. "ype\030\003 \003(\0132 .google.protobuf.DescriptorPr"
  641. "oto\0227\n\tenum_type\030\004 \003(\0132$.google.protobuf"
  642. ".EnumDescriptorProto\022H\n\017extension_range\030"
  643. "\005 \003(\0132/.google.protobuf.DescriptorProto."
  644. "ExtensionRange\0229\n\noneof_decl\030\010 \003(\0132%.goo"
  645. "gle.protobuf.OneofDescriptorProto\0220\n\007opt"
  646. "ions\030\007 \001(\0132\037.google.protobuf.MessageOpti"
  647. "ons\022F\n\016reserved_range\030\t \003(\0132..google.pro"
  648. "tobuf.DescriptorProto.ReservedRange\022\025\n\rr"
  649. "eserved_name\030\n \003(\t\032,\n\016ExtensionRange\022\r\n\005"
  650. "start\030\001 \001(\005\022\013\n\003end\030\002 \001(\005\032+\n\rReservedRang"
  651. "e\022\r\n\005start\030\001 \001(\005\022\013\n\003end\030\002 \001(\005\"\274\005\n\024FieldD"
  652. "escriptorProto\022\014\n\004name\030\001 \001(\t\022\016\n\006number\030\003"
  653. " \001(\005\022:\n\005label\030\004 \001(\0162+.google.protobuf.Fi"
  654. "eldDescriptorProto.Label\0228\n\004type\030\005 \001(\0162*"
  655. ".google.protobuf.FieldDescriptorProto.Ty"
  656. "pe\022\021\n\ttype_name\030\006 \001(\t\022\020\n\010extendee\030\002 \001(\t\022"
  657. "\025\n\rdefault_value\030\007 \001(\t\022\023\n\013oneof_index\030\t "
  658. "\001(\005\022\021\n\tjson_name\030\n \001(\t\022.\n\007options\030\010 \001(\0132"
  659. "\035.google.protobuf.FieldOptions\"\266\002\n\004Type\022"
  660. "\017\n\013TYPE_DOUBLE\020\001\022\016\n\nTYPE_FLOAT\020\002\022\016\n\nTYPE"
  661. "_INT64\020\003\022\017\n\013TYPE_UINT64\020\004\022\016\n\nTYPE_INT32\020"
  662. "\005\022\020\n\014TYPE_FIXED64\020\006\022\020\n\014TYPE_FIXED32\020\007\022\r\n"
  663. "\tTYPE_BOOL\020\010\022\017\n\013TYPE_STRING\020\t\022\016\n\nTYPE_GR"
  664. "OUP\020\n\022\020\n\014TYPE_MESSAGE\020\013\022\016\n\nTYPE_BYTES\020\014\022"
  665. "\017\n\013TYPE_UINT32\020\r\022\r\n\tTYPE_ENUM\020\016\022\021\n\rTYPE_"
  666. "SFIXED32\020\017\022\021\n\rTYPE_SFIXED64\020\020\022\017\n\013TYPE_SI"
  667. "NT32\020\021\022\017\n\013TYPE_SINT64\020\022\"C\n\005Label\022\022\n\016LABE"
  668. "L_OPTIONAL\020\001\022\022\n\016LABEL_REQUIRED\020\002\022\022\n\016LABE"
  669. "L_REPEATED\020\003\"$\n\024OneofDescriptorProto\022\014\n\004"
  670. "name\030\001 \001(\t\"\214\001\n\023EnumDescriptorProto\022\014\n\004na"
  671. "me\030\001 \001(\t\0228\n\005value\030\002 \003(\0132).google.protobu"
  672. "f.EnumValueDescriptorProto\022-\n\007options\030\003 "
  673. "\001(\0132\034.google.protobuf.EnumOptions\"l\n\030Enu"
  674. "mValueDescriptorProto\022\014\n\004name\030\001 \001(\t\022\016\n\006n"
  675. "umber\030\002 \001(\005\0222\n\007options\030\003 \001(\0132!.google.pr"
  676. "otobuf.EnumValueOptions\"\220\001\n\026ServiceDescr"
  677. "iptorProto\022\014\n\004name\030\001 \001(\t\0226\n\006method\030\002 \003(\013"
  678. "2&.google.protobuf.MethodDescriptorProto"
  679. "\0220\n\007options\030\003 \001(\0132\037.google.protobuf.Serv"
  680. "iceOptions\"\301\001\n\025MethodDescriptorProto\022\014\n\004"
  681. "name\030\001 \001(\t\022\022\n\ninput_type\030\002 \001(\t\022\023\n\013output"
  682. "_type\030\003 \001(\t\022/\n\007options\030\004 \001(\0132\036.google.pr"
  683. "otobuf.MethodOptions\022\037\n\020client_streaming"
  684. "\030\005 \001(\010:\005false\022\037\n\020server_streaming\030\006 \001(\010:"
  685. "\005false\"\252\005\n\013FileOptions\022\024\n\014java_package\030\001"
  686. " \001(\t\022\034\n\024java_outer_classname\030\010 \001(\t\022\"\n\023ja"
  687. "va_multiple_files\030\n \001(\010:\005false\022,\n\035java_g"
  688. "enerate_equals_and_hash\030\024 \001(\010:\005false\022%\n\026"
  689. "java_string_check_utf8\030\033 \001(\010:\005false\022F\n\014o"
  690. "ptimize_for\030\t \001(\0162).google.protobuf.File"
  691. "Options.OptimizeMode:\005SPEED\022\022\n\ngo_packag"
  692. "e\030\013 \001(\t\022\"\n\023cc_generic_services\030\020 \001(\010:\005fa"
  693. "lse\022$\n\025java_generic_services\030\021 \001(\010:\005fals"
  694. "e\022\"\n\023py_generic_services\030\022 \001(\010:\005false\022\031\n"
  695. "\ndeprecated\030\027 \001(\010:\005false\022\037\n\020cc_enable_ar"
  696. "enas\030\037 \001(\010:\005false\022\031\n\021objc_class_prefix\030$"
  697. " \001(\t\022\030\n\020csharp_namespace\030% \001(\t\022\'\n\037javana"
  698. "no_use_deprecated_package\030& \001(\010\022C\n\024unint"
  699. "erpreted_option\030\347\007 \003(\0132$.google.protobuf"
  700. ".UninterpretedOption\":\n\014OptimizeMode\022\t\n\005"
  701. "SPEED\020\001\022\r\n\tCODE_SIZE\020\002\022\020\n\014LITE_RUNTIME\020\003"
  702. "*\t\010\350\007\020\200\200\200\200\002\"\346\001\n\016MessageOptions\022&\n\027messag"
  703. "e_set_wire_format\030\001 \001(\010:\005false\022.\n\037no_sta"
  704. "ndard_descriptor_accessor\030\002 \001(\010:\005false\022\031"
  705. "\n\ndeprecated\030\003 \001(\010:\005false\022\021\n\tmap_entry\030\007"
  706. " \001(\010\022C\n\024uninterpreted_option\030\347\007 \003(\0132$.go"
  707. "ogle.protobuf.UninterpretedOption*\t\010\350\007\020\200"
  708. "\200\200\200\002\"\230\003\n\014FieldOptions\022:\n\005ctype\030\001 \001(\0162#.g"
  709. "oogle.protobuf.FieldOptions.CType:\006STRIN"
  710. "G\022\016\n\006packed\030\002 \001(\010\022\?\n\006jstype\030\006 \001(\0162$.goog"
  711. "le.protobuf.FieldOptions.JSType:\tJS_NORM"
  712. "AL\022\023\n\004lazy\030\005 \001(\010:\005false\022\031\n\ndeprecated\030\003 "
  713. "\001(\010:\005false\022\023\n\004weak\030\n \001(\010:\005false\022C\n\024unint"
  714. "erpreted_option\030\347\007 \003(\0132$.google.protobuf"
  715. ".UninterpretedOption\"/\n\005CType\022\n\n\006STRING\020"
  716. "\000\022\010\n\004CORD\020\001\022\020\n\014STRING_PIECE\020\002\"5\n\006JSType\022"
  717. "\r\n\tJS_NORMAL\020\000\022\r\n\tJS_STRING\020\001\022\r\n\tJS_NUMB"
  718. "ER\020\002*\t\010\350\007\020\200\200\200\200\002\"\215\001\n\013EnumOptions\022\023\n\013allow"
  719. "_alias\030\002 \001(\010\022\031\n\ndeprecated\030\003 \001(\010:\005false\022"
  720. "C\n\024uninterpreted_option\030\347\007 \003(\0132$.google."
  721. "protobuf.UninterpretedOption*\t\010\350\007\020\200\200\200\200\002\""
  722. "}\n\020EnumValueOptions\022\031\n\ndeprecated\030\001 \001(\010:"
  723. "\005false\022C\n\024uninterpreted_option\030\347\007 \003(\0132$."
  724. "google.protobuf.UninterpretedOption*\t\010\350\007"
  725. "\020\200\200\200\200\002\"{\n\016ServiceOptions\022\031\n\ndeprecated\030!"
  726. " \001(\010:\005false\022C\n\024uninterpreted_option\030\347\007 \003"
  727. "(\0132$.google.protobuf.UninterpretedOption"
  728. "*\t\010\350\007\020\200\200\200\200\002\"z\n\rMethodOptions\022\031\n\ndeprecat"
  729. "ed\030! \001(\010:\005false\022C\n\024uninterpreted_option\030"
  730. "\347\007 \003(\0132$.google.protobuf.UninterpretedOp"
  731. "tion*\t\010\350\007\020\200\200\200\200\002\"\236\002\n\023UninterpretedOption\022"
  732. ";\n\004name\030\002 \003(\0132-.google.protobuf.Uninterp"
  733. "retedOption.NamePart\022\030\n\020identifier_value"
  734. "\030\003 \001(\t\022\032\n\022positive_int_value\030\004 \001(\004\022\032\n\022ne"
  735. "gative_int_value\030\005 \001(\003\022\024\n\014double_value\030\006"
  736. " \001(\001\022\024\n\014string_value\030\007 \001(\014\022\027\n\017aggregate_"
  737. "value\030\010 \001(\t\0323\n\010NamePart\022\021\n\tname_part\030\001 \002"
  738. "(\t\022\024\n\014is_extension\030\002 \002(\010\"\325\001\n\016SourceCodeI"
  739. "nfo\022:\n\010location\030\001 \003(\0132(.google.protobuf."
  740. "SourceCodeInfo.Location\032\206\001\n\010Location\022\020\n\004"
  741. "path\030\001 \003(\005B\002\020\001\022\020\n\004span\030\002 \003(\005B\002\020\001\022\030\n\020lead"
  742. "ing_comments\030\003 \001(\t\022\031\n\021trailing_comments\030"
  743. "\004 \001(\t\022!\n\031leading_detached_comments\030\006 \003(\t"
  744. "BX\n\023com.google.protobufB\020DescriptorProto"
  745. "sH\001Z\ndescriptor\242\002\003GPB\252\002\032Google.Protobuf."
  746. "Reflection", 5010);
  747. ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
  748. "google/protobuf/descriptor.proto", &protobuf_RegisterTypes);
  749. FileDescriptorSet::default_instance_ = new FileDescriptorSet();
  750. FileDescriptorProto::default_instance_ = new FileDescriptorProto();
  751. DescriptorProto::default_instance_ = new DescriptorProto();
  752. DescriptorProto_ExtensionRange::default_instance_ = new DescriptorProto_ExtensionRange();
  753. DescriptorProto_ReservedRange::default_instance_ = new DescriptorProto_ReservedRange();
  754. FieldDescriptorProto::default_instance_ = new FieldDescriptorProto();
  755. OneofDescriptorProto::default_instance_ = new OneofDescriptorProto();
  756. EnumDescriptorProto::default_instance_ = new EnumDescriptorProto();
  757. EnumValueDescriptorProto::default_instance_ = new EnumValueDescriptorProto();
  758. ServiceDescriptorProto::default_instance_ = new ServiceDescriptorProto();
  759. MethodDescriptorProto::default_instance_ = new MethodDescriptorProto();
  760. FileOptions::default_instance_ = new FileOptions();
  761. MessageOptions::default_instance_ = new MessageOptions();
  762. FieldOptions::default_instance_ = new FieldOptions();
  763. EnumOptions::default_instance_ = new EnumOptions();
  764. EnumValueOptions::default_instance_ = new EnumValueOptions();
  765. ServiceOptions::default_instance_ = new ServiceOptions();
  766. MethodOptions::default_instance_ = new MethodOptions();
  767. UninterpretedOption::default_instance_ = new UninterpretedOption();
  768. UninterpretedOption_NamePart::default_instance_ = new UninterpretedOption_NamePart();
  769. SourceCodeInfo::default_instance_ = new SourceCodeInfo();
  770. SourceCodeInfo_Location::default_instance_ = new SourceCodeInfo_Location();
  771. FileDescriptorSet::default_instance_->InitAsDefaultInstance();
  772. FileDescriptorProto::default_instance_->InitAsDefaultInstance();
  773. DescriptorProto::default_instance_->InitAsDefaultInstance();
  774. DescriptorProto_ExtensionRange::default_instance_->InitAsDefaultInstance();
  775. DescriptorProto_ReservedRange::default_instance_->InitAsDefaultInstance();
  776. FieldDescriptorProto::default_instance_->InitAsDefaultInstance();
  777. OneofDescriptorProto::default_instance_->InitAsDefaultInstance();
  778. EnumDescriptorProto::default_instance_->InitAsDefaultInstance();
  779. EnumValueDescriptorProto::default_instance_->InitAsDefaultInstance();
  780. ServiceDescriptorProto::default_instance_->InitAsDefaultInstance();
  781. MethodDescriptorProto::default_instance_->InitAsDefaultInstance();
  782. FileOptions::default_instance_->InitAsDefaultInstance();
  783. MessageOptions::default_instance_->InitAsDefaultInstance();
  784. FieldOptions::default_instance_->InitAsDefaultInstance();
  785. EnumOptions::default_instance_->InitAsDefaultInstance();
  786. EnumValueOptions::default_instance_->InitAsDefaultInstance();
  787. ServiceOptions::default_instance_->InitAsDefaultInstance();
  788. MethodOptions::default_instance_->InitAsDefaultInstance();
  789. UninterpretedOption::default_instance_->InitAsDefaultInstance();
  790. UninterpretedOption_NamePart::default_instance_->InitAsDefaultInstance();
  791. SourceCodeInfo::default_instance_->InitAsDefaultInstance();
  792. SourceCodeInfo_Location::default_instance_->InitAsDefaultInstance();
  793. ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto);
  794. }
  795. // Force AddDescriptors() to be called at static initialization time.
  796. struct StaticDescriptorInitializer_google_2fprotobuf_2fdescriptor_2eproto {
  797. StaticDescriptorInitializer_google_2fprotobuf_2fdescriptor_2eproto() {
  798. protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  799. }
  800. } static_descriptor_initializer_google_2fprotobuf_2fdescriptor_2eproto_;
  801. namespace {
  802. static void MergeFromFail(int line) GOOGLE_ATTRIBUTE_COLD;
  803. static void MergeFromFail(int line) {
  804. GOOGLE_CHECK(false) << __FILE__ << ":" << line;
  805. }
  806. } // namespace
  807. // ===================================================================
  808. #ifndef _MSC_VER
  809. const int FileDescriptorSet::kFileFieldNumber;
  810. #endif // !_MSC_VER
  811. FileDescriptorSet::FileDescriptorSet()
  812. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  813. SharedCtor();
  814. // @@protoc_insertion_point(constructor:google.protobuf.FileDescriptorSet)
  815. }
  816. void FileDescriptorSet::InitAsDefaultInstance() {
  817. }
  818. FileDescriptorSet::FileDescriptorSet(const FileDescriptorSet& from)
  819. : ::google::protobuf::Message(),
  820. _internal_metadata_(NULL) {
  821. SharedCtor();
  822. MergeFrom(from);
  823. // @@protoc_insertion_point(copy_constructor:google.protobuf.FileDescriptorSet)
  824. }
  825. void FileDescriptorSet::SharedCtor() {
  826. _cached_size_ = 0;
  827. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  828. }
  829. FileDescriptorSet::~FileDescriptorSet() {
  830. // @@protoc_insertion_point(destructor:google.protobuf.FileDescriptorSet)
  831. SharedDtor();
  832. }
  833. void FileDescriptorSet::SharedDtor() {
  834. if (this != default_instance_) {
  835. }
  836. }
  837. void FileDescriptorSet::SetCachedSize(int size) const {
  838. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  839. _cached_size_ = size;
  840. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  841. }
  842. const ::google::protobuf::Descriptor* FileDescriptorSet::descriptor() {
  843. protobuf_AssignDescriptorsOnce();
  844. return FileDescriptorSet_descriptor_;
  845. }
  846. const FileDescriptorSet& FileDescriptorSet::default_instance() {
  847. if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  848. return *default_instance_;
  849. }
  850. FileDescriptorSet* FileDescriptorSet::default_instance_ = NULL;
  851. FileDescriptorSet* FileDescriptorSet::New(::google::protobuf::Arena* arena) const {
  852. FileDescriptorSet* n = new FileDescriptorSet;
  853. if (arena != NULL) {
  854. arena->Own(n);
  855. }
  856. return n;
  857. }
  858. void FileDescriptorSet::Clear() {
  859. file_.Clear();
  860. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  861. if (_internal_metadata_.have_unknown_fields()) {
  862. mutable_unknown_fields()->Clear();
  863. }
  864. }
  865. bool FileDescriptorSet::MergePartialFromCodedStream(
  866. ::google::protobuf::io::CodedInputStream* input) {
  867. #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
  868. ::google::protobuf::uint32 tag;
  869. // @@protoc_insertion_point(parse_start:google.protobuf.FileDescriptorSet)
  870. for (;;) {
  871. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
  872. tag = p.first;
  873. if (!p.second) goto handle_unusual;
  874. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  875. // repeated .google.protobuf.FileDescriptorProto file = 1;
  876. case 1: {
  877. if (tag == 10) {
  878. DO_(input->IncrementRecursionDepth());
  879. parse_loop_file:
  880. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
  881. input, add_file()));
  882. } else {
  883. goto handle_unusual;
  884. }
  885. if (input->ExpectTag(10)) goto parse_loop_file;
  886. input->UnsafeDecrementRecursionDepth();
  887. if (input->ExpectAtEnd()) goto success;
  888. break;
  889. }
  890. default: {
  891. handle_unusual:
  892. if (tag == 0 ||
  893. ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  894. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  895. goto success;
  896. }
  897. DO_(::google::protobuf::internal::WireFormat::SkipField(
  898. input, tag, mutable_unknown_fields()));
  899. break;
  900. }
  901. }
  902. }
  903. success:
  904. // @@protoc_insertion_point(parse_success:google.protobuf.FileDescriptorSet)
  905. return true;
  906. failure:
  907. // @@protoc_insertion_point(parse_failure:google.protobuf.FileDescriptorSet)
  908. return false;
  909. #undef DO_
  910. }
  911. void FileDescriptorSet::SerializeWithCachedSizes(
  912. ::google::protobuf::io::CodedOutputStream* output) const {
  913. // @@protoc_insertion_point(serialize_start:google.protobuf.FileDescriptorSet)
  914. // repeated .google.protobuf.FileDescriptorProto file = 1;
  915. for (unsigned int i = 0, n = this->file_size(); i < n; i++) {
  916. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  917. 1, this->file(i), output);
  918. }
  919. if (_internal_metadata_.have_unknown_fields()) {
  920. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  921. unknown_fields(), output);
  922. }
  923. // @@protoc_insertion_point(serialize_end:google.protobuf.FileDescriptorSet)
  924. }
  925. ::google::protobuf::uint8* FileDescriptorSet::SerializeWithCachedSizesToArray(
  926. ::google::protobuf::uint8* target) const {
  927. // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FileDescriptorSet)
  928. // repeated .google.protobuf.FileDescriptorProto file = 1;
  929. for (unsigned int i = 0, n = this->file_size(); i < n; i++) {
  930. target = ::google::protobuf::internal::WireFormatLite::
  931. WriteMessageNoVirtualToArray(
  932. 1, this->file(i), target);
  933. }
  934. if (_internal_metadata_.have_unknown_fields()) {
  935. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  936. unknown_fields(), target);
  937. }
  938. // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FileDescriptorSet)
  939. return target;
  940. }
  941. int FileDescriptorSet::ByteSize() const {
  942. int total_size = 0;
  943. // repeated .google.protobuf.FileDescriptorProto file = 1;
  944. total_size += 1 * this->file_size();
  945. for (int i = 0; i < this->file_size(); i++) {
  946. total_size +=
  947. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  948. this->file(i));
  949. }
  950. if (_internal_metadata_.have_unknown_fields()) {
  951. total_size +=
  952. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  953. unknown_fields());
  954. }
  955. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  956. _cached_size_ = total_size;
  957. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  958. return total_size;
  959. }
  960. void FileDescriptorSet::MergeFrom(const ::google::protobuf::Message& from) {
  961. if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
  962. const FileDescriptorSet* source =
  963. ::google::protobuf::internal::DynamicCastToGenerated<const FileDescriptorSet>(
  964. &from);
  965. if (source == NULL) {
  966. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  967. } else {
  968. MergeFrom(*source);
  969. }
  970. }
  971. void FileDescriptorSet::MergeFrom(const FileDescriptorSet& from) {
  972. if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
  973. file_.MergeFrom(from.file_);
  974. if (from._internal_metadata_.have_unknown_fields()) {
  975. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  976. }
  977. }
  978. void FileDescriptorSet::CopyFrom(const ::google::protobuf::Message& from) {
  979. if (&from == this) return;
  980. Clear();
  981. MergeFrom(from);
  982. }
  983. void FileDescriptorSet::CopyFrom(const FileDescriptorSet& from) {
  984. if (&from == this) return;
  985. Clear();
  986. MergeFrom(from);
  987. }
  988. bool FileDescriptorSet::IsInitialized() const {
  989. if (!::google::protobuf::internal::AllAreInitialized(this->file())) return false;
  990. return true;
  991. }
  992. void FileDescriptorSet::Swap(FileDescriptorSet* other) {
  993. if (other == this) return;
  994. InternalSwap(other);
  995. }
  996. void FileDescriptorSet::InternalSwap(FileDescriptorSet* other) {
  997. file_.UnsafeArenaSwap(&other->file_);
  998. std::swap(_has_bits_[0], other->_has_bits_[0]);
  999. _internal_metadata_.Swap(&other->_internal_metadata_);
  1000. std::swap(_cached_size_, other->_cached_size_);
  1001. }
  1002. ::google::protobuf::Metadata FileDescriptorSet::GetMetadata() const {
  1003. protobuf_AssignDescriptorsOnce();
  1004. ::google::protobuf::Metadata metadata;
  1005. metadata.descriptor = FileDescriptorSet_descriptor_;
  1006. metadata.reflection = FileDescriptorSet_reflection_;
  1007. return metadata;
  1008. }
  1009. #if PROTOBUF_INLINE_NOT_IN_HEADERS
  1010. // FileDescriptorSet
  1011. // repeated .google.protobuf.FileDescriptorProto file = 1;
  1012. int FileDescriptorSet::file_size() const {
  1013. return file_.size();
  1014. }
  1015. void FileDescriptorSet::clear_file() {
  1016. file_.Clear();
  1017. }
  1018. const ::google::protobuf::FileDescriptorProto& FileDescriptorSet::file(int index) const {
  1019. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorSet.file)
  1020. return file_.Get(index);
  1021. }
  1022. ::google::protobuf::FileDescriptorProto* FileDescriptorSet::mutable_file(int index) {
  1023. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorSet.file)
  1024. return file_.Mutable(index);
  1025. }
  1026. ::google::protobuf::FileDescriptorProto* FileDescriptorSet::add_file() {
  1027. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorSet.file)
  1028. return file_.Add();
  1029. }
  1030. ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >*
  1031. FileDescriptorSet::mutable_file() {
  1032. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorSet.file)
  1033. return &file_;
  1034. }
  1035. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >&
  1036. FileDescriptorSet::file() const {
  1037. // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorSet.file)
  1038. return file_;
  1039. }
  1040. #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
  1041. // ===================================================================
  1042. #ifndef _MSC_VER
  1043. const int FileDescriptorProto::kNameFieldNumber;
  1044. const int FileDescriptorProto::kPackageFieldNumber;
  1045. const int FileDescriptorProto::kDependencyFieldNumber;
  1046. const int FileDescriptorProto::kPublicDependencyFieldNumber;
  1047. const int FileDescriptorProto::kWeakDependencyFieldNumber;
  1048. const int FileDescriptorProto::kMessageTypeFieldNumber;
  1049. const int FileDescriptorProto::kEnumTypeFieldNumber;
  1050. const int FileDescriptorProto::kServiceFieldNumber;
  1051. const int FileDescriptorProto::kExtensionFieldNumber;
  1052. const int FileDescriptorProto::kOptionsFieldNumber;
  1053. const int FileDescriptorProto::kSourceCodeInfoFieldNumber;
  1054. const int FileDescriptorProto::kSyntaxFieldNumber;
  1055. #endif // !_MSC_VER
  1056. FileDescriptorProto::FileDescriptorProto()
  1057. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1058. SharedCtor();
  1059. // @@protoc_insertion_point(constructor:google.protobuf.FileDescriptorProto)
  1060. }
  1061. void FileDescriptorProto::InitAsDefaultInstance() {
  1062. options_ = const_cast< ::google::protobuf::FileOptions*>(&::google::protobuf::FileOptions::default_instance());
  1063. source_code_info_ = const_cast< ::google::protobuf::SourceCodeInfo*>(&::google::protobuf::SourceCodeInfo::default_instance());
  1064. }
  1065. FileDescriptorProto::FileDescriptorProto(const FileDescriptorProto& from)
  1066. : ::google::protobuf::Message(),
  1067. _internal_metadata_(NULL) {
  1068. SharedCtor();
  1069. MergeFrom(from);
  1070. // @@protoc_insertion_point(copy_constructor:google.protobuf.FileDescriptorProto)
  1071. }
  1072. void FileDescriptorProto::SharedCtor() {
  1073. ::google::protobuf::internal::GetEmptyString();
  1074. _cached_size_ = 0;
  1075. name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1076. package_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1077. options_ = NULL;
  1078. source_code_info_ = NULL;
  1079. syntax_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1080. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  1081. }
  1082. FileDescriptorProto::~FileDescriptorProto() {
  1083. // @@protoc_insertion_point(destructor:google.protobuf.FileDescriptorProto)
  1084. SharedDtor();
  1085. }
  1086. void FileDescriptorProto::SharedDtor() {
  1087. name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1088. package_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1089. syntax_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1090. if (this != default_instance_) {
  1091. delete options_;
  1092. delete source_code_info_;
  1093. }
  1094. }
  1095. void FileDescriptorProto::SetCachedSize(int size) const {
  1096. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1097. _cached_size_ = size;
  1098. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1099. }
  1100. const ::google::protobuf::Descriptor* FileDescriptorProto::descriptor() {
  1101. protobuf_AssignDescriptorsOnce();
  1102. return FileDescriptorProto_descriptor_;
  1103. }
  1104. const FileDescriptorProto& FileDescriptorProto::default_instance() {
  1105. if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  1106. return *default_instance_;
  1107. }
  1108. FileDescriptorProto* FileDescriptorProto::default_instance_ = NULL;
  1109. FileDescriptorProto* FileDescriptorProto::New(::google::protobuf::Arena* arena) const {
  1110. FileDescriptorProto* n = new FileDescriptorProto;
  1111. if (arena != NULL) {
  1112. arena->Own(n);
  1113. }
  1114. return n;
  1115. }
  1116. void FileDescriptorProto::Clear() {
  1117. if (_has_bits_[0 / 32] & 3u) {
  1118. if (has_name()) {
  1119. name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1120. }
  1121. if (has_package()) {
  1122. package_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1123. }
  1124. }
  1125. if (_has_bits_[8 / 32] & 3584u) {
  1126. if (has_options()) {
  1127. if (options_ != NULL) options_->::google::protobuf::FileOptions::Clear();
  1128. }
  1129. if (has_source_code_info()) {
  1130. if (source_code_info_ != NULL) source_code_info_->::google::protobuf::SourceCodeInfo::Clear();
  1131. }
  1132. if (has_syntax()) {
  1133. syntax_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1134. }
  1135. }
  1136. dependency_.Clear();
  1137. public_dependency_.Clear();
  1138. weak_dependency_.Clear();
  1139. message_type_.Clear();
  1140. enum_type_.Clear();
  1141. service_.Clear();
  1142. extension_.Clear();
  1143. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  1144. if (_internal_metadata_.have_unknown_fields()) {
  1145. mutable_unknown_fields()->Clear();
  1146. }
  1147. }
  1148. bool FileDescriptorProto::MergePartialFromCodedStream(
  1149. ::google::protobuf::io::CodedInputStream* input) {
  1150. #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
  1151. ::google::protobuf::uint32 tag;
  1152. // @@protoc_insertion_point(parse_start:google.protobuf.FileDescriptorProto)
  1153. for (;;) {
  1154. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
  1155. tag = p.first;
  1156. if (!p.second) goto handle_unusual;
  1157. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1158. // optional string name = 1;
  1159. case 1: {
  1160. if (tag == 10) {
  1161. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  1162. input, this->mutable_name()));
  1163. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1164. this->name().data(), this->name().length(),
  1165. ::google::protobuf::internal::WireFormat::PARSE,
  1166. "google.protobuf.FileDescriptorProto.name");
  1167. } else {
  1168. goto handle_unusual;
  1169. }
  1170. if (input->ExpectTag(18)) goto parse_package;
  1171. break;
  1172. }
  1173. // optional string package = 2;
  1174. case 2: {
  1175. if (tag == 18) {
  1176. parse_package:
  1177. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  1178. input, this->mutable_package()));
  1179. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1180. this->package().data(), this->package().length(),
  1181. ::google::protobuf::internal::WireFormat::PARSE,
  1182. "google.protobuf.FileDescriptorProto.package");
  1183. } else {
  1184. goto handle_unusual;
  1185. }
  1186. if (input->ExpectTag(26)) goto parse_dependency;
  1187. break;
  1188. }
  1189. // repeated string dependency = 3;
  1190. case 3: {
  1191. if (tag == 26) {
  1192. parse_dependency:
  1193. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  1194. input, this->add_dependency()));
  1195. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1196. this->dependency(this->dependency_size() - 1).data(),
  1197. this->dependency(this->dependency_size() - 1).length(),
  1198. ::google::protobuf::internal::WireFormat::PARSE,
  1199. "google.protobuf.FileDescriptorProto.dependency");
  1200. } else {
  1201. goto handle_unusual;
  1202. }
  1203. if (input->ExpectTag(26)) goto parse_dependency;
  1204. if (input->ExpectTag(34)) goto parse_message_type;
  1205. break;
  1206. }
  1207. // repeated .google.protobuf.DescriptorProto message_type = 4;
  1208. case 4: {
  1209. if (tag == 34) {
  1210. parse_message_type:
  1211. DO_(input->IncrementRecursionDepth());
  1212. parse_loop_message_type:
  1213. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
  1214. input, add_message_type()));
  1215. } else {
  1216. goto handle_unusual;
  1217. }
  1218. if (input->ExpectTag(34)) goto parse_loop_message_type;
  1219. if (input->ExpectTag(42)) goto parse_loop_enum_type;
  1220. input->UnsafeDecrementRecursionDepth();
  1221. break;
  1222. }
  1223. // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
  1224. case 5: {
  1225. if (tag == 42) {
  1226. DO_(input->IncrementRecursionDepth());
  1227. parse_loop_enum_type:
  1228. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
  1229. input, add_enum_type()));
  1230. } else {
  1231. goto handle_unusual;
  1232. }
  1233. if (input->ExpectTag(42)) goto parse_loop_enum_type;
  1234. if (input->ExpectTag(50)) goto parse_loop_service;
  1235. input->UnsafeDecrementRecursionDepth();
  1236. break;
  1237. }
  1238. // repeated .google.protobuf.ServiceDescriptorProto service = 6;
  1239. case 6: {
  1240. if (tag == 50) {
  1241. DO_(input->IncrementRecursionDepth());
  1242. parse_loop_service:
  1243. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
  1244. input, add_service()));
  1245. } else {
  1246. goto handle_unusual;
  1247. }
  1248. if (input->ExpectTag(50)) goto parse_loop_service;
  1249. if (input->ExpectTag(58)) goto parse_loop_extension;
  1250. input->UnsafeDecrementRecursionDepth();
  1251. break;
  1252. }
  1253. // repeated .google.protobuf.FieldDescriptorProto extension = 7;
  1254. case 7: {
  1255. if (tag == 58) {
  1256. DO_(input->IncrementRecursionDepth());
  1257. parse_loop_extension:
  1258. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
  1259. input, add_extension()));
  1260. } else {
  1261. goto handle_unusual;
  1262. }
  1263. if (input->ExpectTag(58)) goto parse_loop_extension;
  1264. input->UnsafeDecrementRecursionDepth();
  1265. if (input->ExpectTag(66)) goto parse_options;
  1266. break;
  1267. }
  1268. // optional .google.protobuf.FileOptions options = 8;
  1269. case 8: {
  1270. if (tag == 66) {
  1271. parse_options:
  1272. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  1273. input, mutable_options()));
  1274. } else {
  1275. goto handle_unusual;
  1276. }
  1277. if (input->ExpectTag(74)) goto parse_source_code_info;
  1278. break;
  1279. }
  1280. // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
  1281. case 9: {
  1282. if (tag == 74) {
  1283. parse_source_code_info:
  1284. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  1285. input, mutable_source_code_info()));
  1286. } else {
  1287. goto handle_unusual;
  1288. }
  1289. if (input->ExpectTag(80)) goto parse_public_dependency;
  1290. break;
  1291. }
  1292. // repeated int32 public_dependency = 10;
  1293. case 10: {
  1294. if (tag == 80) {
  1295. parse_public_dependency:
  1296. DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
  1297. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1298. 1, 80, input, this->mutable_public_dependency())));
  1299. } else if (tag == 82) {
  1300. DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
  1301. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1302. input, this->mutable_public_dependency())));
  1303. } else {
  1304. goto handle_unusual;
  1305. }
  1306. if (input->ExpectTag(80)) goto parse_public_dependency;
  1307. if (input->ExpectTag(88)) goto parse_weak_dependency;
  1308. break;
  1309. }
  1310. // repeated int32 weak_dependency = 11;
  1311. case 11: {
  1312. if (tag == 88) {
  1313. parse_weak_dependency:
  1314. DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
  1315. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1316. 1, 88, input, this->mutable_weak_dependency())));
  1317. } else if (tag == 90) {
  1318. DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
  1319. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1320. input, this->mutable_weak_dependency())));
  1321. } else {
  1322. goto handle_unusual;
  1323. }
  1324. if (input->ExpectTag(88)) goto parse_weak_dependency;
  1325. if (input->ExpectTag(98)) goto parse_syntax;
  1326. break;
  1327. }
  1328. // optional string syntax = 12;
  1329. case 12: {
  1330. if (tag == 98) {
  1331. parse_syntax:
  1332. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  1333. input, this->mutable_syntax()));
  1334. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1335. this->syntax().data(), this->syntax().length(),
  1336. ::google::protobuf::internal::WireFormat::PARSE,
  1337. "google.protobuf.FileDescriptorProto.syntax");
  1338. } else {
  1339. goto handle_unusual;
  1340. }
  1341. if (input->ExpectAtEnd()) goto success;
  1342. break;
  1343. }
  1344. default: {
  1345. handle_unusual:
  1346. if (tag == 0 ||
  1347. ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  1348. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  1349. goto success;
  1350. }
  1351. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1352. input, tag, mutable_unknown_fields()));
  1353. break;
  1354. }
  1355. }
  1356. }
  1357. success:
  1358. // @@protoc_insertion_point(parse_success:google.protobuf.FileDescriptorProto)
  1359. return true;
  1360. failure:
  1361. // @@protoc_insertion_point(parse_failure:google.protobuf.FileDescriptorProto)
  1362. return false;
  1363. #undef DO_
  1364. }
  1365. void FileDescriptorProto::SerializeWithCachedSizes(
  1366. ::google::protobuf::io::CodedOutputStream* output) const {
  1367. // @@protoc_insertion_point(serialize_start:google.protobuf.FileDescriptorProto)
  1368. // optional string name = 1;
  1369. if (has_name()) {
  1370. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1371. this->name().data(), this->name().length(),
  1372. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1373. "google.protobuf.FileDescriptorProto.name");
  1374. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  1375. 1, this->name(), output);
  1376. }
  1377. // optional string package = 2;
  1378. if (has_package()) {
  1379. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1380. this->package().data(), this->package().length(),
  1381. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1382. "google.protobuf.FileDescriptorProto.package");
  1383. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  1384. 2, this->package(), output);
  1385. }
  1386. // repeated string dependency = 3;
  1387. for (int i = 0; i < this->dependency_size(); i++) {
  1388. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1389. this->dependency(i).data(), this->dependency(i).length(),
  1390. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1391. "google.protobuf.FileDescriptorProto.dependency");
  1392. ::google::protobuf::internal::WireFormatLite::WriteString(
  1393. 3, this->dependency(i), output);
  1394. }
  1395. // repeated .google.protobuf.DescriptorProto message_type = 4;
  1396. for (unsigned int i = 0, n = this->message_type_size(); i < n; i++) {
  1397. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1398. 4, this->message_type(i), output);
  1399. }
  1400. // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
  1401. for (unsigned int i = 0, n = this->enum_type_size(); i < n; i++) {
  1402. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1403. 5, this->enum_type(i), output);
  1404. }
  1405. // repeated .google.protobuf.ServiceDescriptorProto service = 6;
  1406. for (unsigned int i = 0, n = this->service_size(); i < n; i++) {
  1407. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1408. 6, this->service(i), output);
  1409. }
  1410. // repeated .google.protobuf.FieldDescriptorProto extension = 7;
  1411. for (unsigned int i = 0, n = this->extension_size(); i < n; i++) {
  1412. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1413. 7, this->extension(i), output);
  1414. }
  1415. // optional .google.protobuf.FileOptions options = 8;
  1416. if (has_options()) {
  1417. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1418. 8, *this->options_, output);
  1419. }
  1420. // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
  1421. if (has_source_code_info()) {
  1422. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1423. 9, *this->source_code_info_, output);
  1424. }
  1425. // repeated int32 public_dependency = 10;
  1426. for (int i = 0; i < this->public_dependency_size(); i++) {
  1427. ::google::protobuf::internal::WireFormatLite::WriteInt32(
  1428. 10, this->public_dependency(i), output);
  1429. }
  1430. // repeated int32 weak_dependency = 11;
  1431. for (int i = 0; i < this->weak_dependency_size(); i++) {
  1432. ::google::protobuf::internal::WireFormatLite::WriteInt32(
  1433. 11, this->weak_dependency(i), output);
  1434. }
  1435. // optional string syntax = 12;
  1436. if (has_syntax()) {
  1437. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1438. this->syntax().data(), this->syntax().length(),
  1439. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1440. "google.protobuf.FileDescriptorProto.syntax");
  1441. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  1442. 12, this->syntax(), output);
  1443. }
  1444. if (_internal_metadata_.have_unknown_fields()) {
  1445. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1446. unknown_fields(), output);
  1447. }
  1448. // @@protoc_insertion_point(serialize_end:google.protobuf.FileDescriptorProto)
  1449. }
  1450. ::google::protobuf::uint8* FileDescriptorProto::SerializeWithCachedSizesToArray(
  1451. ::google::protobuf::uint8* target) const {
  1452. // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FileDescriptorProto)
  1453. // optional string name = 1;
  1454. if (has_name()) {
  1455. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1456. this->name().data(), this->name().length(),
  1457. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1458. "google.protobuf.FileDescriptorProto.name");
  1459. target =
  1460. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  1461. 1, this->name(), target);
  1462. }
  1463. // optional string package = 2;
  1464. if (has_package()) {
  1465. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1466. this->package().data(), this->package().length(),
  1467. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1468. "google.protobuf.FileDescriptorProto.package");
  1469. target =
  1470. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  1471. 2, this->package(), target);
  1472. }
  1473. // repeated string dependency = 3;
  1474. for (int i = 0; i < this->dependency_size(); i++) {
  1475. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1476. this->dependency(i).data(), this->dependency(i).length(),
  1477. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1478. "google.protobuf.FileDescriptorProto.dependency");
  1479. target = ::google::protobuf::internal::WireFormatLite::
  1480. WriteStringToArray(3, this->dependency(i), target);
  1481. }
  1482. // repeated .google.protobuf.DescriptorProto message_type = 4;
  1483. for (unsigned int i = 0, n = this->message_type_size(); i < n; i++) {
  1484. target = ::google::protobuf::internal::WireFormatLite::
  1485. WriteMessageNoVirtualToArray(
  1486. 4, this->message_type(i), target);
  1487. }
  1488. // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
  1489. for (unsigned int i = 0, n = this->enum_type_size(); i < n; i++) {
  1490. target = ::google::protobuf::internal::WireFormatLite::
  1491. WriteMessageNoVirtualToArray(
  1492. 5, this->enum_type(i), target);
  1493. }
  1494. // repeated .google.protobuf.ServiceDescriptorProto service = 6;
  1495. for (unsigned int i = 0, n = this->service_size(); i < n; i++) {
  1496. target = ::google::protobuf::internal::WireFormatLite::
  1497. WriteMessageNoVirtualToArray(
  1498. 6, this->service(i), target);
  1499. }
  1500. // repeated .google.protobuf.FieldDescriptorProto extension = 7;
  1501. for (unsigned int i = 0, n = this->extension_size(); i < n; i++) {
  1502. target = ::google::protobuf::internal::WireFormatLite::
  1503. WriteMessageNoVirtualToArray(
  1504. 7, this->extension(i), target);
  1505. }
  1506. // optional .google.protobuf.FileOptions options = 8;
  1507. if (has_options()) {
  1508. target = ::google::protobuf::internal::WireFormatLite::
  1509. WriteMessageNoVirtualToArray(
  1510. 8, *this->options_, target);
  1511. }
  1512. // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
  1513. if (has_source_code_info()) {
  1514. target = ::google::protobuf::internal::WireFormatLite::
  1515. WriteMessageNoVirtualToArray(
  1516. 9, *this->source_code_info_, target);
  1517. }
  1518. // repeated int32 public_dependency = 10;
  1519. for (int i = 0; i < this->public_dependency_size(); i++) {
  1520. target = ::google::protobuf::internal::WireFormatLite::
  1521. WriteInt32ToArray(10, this->public_dependency(i), target);
  1522. }
  1523. // repeated int32 weak_dependency = 11;
  1524. for (int i = 0; i < this->weak_dependency_size(); i++) {
  1525. target = ::google::protobuf::internal::WireFormatLite::
  1526. WriteInt32ToArray(11, this->weak_dependency(i), target);
  1527. }
  1528. // optional string syntax = 12;
  1529. if (has_syntax()) {
  1530. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1531. this->syntax().data(), this->syntax().length(),
  1532. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1533. "google.protobuf.FileDescriptorProto.syntax");
  1534. target =
  1535. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  1536. 12, this->syntax(), target);
  1537. }
  1538. if (_internal_metadata_.have_unknown_fields()) {
  1539. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1540. unknown_fields(), target);
  1541. }
  1542. // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FileDescriptorProto)
  1543. return target;
  1544. }
  1545. int FileDescriptorProto::ByteSize() const {
  1546. int total_size = 0;
  1547. if (_has_bits_[0 / 32] & 3u) {
  1548. // optional string name = 1;
  1549. if (has_name()) {
  1550. total_size += 1 +
  1551. ::google::protobuf::internal::WireFormatLite::StringSize(
  1552. this->name());
  1553. }
  1554. // optional string package = 2;
  1555. if (has_package()) {
  1556. total_size += 1 +
  1557. ::google::protobuf::internal::WireFormatLite::StringSize(
  1558. this->package());
  1559. }
  1560. }
  1561. if (_has_bits_[9 / 32] & 3584u) {
  1562. // optional .google.protobuf.FileOptions options = 8;
  1563. if (has_options()) {
  1564. total_size += 1 +
  1565. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  1566. *this->options_);
  1567. }
  1568. // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
  1569. if (has_source_code_info()) {
  1570. total_size += 1 +
  1571. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  1572. *this->source_code_info_);
  1573. }
  1574. // optional string syntax = 12;
  1575. if (has_syntax()) {
  1576. total_size += 1 +
  1577. ::google::protobuf::internal::WireFormatLite::StringSize(
  1578. this->syntax());
  1579. }
  1580. }
  1581. // repeated string dependency = 3;
  1582. total_size += 1 * this->dependency_size();
  1583. for (int i = 0; i < this->dependency_size(); i++) {
  1584. total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
  1585. this->dependency(i));
  1586. }
  1587. // repeated int32 public_dependency = 10;
  1588. {
  1589. int data_size = 0;
  1590. for (int i = 0; i < this->public_dependency_size(); i++) {
  1591. data_size += ::google::protobuf::internal::WireFormatLite::
  1592. Int32Size(this->public_dependency(i));
  1593. }
  1594. total_size += 1 * this->public_dependency_size() + data_size;
  1595. }
  1596. // repeated int32 weak_dependency = 11;
  1597. {
  1598. int data_size = 0;
  1599. for (int i = 0; i < this->weak_dependency_size(); i++) {
  1600. data_size += ::google::protobuf::internal::WireFormatLite::
  1601. Int32Size(this->weak_dependency(i));
  1602. }
  1603. total_size += 1 * this->weak_dependency_size() + data_size;
  1604. }
  1605. // repeated .google.protobuf.DescriptorProto message_type = 4;
  1606. total_size += 1 * this->message_type_size();
  1607. for (int i = 0; i < this->message_type_size(); i++) {
  1608. total_size +=
  1609. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  1610. this->message_type(i));
  1611. }
  1612. // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
  1613. total_size += 1 * this->enum_type_size();
  1614. for (int i = 0; i < this->enum_type_size(); i++) {
  1615. total_size +=
  1616. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  1617. this->enum_type(i));
  1618. }
  1619. // repeated .google.protobuf.ServiceDescriptorProto service = 6;
  1620. total_size += 1 * this->service_size();
  1621. for (int i = 0; i < this->service_size(); i++) {
  1622. total_size +=
  1623. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  1624. this->service(i));
  1625. }
  1626. // repeated .google.protobuf.FieldDescriptorProto extension = 7;
  1627. total_size += 1 * this->extension_size();
  1628. for (int i = 0; i < this->extension_size(); i++) {
  1629. total_size +=
  1630. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  1631. this->extension(i));
  1632. }
  1633. if (_internal_metadata_.have_unknown_fields()) {
  1634. total_size +=
  1635. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1636. unknown_fields());
  1637. }
  1638. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1639. _cached_size_ = total_size;
  1640. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1641. return total_size;
  1642. }
  1643. void FileDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
  1644. if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
  1645. const FileDescriptorProto* source =
  1646. ::google::protobuf::internal::DynamicCastToGenerated<const FileDescriptorProto>(
  1647. &from);
  1648. if (source == NULL) {
  1649. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1650. } else {
  1651. MergeFrom(*source);
  1652. }
  1653. }
  1654. void FileDescriptorProto::MergeFrom(const FileDescriptorProto& from) {
  1655. if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
  1656. dependency_.MergeFrom(from.dependency_);
  1657. public_dependency_.MergeFrom(from.public_dependency_);
  1658. weak_dependency_.MergeFrom(from.weak_dependency_);
  1659. message_type_.MergeFrom(from.message_type_);
  1660. enum_type_.MergeFrom(from.enum_type_);
  1661. service_.MergeFrom(from.service_);
  1662. extension_.MergeFrom(from.extension_);
  1663. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1664. if (from.has_name()) {
  1665. set_has_name();
  1666. name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
  1667. }
  1668. if (from.has_package()) {
  1669. set_has_package();
  1670. package_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.package_);
  1671. }
  1672. }
  1673. if (from._has_bits_[9 / 32] & (0xffu << (9 % 32))) {
  1674. if (from.has_options()) {
  1675. mutable_options()->::google::protobuf::FileOptions::MergeFrom(from.options());
  1676. }
  1677. if (from.has_source_code_info()) {
  1678. mutable_source_code_info()->::google::protobuf::SourceCodeInfo::MergeFrom(from.source_code_info());
  1679. }
  1680. if (from.has_syntax()) {
  1681. set_has_syntax();
  1682. syntax_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.syntax_);
  1683. }
  1684. }
  1685. if (from._internal_metadata_.have_unknown_fields()) {
  1686. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  1687. }
  1688. }
  1689. void FileDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
  1690. if (&from == this) return;
  1691. Clear();
  1692. MergeFrom(from);
  1693. }
  1694. void FileDescriptorProto::CopyFrom(const FileDescriptorProto& from) {
  1695. if (&from == this) return;
  1696. Clear();
  1697. MergeFrom(from);
  1698. }
  1699. bool FileDescriptorProto::IsInitialized() const {
  1700. if (!::google::protobuf::internal::AllAreInitialized(this->message_type())) return false;
  1701. if (!::google::protobuf::internal::AllAreInitialized(this->enum_type())) return false;
  1702. if (!::google::protobuf::internal::AllAreInitialized(this->service())) return false;
  1703. if (!::google::protobuf::internal::AllAreInitialized(this->extension())) return false;
  1704. if (has_options()) {
  1705. if (!this->options_->IsInitialized()) return false;
  1706. }
  1707. return true;
  1708. }
  1709. void FileDescriptorProto::Swap(FileDescriptorProto* other) {
  1710. if (other == this) return;
  1711. InternalSwap(other);
  1712. }
  1713. void FileDescriptorProto::InternalSwap(FileDescriptorProto* other) {
  1714. name_.Swap(&other->name_);
  1715. package_.Swap(&other->package_);
  1716. dependency_.UnsafeArenaSwap(&other->dependency_);
  1717. public_dependency_.UnsafeArenaSwap(&other->public_dependency_);
  1718. weak_dependency_.UnsafeArenaSwap(&other->weak_dependency_);
  1719. message_type_.UnsafeArenaSwap(&other->message_type_);
  1720. enum_type_.UnsafeArenaSwap(&other->enum_type_);
  1721. service_.UnsafeArenaSwap(&other->service_);
  1722. extension_.UnsafeArenaSwap(&other->extension_);
  1723. std::swap(options_, other->options_);
  1724. std::swap(source_code_info_, other->source_code_info_);
  1725. syntax_.Swap(&other->syntax_);
  1726. std::swap(_has_bits_[0], other->_has_bits_[0]);
  1727. _internal_metadata_.Swap(&other->_internal_metadata_);
  1728. std::swap(_cached_size_, other->_cached_size_);
  1729. }
  1730. ::google::protobuf::Metadata FileDescriptorProto::GetMetadata() const {
  1731. protobuf_AssignDescriptorsOnce();
  1732. ::google::protobuf::Metadata metadata;
  1733. metadata.descriptor = FileDescriptorProto_descriptor_;
  1734. metadata.reflection = FileDescriptorProto_reflection_;
  1735. return metadata;
  1736. }
  1737. #if PROTOBUF_INLINE_NOT_IN_HEADERS
  1738. // FileDescriptorProto
  1739. // optional string name = 1;
  1740. bool FileDescriptorProto::has_name() const {
  1741. return (_has_bits_[0] & 0x00000001u) != 0;
  1742. }
  1743. void FileDescriptorProto::set_has_name() {
  1744. _has_bits_[0] |= 0x00000001u;
  1745. }
  1746. void FileDescriptorProto::clear_has_name() {
  1747. _has_bits_[0] &= ~0x00000001u;
  1748. }
  1749. void FileDescriptorProto::clear_name() {
  1750. name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1751. clear_has_name();
  1752. }
  1753. const ::std::string& FileDescriptorProto::name() const {
  1754. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.name)
  1755. return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1756. }
  1757. void FileDescriptorProto::set_name(const ::std::string& value) {
  1758. set_has_name();
  1759. name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  1760. // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.name)
  1761. }
  1762. void FileDescriptorProto::set_name(const char* value) {
  1763. set_has_name();
  1764. name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  1765. // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto.name)
  1766. }
  1767. void FileDescriptorProto::set_name(const char* value, size_t size) {
  1768. set_has_name();
  1769. name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1770. ::std::string(reinterpret_cast<const char*>(value), size));
  1771. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorProto.name)
  1772. }
  1773. ::std::string* FileDescriptorProto::mutable_name() {
  1774. set_has_name();
  1775. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.name)
  1776. return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1777. }
  1778. ::std::string* FileDescriptorProto::release_name() {
  1779. clear_has_name();
  1780. return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1781. }
  1782. void FileDescriptorProto::set_allocated_name(::std::string* name) {
  1783. if (name != NULL) {
  1784. set_has_name();
  1785. } else {
  1786. clear_has_name();
  1787. }
  1788. name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
  1789. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.name)
  1790. }
  1791. // optional string package = 2;
  1792. bool FileDescriptorProto::has_package() const {
  1793. return (_has_bits_[0] & 0x00000002u) != 0;
  1794. }
  1795. void FileDescriptorProto::set_has_package() {
  1796. _has_bits_[0] |= 0x00000002u;
  1797. }
  1798. void FileDescriptorProto::clear_has_package() {
  1799. _has_bits_[0] &= ~0x00000002u;
  1800. }
  1801. void FileDescriptorProto::clear_package() {
  1802. package_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1803. clear_has_package();
  1804. }
  1805. const ::std::string& FileDescriptorProto::package() const {
  1806. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.package)
  1807. return package_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1808. }
  1809. void FileDescriptorProto::set_package(const ::std::string& value) {
  1810. set_has_package();
  1811. package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  1812. // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.package)
  1813. }
  1814. void FileDescriptorProto::set_package(const char* value) {
  1815. set_has_package();
  1816. package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  1817. // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto.package)
  1818. }
  1819. void FileDescriptorProto::set_package(const char* value, size_t size) {
  1820. set_has_package();
  1821. package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1822. ::std::string(reinterpret_cast<const char*>(value), size));
  1823. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorProto.package)
  1824. }
  1825. ::std::string* FileDescriptorProto::mutable_package() {
  1826. set_has_package();
  1827. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.package)
  1828. return package_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1829. }
  1830. ::std::string* FileDescriptorProto::release_package() {
  1831. clear_has_package();
  1832. return package_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1833. }
  1834. void FileDescriptorProto::set_allocated_package(::std::string* package) {
  1835. if (package != NULL) {
  1836. set_has_package();
  1837. } else {
  1838. clear_has_package();
  1839. }
  1840. package_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), package);
  1841. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.package)
  1842. }
  1843. // repeated string dependency = 3;
  1844. int FileDescriptorProto::dependency_size() const {
  1845. return dependency_.size();
  1846. }
  1847. void FileDescriptorProto::clear_dependency() {
  1848. dependency_.Clear();
  1849. }
  1850. const ::std::string& FileDescriptorProto::dependency(int index) const {
  1851. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.dependency)
  1852. return dependency_.Get(index);
  1853. }
  1854. ::std::string* FileDescriptorProto::mutable_dependency(int index) {
  1855. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.dependency)
  1856. return dependency_.Mutable(index);
  1857. }
  1858. void FileDescriptorProto::set_dependency(int index, const ::std::string& value) {
  1859. // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.dependency)
  1860. dependency_.Mutable(index)->assign(value);
  1861. }
  1862. void FileDescriptorProto::set_dependency(int index, const char* value) {
  1863. dependency_.Mutable(index)->assign(value);
  1864. // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto.dependency)
  1865. }
  1866. void FileDescriptorProto::set_dependency(int index, const char* value, size_t size) {
  1867. dependency_.Mutable(index)->assign(
  1868. reinterpret_cast<const char*>(value), size);
  1869. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorProto.dependency)
  1870. }
  1871. ::std::string* FileDescriptorProto::add_dependency() {
  1872. return dependency_.Add();
  1873. }
  1874. void FileDescriptorProto::add_dependency(const ::std::string& value) {
  1875. dependency_.Add()->assign(value);
  1876. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.dependency)
  1877. }
  1878. void FileDescriptorProto::add_dependency(const char* value) {
  1879. dependency_.Add()->assign(value);
  1880. // @@protoc_insertion_point(field_add_char:google.protobuf.FileDescriptorProto.dependency)
  1881. }
  1882. void FileDescriptorProto::add_dependency(const char* value, size_t size) {
  1883. dependency_.Add()->assign(reinterpret_cast<const char*>(value), size);
  1884. // @@protoc_insertion_point(field_add_pointer:google.protobuf.FileDescriptorProto.dependency)
  1885. }
  1886. const ::google::protobuf::RepeatedPtrField< ::std::string>&
  1887. FileDescriptorProto::dependency() const {
  1888. // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.dependency)
  1889. return dependency_;
  1890. }
  1891. ::google::protobuf::RepeatedPtrField< ::std::string>*
  1892. FileDescriptorProto::mutable_dependency() {
  1893. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.dependency)
  1894. return &dependency_;
  1895. }
  1896. // repeated int32 public_dependency = 10;
  1897. int FileDescriptorProto::public_dependency_size() const {
  1898. return public_dependency_.size();
  1899. }
  1900. void FileDescriptorProto::clear_public_dependency() {
  1901. public_dependency_.Clear();
  1902. }
  1903. ::google::protobuf::int32 FileDescriptorProto::public_dependency(int index) const {
  1904. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.public_dependency)
  1905. return public_dependency_.Get(index);
  1906. }
  1907. void FileDescriptorProto::set_public_dependency(int index, ::google::protobuf::int32 value) {
  1908. public_dependency_.Set(index, value);
  1909. // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.public_dependency)
  1910. }
  1911. void FileDescriptorProto::add_public_dependency(::google::protobuf::int32 value) {
  1912. public_dependency_.Add(value);
  1913. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.public_dependency)
  1914. }
  1915. const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  1916. FileDescriptorProto::public_dependency() const {
  1917. // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.public_dependency)
  1918. return public_dependency_;
  1919. }
  1920. ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  1921. FileDescriptorProto::mutable_public_dependency() {
  1922. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.public_dependency)
  1923. return &public_dependency_;
  1924. }
  1925. // repeated int32 weak_dependency = 11;
  1926. int FileDescriptorProto::weak_dependency_size() const {
  1927. return weak_dependency_.size();
  1928. }
  1929. void FileDescriptorProto::clear_weak_dependency() {
  1930. weak_dependency_.Clear();
  1931. }
  1932. ::google::protobuf::int32 FileDescriptorProto::weak_dependency(int index) const {
  1933. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.weak_dependency)
  1934. return weak_dependency_.Get(index);
  1935. }
  1936. void FileDescriptorProto::set_weak_dependency(int index, ::google::protobuf::int32 value) {
  1937. weak_dependency_.Set(index, value);
  1938. // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.weak_dependency)
  1939. }
  1940. void FileDescriptorProto::add_weak_dependency(::google::protobuf::int32 value) {
  1941. weak_dependency_.Add(value);
  1942. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.weak_dependency)
  1943. }
  1944. const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  1945. FileDescriptorProto::weak_dependency() const {
  1946. // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.weak_dependency)
  1947. return weak_dependency_;
  1948. }
  1949. ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  1950. FileDescriptorProto::mutable_weak_dependency() {
  1951. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.weak_dependency)
  1952. return &weak_dependency_;
  1953. }
  1954. // repeated .google.protobuf.DescriptorProto message_type = 4;
  1955. int FileDescriptorProto::message_type_size() const {
  1956. return message_type_.size();
  1957. }
  1958. void FileDescriptorProto::clear_message_type() {
  1959. message_type_.Clear();
  1960. }
  1961. const ::google::protobuf::DescriptorProto& FileDescriptorProto::message_type(int index) const {
  1962. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.message_type)
  1963. return message_type_.Get(index);
  1964. }
  1965. ::google::protobuf::DescriptorProto* FileDescriptorProto::mutable_message_type(int index) {
  1966. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.message_type)
  1967. return message_type_.Mutable(index);
  1968. }
  1969. ::google::protobuf::DescriptorProto* FileDescriptorProto::add_message_type() {
  1970. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.message_type)
  1971. return message_type_.Add();
  1972. }
  1973. ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >*
  1974. FileDescriptorProto::mutable_message_type() {
  1975. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.message_type)
  1976. return &message_type_;
  1977. }
  1978. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >&
  1979. FileDescriptorProto::message_type() const {
  1980. // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.message_type)
  1981. return message_type_;
  1982. }
  1983. // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
  1984. int FileDescriptorProto::enum_type_size() const {
  1985. return enum_type_.size();
  1986. }
  1987. void FileDescriptorProto::clear_enum_type() {
  1988. enum_type_.Clear();
  1989. }
  1990. const ::google::protobuf::EnumDescriptorProto& FileDescriptorProto::enum_type(int index) const {
  1991. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.enum_type)
  1992. return enum_type_.Get(index);
  1993. }
  1994. ::google::protobuf::EnumDescriptorProto* FileDescriptorProto::mutable_enum_type(int index) {
  1995. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.enum_type)
  1996. return enum_type_.Mutable(index);
  1997. }
  1998. ::google::protobuf::EnumDescriptorProto* FileDescriptorProto::add_enum_type() {
  1999. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.enum_type)
  2000. return enum_type_.Add();
  2001. }
  2002. ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >*
  2003. FileDescriptorProto::mutable_enum_type() {
  2004. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.enum_type)
  2005. return &enum_type_;
  2006. }
  2007. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >&
  2008. FileDescriptorProto::enum_type() const {
  2009. // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.enum_type)
  2010. return enum_type_;
  2011. }
  2012. // repeated .google.protobuf.ServiceDescriptorProto service = 6;
  2013. int FileDescriptorProto::service_size() const {
  2014. return service_.size();
  2015. }
  2016. void FileDescriptorProto::clear_service() {
  2017. service_.Clear();
  2018. }
  2019. const ::google::protobuf::ServiceDescriptorProto& FileDescriptorProto::service(int index) const {
  2020. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.service)
  2021. return service_.Get(index);
  2022. }
  2023. ::google::protobuf::ServiceDescriptorProto* FileDescriptorProto::mutable_service(int index) {
  2024. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.service)
  2025. return service_.Mutable(index);
  2026. }
  2027. ::google::protobuf::ServiceDescriptorProto* FileDescriptorProto::add_service() {
  2028. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.service)
  2029. return service_.Add();
  2030. }
  2031. ::google::protobuf::RepeatedPtrField< ::google::protobuf::ServiceDescriptorProto >*
  2032. FileDescriptorProto::mutable_service() {
  2033. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.service)
  2034. return &service_;
  2035. }
  2036. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::ServiceDescriptorProto >&
  2037. FileDescriptorProto::service() const {
  2038. // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.service)
  2039. return service_;
  2040. }
  2041. // repeated .google.protobuf.FieldDescriptorProto extension = 7;
  2042. int FileDescriptorProto::extension_size() const {
  2043. return extension_.size();
  2044. }
  2045. void FileDescriptorProto::clear_extension() {
  2046. extension_.Clear();
  2047. }
  2048. const ::google::protobuf::FieldDescriptorProto& FileDescriptorProto::extension(int index) const {
  2049. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.extension)
  2050. return extension_.Get(index);
  2051. }
  2052. ::google::protobuf::FieldDescriptorProto* FileDescriptorProto::mutable_extension(int index) {
  2053. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.extension)
  2054. return extension_.Mutable(index);
  2055. }
  2056. ::google::protobuf::FieldDescriptorProto* FileDescriptorProto::add_extension() {
  2057. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.extension)
  2058. return extension_.Add();
  2059. }
  2060. ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >*
  2061. FileDescriptorProto::mutable_extension() {
  2062. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.extension)
  2063. return &extension_;
  2064. }
  2065. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >&
  2066. FileDescriptorProto::extension() const {
  2067. // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.extension)
  2068. return extension_;
  2069. }
  2070. // optional .google.protobuf.FileOptions options = 8;
  2071. bool FileDescriptorProto::has_options() const {
  2072. return (_has_bits_[0] & 0x00000200u) != 0;
  2073. }
  2074. void FileDescriptorProto::set_has_options() {
  2075. _has_bits_[0] |= 0x00000200u;
  2076. }
  2077. void FileDescriptorProto::clear_has_options() {
  2078. _has_bits_[0] &= ~0x00000200u;
  2079. }
  2080. void FileDescriptorProto::clear_options() {
  2081. if (options_ != NULL) options_->::google::protobuf::FileOptions::Clear();
  2082. clear_has_options();
  2083. }
  2084. const ::google::protobuf::FileOptions& FileDescriptorProto::options() const {
  2085. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.options)
  2086. return options_ != NULL ? *options_ : *default_instance_->options_;
  2087. }
  2088. ::google::protobuf::FileOptions* FileDescriptorProto::mutable_options() {
  2089. set_has_options();
  2090. if (options_ == NULL) {
  2091. options_ = new ::google::protobuf::FileOptions;
  2092. }
  2093. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.options)
  2094. return options_;
  2095. }
  2096. ::google::protobuf::FileOptions* FileDescriptorProto::release_options() {
  2097. clear_has_options();
  2098. ::google::protobuf::FileOptions* temp = options_;
  2099. options_ = NULL;
  2100. return temp;
  2101. }
  2102. void FileDescriptorProto::set_allocated_options(::google::protobuf::FileOptions* options) {
  2103. delete options_;
  2104. options_ = options;
  2105. if (options) {
  2106. set_has_options();
  2107. } else {
  2108. clear_has_options();
  2109. }
  2110. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.options)
  2111. }
  2112. // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
  2113. bool FileDescriptorProto::has_source_code_info() const {
  2114. return (_has_bits_[0] & 0x00000400u) != 0;
  2115. }
  2116. void FileDescriptorProto::set_has_source_code_info() {
  2117. _has_bits_[0] |= 0x00000400u;
  2118. }
  2119. void FileDescriptorProto::clear_has_source_code_info() {
  2120. _has_bits_[0] &= ~0x00000400u;
  2121. }
  2122. void FileDescriptorProto::clear_source_code_info() {
  2123. if (source_code_info_ != NULL) source_code_info_->::google::protobuf::SourceCodeInfo::Clear();
  2124. clear_has_source_code_info();
  2125. }
  2126. const ::google::protobuf::SourceCodeInfo& FileDescriptorProto::source_code_info() const {
  2127. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.source_code_info)
  2128. return source_code_info_ != NULL ? *source_code_info_ : *default_instance_->source_code_info_;
  2129. }
  2130. ::google::protobuf::SourceCodeInfo* FileDescriptorProto::mutable_source_code_info() {
  2131. set_has_source_code_info();
  2132. if (source_code_info_ == NULL) {
  2133. source_code_info_ = new ::google::protobuf::SourceCodeInfo;
  2134. }
  2135. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.source_code_info)
  2136. return source_code_info_;
  2137. }
  2138. ::google::protobuf::SourceCodeInfo* FileDescriptorProto::release_source_code_info() {
  2139. clear_has_source_code_info();
  2140. ::google::protobuf::SourceCodeInfo* temp = source_code_info_;
  2141. source_code_info_ = NULL;
  2142. return temp;
  2143. }
  2144. void FileDescriptorProto::set_allocated_source_code_info(::google::protobuf::SourceCodeInfo* source_code_info) {
  2145. delete source_code_info_;
  2146. source_code_info_ = source_code_info;
  2147. if (source_code_info) {
  2148. set_has_source_code_info();
  2149. } else {
  2150. clear_has_source_code_info();
  2151. }
  2152. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.source_code_info)
  2153. }
  2154. // optional string syntax = 12;
  2155. bool FileDescriptorProto::has_syntax() const {
  2156. return (_has_bits_[0] & 0x00000800u) != 0;
  2157. }
  2158. void FileDescriptorProto::set_has_syntax() {
  2159. _has_bits_[0] |= 0x00000800u;
  2160. }
  2161. void FileDescriptorProto::clear_has_syntax() {
  2162. _has_bits_[0] &= ~0x00000800u;
  2163. }
  2164. void FileDescriptorProto::clear_syntax() {
  2165. syntax_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2166. clear_has_syntax();
  2167. }
  2168. const ::std::string& FileDescriptorProto::syntax() const {
  2169. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.syntax)
  2170. return syntax_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2171. }
  2172. void FileDescriptorProto::set_syntax(const ::std::string& value) {
  2173. set_has_syntax();
  2174. syntax_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  2175. // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.syntax)
  2176. }
  2177. void FileDescriptorProto::set_syntax(const char* value) {
  2178. set_has_syntax();
  2179. syntax_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  2180. // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto.syntax)
  2181. }
  2182. void FileDescriptorProto::set_syntax(const char* value, size_t size) {
  2183. set_has_syntax();
  2184. syntax_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  2185. ::std::string(reinterpret_cast<const char*>(value), size));
  2186. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorProto.syntax)
  2187. }
  2188. ::std::string* FileDescriptorProto::mutable_syntax() {
  2189. set_has_syntax();
  2190. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.syntax)
  2191. return syntax_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2192. }
  2193. ::std::string* FileDescriptorProto::release_syntax() {
  2194. clear_has_syntax();
  2195. return syntax_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2196. }
  2197. void FileDescriptorProto::set_allocated_syntax(::std::string* syntax) {
  2198. if (syntax != NULL) {
  2199. set_has_syntax();
  2200. } else {
  2201. clear_has_syntax();
  2202. }
  2203. syntax_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), syntax);
  2204. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.syntax)
  2205. }
  2206. #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
  2207. // ===================================================================
  2208. #ifndef _MSC_VER
  2209. const int DescriptorProto_ExtensionRange::kStartFieldNumber;
  2210. const int DescriptorProto_ExtensionRange::kEndFieldNumber;
  2211. #endif // !_MSC_VER
  2212. DescriptorProto_ExtensionRange::DescriptorProto_ExtensionRange()
  2213. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  2214. SharedCtor();
  2215. // @@protoc_insertion_point(constructor:google.protobuf.DescriptorProto.ExtensionRange)
  2216. }
  2217. void DescriptorProto_ExtensionRange::InitAsDefaultInstance() {
  2218. }
  2219. DescriptorProto_ExtensionRange::DescriptorProto_ExtensionRange(const DescriptorProto_ExtensionRange& from)
  2220. : ::google::protobuf::Message(),
  2221. _internal_metadata_(NULL) {
  2222. SharedCtor();
  2223. MergeFrom(from);
  2224. // @@protoc_insertion_point(copy_constructor:google.protobuf.DescriptorProto.ExtensionRange)
  2225. }
  2226. void DescriptorProto_ExtensionRange::SharedCtor() {
  2227. _cached_size_ = 0;
  2228. start_ = 0;
  2229. end_ = 0;
  2230. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  2231. }
  2232. DescriptorProto_ExtensionRange::~DescriptorProto_ExtensionRange() {
  2233. // @@protoc_insertion_point(destructor:google.protobuf.DescriptorProto.ExtensionRange)
  2234. SharedDtor();
  2235. }
  2236. void DescriptorProto_ExtensionRange::SharedDtor() {
  2237. if (this != default_instance_) {
  2238. }
  2239. }
  2240. void DescriptorProto_ExtensionRange::SetCachedSize(int size) const {
  2241. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2242. _cached_size_ = size;
  2243. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2244. }
  2245. const ::google::protobuf::Descriptor* DescriptorProto_ExtensionRange::descriptor() {
  2246. protobuf_AssignDescriptorsOnce();
  2247. return DescriptorProto_ExtensionRange_descriptor_;
  2248. }
  2249. const DescriptorProto_ExtensionRange& DescriptorProto_ExtensionRange::default_instance() {
  2250. if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  2251. return *default_instance_;
  2252. }
  2253. DescriptorProto_ExtensionRange* DescriptorProto_ExtensionRange::default_instance_ = NULL;
  2254. DescriptorProto_ExtensionRange* DescriptorProto_ExtensionRange::New(::google::protobuf::Arena* arena) const {
  2255. DescriptorProto_ExtensionRange* n = new DescriptorProto_ExtensionRange;
  2256. if (arena != NULL) {
  2257. arena->Own(n);
  2258. }
  2259. return n;
  2260. }
  2261. void DescriptorProto_ExtensionRange::Clear() {
  2262. #define ZR_HELPER_(f) reinterpret_cast<char*>(\
  2263. &reinterpret_cast<DescriptorProto_ExtensionRange*>(16)->f)
  2264. #define ZR_(first, last) do {\
  2265. ::memset(&first, 0,\
  2266. ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\
  2267. } while (0)
  2268. ZR_(start_, end_);
  2269. #undef ZR_HELPER_
  2270. #undef ZR_
  2271. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  2272. if (_internal_metadata_.have_unknown_fields()) {
  2273. mutable_unknown_fields()->Clear();
  2274. }
  2275. }
  2276. bool DescriptorProto_ExtensionRange::MergePartialFromCodedStream(
  2277. ::google::protobuf::io::CodedInputStream* input) {
  2278. #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
  2279. ::google::protobuf::uint32 tag;
  2280. // @@protoc_insertion_point(parse_start:google.protobuf.DescriptorProto.ExtensionRange)
  2281. for (;;) {
  2282. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
  2283. tag = p.first;
  2284. if (!p.second) goto handle_unusual;
  2285. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2286. // optional int32 start = 1;
  2287. case 1: {
  2288. if (tag == 8) {
  2289. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2290. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2291. input, &start_)));
  2292. set_has_start();
  2293. } else {
  2294. goto handle_unusual;
  2295. }
  2296. if (input->ExpectTag(16)) goto parse_end;
  2297. break;
  2298. }
  2299. // optional int32 end = 2;
  2300. case 2: {
  2301. if (tag == 16) {
  2302. parse_end:
  2303. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2304. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2305. input, &end_)));
  2306. set_has_end();
  2307. } else {
  2308. goto handle_unusual;
  2309. }
  2310. if (input->ExpectAtEnd()) goto success;
  2311. break;
  2312. }
  2313. default: {
  2314. handle_unusual:
  2315. if (tag == 0 ||
  2316. ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2317. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  2318. goto success;
  2319. }
  2320. DO_(::google::protobuf::internal::WireFormat::SkipField(
  2321. input, tag, mutable_unknown_fields()));
  2322. break;
  2323. }
  2324. }
  2325. }
  2326. success:
  2327. // @@protoc_insertion_point(parse_success:google.protobuf.DescriptorProto.ExtensionRange)
  2328. return true;
  2329. failure:
  2330. // @@protoc_insertion_point(parse_failure:google.protobuf.DescriptorProto.ExtensionRange)
  2331. return false;
  2332. #undef DO_
  2333. }
  2334. void DescriptorProto_ExtensionRange::SerializeWithCachedSizes(
  2335. ::google::protobuf::io::CodedOutputStream* output) const {
  2336. // @@protoc_insertion_point(serialize_start:google.protobuf.DescriptorProto.ExtensionRange)
  2337. // optional int32 start = 1;
  2338. if (has_start()) {
  2339. ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->start(), output);
  2340. }
  2341. // optional int32 end = 2;
  2342. if (has_end()) {
  2343. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->end(), output);
  2344. }
  2345. if (_internal_metadata_.have_unknown_fields()) {
  2346. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2347. unknown_fields(), output);
  2348. }
  2349. // @@protoc_insertion_point(serialize_end:google.protobuf.DescriptorProto.ExtensionRange)
  2350. }
  2351. ::google::protobuf::uint8* DescriptorProto_ExtensionRange::SerializeWithCachedSizesToArray(
  2352. ::google::protobuf::uint8* target) const {
  2353. // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.DescriptorProto.ExtensionRange)
  2354. // optional int32 start = 1;
  2355. if (has_start()) {
  2356. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->start(), target);
  2357. }
  2358. // optional int32 end = 2;
  2359. if (has_end()) {
  2360. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->end(), target);
  2361. }
  2362. if (_internal_metadata_.have_unknown_fields()) {
  2363. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2364. unknown_fields(), target);
  2365. }
  2366. // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.DescriptorProto.ExtensionRange)
  2367. return target;
  2368. }
  2369. int DescriptorProto_ExtensionRange::ByteSize() const {
  2370. int total_size = 0;
  2371. if (_has_bits_[0 / 32] & 3u) {
  2372. // optional int32 start = 1;
  2373. if (has_start()) {
  2374. total_size += 1 +
  2375. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2376. this->start());
  2377. }
  2378. // optional int32 end = 2;
  2379. if (has_end()) {
  2380. total_size += 1 +
  2381. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2382. this->end());
  2383. }
  2384. }
  2385. if (_internal_metadata_.have_unknown_fields()) {
  2386. total_size +=
  2387. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  2388. unknown_fields());
  2389. }
  2390. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2391. _cached_size_ = total_size;
  2392. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2393. return total_size;
  2394. }
  2395. void DescriptorProto_ExtensionRange::MergeFrom(const ::google::protobuf::Message& from) {
  2396. if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
  2397. const DescriptorProto_ExtensionRange* source =
  2398. ::google::protobuf::internal::DynamicCastToGenerated<const DescriptorProto_ExtensionRange>(
  2399. &from);
  2400. if (source == NULL) {
  2401. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  2402. } else {
  2403. MergeFrom(*source);
  2404. }
  2405. }
  2406. void DescriptorProto_ExtensionRange::MergeFrom(const DescriptorProto_ExtensionRange& from) {
  2407. if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
  2408. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2409. if (from.has_start()) {
  2410. set_start(from.start());
  2411. }
  2412. if (from.has_end()) {
  2413. set_end(from.end());
  2414. }
  2415. }
  2416. if (from._internal_metadata_.have_unknown_fields()) {
  2417. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  2418. }
  2419. }
  2420. void DescriptorProto_ExtensionRange::CopyFrom(const ::google::protobuf::Message& from) {
  2421. if (&from == this) return;
  2422. Clear();
  2423. MergeFrom(from);
  2424. }
  2425. void DescriptorProto_ExtensionRange::CopyFrom(const DescriptorProto_ExtensionRange& from) {
  2426. if (&from == this) return;
  2427. Clear();
  2428. MergeFrom(from);
  2429. }
  2430. bool DescriptorProto_ExtensionRange::IsInitialized() const {
  2431. return true;
  2432. }
  2433. void DescriptorProto_ExtensionRange::Swap(DescriptorProto_ExtensionRange* other) {
  2434. if (other == this) return;
  2435. InternalSwap(other);
  2436. }
  2437. void DescriptorProto_ExtensionRange::InternalSwap(DescriptorProto_ExtensionRange* other) {
  2438. std::swap(start_, other->start_);
  2439. std::swap(end_, other->end_);
  2440. std::swap(_has_bits_[0], other->_has_bits_[0]);
  2441. _internal_metadata_.Swap(&other->_internal_metadata_);
  2442. std::swap(_cached_size_, other->_cached_size_);
  2443. }
  2444. ::google::protobuf::Metadata DescriptorProto_ExtensionRange::GetMetadata() const {
  2445. protobuf_AssignDescriptorsOnce();
  2446. ::google::protobuf::Metadata metadata;
  2447. metadata.descriptor = DescriptorProto_ExtensionRange_descriptor_;
  2448. metadata.reflection = DescriptorProto_ExtensionRange_reflection_;
  2449. return metadata;
  2450. }
  2451. // -------------------------------------------------------------------
  2452. #ifndef _MSC_VER
  2453. const int DescriptorProto_ReservedRange::kStartFieldNumber;
  2454. const int DescriptorProto_ReservedRange::kEndFieldNumber;
  2455. #endif // !_MSC_VER
  2456. DescriptorProto_ReservedRange::DescriptorProto_ReservedRange()
  2457. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  2458. SharedCtor();
  2459. // @@protoc_insertion_point(constructor:google.protobuf.DescriptorProto.ReservedRange)
  2460. }
  2461. void DescriptorProto_ReservedRange::InitAsDefaultInstance() {
  2462. }
  2463. DescriptorProto_ReservedRange::DescriptorProto_ReservedRange(const DescriptorProto_ReservedRange& from)
  2464. : ::google::protobuf::Message(),
  2465. _internal_metadata_(NULL) {
  2466. SharedCtor();
  2467. MergeFrom(from);
  2468. // @@protoc_insertion_point(copy_constructor:google.protobuf.DescriptorProto.ReservedRange)
  2469. }
  2470. void DescriptorProto_ReservedRange::SharedCtor() {
  2471. _cached_size_ = 0;
  2472. start_ = 0;
  2473. end_ = 0;
  2474. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  2475. }
  2476. DescriptorProto_ReservedRange::~DescriptorProto_ReservedRange() {
  2477. // @@protoc_insertion_point(destructor:google.protobuf.DescriptorProto.ReservedRange)
  2478. SharedDtor();
  2479. }
  2480. void DescriptorProto_ReservedRange::SharedDtor() {
  2481. if (this != default_instance_) {
  2482. }
  2483. }
  2484. void DescriptorProto_ReservedRange::SetCachedSize(int size) const {
  2485. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2486. _cached_size_ = size;
  2487. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2488. }
  2489. const ::google::protobuf::Descriptor* DescriptorProto_ReservedRange::descriptor() {
  2490. protobuf_AssignDescriptorsOnce();
  2491. return DescriptorProto_ReservedRange_descriptor_;
  2492. }
  2493. const DescriptorProto_ReservedRange& DescriptorProto_ReservedRange::default_instance() {
  2494. if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  2495. return *default_instance_;
  2496. }
  2497. DescriptorProto_ReservedRange* DescriptorProto_ReservedRange::default_instance_ = NULL;
  2498. DescriptorProto_ReservedRange* DescriptorProto_ReservedRange::New(::google::protobuf::Arena* arena) const {
  2499. DescriptorProto_ReservedRange* n = new DescriptorProto_ReservedRange;
  2500. if (arena != NULL) {
  2501. arena->Own(n);
  2502. }
  2503. return n;
  2504. }
  2505. void DescriptorProto_ReservedRange::Clear() {
  2506. #define ZR_HELPER_(f) reinterpret_cast<char*>(\
  2507. &reinterpret_cast<DescriptorProto_ReservedRange*>(16)->f)
  2508. #define ZR_(first, last) do {\
  2509. ::memset(&first, 0,\
  2510. ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\
  2511. } while (0)
  2512. ZR_(start_, end_);
  2513. #undef ZR_HELPER_
  2514. #undef ZR_
  2515. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  2516. if (_internal_metadata_.have_unknown_fields()) {
  2517. mutable_unknown_fields()->Clear();
  2518. }
  2519. }
  2520. bool DescriptorProto_ReservedRange::MergePartialFromCodedStream(
  2521. ::google::protobuf::io::CodedInputStream* input) {
  2522. #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
  2523. ::google::protobuf::uint32 tag;
  2524. // @@protoc_insertion_point(parse_start:google.protobuf.DescriptorProto.ReservedRange)
  2525. for (;;) {
  2526. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
  2527. tag = p.first;
  2528. if (!p.second) goto handle_unusual;
  2529. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2530. // optional int32 start = 1;
  2531. case 1: {
  2532. if (tag == 8) {
  2533. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2534. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2535. input, &start_)));
  2536. set_has_start();
  2537. } else {
  2538. goto handle_unusual;
  2539. }
  2540. if (input->ExpectTag(16)) goto parse_end;
  2541. break;
  2542. }
  2543. // optional int32 end = 2;
  2544. case 2: {
  2545. if (tag == 16) {
  2546. parse_end:
  2547. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2548. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2549. input, &end_)));
  2550. set_has_end();
  2551. } else {
  2552. goto handle_unusual;
  2553. }
  2554. if (input->ExpectAtEnd()) goto success;
  2555. break;
  2556. }
  2557. default: {
  2558. handle_unusual:
  2559. if (tag == 0 ||
  2560. ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2561. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  2562. goto success;
  2563. }
  2564. DO_(::google::protobuf::internal::WireFormat::SkipField(
  2565. input, tag, mutable_unknown_fields()));
  2566. break;
  2567. }
  2568. }
  2569. }
  2570. success:
  2571. // @@protoc_insertion_point(parse_success:google.protobuf.DescriptorProto.ReservedRange)
  2572. return true;
  2573. failure:
  2574. // @@protoc_insertion_point(parse_failure:google.protobuf.DescriptorProto.ReservedRange)
  2575. return false;
  2576. #undef DO_
  2577. }
  2578. void DescriptorProto_ReservedRange::SerializeWithCachedSizes(
  2579. ::google::protobuf::io::CodedOutputStream* output) const {
  2580. // @@protoc_insertion_point(serialize_start:google.protobuf.DescriptorProto.ReservedRange)
  2581. // optional int32 start = 1;
  2582. if (has_start()) {
  2583. ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->start(), output);
  2584. }
  2585. // optional int32 end = 2;
  2586. if (has_end()) {
  2587. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->end(), output);
  2588. }
  2589. if (_internal_metadata_.have_unknown_fields()) {
  2590. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2591. unknown_fields(), output);
  2592. }
  2593. // @@protoc_insertion_point(serialize_end:google.protobuf.DescriptorProto.ReservedRange)
  2594. }
  2595. ::google::protobuf::uint8* DescriptorProto_ReservedRange::SerializeWithCachedSizesToArray(
  2596. ::google::protobuf::uint8* target) const {
  2597. // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.DescriptorProto.ReservedRange)
  2598. // optional int32 start = 1;
  2599. if (has_start()) {
  2600. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->start(), target);
  2601. }
  2602. // optional int32 end = 2;
  2603. if (has_end()) {
  2604. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->end(), target);
  2605. }
  2606. if (_internal_metadata_.have_unknown_fields()) {
  2607. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2608. unknown_fields(), target);
  2609. }
  2610. // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.DescriptorProto.ReservedRange)
  2611. return target;
  2612. }
  2613. int DescriptorProto_ReservedRange::ByteSize() const {
  2614. int total_size = 0;
  2615. if (_has_bits_[0 / 32] & 3u) {
  2616. // optional int32 start = 1;
  2617. if (has_start()) {
  2618. total_size += 1 +
  2619. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2620. this->start());
  2621. }
  2622. // optional int32 end = 2;
  2623. if (has_end()) {
  2624. total_size += 1 +
  2625. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2626. this->end());
  2627. }
  2628. }
  2629. if (_internal_metadata_.have_unknown_fields()) {
  2630. total_size +=
  2631. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  2632. unknown_fields());
  2633. }
  2634. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2635. _cached_size_ = total_size;
  2636. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2637. return total_size;
  2638. }
  2639. void DescriptorProto_ReservedRange::MergeFrom(const ::google::protobuf::Message& from) {
  2640. if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
  2641. const DescriptorProto_ReservedRange* source =
  2642. ::google::protobuf::internal::DynamicCastToGenerated<const DescriptorProto_ReservedRange>(
  2643. &from);
  2644. if (source == NULL) {
  2645. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  2646. } else {
  2647. MergeFrom(*source);
  2648. }
  2649. }
  2650. void DescriptorProto_ReservedRange::MergeFrom(const DescriptorProto_ReservedRange& from) {
  2651. if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
  2652. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  2653. if (from.has_start()) {
  2654. set_start(from.start());
  2655. }
  2656. if (from.has_end()) {
  2657. set_end(from.end());
  2658. }
  2659. }
  2660. if (from._internal_metadata_.have_unknown_fields()) {
  2661. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  2662. }
  2663. }
  2664. void DescriptorProto_ReservedRange::CopyFrom(const ::google::protobuf::Message& from) {
  2665. if (&from == this) return;
  2666. Clear();
  2667. MergeFrom(from);
  2668. }
  2669. void DescriptorProto_ReservedRange::CopyFrom(const DescriptorProto_ReservedRange& from) {
  2670. if (&from == this) return;
  2671. Clear();
  2672. MergeFrom(from);
  2673. }
  2674. bool DescriptorProto_ReservedRange::IsInitialized() const {
  2675. return true;
  2676. }
  2677. void DescriptorProto_ReservedRange::Swap(DescriptorProto_ReservedRange* other) {
  2678. if (other == this) return;
  2679. InternalSwap(other);
  2680. }
  2681. void DescriptorProto_ReservedRange::InternalSwap(DescriptorProto_ReservedRange* other) {
  2682. std::swap(start_, other->start_);
  2683. std::swap(end_, other->end_);
  2684. std::swap(_has_bits_[0], other->_has_bits_[0]);
  2685. _internal_metadata_.Swap(&other->_internal_metadata_);
  2686. std::swap(_cached_size_, other->_cached_size_);
  2687. }
  2688. ::google::protobuf::Metadata DescriptorProto_ReservedRange::GetMetadata() const {
  2689. protobuf_AssignDescriptorsOnce();
  2690. ::google::protobuf::Metadata metadata;
  2691. metadata.descriptor = DescriptorProto_ReservedRange_descriptor_;
  2692. metadata.reflection = DescriptorProto_ReservedRange_reflection_;
  2693. return metadata;
  2694. }
  2695. // -------------------------------------------------------------------
  2696. #ifndef _MSC_VER
  2697. const int DescriptorProto::kNameFieldNumber;
  2698. const int DescriptorProto::kFieldFieldNumber;
  2699. const int DescriptorProto::kExtensionFieldNumber;
  2700. const int DescriptorProto::kNestedTypeFieldNumber;
  2701. const int DescriptorProto::kEnumTypeFieldNumber;
  2702. const int DescriptorProto::kExtensionRangeFieldNumber;
  2703. const int DescriptorProto::kOneofDeclFieldNumber;
  2704. const int DescriptorProto::kOptionsFieldNumber;
  2705. const int DescriptorProto::kReservedRangeFieldNumber;
  2706. const int DescriptorProto::kReservedNameFieldNumber;
  2707. #endif // !_MSC_VER
  2708. DescriptorProto::DescriptorProto()
  2709. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  2710. SharedCtor();
  2711. // @@protoc_insertion_point(constructor:google.protobuf.DescriptorProto)
  2712. }
  2713. void DescriptorProto::InitAsDefaultInstance() {
  2714. options_ = const_cast< ::google::protobuf::MessageOptions*>(&::google::protobuf::MessageOptions::default_instance());
  2715. }
  2716. DescriptorProto::DescriptorProto(const DescriptorProto& from)
  2717. : ::google::protobuf::Message(),
  2718. _internal_metadata_(NULL) {
  2719. SharedCtor();
  2720. MergeFrom(from);
  2721. // @@protoc_insertion_point(copy_constructor:google.protobuf.DescriptorProto)
  2722. }
  2723. void DescriptorProto::SharedCtor() {
  2724. ::google::protobuf::internal::GetEmptyString();
  2725. _cached_size_ = 0;
  2726. name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2727. options_ = NULL;
  2728. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  2729. }
  2730. DescriptorProto::~DescriptorProto() {
  2731. // @@protoc_insertion_point(destructor:google.protobuf.DescriptorProto)
  2732. SharedDtor();
  2733. }
  2734. void DescriptorProto::SharedDtor() {
  2735. name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2736. if (this != default_instance_) {
  2737. delete options_;
  2738. }
  2739. }
  2740. void DescriptorProto::SetCachedSize(int size) const {
  2741. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2742. _cached_size_ = size;
  2743. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2744. }
  2745. const ::google::protobuf::Descriptor* DescriptorProto::descriptor() {
  2746. protobuf_AssignDescriptorsOnce();
  2747. return DescriptorProto_descriptor_;
  2748. }
  2749. const DescriptorProto& DescriptorProto::default_instance() {
  2750. if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  2751. return *default_instance_;
  2752. }
  2753. DescriptorProto* DescriptorProto::default_instance_ = NULL;
  2754. DescriptorProto* DescriptorProto::New(::google::protobuf::Arena* arena) const {
  2755. DescriptorProto* n = new DescriptorProto;
  2756. if (arena != NULL) {
  2757. arena->Own(n);
  2758. }
  2759. return n;
  2760. }
  2761. void DescriptorProto::Clear() {
  2762. if (_has_bits_[0 / 32] & 129u) {
  2763. if (has_name()) {
  2764. name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2765. }
  2766. if (has_options()) {
  2767. if (options_ != NULL) options_->::google::protobuf::MessageOptions::Clear();
  2768. }
  2769. }
  2770. field_.Clear();
  2771. extension_.Clear();
  2772. nested_type_.Clear();
  2773. enum_type_.Clear();
  2774. extension_range_.Clear();
  2775. oneof_decl_.Clear();
  2776. reserved_range_.Clear();
  2777. reserved_name_.Clear();
  2778. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  2779. if (_internal_metadata_.have_unknown_fields()) {
  2780. mutable_unknown_fields()->Clear();
  2781. }
  2782. }
  2783. bool DescriptorProto::MergePartialFromCodedStream(
  2784. ::google::protobuf::io::CodedInputStream* input) {
  2785. #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
  2786. ::google::protobuf::uint32 tag;
  2787. // @@protoc_insertion_point(parse_start:google.protobuf.DescriptorProto)
  2788. for (;;) {
  2789. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
  2790. tag = p.first;
  2791. if (!p.second) goto handle_unusual;
  2792. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2793. // optional string name = 1;
  2794. case 1: {
  2795. if (tag == 10) {
  2796. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  2797. input, this->mutable_name()));
  2798. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2799. this->name().data(), this->name().length(),
  2800. ::google::protobuf::internal::WireFormat::PARSE,
  2801. "google.protobuf.DescriptorProto.name");
  2802. } else {
  2803. goto handle_unusual;
  2804. }
  2805. if (input->ExpectTag(18)) goto parse_field;
  2806. break;
  2807. }
  2808. // repeated .google.protobuf.FieldDescriptorProto field = 2;
  2809. case 2: {
  2810. if (tag == 18) {
  2811. parse_field:
  2812. DO_(input->IncrementRecursionDepth());
  2813. parse_loop_field:
  2814. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
  2815. input, add_field()));
  2816. } else {
  2817. goto handle_unusual;
  2818. }
  2819. if (input->ExpectTag(18)) goto parse_loop_field;
  2820. if (input->ExpectTag(26)) goto parse_loop_nested_type;
  2821. input->UnsafeDecrementRecursionDepth();
  2822. break;
  2823. }
  2824. // repeated .google.protobuf.DescriptorProto nested_type = 3;
  2825. case 3: {
  2826. if (tag == 26) {
  2827. DO_(input->IncrementRecursionDepth());
  2828. parse_loop_nested_type:
  2829. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
  2830. input, add_nested_type()));
  2831. } else {
  2832. goto handle_unusual;
  2833. }
  2834. if (input->ExpectTag(26)) goto parse_loop_nested_type;
  2835. if (input->ExpectTag(34)) goto parse_loop_enum_type;
  2836. input->UnsafeDecrementRecursionDepth();
  2837. break;
  2838. }
  2839. // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
  2840. case 4: {
  2841. if (tag == 34) {
  2842. DO_(input->IncrementRecursionDepth());
  2843. parse_loop_enum_type:
  2844. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
  2845. input, add_enum_type()));
  2846. } else {
  2847. goto handle_unusual;
  2848. }
  2849. if (input->ExpectTag(34)) goto parse_loop_enum_type;
  2850. if (input->ExpectTag(42)) goto parse_loop_extension_range;
  2851. input->UnsafeDecrementRecursionDepth();
  2852. break;
  2853. }
  2854. // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
  2855. case 5: {
  2856. if (tag == 42) {
  2857. DO_(input->IncrementRecursionDepth());
  2858. parse_loop_extension_range:
  2859. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
  2860. input, add_extension_range()));
  2861. } else {
  2862. goto handle_unusual;
  2863. }
  2864. if (input->ExpectTag(42)) goto parse_loop_extension_range;
  2865. if (input->ExpectTag(50)) goto parse_loop_extension;
  2866. input->UnsafeDecrementRecursionDepth();
  2867. break;
  2868. }
  2869. // repeated .google.protobuf.FieldDescriptorProto extension = 6;
  2870. case 6: {
  2871. if (tag == 50) {
  2872. DO_(input->IncrementRecursionDepth());
  2873. parse_loop_extension:
  2874. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
  2875. input, add_extension()));
  2876. } else {
  2877. goto handle_unusual;
  2878. }
  2879. if (input->ExpectTag(50)) goto parse_loop_extension;
  2880. input->UnsafeDecrementRecursionDepth();
  2881. if (input->ExpectTag(58)) goto parse_options;
  2882. break;
  2883. }
  2884. // optional .google.protobuf.MessageOptions options = 7;
  2885. case 7: {
  2886. if (tag == 58) {
  2887. parse_options:
  2888. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  2889. input, mutable_options()));
  2890. } else {
  2891. goto handle_unusual;
  2892. }
  2893. if (input->ExpectTag(66)) goto parse_oneof_decl;
  2894. break;
  2895. }
  2896. // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
  2897. case 8: {
  2898. if (tag == 66) {
  2899. parse_oneof_decl:
  2900. DO_(input->IncrementRecursionDepth());
  2901. parse_loop_oneof_decl:
  2902. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
  2903. input, add_oneof_decl()));
  2904. } else {
  2905. goto handle_unusual;
  2906. }
  2907. if (input->ExpectTag(66)) goto parse_loop_oneof_decl;
  2908. if (input->ExpectTag(74)) goto parse_loop_reserved_range;
  2909. input->UnsafeDecrementRecursionDepth();
  2910. break;
  2911. }
  2912. // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
  2913. case 9: {
  2914. if (tag == 74) {
  2915. DO_(input->IncrementRecursionDepth());
  2916. parse_loop_reserved_range:
  2917. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
  2918. input, add_reserved_range()));
  2919. } else {
  2920. goto handle_unusual;
  2921. }
  2922. if (input->ExpectTag(74)) goto parse_loop_reserved_range;
  2923. input->UnsafeDecrementRecursionDepth();
  2924. if (input->ExpectTag(82)) goto parse_reserved_name;
  2925. break;
  2926. }
  2927. // repeated string reserved_name = 10;
  2928. case 10: {
  2929. if (tag == 82) {
  2930. parse_reserved_name:
  2931. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  2932. input, this->add_reserved_name()));
  2933. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2934. this->reserved_name(this->reserved_name_size() - 1).data(),
  2935. this->reserved_name(this->reserved_name_size() - 1).length(),
  2936. ::google::protobuf::internal::WireFormat::PARSE,
  2937. "google.protobuf.DescriptorProto.reserved_name");
  2938. } else {
  2939. goto handle_unusual;
  2940. }
  2941. if (input->ExpectTag(82)) goto parse_reserved_name;
  2942. if (input->ExpectAtEnd()) goto success;
  2943. break;
  2944. }
  2945. default: {
  2946. handle_unusual:
  2947. if (tag == 0 ||
  2948. ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  2949. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  2950. goto success;
  2951. }
  2952. DO_(::google::protobuf::internal::WireFormat::SkipField(
  2953. input, tag, mutable_unknown_fields()));
  2954. break;
  2955. }
  2956. }
  2957. }
  2958. success:
  2959. // @@protoc_insertion_point(parse_success:google.protobuf.DescriptorProto)
  2960. return true;
  2961. failure:
  2962. // @@protoc_insertion_point(parse_failure:google.protobuf.DescriptorProto)
  2963. return false;
  2964. #undef DO_
  2965. }
  2966. void DescriptorProto::SerializeWithCachedSizes(
  2967. ::google::protobuf::io::CodedOutputStream* output) const {
  2968. // @@protoc_insertion_point(serialize_start:google.protobuf.DescriptorProto)
  2969. // optional string name = 1;
  2970. if (has_name()) {
  2971. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2972. this->name().data(), this->name().length(),
  2973. ::google::protobuf::internal::WireFormat::SERIALIZE,
  2974. "google.protobuf.DescriptorProto.name");
  2975. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  2976. 1, this->name(), output);
  2977. }
  2978. // repeated .google.protobuf.FieldDescriptorProto field = 2;
  2979. for (unsigned int i = 0, n = this->field_size(); i < n; i++) {
  2980. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2981. 2, this->field(i), output);
  2982. }
  2983. // repeated .google.protobuf.DescriptorProto nested_type = 3;
  2984. for (unsigned int i = 0, n = this->nested_type_size(); i < n; i++) {
  2985. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2986. 3, this->nested_type(i), output);
  2987. }
  2988. // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
  2989. for (unsigned int i = 0, n = this->enum_type_size(); i < n; i++) {
  2990. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2991. 4, this->enum_type(i), output);
  2992. }
  2993. // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
  2994. for (unsigned int i = 0, n = this->extension_range_size(); i < n; i++) {
  2995. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2996. 5, this->extension_range(i), output);
  2997. }
  2998. // repeated .google.protobuf.FieldDescriptorProto extension = 6;
  2999. for (unsigned int i = 0, n = this->extension_size(); i < n; i++) {
  3000. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  3001. 6, this->extension(i), output);
  3002. }
  3003. // optional .google.protobuf.MessageOptions options = 7;
  3004. if (has_options()) {
  3005. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  3006. 7, *this->options_, output);
  3007. }
  3008. // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
  3009. for (unsigned int i = 0, n = this->oneof_decl_size(); i < n; i++) {
  3010. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  3011. 8, this->oneof_decl(i), output);
  3012. }
  3013. // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
  3014. for (unsigned int i = 0, n = this->reserved_range_size(); i < n; i++) {
  3015. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  3016. 9, this->reserved_range(i), output);
  3017. }
  3018. // repeated string reserved_name = 10;
  3019. for (int i = 0; i < this->reserved_name_size(); i++) {
  3020. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  3021. this->reserved_name(i).data(), this->reserved_name(i).length(),
  3022. ::google::protobuf::internal::WireFormat::SERIALIZE,
  3023. "google.protobuf.DescriptorProto.reserved_name");
  3024. ::google::protobuf::internal::WireFormatLite::WriteString(
  3025. 10, this->reserved_name(i), output);
  3026. }
  3027. if (_internal_metadata_.have_unknown_fields()) {
  3028. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  3029. unknown_fields(), output);
  3030. }
  3031. // @@protoc_insertion_point(serialize_end:google.protobuf.DescriptorProto)
  3032. }
  3033. ::google::protobuf::uint8* DescriptorProto::SerializeWithCachedSizesToArray(
  3034. ::google::protobuf::uint8* target) const {
  3035. // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.DescriptorProto)
  3036. // optional string name = 1;
  3037. if (has_name()) {
  3038. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  3039. this->name().data(), this->name().length(),
  3040. ::google::protobuf::internal::WireFormat::SERIALIZE,
  3041. "google.protobuf.DescriptorProto.name");
  3042. target =
  3043. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  3044. 1, this->name(), target);
  3045. }
  3046. // repeated .google.protobuf.FieldDescriptorProto field = 2;
  3047. for (unsigned int i = 0, n = this->field_size(); i < n; i++) {
  3048. target = ::google::protobuf::internal::WireFormatLite::
  3049. WriteMessageNoVirtualToArray(
  3050. 2, this->field(i), target);
  3051. }
  3052. // repeated .google.protobuf.DescriptorProto nested_type = 3;
  3053. for (unsigned int i = 0, n = this->nested_type_size(); i < n; i++) {
  3054. target = ::google::protobuf::internal::WireFormatLite::
  3055. WriteMessageNoVirtualToArray(
  3056. 3, this->nested_type(i), target);
  3057. }
  3058. // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
  3059. for (unsigned int i = 0, n = this->enum_type_size(); i < n; i++) {
  3060. target = ::google::protobuf::internal::WireFormatLite::
  3061. WriteMessageNoVirtualToArray(
  3062. 4, this->enum_type(i), target);
  3063. }
  3064. // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
  3065. for (unsigned int i = 0, n = this->extension_range_size(); i < n; i++) {
  3066. target = ::google::protobuf::internal::WireFormatLite::
  3067. WriteMessageNoVirtualToArray(
  3068. 5, this->extension_range(i), target);
  3069. }
  3070. // repeated .google.protobuf.FieldDescriptorProto extension = 6;
  3071. for (unsigned int i = 0, n = this->extension_size(); i < n; i++) {
  3072. target = ::google::protobuf::internal::WireFormatLite::
  3073. WriteMessageNoVirtualToArray(
  3074. 6, this->extension(i), target);
  3075. }
  3076. // optional .google.protobuf.MessageOptions options = 7;
  3077. if (has_options()) {
  3078. target = ::google::protobuf::internal::WireFormatLite::
  3079. WriteMessageNoVirtualToArray(
  3080. 7, *this->options_, target);
  3081. }
  3082. // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
  3083. for (unsigned int i = 0, n = this->oneof_decl_size(); i < n; i++) {
  3084. target = ::google::protobuf::internal::WireFormatLite::
  3085. WriteMessageNoVirtualToArray(
  3086. 8, this->oneof_decl(i), target);
  3087. }
  3088. // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
  3089. for (unsigned int i = 0, n = this->reserved_range_size(); i < n; i++) {
  3090. target = ::google::protobuf::internal::WireFormatLite::
  3091. WriteMessageNoVirtualToArray(
  3092. 9, this->reserved_range(i), target);
  3093. }
  3094. // repeated string reserved_name = 10;
  3095. for (int i = 0; i < this->reserved_name_size(); i++) {
  3096. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  3097. this->reserved_name(i).data(), this->reserved_name(i).length(),
  3098. ::google::protobuf::internal::WireFormat::SERIALIZE,
  3099. "google.protobuf.DescriptorProto.reserved_name");
  3100. target = ::google::protobuf::internal::WireFormatLite::
  3101. WriteStringToArray(10, this->reserved_name(i), target);
  3102. }
  3103. if (_internal_metadata_.have_unknown_fields()) {
  3104. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  3105. unknown_fields(), target);
  3106. }
  3107. // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.DescriptorProto)
  3108. return target;
  3109. }
  3110. int DescriptorProto::ByteSize() const {
  3111. int total_size = 0;
  3112. if (_has_bits_[0 / 32] & 129u) {
  3113. // optional string name = 1;
  3114. if (has_name()) {
  3115. total_size += 1 +
  3116. ::google::protobuf::internal::WireFormatLite::StringSize(
  3117. this->name());
  3118. }
  3119. // optional .google.protobuf.MessageOptions options = 7;
  3120. if (has_options()) {
  3121. total_size += 1 +
  3122. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  3123. *this->options_);
  3124. }
  3125. }
  3126. // repeated .google.protobuf.FieldDescriptorProto field = 2;
  3127. total_size += 1 * this->field_size();
  3128. for (int i = 0; i < this->field_size(); i++) {
  3129. total_size +=
  3130. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  3131. this->field(i));
  3132. }
  3133. // repeated .google.protobuf.FieldDescriptorProto extension = 6;
  3134. total_size += 1 * this->extension_size();
  3135. for (int i = 0; i < this->extension_size(); i++) {
  3136. total_size +=
  3137. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  3138. this->extension(i));
  3139. }
  3140. // repeated .google.protobuf.DescriptorProto nested_type = 3;
  3141. total_size += 1 * this->nested_type_size();
  3142. for (int i = 0; i < this->nested_type_size(); i++) {
  3143. total_size +=
  3144. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  3145. this->nested_type(i));
  3146. }
  3147. // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
  3148. total_size += 1 * this->enum_type_size();
  3149. for (int i = 0; i < this->enum_type_size(); i++) {
  3150. total_size +=
  3151. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  3152. this->enum_type(i));
  3153. }
  3154. // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
  3155. total_size += 1 * this->extension_range_size();
  3156. for (int i = 0; i < this->extension_range_size(); i++) {
  3157. total_size +=
  3158. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  3159. this->extension_range(i));
  3160. }
  3161. // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
  3162. total_size += 1 * this->oneof_decl_size();
  3163. for (int i = 0; i < this->oneof_decl_size(); i++) {
  3164. total_size +=
  3165. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  3166. this->oneof_decl(i));
  3167. }
  3168. // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
  3169. total_size += 1 * this->reserved_range_size();
  3170. for (int i = 0; i < this->reserved_range_size(); i++) {
  3171. total_size +=
  3172. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  3173. this->reserved_range(i));
  3174. }
  3175. // repeated string reserved_name = 10;
  3176. total_size += 1 * this->reserved_name_size();
  3177. for (int i = 0; i < this->reserved_name_size(); i++) {
  3178. total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
  3179. this->reserved_name(i));
  3180. }
  3181. if (_internal_metadata_.have_unknown_fields()) {
  3182. total_size +=
  3183. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  3184. unknown_fields());
  3185. }
  3186. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  3187. _cached_size_ = total_size;
  3188. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  3189. return total_size;
  3190. }
  3191. void DescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
  3192. if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
  3193. const DescriptorProto* source =
  3194. ::google::protobuf::internal::DynamicCastToGenerated<const DescriptorProto>(
  3195. &from);
  3196. if (source == NULL) {
  3197. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  3198. } else {
  3199. MergeFrom(*source);
  3200. }
  3201. }
  3202. void DescriptorProto::MergeFrom(const DescriptorProto& from) {
  3203. if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
  3204. field_.MergeFrom(from.field_);
  3205. extension_.MergeFrom(from.extension_);
  3206. nested_type_.MergeFrom(from.nested_type_);
  3207. enum_type_.MergeFrom(from.enum_type_);
  3208. extension_range_.MergeFrom(from.extension_range_);
  3209. oneof_decl_.MergeFrom(from.oneof_decl_);
  3210. reserved_range_.MergeFrom(from.reserved_range_);
  3211. reserved_name_.MergeFrom(from.reserved_name_);
  3212. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  3213. if (from.has_name()) {
  3214. set_has_name();
  3215. name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
  3216. }
  3217. if (from.has_options()) {
  3218. mutable_options()->::google::protobuf::MessageOptions::MergeFrom(from.options());
  3219. }
  3220. }
  3221. if (from._internal_metadata_.have_unknown_fields()) {
  3222. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  3223. }
  3224. }
  3225. void DescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
  3226. if (&from == this) return;
  3227. Clear();
  3228. MergeFrom(from);
  3229. }
  3230. void DescriptorProto::CopyFrom(const DescriptorProto& from) {
  3231. if (&from == this) return;
  3232. Clear();
  3233. MergeFrom(from);
  3234. }
  3235. bool DescriptorProto::IsInitialized() const {
  3236. if (!::google::protobuf::internal::AllAreInitialized(this->field())) return false;
  3237. if (!::google::protobuf::internal::AllAreInitialized(this->extension())) return false;
  3238. if (!::google::protobuf::internal::AllAreInitialized(this->nested_type())) return false;
  3239. if (!::google::protobuf::internal::AllAreInitialized(this->enum_type())) return false;
  3240. if (has_options()) {
  3241. if (!this->options_->IsInitialized()) return false;
  3242. }
  3243. return true;
  3244. }
  3245. void DescriptorProto::Swap(DescriptorProto* other) {
  3246. if (other == this) return;
  3247. InternalSwap(other);
  3248. }
  3249. void DescriptorProto::InternalSwap(DescriptorProto* other) {
  3250. name_.Swap(&other->name_);
  3251. field_.UnsafeArenaSwap(&other->field_);
  3252. extension_.UnsafeArenaSwap(&other->extension_);
  3253. nested_type_.UnsafeArenaSwap(&other->nested_type_);
  3254. enum_type_.UnsafeArenaSwap(&other->enum_type_);
  3255. extension_range_.UnsafeArenaSwap(&other->extension_range_);
  3256. oneof_decl_.UnsafeArenaSwap(&other->oneof_decl_);
  3257. std::swap(options_, other->options_);
  3258. reserved_range_.UnsafeArenaSwap(&other->reserved_range_);
  3259. reserved_name_.UnsafeArenaSwap(&other->reserved_name_);
  3260. std::swap(_has_bits_[0], other->_has_bits_[0]);
  3261. _internal_metadata_.Swap(&other->_internal_metadata_);
  3262. std::swap(_cached_size_, other->_cached_size_);
  3263. }
  3264. ::google::protobuf::Metadata DescriptorProto::GetMetadata() const {
  3265. protobuf_AssignDescriptorsOnce();
  3266. ::google::protobuf::Metadata metadata;
  3267. metadata.descriptor = DescriptorProto_descriptor_;
  3268. metadata.reflection = DescriptorProto_reflection_;
  3269. return metadata;
  3270. }
  3271. #if PROTOBUF_INLINE_NOT_IN_HEADERS
  3272. // DescriptorProto_ExtensionRange
  3273. // optional int32 start = 1;
  3274. bool DescriptorProto_ExtensionRange::has_start() const {
  3275. return (_has_bits_[0] & 0x00000001u) != 0;
  3276. }
  3277. void DescriptorProto_ExtensionRange::set_has_start() {
  3278. _has_bits_[0] |= 0x00000001u;
  3279. }
  3280. void DescriptorProto_ExtensionRange::clear_has_start() {
  3281. _has_bits_[0] &= ~0x00000001u;
  3282. }
  3283. void DescriptorProto_ExtensionRange::clear_start() {
  3284. start_ = 0;
  3285. clear_has_start();
  3286. }
  3287. ::google::protobuf::int32 DescriptorProto_ExtensionRange::start() const {
  3288. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ExtensionRange.start)
  3289. return start_;
  3290. }
  3291. void DescriptorProto_ExtensionRange::set_start(::google::protobuf::int32 value) {
  3292. set_has_start();
  3293. start_ = value;
  3294. // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.ExtensionRange.start)
  3295. }
  3296. // optional int32 end = 2;
  3297. bool DescriptorProto_ExtensionRange::has_end() const {
  3298. return (_has_bits_[0] & 0x00000002u) != 0;
  3299. }
  3300. void DescriptorProto_ExtensionRange::set_has_end() {
  3301. _has_bits_[0] |= 0x00000002u;
  3302. }
  3303. void DescriptorProto_ExtensionRange::clear_has_end() {
  3304. _has_bits_[0] &= ~0x00000002u;
  3305. }
  3306. void DescriptorProto_ExtensionRange::clear_end() {
  3307. end_ = 0;
  3308. clear_has_end();
  3309. }
  3310. ::google::protobuf::int32 DescriptorProto_ExtensionRange::end() const {
  3311. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ExtensionRange.end)
  3312. return end_;
  3313. }
  3314. void DescriptorProto_ExtensionRange::set_end(::google::protobuf::int32 value) {
  3315. set_has_end();
  3316. end_ = value;
  3317. // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.ExtensionRange.end)
  3318. }
  3319. // -------------------------------------------------------------------
  3320. // DescriptorProto_ReservedRange
  3321. // optional int32 start = 1;
  3322. bool DescriptorProto_ReservedRange::has_start() const {
  3323. return (_has_bits_[0] & 0x00000001u) != 0;
  3324. }
  3325. void DescriptorProto_ReservedRange::set_has_start() {
  3326. _has_bits_[0] |= 0x00000001u;
  3327. }
  3328. void DescriptorProto_ReservedRange::clear_has_start() {
  3329. _has_bits_[0] &= ~0x00000001u;
  3330. }
  3331. void DescriptorProto_ReservedRange::clear_start() {
  3332. start_ = 0;
  3333. clear_has_start();
  3334. }
  3335. ::google::protobuf::int32 DescriptorProto_ReservedRange::start() const {
  3336. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ReservedRange.start)
  3337. return start_;
  3338. }
  3339. void DescriptorProto_ReservedRange::set_start(::google::protobuf::int32 value) {
  3340. set_has_start();
  3341. start_ = value;
  3342. // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.ReservedRange.start)
  3343. }
  3344. // optional int32 end = 2;
  3345. bool DescriptorProto_ReservedRange::has_end() const {
  3346. return (_has_bits_[0] & 0x00000002u) != 0;
  3347. }
  3348. void DescriptorProto_ReservedRange::set_has_end() {
  3349. _has_bits_[0] |= 0x00000002u;
  3350. }
  3351. void DescriptorProto_ReservedRange::clear_has_end() {
  3352. _has_bits_[0] &= ~0x00000002u;
  3353. }
  3354. void DescriptorProto_ReservedRange::clear_end() {
  3355. end_ = 0;
  3356. clear_has_end();
  3357. }
  3358. ::google::protobuf::int32 DescriptorProto_ReservedRange::end() const {
  3359. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ReservedRange.end)
  3360. return end_;
  3361. }
  3362. void DescriptorProto_ReservedRange::set_end(::google::protobuf::int32 value) {
  3363. set_has_end();
  3364. end_ = value;
  3365. // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.ReservedRange.end)
  3366. }
  3367. // -------------------------------------------------------------------
  3368. // DescriptorProto
  3369. // optional string name = 1;
  3370. bool DescriptorProto::has_name() const {
  3371. return (_has_bits_[0] & 0x00000001u) != 0;
  3372. }
  3373. void DescriptorProto::set_has_name() {
  3374. _has_bits_[0] |= 0x00000001u;
  3375. }
  3376. void DescriptorProto::clear_has_name() {
  3377. _has_bits_[0] &= ~0x00000001u;
  3378. }
  3379. void DescriptorProto::clear_name() {
  3380. name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3381. clear_has_name();
  3382. }
  3383. const ::std::string& DescriptorProto::name() const {
  3384. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.name)
  3385. return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3386. }
  3387. void DescriptorProto::set_name(const ::std::string& value) {
  3388. set_has_name();
  3389. name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  3390. // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.name)
  3391. }
  3392. void DescriptorProto::set_name(const char* value) {
  3393. set_has_name();
  3394. name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  3395. // @@protoc_insertion_point(field_set_char:google.protobuf.DescriptorProto.name)
  3396. }
  3397. void DescriptorProto::set_name(const char* value, size_t size) {
  3398. set_has_name();
  3399. name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  3400. ::std::string(reinterpret_cast<const char*>(value), size));
  3401. // @@protoc_insertion_point(field_set_pointer:google.protobuf.DescriptorProto.name)
  3402. }
  3403. ::std::string* DescriptorProto::mutable_name() {
  3404. set_has_name();
  3405. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.name)
  3406. return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3407. }
  3408. ::std::string* DescriptorProto::release_name() {
  3409. clear_has_name();
  3410. return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3411. }
  3412. void DescriptorProto::set_allocated_name(::std::string* name) {
  3413. if (name != NULL) {
  3414. set_has_name();
  3415. } else {
  3416. clear_has_name();
  3417. }
  3418. name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
  3419. // @@protoc_insertion_point(field_set_allocated:google.protobuf.DescriptorProto.name)
  3420. }
  3421. // repeated .google.protobuf.FieldDescriptorProto field = 2;
  3422. int DescriptorProto::field_size() const {
  3423. return field_.size();
  3424. }
  3425. void DescriptorProto::clear_field() {
  3426. field_.Clear();
  3427. }
  3428. const ::google::protobuf::FieldDescriptorProto& DescriptorProto::field(int index) const {
  3429. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.field)
  3430. return field_.Get(index);
  3431. }
  3432. ::google::protobuf::FieldDescriptorProto* DescriptorProto::mutable_field(int index) {
  3433. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.field)
  3434. return field_.Mutable(index);
  3435. }
  3436. ::google::protobuf::FieldDescriptorProto* DescriptorProto::add_field() {
  3437. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.field)
  3438. return field_.Add();
  3439. }
  3440. ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >*
  3441. DescriptorProto::mutable_field() {
  3442. // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.field)
  3443. return &field_;
  3444. }
  3445. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >&
  3446. DescriptorProto::field() const {
  3447. // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.field)
  3448. return field_;
  3449. }
  3450. // repeated .google.protobuf.FieldDescriptorProto extension = 6;
  3451. int DescriptorProto::extension_size() const {
  3452. return extension_.size();
  3453. }
  3454. void DescriptorProto::clear_extension() {
  3455. extension_.Clear();
  3456. }
  3457. const ::google::protobuf::FieldDescriptorProto& DescriptorProto::extension(int index) const {
  3458. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.extension)
  3459. return extension_.Get(index);
  3460. }
  3461. ::google::protobuf::FieldDescriptorProto* DescriptorProto::mutable_extension(int index) {
  3462. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.extension)
  3463. return extension_.Mutable(index);
  3464. }
  3465. ::google::protobuf::FieldDescriptorProto* DescriptorProto::add_extension() {
  3466. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.extension)
  3467. return extension_.Add();
  3468. }
  3469. ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >*
  3470. DescriptorProto::mutable_extension() {
  3471. // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.extension)
  3472. return &extension_;
  3473. }
  3474. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >&
  3475. DescriptorProto::extension() const {
  3476. // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.extension)
  3477. return extension_;
  3478. }
  3479. // repeated .google.protobuf.DescriptorProto nested_type = 3;
  3480. int DescriptorProto::nested_type_size() const {
  3481. return nested_type_.size();
  3482. }
  3483. void DescriptorProto::clear_nested_type() {
  3484. nested_type_.Clear();
  3485. }
  3486. const ::google::protobuf::DescriptorProto& DescriptorProto::nested_type(int index) const {
  3487. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.nested_type)
  3488. return nested_type_.Get(index);
  3489. }
  3490. ::google::protobuf::DescriptorProto* DescriptorProto::mutable_nested_type(int index) {
  3491. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.nested_type)
  3492. return nested_type_.Mutable(index);
  3493. }
  3494. ::google::protobuf::DescriptorProto* DescriptorProto::add_nested_type() {
  3495. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.nested_type)
  3496. return nested_type_.Add();
  3497. }
  3498. ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >*
  3499. DescriptorProto::mutable_nested_type() {
  3500. // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.nested_type)
  3501. return &nested_type_;
  3502. }
  3503. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >&
  3504. DescriptorProto::nested_type() const {
  3505. // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.nested_type)
  3506. return nested_type_;
  3507. }
  3508. // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
  3509. int DescriptorProto::enum_type_size() const {
  3510. return enum_type_.size();
  3511. }
  3512. void DescriptorProto::clear_enum_type() {
  3513. enum_type_.Clear();
  3514. }
  3515. const ::google::protobuf::EnumDescriptorProto& DescriptorProto::enum_type(int index) const {
  3516. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.enum_type)
  3517. return enum_type_.Get(index);
  3518. }
  3519. ::google::protobuf::EnumDescriptorProto* DescriptorProto::mutable_enum_type(int index) {
  3520. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.enum_type)
  3521. return enum_type_.Mutable(index);
  3522. }
  3523. ::google::protobuf::EnumDescriptorProto* DescriptorProto::add_enum_type() {
  3524. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.enum_type)
  3525. return enum_type_.Add();
  3526. }
  3527. ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >*
  3528. DescriptorProto::mutable_enum_type() {
  3529. // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.enum_type)
  3530. return &enum_type_;
  3531. }
  3532. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >&
  3533. DescriptorProto::enum_type() const {
  3534. // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.enum_type)
  3535. return enum_type_;
  3536. }
  3537. // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
  3538. int DescriptorProto::extension_range_size() const {
  3539. return extension_range_.size();
  3540. }
  3541. void DescriptorProto::clear_extension_range() {
  3542. extension_range_.Clear();
  3543. }
  3544. const ::google::protobuf::DescriptorProto_ExtensionRange& DescriptorProto::extension_range(int index) const {
  3545. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.extension_range)
  3546. return extension_range_.Get(index);
  3547. }
  3548. ::google::protobuf::DescriptorProto_ExtensionRange* DescriptorProto::mutable_extension_range(int index) {
  3549. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.extension_range)
  3550. return extension_range_.Mutable(index);
  3551. }
  3552. ::google::protobuf::DescriptorProto_ExtensionRange* DescriptorProto::add_extension_range() {
  3553. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.extension_range)
  3554. return extension_range_.Add();
  3555. }
  3556. ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ExtensionRange >*
  3557. DescriptorProto::mutable_extension_range() {
  3558. // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.extension_range)
  3559. return &extension_range_;
  3560. }
  3561. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ExtensionRange >&
  3562. DescriptorProto::extension_range() const {
  3563. // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.extension_range)
  3564. return extension_range_;
  3565. }
  3566. // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
  3567. int DescriptorProto::oneof_decl_size() const {
  3568. return oneof_decl_.size();
  3569. }
  3570. void DescriptorProto::clear_oneof_decl() {
  3571. oneof_decl_.Clear();
  3572. }
  3573. const ::google::protobuf::OneofDescriptorProto& DescriptorProto::oneof_decl(int index) const {
  3574. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.oneof_decl)
  3575. return oneof_decl_.Get(index);
  3576. }
  3577. ::google::protobuf::OneofDescriptorProto* DescriptorProto::mutable_oneof_decl(int index) {
  3578. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.oneof_decl)
  3579. return oneof_decl_.Mutable(index);
  3580. }
  3581. ::google::protobuf::OneofDescriptorProto* DescriptorProto::add_oneof_decl() {
  3582. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.oneof_decl)
  3583. return oneof_decl_.Add();
  3584. }
  3585. ::google::protobuf::RepeatedPtrField< ::google::protobuf::OneofDescriptorProto >*
  3586. DescriptorProto::mutable_oneof_decl() {
  3587. // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.oneof_decl)
  3588. return &oneof_decl_;
  3589. }
  3590. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::OneofDescriptorProto >&
  3591. DescriptorProto::oneof_decl() const {
  3592. // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.oneof_decl)
  3593. return oneof_decl_;
  3594. }
  3595. // optional .google.protobuf.MessageOptions options = 7;
  3596. bool DescriptorProto::has_options() const {
  3597. return (_has_bits_[0] & 0x00000080u) != 0;
  3598. }
  3599. void DescriptorProto::set_has_options() {
  3600. _has_bits_[0] |= 0x00000080u;
  3601. }
  3602. void DescriptorProto::clear_has_options() {
  3603. _has_bits_[0] &= ~0x00000080u;
  3604. }
  3605. void DescriptorProto::clear_options() {
  3606. if (options_ != NULL) options_->::google::protobuf::MessageOptions::Clear();
  3607. clear_has_options();
  3608. }
  3609. const ::google::protobuf::MessageOptions& DescriptorProto::options() const {
  3610. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.options)
  3611. return options_ != NULL ? *options_ : *default_instance_->options_;
  3612. }
  3613. ::google::protobuf::MessageOptions* DescriptorProto::mutable_options() {
  3614. set_has_options();
  3615. if (options_ == NULL) {
  3616. options_ = new ::google::protobuf::MessageOptions;
  3617. }
  3618. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.options)
  3619. return options_;
  3620. }
  3621. ::google::protobuf::MessageOptions* DescriptorProto::release_options() {
  3622. clear_has_options();
  3623. ::google::protobuf::MessageOptions* temp = options_;
  3624. options_ = NULL;
  3625. return temp;
  3626. }
  3627. void DescriptorProto::set_allocated_options(::google::protobuf::MessageOptions* options) {
  3628. delete options_;
  3629. options_ = options;
  3630. if (options) {
  3631. set_has_options();
  3632. } else {
  3633. clear_has_options();
  3634. }
  3635. // @@protoc_insertion_point(field_set_allocated:google.protobuf.DescriptorProto.options)
  3636. }
  3637. // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
  3638. int DescriptorProto::reserved_range_size() const {
  3639. return reserved_range_.size();
  3640. }
  3641. void DescriptorProto::clear_reserved_range() {
  3642. reserved_range_.Clear();
  3643. }
  3644. const ::google::protobuf::DescriptorProto_ReservedRange& DescriptorProto::reserved_range(int index) const {
  3645. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.reserved_range)
  3646. return reserved_range_.Get(index);
  3647. }
  3648. ::google::protobuf::DescriptorProto_ReservedRange* DescriptorProto::mutable_reserved_range(int index) {
  3649. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.reserved_range)
  3650. return reserved_range_.Mutable(index);
  3651. }
  3652. ::google::protobuf::DescriptorProto_ReservedRange* DescriptorProto::add_reserved_range() {
  3653. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.reserved_range)
  3654. return reserved_range_.Add();
  3655. }
  3656. ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ReservedRange >*
  3657. DescriptorProto::mutable_reserved_range() {
  3658. // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.reserved_range)
  3659. return &reserved_range_;
  3660. }
  3661. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ReservedRange >&
  3662. DescriptorProto::reserved_range() const {
  3663. // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.reserved_range)
  3664. return reserved_range_;
  3665. }
  3666. // repeated string reserved_name = 10;
  3667. int DescriptorProto::reserved_name_size() const {
  3668. return reserved_name_.size();
  3669. }
  3670. void DescriptorProto::clear_reserved_name() {
  3671. reserved_name_.Clear();
  3672. }
  3673. const ::std::string& DescriptorProto::reserved_name(int index) const {
  3674. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.reserved_name)
  3675. return reserved_name_.Get(index);
  3676. }
  3677. ::std::string* DescriptorProto::mutable_reserved_name(int index) {
  3678. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.reserved_name)
  3679. return reserved_name_.Mutable(index);
  3680. }
  3681. void DescriptorProto::set_reserved_name(int index, const ::std::string& value) {
  3682. // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.reserved_name)
  3683. reserved_name_.Mutable(index)->assign(value);
  3684. }
  3685. void DescriptorProto::set_reserved_name(int index, const char* value) {
  3686. reserved_name_.Mutable(index)->assign(value);
  3687. // @@protoc_insertion_point(field_set_char:google.protobuf.DescriptorProto.reserved_name)
  3688. }
  3689. void DescriptorProto::set_reserved_name(int index, const char* value, size_t size) {
  3690. reserved_name_.Mutable(index)->assign(
  3691. reinterpret_cast<const char*>(value), size);
  3692. // @@protoc_insertion_point(field_set_pointer:google.protobuf.DescriptorProto.reserved_name)
  3693. }
  3694. ::std::string* DescriptorProto::add_reserved_name() {
  3695. return reserved_name_.Add();
  3696. }
  3697. void DescriptorProto::add_reserved_name(const ::std::string& value) {
  3698. reserved_name_.Add()->assign(value);
  3699. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.reserved_name)
  3700. }
  3701. void DescriptorProto::add_reserved_name(const char* value) {
  3702. reserved_name_.Add()->assign(value);
  3703. // @@protoc_insertion_point(field_add_char:google.protobuf.DescriptorProto.reserved_name)
  3704. }
  3705. void DescriptorProto::add_reserved_name(const char* value, size_t size) {
  3706. reserved_name_.Add()->assign(reinterpret_cast<const char*>(value), size);
  3707. // @@protoc_insertion_point(field_add_pointer:google.protobuf.DescriptorProto.reserved_name)
  3708. }
  3709. const ::google::protobuf::RepeatedPtrField< ::std::string>&
  3710. DescriptorProto::reserved_name() const {
  3711. // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.reserved_name)
  3712. return reserved_name_;
  3713. }
  3714. ::google::protobuf::RepeatedPtrField< ::std::string>*
  3715. DescriptorProto::mutable_reserved_name() {
  3716. // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.reserved_name)
  3717. return &reserved_name_;
  3718. }
  3719. #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
  3720. // ===================================================================
  3721. const ::google::protobuf::EnumDescriptor* FieldDescriptorProto_Type_descriptor() {
  3722. protobuf_AssignDescriptorsOnce();
  3723. return FieldDescriptorProto_Type_descriptor_;
  3724. }
  3725. bool FieldDescriptorProto_Type_IsValid(int value) {
  3726. switch(value) {
  3727. case 1:
  3728. case 2:
  3729. case 3:
  3730. case 4:
  3731. case 5:
  3732. case 6:
  3733. case 7:
  3734. case 8:
  3735. case 9:
  3736. case 10:
  3737. case 11:
  3738. case 12:
  3739. case 13:
  3740. case 14:
  3741. case 15:
  3742. case 16:
  3743. case 17:
  3744. case 18:
  3745. return true;
  3746. default:
  3747. return false;
  3748. }
  3749. }
  3750. #ifndef _MSC_VER
  3751. const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_DOUBLE;
  3752. const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_FLOAT;
  3753. const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_INT64;
  3754. const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_UINT64;
  3755. const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_INT32;
  3756. const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_FIXED64;
  3757. const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_FIXED32;
  3758. const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_BOOL_X;
  3759. const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_STRING;
  3760. const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_GROUP;
  3761. const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_MESSAGE;
  3762. const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_BYTES;
  3763. const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_UINT32;
  3764. const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_ENUM;
  3765. const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_SFIXED32;
  3766. const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_SFIXED64;
  3767. const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_SINT32;
  3768. const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_SINT64;
  3769. const FieldDescriptorProto_Type FieldDescriptorProto::Type_MIN;
  3770. const FieldDescriptorProto_Type FieldDescriptorProto::Type_MAX;
  3771. const int FieldDescriptorProto::Type_ARRAYSIZE;
  3772. #endif // _MSC_VER
  3773. const ::google::protobuf::EnumDescriptor* FieldDescriptorProto_Label_descriptor() {
  3774. protobuf_AssignDescriptorsOnce();
  3775. return FieldDescriptorProto_Label_descriptor_;
  3776. }
  3777. bool FieldDescriptorProto_Label_IsValid(int value) {
  3778. switch(value) {
  3779. case 1:
  3780. case 2:
  3781. case 3:
  3782. return true;
  3783. default:
  3784. return false;
  3785. }
  3786. }
  3787. #ifndef _MSC_VER
  3788. const FieldDescriptorProto_Label FieldDescriptorProto::LABEL_OPTIONAL;
  3789. const FieldDescriptorProto_Label FieldDescriptorProto::LABEL_REQUIRED;
  3790. const FieldDescriptorProto_Label FieldDescriptorProto::LABEL_REPEATED;
  3791. const FieldDescriptorProto_Label FieldDescriptorProto::Label_MIN;
  3792. const FieldDescriptorProto_Label FieldDescriptorProto::Label_MAX;
  3793. const int FieldDescriptorProto::Label_ARRAYSIZE;
  3794. #endif // _MSC_VER
  3795. #ifndef _MSC_VER
  3796. const int FieldDescriptorProto::kNameFieldNumber;
  3797. const int FieldDescriptorProto::kNumberFieldNumber;
  3798. const int FieldDescriptorProto::kLabelFieldNumber;
  3799. const int FieldDescriptorProto::kTypeFieldNumber;
  3800. const int FieldDescriptorProto::kTypeNameFieldNumber;
  3801. const int FieldDescriptorProto::kExtendeeFieldNumber;
  3802. const int FieldDescriptorProto::kDefaultValueFieldNumber;
  3803. const int FieldDescriptorProto::kOneofIndexFieldNumber;
  3804. const int FieldDescriptorProto::kJsonNameFieldNumber;
  3805. const int FieldDescriptorProto::kOptionsFieldNumber;
  3806. #endif // !_MSC_VER
  3807. FieldDescriptorProto::FieldDescriptorProto()
  3808. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  3809. SharedCtor();
  3810. // @@protoc_insertion_point(constructor:google.protobuf.FieldDescriptorProto)
  3811. }
  3812. void FieldDescriptorProto::InitAsDefaultInstance() {
  3813. options_ = const_cast< ::google::protobuf::FieldOptions*>(&::google::protobuf::FieldOptions::default_instance());
  3814. }
  3815. FieldDescriptorProto::FieldDescriptorProto(const FieldDescriptorProto& from)
  3816. : ::google::protobuf::Message(),
  3817. _internal_metadata_(NULL) {
  3818. SharedCtor();
  3819. MergeFrom(from);
  3820. // @@protoc_insertion_point(copy_constructor:google.protobuf.FieldDescriptorProto)
  3821. }
  3822. void FieldDescriptorProto::SharedCtor() {
  3823. ::google::protobuf::internal::GetEmptyString();
  3824. _cached_size_ = 0;
  3825. name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3826. number_ = 0;
  3827. label_ = 1;
  3828. type_ = 1;
  3829. type_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3830. extendee_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3831. default_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3832. oneof_index_ = 0;
  3833. json_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3834. options_ = NULL;
  3835. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  3836. }
  3837. FieldDescriptorProto::~FieldDescriptorProto() {
  3838. // @@protoc_insertion_point(destructor:google.protobuf.FieldDescriptorProto)
  3839. SharedDtor();
  3840. }
  3841. void FieldDescriptorProto::SharedDtor() {
  3842. name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3843. type_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3844. extendee_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3845. default_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3846. json_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3847. if (this != default_instance_) {
  3848. delete options_;
  3849. }
  3850. }
  3851. void FieldDescriptorProto::SetCachedSize(int size) const {
  3852. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  3853. _cached_size_ = size;
  3854. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  3855. }
  3856. const ::google::protobuf::Descriptor* FieldDescriptorProto::descriptor() {
  3857. protobuf_AssignDescriptorsOnce();
  3858. return FieldDescriptorProto_descriptor_;
  3859. }
  3860. const FieldDescriptorProto& FieldDescriptorProto::default_instance() {
  3861. if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  3862. return *default_instance_;
  3863. }
  3864. FieldDescriptorProto* FieldDescriptorProto::default_instance_ = NULL;
  3865. FieldDescriptorProto* FieldDescriptorProto::New(::google::protobuf::Arena* arena) const {
  3866. FieldDescriptorProto* n = new FieldDescriptorProto;
  3867. if (arena != NULL) {
  3868. arena->Own(n);
  3869. }
  3870. return n;
  3871. }
  3872. void FieldDescriptorProto::Clear() {
  3873. if (_has_bits_[0 / 32] & 255u) {
  3874. if (has_name()) {
  3875. name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3876. }
  3877. number_ = 0;
  3878. label_ = 1;
  3879. type_ = 1;
  3880. if (has_type_name()) {
  3881. type_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3882. }
  3883. if (has_extendee()) {
  3884. extendee_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3885. }
  3886. if (has_default_value()) {
  3887. default_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3888. }
  3889. oneof_index_ = 0;
  3890. }
  3891. if (_has_bits_[8 / 32] & 768u) {
  3892. if (has_json_name()) {
  3893. json_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3894. }
  3895. if (has_options()) {
  3896. if (options_ != NULL) options_->::google::protobuf::FieldOptions::Clear();
  3897. }
  3898. }
  3899. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  3900. if (_internal_metadata_.have_unknown_fields()) {
  3901. mutable_unknown_fields()->Clear();
  3902. }
  3903. }
  3904. bool FieldDescriptorProto::MergePartialFromCodedStream(
  3905. ::google::protobuf::io::CodedInputStream* input) {
  3906. #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
  3907. ::google::protobuf::uint32 tag;
  3908. // @@protoc_insertion_point(parse_start:google.protobuf.FieldDescriptorProto)
  3909. for (;;) {
  3910. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
  3911. tag = p.first;
  3912. if (!p.second) goto handle_unusual;
  3913. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  3914. // optional string name = 1;
  3915. case 1: {
  3916. if (tag == 10) {
  3917. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  3918. input, this->mutable_name()));
  3919. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  3920. this->name().data(), this->name().length(),
  3921. ::google::protobuf::internal::WireFormat::PARSE,
  3922. "google.protobuf.FieldDescriptorProto.name");
  3923. } else {
  3924. goto handle_unusual;
  3925. }
  3926. if (input->ExpectTag(18)) goto parse_extendee;
  3927. break;
  3928. }
  3929. // optional string extendee = 2;
  3930. case 2: {
  3931. if (tag == 18) {
  3932. parse_extendee:
  3933. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  3934. input, this->mutable_extendee()));
  3935. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  3936. this->extendee().data(), this->extendee().length(),
  3937. ::google::protobuf::internal::WireFormat::PARSE,
  3938. "google.protobuf.FieldDescriptorProto.extendee");
  3939. } else {
  3940. goto handle_unusual;
  3941. }
  3942. if (input->ExpectTag(24)) goto parse_number;
  3943. break;
  3944. }
  3945. // optional int32 number = 3;
  3946. case 3: {
  3947. if (tag == 24) {
  3948. parse_number:
  3949. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3950. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  3951. input, &number_)));
  3952. set_has_number();
  3953. } else {
  3954. goto handle_unusual;
  3955. }
  3956. if (input->ExpectTag(32)) goto parse_label;
  3957. break;
  3958. }
  3959. // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
  3960. case 4: {
  3961. if (tag == 32) {
  3962. parse_label:
  3963. int value;
  3964. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3965. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  3966. input, &value)));
  3967. if (::google::protobuf::FieldDescriptorProto_Label_IsValid(value)) {
  3968. set_label(static_cast< ::google::protobuf::FieldDescriptorProto_Label >(value));
  3969. } else {
  3970. mutable_unknown_fields()->AddVarint(4, value);
  3971. }
  3972. } else {
  3973. goto handle_unusual;
  3974. }
  3975. if (input->ExpectTag(40)) goto parse_type;
  3976. break;
  3977. }
  3978. // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
  3979. case 5: {
  3980. if (tag == 40) {
  3981. parse_type:
  3982. int value;
  3983. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3984. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  3985. input, &value)));
  3986. if (::google::protobuf::FieldDescriptorProto_Type_IsValid(value)) {
  3987. set_type(static_cast< ::google::protobuf::FieldDescriptorProto_Type >(value));
  3988. } else {
  3989. mutable_unknown_fields()->AddVarint(5, value);
  3990. }
  3991. } else {
  3992. goto handle_unusual;
  3993. }
  3994. if (input->ExpectTag(50)) goto parse_type_name;
  3995. break;
  3996. }
  3997. // optional string type_name = 6;
  3998. case 6: {
  3999. if (tag == 50) {
  4000. parse_type_name:
  4001. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  4002. input, this->mutable_type_name()));
  4003. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  4004. this->type_name().data(), this->type_name().length(),
  4005. ::google::protobuf::internal::WireFormat::PARSE,
  4006. "google.protobuf.FieldDescriptorProto.type_name");
  4007. } else {
  4008. goto handle_unusual;
  4009. }
  4010. if (input->ExpectTag(58)) goto parse_default_value;
  4011. break;
  4012. }
  4013. // optional string default_value = 7;
  4014. case 7: {
  4015. if (tag == 58) {
  4016. parse_default_value:
  4017. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  4018. input, this->mutable_default_value()));
  4019. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  4020. this->default_value().data(), this->default_value().length(),
  4021. ::google::protobuf::internal::WireFormat::PARSE,
  4022. "google.protobuf.FieldDescriptorProto.default_value");
  4023. } else {
  4024. goto handle_unusual;
  4025. }
  4026. if (input->ExpectTag(66)) goto parse_options;
  4027. break;
  4028. }
  4029. // optional .google.protobuf.FieldOptions options = 8;
  4030. case 8: {
  4031. if (tag == 66) {
  4032. parse_options:
  4033. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  4034. input, mutable_options()));
  4035. } else {
  4036. goto handle_unusual;
  4037. }
  4038. if (input->ExpectTag(72)) goto parse_oneof_index;
  4039. break;
  4040. }
  4041. // optional int32 oneof_index = 9;
  4042. case 9: {
  4043. if (tag == 72) {
  4044. parse_oneof_index:
  4045. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  4046. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  4047. input, &oneof_index_)));
  4048. set_has_oneof_index();
  4049. } else {
  4050. goto handle_unusual;
  4051. }
  4052. if (input->ExpectTag(82)) goto parse_json_name;
  4053. break;
  4054. }
  4055. // optional string json_name = 10;
  4056. case 10: {
  4057. if (tag == 82) {
  4058. parse_json_name:
  4059. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  4060. input, this->mutable_json_name()));
  4061. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  4062. this->json_name().data(), this->json_name().length(),
  4063. ::google::protobuf::internal::WireFormat::PARSE,
  4064. "google.protobuf.FieldDescriptorProto.json_name");
  4065. } else {
  4066. goto handle_unusual;
  4067. }
  4068. if (input->ExpectAtEnd()) goto success;
  4069. break;
  4070. }
  4071. default: {
  4072. handle_unusual:
  4073. if (tag == 0 ||
  4074. ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  4075. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  4076. goto success;
  4077. }
  4078. DO_(::google::protobuf::internal::WireFormat::SkipField(
  4079. input, tag, mutable_unknown_fields()));
  4080. break;
  4081. }
  4082. }
  4083. }
  4084. success:
  4085. // @@protoc_insertion_point(parse_success:google.protobuf.FieldDescriptorProto)
  4086. return true;
  4087. failure:
  4088. // @@protoc_insertion_point(parse_failure:google.protobuf.FieldDescriptorProto)
  4089. return false;
  4090. #undef DO_
  4091. }
  4092. void FieldDescriptorProto::SerializeWithCachedSizes(
  4093. ::google::protobuf::io::CodedOutputStream* output) const {
  4094. // @@protoc_insertion_point(serialize_start:google.protobuf.FieldDescriptorProto)
  4095. // optional string name = 1;
  4096. if (has_name()) {
  4097. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  4098. this->name().data(), this->name().length(),
  4099. ::google::protobuf::internal::WireFormat::SERIALIZE,
  4100. "google.protobuf.FieldDescriptorProto.name");
  4101. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  4102. 1, this->name(), output);
  4103. }
  4104. // optional string extendee = 2;
  4105. if (has_extendee()) {
  4106. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  4107. this->extendee().data(), this->extendee().length(),
  4108. ::google::protobuf::internal::WireFormat::SERIALIZE,
  4109. "google.protobuf.FieldDescriptorProto.extendee");
  4110. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  4111. 2, this->extendee(), output);
  4112. }
  4113. // optional int32 number = 3;
  4114. if (has_number()) {
  4115. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->number(), output);
  4116. }
  4117. // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
  4118. if (has_label()) {
  4119. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  4120. 4, this->label(), output);
  4121. }
  4122. // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
  4123. if (has_type()) {
  4124. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  4125. 5, this->type(), output);
  4126. }
  4127. // optional string type_name = 6;
  4128. if (has_type_name()) {
  4129. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  4130. this->type_name().data(), this->type_name().length(),
  4131. ::google::protobuf::internal::WireFormat::SERIALIZE,
  4132. "google.protobuf.FieldDescriptorProto.type_name");
  4133. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  4134. 6, this->type_name(), output);
  4135. }
  4136. // optional string default_value = 7;
  4137. if (has_default_value()) {
  4138. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  4139. this->default_value().data(), this->default_value().length(),
  4140. ::google::protobuf::internal::WireFormat::SERIALIZE,
  4141. "google.protobuf.FieldDescriptorProto.default_value");
  4142. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  4143. 7, this->default_value(), output);
  4144. }
  4145. // optional .google.protobuf.FieldOptions options = 8;
  4146. if (has_options()) {
  4147. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  4148. 8, *this->options_, output);
  4149. }
  4150. // optional int32 oneof_index = 9;
  4151. if (has_oneof_index()) {
  4152. ::google::protobuf::internal::WireFormatLite::WriteInt32(9, this->oneof_index(), output);
  4153. }
  4154. // optional string json_name = 10;
  4155. if (has_json_name()) {
  4156. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  4157. this->json_name().data(), this->json_name().length(),
  4158. ::google::protobuf::internal::WireFormat::SERIALIZE,
  4159. "google.protobuf.FieldDescriptorProto.json_name");
  4160. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  4161. 10, this->json_name(), output);
  4162. }
  4163. if (_internal_metadata_.have_unknown_fields()) {
  4164. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  4165. unknown_fields(), output);
  4166. }
  4167. // @@protoc_insertion_point(serialize_end:google.protobuf.FieldDescriptorProto)
  4168. }
  4169. ::google::protobuf::uint8* FieldDescriptorProto::SerializeWithCachedSizesToArray(
  4170. ::google::protobuf::uint8* target) const {
  4171. // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FieldDescriptorProto)
  4172. // optional string name = 1;
  4173. if (has_name()) {
  4174. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  4175. this->name().data(), this->name().length(),
  4176. ::google::protobuf::internal::WireFormat::SERIALIZE,
  4177. "google.protobuf.FieldDescriptorProto.name");
  4178. target =
  4179. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  4180. 1, this->name(), target);
  4181. }
  4182. // optional string extendee = 2;
  4183. if (has_extendee()) {
  4184. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  4185. this->extendee().data(), this->extendee().length(),
  4186. ::google::protobuf::internal::WireFormat::SERIALIZE,
  4187. "google.protobuf.FieldDescriptorProto.extendee");
  4188. target =
  4189. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  4190. 2, this->extendee(), target);
  4191. }
  4192. // optional int32 number = 3;
  4193. if (has_number()) {
  4194. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->number(), target);
  4195. }
  4196. // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
  4197. if (has_label()) {
  4198. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  4199. 4, this->label(), target);
  4200. }
  4201. // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
  4202. if (has_type()) {
  4203. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  4204. 5, this->type(), target);
  4205. }
  4206. // optional string type_name = 6;
  4207. if (has_type_name()) {
  4208. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  4209. this->type_name().data(), this->type_name().length(),
  4210. ::google::protobuf::internal::WireFormat::SERIALIZE,
  4211. "google.protobuf.FieldDescriptorProto.type_name");
  4212. target =
  4213. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  4214. 6, this->type_name(), target);
  4215. }
  4216. // optional string default_value = 7;
  4217. if (has_default_value()) {
  4218. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  4219. this->default_value().data(), this->default_value().length(),
  4220. ::google::protobuf::internal::WireFormat::SERIALIZE,
  4221. "google.protobuf.FieldDescriptorProto.default_value");
  4222. target =
  4223. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  4224. 7, this->default_value(), target);
  4225. }
  4226. // optional .google.protobuf.FieldOptions options = 8;
  4227. if (has_options()) {
  4228. target = ::google::protobuf::internal::WireFormatLite::
  4229. WriteMessageNoVirtualToArray(
  4230. 8, *this->options_, target);
  4231. }
  4232. // optional int32 oneof_index = 9;
  4233. if (has_oneof_index()) {
  4234. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(9, this->oneof_index(), target);
  4235. }
  4236. // optional string json_name = 10;
  4237. if (has_json_name()) {
  4238. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  4239. this->json_name().data(), this->json_name().length(),
  4240. ::google::protobuf::internal::WireFormat::SERIALIZE,
  4241. "google.protobuf.FieldDescriptorProto.json_name");
  4242. target =
  4243. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  4244. 10, this->json_name(), target);
  4245. }
  4246. if (_internal_metadata_.have_unknown_fields()) {
  4247. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  4248. unknown_fields(), target);
  4249. }
  4250. // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FieldDescriptorProto)
  4251. return target;
  4252. }
  4253. int FieldDescriptorProto::ByteSize() const {
  4254. int total_size = 0;
  4255. if (_has_bits_[0 / 32] & 255u) {
  4256. // optional string name = 1;
  4257. if (has_name()) {
  4258. total_size += 1 +
  4259. ::google::protobuf::internal::WireFormatLite::StringSize(
  4260. this->name());
  4261. }
  4262. // optional int32 number = 3;
  4263. if (has_number()) {
  4264. total_size += 1 +
  4265. ::google::protobuf::internal::WireFormatLite::Int32Size(
  4266. this->number());
  4267. }
  4268. // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
  4269. if (has_label()) {
  4270. total_size += 1 +
  4271. ::google::protobuf::internal::WireFormatLite::EnumSize(this->label());
  4272. }
  4273. // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
  4274. if (has_type()) {
  4275. total_size += 1 +
  4276. ::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
  4277. }
  4278. // optional string type_name = 6;
  4279. if (has_type_name()) {
  4280. total_size += 1 +
  4281. ::google::protobuf::internal::WireFormatLite::StringSize(
  4282. this->type_name());
  4283. }
  4284. // optional string extendee = 2;
  4285. if (has_extendee()) {
  4286. total_size += 1 +
  4287. ::google::protobuf::internal::WireFormatLite::StringSize(
  4288. this->extendee());
  4289. }
  4290. // optional string default_value = 7;
  4291. if (has_default_value()) {
  4292. total_size += 1 +
  4293. ::google::protobuf::internal::WireFormatLite::StringSize(
  4294. this->default_value());
  4295. }
  4296. // optional int32 oneof_index = 9;
  4297. if (has_oneof_index()) {
  4298. total_size += 1 +
  4299. ::google::protobuf::internal::WireFormatLite::Int32Size(
  4300. this->oneof_index());
  4301. }
  4302. }
  4303. if (_has_bits_[8 / 32] & 768u) {
  4304. // optional string json_name = 10;
  4305. if (has_json_name()) {
  4306. total_size += 1 +
  4307. ::google::protobuf::internal::WireFormatLite::StringSize(
  4308. this->json_name());
  4309. }
  4310. // optional .google.protobuf.FieldOptions options = 8;
  4311. if (has_options()) {
  4312. total_size += 1 +
  4313. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  4314. *this->options_);
  4315. }
  4316. }
  4317. if (_internal_metadata_.have_unknown_fields()) {
  4318. total_size +=
  4319. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  4320. unknown_fields());
  4321. }
  4322. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  4323. _cached_size_ = total_size;
  4324. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  4325. return total_size;
  4326. }
  4327. void FieldDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
  4328. if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
  4329. const FieldDescriptorProto* source =
  4330. ::google::protobuf::internal::DynamicCastToGenerated<const FieldDescriptorProto>(
  4331. &from);
  4332. if (source == NULL) {
  4333. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  4334. } else {
  4335. MergeFrom(*source);
  4336. }
  4337. }
  4338. void FieldDescriptorProto::MergeFrom(const FieldDescriptorProto& from) {
  4339. if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
  4340. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  4341. if (from.has_name()) {
  4342. set_has_name();
  4343. name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
  4344. }
  4345. if (from.has_number()) {
  4346. set_number(from.number());
  4347. }
  4348. if (from.has_label()) {
  4349. set_label(from.label());
  4350. }
  4351. if (from.has_type()) {
  4352. set_type(from.type());
  4353. }
  4354. if (from.has_type_name()) {
  4355. set_has_type_name();
  4356. type_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.type_name_);
  4357. }
  4358. if (from.has_extendee()) {
  4359. set_has_extendee();
  4360. extendee_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.extendee_);
  4361. }
  4362. if (from.has_default_value()) {
  4363. set_has_default_value();
  4364. default_value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.default_value_);
  4365. }
  4366. if (from.has_oneof_index()) {
  4367. set_oneof_index(from.oneof_index());
  4368. }
  4369. }
  4370. if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
  4371. if (from.has_json_name()) {
  4372. set_has_json_name();
  4373. json_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.json_name_);
  4374. }
  4375. if (from.has_options()) {
  4376. mutable_options()->::google::protobuf::FieldOptions::MergeFrom(from.options());
  4377. }
  4378. }
  4379. if (from._internal_metadata_.have_unknown_fields()) {
  4380. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  4381. }
  4382. }
  4383. void FieldDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
  4384. if (&from == this) return;
  4385. Clear();
  4386. MergeFrom(from);
  4387. }
  4388. void FieldDescriptorProto::CopyFrom(const FieldDescriptorProto& from) {
  4389. if (&from == this) return;
  4390. Clear();
  4391. MergeFrom(from);
  4392. }
  4393. bool FieldDescriptorProto::IsInitialized() const {
  4394. if (has_options()) {
  4395. if (!this->options_->IsInitialized()) return false;
  4396. }
  4397. return true;
  4398. }
  4399. void FieldDescriptorProto::Swap(FieldDescriptorProto* other) {
  4400. if (other == this) return;
  4401. InternalSwap(other);
  4402. }
  4403. void FieldDescriptorProto::InternalSwap(FieldDescriptorProto* other) {
  4404. name_.Swap(&other->name_);
  4405. std::swap(number_, other->number_);
  4406. std::swap(label_, other->label_);
  4407. std::swap(type_, other->type_);
  4408. type_name_.Swap(&other->type_name_);
  4409. extendee_.Swap(&other->extendee_);
  4410. default_value_.Swap(&other->default_value_);
  4411. std::swap(oneof_index_, other->oneof_index_);
  4412. json_name_.Swap(&other->json_name_);
  4413. std::swap(options_, other->options_);
  4414. std::swap(_has_bits_[0], other->_has_bits_[0]);
  4415. _internal_metadata_.Swap(&other->_internal_metadata_);
  4416. std::swap(_cached_size_, other->_cached_size_);
  4417. }
  4418. ::google::protobuf::Metadata FieldDescriptorProto::GetMetadata() const {
  4419. protobuf_AssignDescriptorsOnce();
  4420. ::google::protobuf::Metadata metadata;
  4421. metadata.descriptor = FieldDescriptorProto_descriptor_;
  4422. metadata.reflection = FieldDescriptorProto_reflection_;
  4423. return metadata;
  4424. }
  4425. #if PROTOBUF_INLINE_NOT_IN_HEADERS
  4426. // FieldDescriptorProto
  4427. // optional string name = 1;
  4428. bool FieldDescriptorProto::has_name() const {
  4429. return (_has_bits_[0] & 0x00000001u) != 0;
  4430. }
  4431. void FieldDescriptorProto::set_has_name() {
  4432. _has_bits_[0] |= 0x00000001u;
  4433. }
  4434. void FieldDescriptorProto::clear_has_name() {
  4435. _has_bits_[0] &= ~0x00000001u;
  4436. }
  4437. void FieldDescriptorProto::clear_name() {
  4438. name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4439. clear_has_name();
  4440. }
  4441. const ::std::string& FieldDescriptorProto::name() const {
  4442. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.name)
  4443. return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4444. }
  4445. void FieldDescriptorProto::set_name(const ::std::string& value) {
  4446. set_has_name();
  4447. name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  4448. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.name)
  4449. }
  4450. void FieldDescriptorProto::set_name(const char* value) {
  4451. set_has_name();
  4452. name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  4453. // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProto.name)
  4454. }
  4455. void FieldDescriptorProto::set_name(const char* value, size_t size) {
  4456. set_has_name();
  4457. name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  4458. ::std::string(reinterpret_cast<const char*>(value), size));
  4459. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorProto.name)
  4460. }
  4461. ::std::string* FieldDescriptorProto::mutable_name() {
  4462. set_has_name();
  4463. // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.name)
  4464. return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4465. }
  4466. ::std::string* FieldDescriptorProto::release_name() {
  4467. clear_has_name();
  4468. return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4469. }
  4470. void FieldDescriptorProto::set_allocated_name(::std::string* name) {
  4471. if (name != NULL) {
  4472. set_has_name();
  4473. } else {
  4474. clear_has_name();
  4475. }
  4476. name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
  4477. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.name)
  4478. }
  4479. // optional int32 number = 3;
  4480. bool FieldDescriptorProto::has_number() const {
  4481. return (_has_bits_[0] & 0x00000002u) != 0;
  4482. }
  4483. void FieldDescriptorProto::set_has_number() {
  4484. _has_bits_[0] |= 0x00000002u;
  4485. }
  4486. void FieldDescriptorProto::clear_has_number() {
  4487. _has_bits_[0] &= ~0x00000002u;
  4488. }
  4489. void FieldDescriptorProto::clear_number() {
  4490. number_ = 0;
  4491. clear_has_number();
  4492. }
  4493. ::google::protobuf::int32 FieldDescriptorProto::number() const {
  4494. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.number)
  4495. return number_;
  4496. }
  4497. void FieldDescriptorProto::set_number(::google::protobuf::int32 value) {
  4498. set_has_number();
  4499. number_ = value;
  4500. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.number)
  4501. }
  4502. // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
  4503. bool FieldDescriptorProto::has_label() const {
  4504. return (_has_bits_[0] & 0x00000004u) != 0;
  4505. }
  4506. void FieldDescriptorProto::set_has_label() {
  4507. _has_bits_[0] |= 0x00000004u;
  4508. }
  4509. void FieldDescriptorProto::clear_has_label() {
  4510. _has_bits_[0] &= ~0x00000004u;
  4511. }
  4512. void FieldDescriptorProto::clear_label() {
  4513. label_ = 1;
  4514. clear_has_label();
  4515. }
  4516. ::google::protobuf::FieldDescriptorProto_Label FieldDescriptorProto::label() const {
  4517. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.label)
  4518. return static_cast< ::google::protobuf::FieldDescriptorProto_Label >(label_);
  4519. }
  4520. void FieldDescriptorProto::set_label(::google::protobuf::FieldDescriptorProto_Label value) {
  4521. assert(::google::protobuf::FieldDescriptorProto_Label_IsValid(value));
  4522. set_has_label();
  4523. label_ = value;
  4524. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.label)
  4525. }
  4526. // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
  4527. bool FieldDescriptorProto::has_type() const {
  4528. return (_has_bits_[0] & 0x00000008u) != 0;
  4529. }
  4530. void FieldDescriptorProto::set_has_type() {
  4531. _has_bits_[0] |= 0x00000008u;
  4532. }
  4533. void FieldDescriptorProto::clear_has_type() {
  4534. _has_bits_[0] &= ~0x00000008u;
  4535. }
  4536. void FieldDescriptorProto::clear_type() {
  4537. type_ = 1;
  4538. clear_has_type();
  4539. }
  4540. ::google::protobuf::FieldDescriptorProto_Type FieldDescriptorProto::type() const {
  4541. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.type)
  4542. return static_cast< ::google::protobuf::FieldDescriptorProto_Type >(type_);
  4543. }
  4544. void FieldDescriptorProto::set_type(::google::protobuf::FieldDescriptorProto_Type value) {
  4545. assert(::google::protobuf::FieldDescriptorProto_Type_IsValid(value));
  4546. set_has_type();
  4547. type_ = value;
  4548. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.type)
  4549. }
  4550. // optional string type_name = 6;
  4551. bool FieldDescriptorProto::has_type_name() const {
  4552. return (_has_bits_[0] & 0x00000010u) != 0;
  4553. }
  4554. void FieldDescriptorProto::set_has_type_name() {
  4555. _has_bits_[0] |= 0x00000010u;
  4556. }
  4557. void FieldDescriptorProto::clear_has_type_name() {
  4558. _has_bits_[0] &= ~0x00000010u;
  4559. }
  4560. void FieldDescriptorProto::clear_type_name() {
  4561. type_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4562. clear_has_type_name();
  4563. }
  4564. const ::std::string& FieldDescriptorProto::type_name() const {
  4565. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.type_name)
  4566. return type_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4567. }
  4568. void FieldDescriptorProto::set_type_name(const ::std::string& value) {
  4569. set_has_type_name();
  4570. type_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  4571. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.type_name)
  4572. }
  4573. void FieldDescriptorProto::set_type_name(const char* value) {
  4574. set_has_type_name();
  4575. type_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  4576. // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProto.type_name)
  4577. }
  4578. void FieldDescriptorProto::set_type_name(const char* value, size_t size) {
  4579. set_has_type_name();
  4580. type_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  4581. ::std::string(reinterpret_cast<const char*>(value), size));
  4582. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorProto.type_name)
  4583. }
  4584. ::std::string* FieldDescriptorProto::mutable_type_name() {
  4585. set_has_type_name();
  4586. // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.type_name)
  4587. return type_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4588. }
  4589. ::std::string* FieldDescriptorProto::release_type_name() {
  4590. clear_has_type_name();
  4591. return type_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4592. }
  4593. void FieldDescriptorProto::set_allocated_type_name(::std::string* type_name) {
  4594. if (type_name != NULL) {
  4595. set_has_type_name();
  4596. } else {
  4597. clear_has_type_name();
  4598. }
  4599. type_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), type_name);
  4600. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.type_name)
  4601. }
  4602. // optional string extendee = 2;
  4603. bool FieldDescriptorProto::has_extendee() const {
  4604. return (_has_bits_[0] & 0x00000020u) != 0;
  4605. }
  4606. void FieldDescriptorProto::set_has_extendee() {
  4607. _has_bits_[0] |= 0x00000020u;
  4608. }
  4609. void FieldDescriptorProto::clear_has_extendee() {
  4610. _has_bits_[0] &= ~0x00000020u;
  4611. }
  4612. void FieldDescriptorProto::clear_extendee() {
  4613. extendee_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4614. clear_has_extendee();
  4615. }
  4616. const ::std::string& FieldDescriptorProto::extendee() const {
  4617. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.extendee)
  4618. return extendee_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4619. }
  4620. void FieldDescriptorProto::set_extendee(const ::std::string& value) {
  4621. set_has_extendee();
  4622. extendee_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  4623. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.extendee)
  4624. }
  4625. void FieldDescriptorProto::set_extendee(const char* value) {
  4626. set_has_extendee();
  4627. extendee_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  4628. // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProto.extendee)
  4629. }
  4630. void FieldDescriptorProto::set_extendee(const char* value, size_t size) {
  4631. set_has_extendee();
  4632. extendee_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  4633. ::std::string(reinterpret_cast<const char*>(value), size));
  4634. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorProto.extendee)
  4635. }
  4636. ::std::string* FieldDescriptorProto::mutable_extendee() {
  4637. set_has_extendee();
  4638. // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.extendee)
  4639. return extendee_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4640. }
  4641. ::std::string* FieldDescriptorProto::release_extendee() {
  4642. clear_has_extendee();
  4643. return extendee_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4644. }
  4645. void FieldDescriptorProto::set_allocated_extendee(::std::string* extendee) {
  4646. if (extendee != NULL) {
  4647. set_has_extendee();
  4648. } else {
  4649. clear_has_extendee();
  4650. }
  4651. extendee_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), extendee);
  4652. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.extendee)
  4653. }
  4654. // optional string default_value = 7;
  4655. bool FieldDescriptorProto::has_default_value() const {
  4656. return (_has_bits_[0] & 0x00000040u) != 0;
  4657. }
  4658. void FieldDescriptorProto::set_has_default_value() {
  4659. _has_bits_[0] |= 0x00000040u;
  4660. }
  4661. void FieldDescriptorProto::clear_has_default_value() {
  4662. _has_bits_[0] &= ~0x00000040u;
  4663. }
  4664. void FieldDescriptorProto::clear_default_value() {
  4665. default_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4666. clear_has_default_value();
  4667. }
  4668. const ::std::string& FieldDescriptorProto::default_value() const {
  4669. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.default_value)
  4670. return default_value_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4671. }
  4672. void FieldDescriptorProto::set_default_value(const ::std::string& value) {
  4673. set_has_default_value();
  4674. default_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  4675. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.default_value)
  4676. }
  4677. void FieldDescriptorProto::set_default_value(const char* value) {
  4678. set_has_default_value();
  4679. default_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  4680. // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProto.default_value)
  4681. }
  4682. void FieldDescriptorProto::set_default_value(const char* value, size_t size) {
  4683. set_has_default_value();
  4684. default_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  4685. ::std::string(reinterpret_cast<const char*>(value), size));
  4686. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorProto.default_value)
  4687. }
  4688. ::std::string* FieldDescriptorProto::mutable_default_value() {
  4689. set_has_default_value();
  4690. // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.default_value)
  4691. return default_value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4692. }
  4693. ::std::string* FieldDescriptorProto::release_default_value() {
  4694. clear_has_default_value();
  4695. return default_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4696. }
  4697. void FieldDescriptorProto::set_allocated_default_value(::std::string* default_value) {
  4698. if (default_value != NULL) {
  4699. set_has_default_value();
  4700. } else {
  4701. clear_has_default_value();
  4702. }
  4703. default_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), default_value);
  4704. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.default_value)
  4705. }
  4706. // optional int32 oneof_index = 9;
  4707. bool FieldDescriptorProto::has_oneof_index() const {
  4708. return (_has_bits_[0] & 0x00000080u) != 0;
  4709. }
  4710. void FieldDescriptorProto::set_has_oneof_index() {
  4711. _has_bits_[0] |= 0x00000080u;
  4712. }
  4713. void FieldDescriptorProto::clear_has_oneof_index() {
  4714. _has_bits_[0] &= ~0x00000080u;
  4715. }
  4716. void FieldDescriptorProto::clear_oneof_index() {
  4717. oneof_index_ = 0;
  4718. clear_has_oneof_index();
  4719. }
  4720. ::google::protobuf::int32 FieldDescriptorProto::oneof_index() const {
  4721. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.oneof_index)
  4722. return oneof_index_;
  4723. }
  4724. void FieldDescriptorProto::set_oneof_index(::google::protobuf::int32 value) {
  4725. set_has_oneof_index();
  4726. oneof_index_ = value;
  4727. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.oneof_index)
  4728. }
  4729. // optional string json_name = 10;
  4730. bool FieldDescriptorProto::has_json_name() const {
  4731. return (_has_bits_[0] & 0x00000100u) != 0;
  4732. }
  4733. void FieldDescriptorProto::set_has_json_name() {
  4734. _has_bits_[0] |= 0x00000100u;
  4735. }
  4736. void FieldDescriptorProto::clear_has_json_name() {
  4737. _has_bits_[0] &= ~0x00000100u;
  4738. }
  4739. void FieldDescriptorProto::clear_json_name() {
  4740. json_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4741. clear_has_json_name();
  4742. }
  4743. const ::std::string& FieldDescriptorProto::json_name() const {
  4744. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.json_name)
  4745. return json_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4746. }
  4747. void FieldDescriptorProto::set_json_name(const ::std::string& value) {
  4748. set_has_json_name();
  4749. json_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  4750. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.json_name)
  4751. }
  4752. void FieldDescriptorProto::set_json_name(const char* value) {
  4753. set_has_json_name();
  4754. json_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  4755. // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProto.json_name)
  4756. }
  4757. void FieldDescriptorProto::set_json_name(const char* value, size_t size) {
  4758. set_has_json_name();
  4759. json_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  4760. ::std::string(reinterpret_cast<const char*>(value), size));
  4761. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorProto.json_name)
  4762. }
  4763. ::std::string* FieldDescriptorProto::mutable_json_name() {
  4764. set_has_json_name();
  4765. // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.json_name)
  4766. return json_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4767. }
  4768. ::std::string* FieldDescriptorProto::release_json_name() {
  4769. clear_has_json_name();
  4770. return json_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4771. }
  4772. void FieldDescriptorProto::set_allocated_json_name(::std::string* json_name) {
  4773. if (json_name != NULL) {
  4774. set_has_json_name();
  4775. } else {
  4776. clear_has_json_name();
  4777. }
  4778. json_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), json_name);
  4779. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.json_name)
  4780. }
  4781. // optional .google.protobuf.FieldOptions options = 8;
  4782. bool FieldDescriptorProto::has_options() const {
  4783. return (_has_bits_[0] & 0x00000200u) != 0;
  4784. }
  4785. void FieldDescriptorProto::set_has_options() {
  4786. _has_bits_[0] |= 0x00000200u;
  4787. }
  4788. void FieldDescriptorProto::clear_has_options() {
  4789. _has_bits_[0] &= ~0x00000200u;
  4790. }
  4791. void FieldDescriptorProto::clear_options() {
  4792. if (options_ != NULL) options_->::google::protobuf::FieldOptions::Clear();
  4793. clear_has_options();
  4794. }
  4795. const ::google::protobuf::FieldOptions& FieldDescriptorProto::options() const {
  4796. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.options)
  4797. return options_ != NULL ? *options_ : *default_instance_->options_;
  4798. }
  4799. ::google::protobuf::FieldOptions* FieldDescriptorProto::mutable_options() {
  4800. set_has_options();
  4801. if (options_ == NULL) {
  4802. options_ = new ::google::protobuf::FieldOptions;
  4803. }
  4804. // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.options)
  4805. return options_;
  4806. }
  4807. ::google::protobuf::FieldOptions* FieldDescriptorProto::release_options() {
  4808. clear_has_options();
  4809. ::google::protobuf::FieldOptions* temp = options_;
  4810. options_ = NULL;
  4811. return temp;
  4812. }
  4813. void FieldDescriptorProto::set_allocated_options(::google::protobuf::FieldOptions* options) {
  4814. delete options_;
  4815. options_ = options;
  4816. if (options) {
  4817. set_has_options();
  4818. } else {
  4819. clear_has_options();
  4820. }
  4821. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.options)
  4822. }
  4823. #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
  4824. // ===================================================================
  4825. #ifndef _MSC_VER
  4826. const int OneofDescriptorProto::kNameFieldNumber;
  4827. #endif // !_MSC_VER
  4828. OneofDescriptorProto::OneofDescriptorProto()
  4829. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  4830. SharedCtor();
  4831. // @@protoc_insertion_point(constructor:google.protobuf.OneofDescriptorProto)
  4832. }
  4833. void OneofDescriptorProto::InitAsDefaultInstance() {
  4834. }
  4835. OneofDescriptorProto::OneofDescriptorProto(const OneofDescriptorProto& from)
  4836. : ::google::protobuf::Message(),
  4837. _internal_metadata_(NULL) {
  4838. SharedCtor();
  4839. MergeFrom(from);
  4840. // @@protoc_insertion_point(copy_constructor:google.protobuf.OneofDescriptorProto)
  4841. }
  4842. void OneofDescriptorProto::SharedCtor() {
  4843. ::google::protobuf::internal::GetEmptyString();
  4844. _cached_size_ = 0;
  4845. name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4846. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  4847. }
  4848. OneofDescriptorProto::~OneofDescriptorProto() {
  4849. // @@protoc_insertion_point(destructor:google.protobuf.OneofDescriptorProto)
  4850. SharedDtor();
  4851. }
  4852. void OneofDescriptorProto::SharedDtor() {
  4853. name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4854. if (this != default_instance_) {
  4855. }
  4856. }
  4857. void OneofDescriptorProto::SetCachedSize(int size) const {
  4858. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  4859. _cached_size_ = size;
  4860. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  4861. }
  4862. const ::google::protobuf::Descriptor* OneofDescriptorProto::descriptor() {
  4863. protobuf_AssignDescriptorsOnce();
  4864. return OneofDescriptorProto_descriptor_;
  4865. }
  4866. const OneofDescriptorProto& OneofDescriptorProto::default_instance() {
  4867. if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  4868. return *default_instance_;
  4869. }
  4870. OneofDescriptorProto* OneofDescriptorProto::default_instance_ = NULL;
  4871. OneofDescriptorProto* OneofDescriptorProto::New(::google::protobuf::Arena* arena) const {
  4872. OneofDescriptorProto* n = new OneofDescriptorProto;
  4873. if (arena != NULL) {
  4874. arena->Own(n);
  4875. }
  4876. return n;
  4877. }
  4878. void OneofDescriptorProto::Clear() {
  4879. if (has_name()) {
  4880. name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4881. }
  4882. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  4883. if (_internal_metadata_.have_unknown_fields()) {
  4884. mutable_unknown_fields()->Clear();
  4885. }
  4886. }
  4887. bool OneofDescriptorProto::MergePartialFromCodedStream(
  4888. ::google::protobuf::io::CodedInputStream* input) {
  4889. #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
  4890. ::google::protobuf::uint32 tag;
  4891. // @@protoc_insertion_point(parse_start:google.protobuf.OneofDescriptorProto)
  4892. for (;;) {
  4893. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
  4894. tag = p.first;
  4895. if (!p.second) goto handle_unusual;
  4896. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  4897. // optional string name = 1;
  4898. case 1: {
  4899. if (tag == 10) {
  4900. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  4901. input, this->mutable_name()));
  4902. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  4903. this->name().data(), this->name().length(),
  4904. ::google::protobuf::internal::WireFormat::PARSE,
  4905. "google.protobuf.OneofDescriptorProto.name");
  4906. } else {
  4907. goto handle_unusual;
  4908. }
  4909. if (input->ExpectAtEnd()) goto success;
  4910. break;
  4911. }
  4912. default: {
  4913. handle_unusual:
  4914. if (tag == 0 ||
  4915. ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  4916. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  4917. goto success;
  4918. }
  4919. DO_(::google::protobuf::internal::WireFormat::SkipField(
  4920. input, tag, mutable_unknown_fields()));
  4921. break;
  4922. }
  4923. }
  4924. }
  4925. success:
  4926. // @@protoc_insertion_point(parse_success:google.protobuf.OneofDescriptorProto)
  4927. return true;
  4928. failure:
  4929. // @@protoc_insertion_point(parse_failure:google.protobuf.OneofDescriptorProto)
  4930. return false;
  4931. #undef DO_
  4932. }
  4933. void OneofDescriptorProto::SerializeWithCachedSizes(
  4934. ::google::protobuf::io::CodedOutputStream* output) const {
  4935. // @@protoc_insertion_point(serialize_start:google.protobuf.OneofDescriptorProto)
  4936. // optional string name = 1;
  4937. if (has_name()) {
  4938. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  4939. this->name().data(), this->name().length(),
  4940. ::google::protobuf::internal::WireFormat::SERIALIZE,
  4941. "google.protobuf.OneofDescriptorProto.name");
  4942. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  4943. 1, this->name(), output);
  4944. }
  4945. if (_internal_metadata_.have_unknown_fields()) {
  4946. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  4947. unknown_fields(), output);
  4948. }
  4949. // @@protoc_insertion_point(serialize_end:google.protobuf.OneofDescriptorProto)
  4950. }
  4951. ::google::protobuf::uint8* OneofDescriptorProto::SerializeWithCachedSizesToArray(
  4952. ::google::protobuf::uint8* target) const {
  4953. // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.OneofDescriptorProto)
  4954. // optional string name = 1;
  4955. if (has_name()) {
  4956. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  4957. this->name().data(), this->name().length(),
  4958. ::google::protobuf::internal::WireFormat::SERIALIZE,
  4959. "google.protobuf.OneofDescriptorProto.name");
  4960. target =
  4961. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  4962. 1, this->name(), target);
  4963. }
  4964. if (_internal_metadata_.have_unknown_fields()) {
  4965. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  4966. unknown_fields(), target);
  4967. }
  4968. // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.OneofDescriptorProto)
  4969. return target;
  4970. }
  4971. int OneofDescriptorProto::ByteSize() const {
  4972. int total_size = 0;
  4973. // optional string name = 1;
  4974. if (has_name()) {
  4975. total_size += 1 +
  4976. ::google::protobuf::internal::WireFormatLite::StringSize(
  4977. this->name());
  4978. }
  4979. if (_internal_metadata_.have_unknown_fields()) {
  4980. total_size +=
  4981. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  4982. unknown_fields());
  4983. }
  4984. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  4985. _cached_size_ = total_size;
  4986. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  4987. return total_size;
  4988. }
  4989. void OneofDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
  4990. if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
  4991. const OneofDescriptorProto* source =
  4992. ::google::protobuf::internal::DynamicCastToGenerated<const OneofDescriptorProto>(
  4993. &from);
  4994. if (source == NULL) {
  4995. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  4996. } else {
  4997. MergeFrom(*source);
  4998. }
  4999. }
  5000. void OneofDescriptorProto::MergeFrom(const OneofDescriptorProto& from) {
  5001. if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
  5002. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  5003. if (from.has_name()) {
  5004. set_has_name();
  5005. name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
  5006. }
  5007. }
  5008. if (from._internal_metadata_.have_unknown_fields()) {
  5009. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  5010. }
  5011. }
  5012. void OneofDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
  5013. if (&from == this) return;
  5014. Clear();
  5015. MergeFrom(from);
  5016. }
  5017. void OneofDescriptorProto::CopyFrom(const OneofDescriptorProto& from) {
  5018. if (&from == this) return;
  5019. Clear();
  5020. MergeFrom(from);
  5021. }
  5022. bool OneofDescriptorProto::IsInitialized() const {
  5023. return true;
  5024. }
  5025. void OneofDescriptorProto::Swap(OneofDescriptorProto* other) {
  5026. if (other == this) return;
  5027. InternalSwap(other);
  5028. }
  5029. void OneofDescriptorProto::InternalSwap(OneofDescriptorProto* other) {
  5030. name_.Swap(&other->name_);
  5031. std::swap(_has_bits_[0], other->_has_bits_[0]);
  5032. _internal_metadata_.Swap(&other->_internal_metadata_);
  5033. std::swap(_cached_size_, other->_cached_size_);
  5034. }
  5035. ::google::protobuf::Metadata OneofDescriptorProto::GetMetadata() const {
  5036. protobuf_AssignDescriptorsOnce();
  5037. ::google::protobuf::Metadata metadata;
  5038. metadata.descriptor = OneofDescriptorProto_descriptor_;
  5039. metadata.reflection = OneofDescriptorProto_reflection_;
  5040. return metadata;
  5041. }
  5042. #if PROTOBUF_INLINE_NOT_IN_HEADERS
  5043. // OneofDescriptorProto
  5044. // optional string name = 1;
  5045. bool OneofDescriptorProto::has_name() const {
  5046. return (_has_bits_[0] & 0x00000001u) != 0;
  5047. }
  5048. void OneofDescriptorProto::set_has_name() {
  5049. _has_bits_[0] |= 0x00000001u;
  5050. }
  5051. void OneofDescriptorProto::clear_has_name() {
  5052. _has_bits_[0] &= ~0x00000001u;
  5053. }
  5054. void OneofDescriptorProto::clear_name() {
  5055. name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  5056. clear_has_name();
  5057. }
  5058. const ::std::string& OneofDescriptorProto::name() const {
  5059. // @@protoc_insertion_point(field_get:google.protobuf.OneofDescriptorProto.name)
  5060. return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  5061. }
  5062. void OneofDescriptorProto::set_name(const ::std::string& value) {
  5063. set_has_name();
  5064. name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  5065. // @@protoc_insertion_point(field_set:google.protobuf.OneofDescriptorProto.name)
  5066. }
  5067. void OneofDescriptorProto::set_name(const char* value) {
  5068. set_has_name();
  5069. name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  5070. // @@protoc_insertion_point(field_set_char:google.protobuf.OneofDescriptorProto.name)
  5071. }
  5072. void OneofDescriptorProto::set_name(const char* value, size_t size) {
  5073. set_has_name();
  5074. name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  5075. ::std::string(reinterpret_cast<const char*>(value), size));
  5076. // @@protoc_insertion_point(field_set_pointer:google.protobuf.OneofDescriptorProto.name)
  5077. }
  5078. ::std::string* OneofDescriptorProto::mutable_name() {
  5079. set_has_name();
  5080. // @@protoc_insertion_point(field_mutable:google.protobuf.OneofDescriptorProto.name)
  5081. return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  5082. }
  5083. ::std::string* OneofDescriptorProto::release_name() {
  5084. clear_has_name();
  5085. return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  5086. }
  5087. void OneofDescriptorProto::set_allocated_name(::std::string* name) {
  5088. if (name != NULL) {
  5089. set_has_name();
  5090. } else {
  5091. clear_has_name();
  5092. }
  5093. name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
  5094. // @@protoc_insertion_point(field_set_allocated:google.protobuf.OneofDescriptorProto.name)
  5095. }
  5096. #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
  5097. // ===================================================================
  5098. #ifndef _MSC_VER
  5099. const int EnumDescriptorProto::kNameFieldNumber;
  5100. const int EnumDescriptorProto::kValueFieldNumber;
  5101. const int EnumDescriptorProto::kOptionsFieldNumber;
  5102. #endif // !_MSC_VER
  5103. EnumDescriptorProto::EnumDescriptorProto()
  5104. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  5105. SharedCtor();
  5106. // @@protoc_insertion_point(constructor:google.protobuf.EnumDescriptorProto)
  5107. }
  5108. void EnumDescriptorProto::InitAsDefaultInstance() {
  5109. options_ = const_cast< ::google::protobuf::EnumOptions*>(&::google::protobuf::EnumOptions::default_instance());
  5110. }
  5111. EnumDescriptorProto::EnumDescriptorProto(const EnumDescriptorProto& from)
  5112. : ::google::protobuf::Message(),
  5113. _internal_metadata_(NULL) {
  5114. SharedCtor();
  5115. MergeFrom(from);
  5116. // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumDescriptorProto)
  5117. }
  5118. void EnumDescriptorProto::SharedCtor() {
  5119. ::google::protobuf::internal::GetEmptyString();
  5120. _cached_size_ = 0;
  5121. name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  5122. options_ = NULL;
  5123. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  5124. }
  5125. EnumDescriptorProto::~EnumDescriptorProto() {
  5126. // @@protoc_insertion_point(destructor:google.protobuf.EnumDescriptorProto)
  5127. SharedDtor();
  5128. }
  5129. void EnumDescriptorProto::SharedDtor() {
  5130. name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  5131. if (this != default_instance_) {
  5132. delete options_;
  5133. }
  5134. }
  5135. void EnumDescriptorProto::SetCachedSize(int size) const {
  5136. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  5137. _cached_size_ = size;
  5138. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  5139. }
  5140. const ::google::protobuf::Descriptor* EnumDescriptorProto::descriptor() {
  5141. protobuf_AssignDescriptorsOnce();
  5142. return EnumDescriptorProto_descriptor_;
  5143. }
  5144. const EnumDescriptorProto& EnumDescriptorProto::default_instance() {
  5145. if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  5146. return *default_instance_;
  5147. }
  5148. EnumDescriptorProto* EnumDescriptorProto::default_instance_ = NULL;
  5149. EnumDescriptorProto* EnumDescriptorProto::New(::google::protobuf::Arena* arena) const {
  5150. EnumDescriptorProto* n = new EnumDescriptorProto;
  5151. if (arena != NULL) {
  5152. arena->Own(n);
  5153. }
  5154. return n;
  5155. }
  5156. void EnumDescriptorProto::Clear() {
  5157. if (_has_bits_[0 / 32] & 5u) {
  5158. if (has_name()) {
  5159. name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  5160. }
  5161. if (has_options()) {
  5162. if (options_ != NULL) options_->::google::protobuf::EnumOptions::Clear();
  5163. }
  5164. }
  5165. value_.Clear();
  5166. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  5167. if (_internal_metadata_.have_unknown_fields()) {
  5168. mutable_unknown_fields()->Clear();
  5169. }
  5170. }
  5171. bool EnumDescriptorProto::MergePartialFromCodedStream(
  5172. ::google::protobuf::io::CodedInputStream* input) {
  5173. #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
  5174. ::google::protobuf::uint32 tag;
  5175. // @@protoc_insertion_point(parse_start:google.protobuf.EnumDescriptorProto)
  5176. for (;;) {
  5177. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
  5178. tag = p.first;
  5179. if (!p.second) goto handle_unusual;
  5180. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  5181. // optional string name = 1;
  5182. case 1: {
  5183. if (tag == 10) {
  5184. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  5185. input, this->mutable_name()));
  5186. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  5187. this->name().data(), this->name().length(),
  5188. ::google::protobuf::internal::WireFormat::PARSE,
  5189. "google.protobuf.EnumDescriptorProto.name");
  5190. } else {
  5191. goto handle_unusual;
  5192. }
  5193. if (input->ExpectTag(18)) goto parse_value;
  5194. break;
  5195. }
  5196. // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
  5197. case 2: {
  5198. if (tag == 18) {
  5199. parse_value:
  5200. DO_(input->IncrementRecursionDepth());
  5201. parse_loop_value:
  5202. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
  5203. input, add_value()));
  5204. } else {
  5205. goto handle_unusual;
  5206. }
  5207. if (input->ExpectTag(18)) goto parse_loop_value;
  5208. input->UnsafeDecrementRecursionDepth();
  5209. if (input->ExpectTag(26)) goto parse_options;
  5210. break;
  5211. }
  5212. // optional .google.protobuf.EnumOptions options = 3;
  5213. case 3: {
  5214. if (tag == 26) {
  5215. parse_options:
  5216. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  5217. input, mutable_options()));
  5218. } else {
  5219. goto handle_unusual;
  5220. }
  5221. if (input->ExpectAtEnd()) goto success;
  5222. break;
  5223. }
  5224. default: {
  5225. handle_unusual:
  5226. if (tag == 0 ||
  5227. ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  5228. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  5229. goto success;
  5230. }
  5231. DO_(::google::protobuf::internal::WireFormat::SkipField(
  5232. input, tag, mutable_unknown_fields()));
  5233. break;
  5234. }
  5235. }
  5236. }
  5237. success:
  5238. // @@protoc_insertion_point(parse_success:google.protobuf.EnumDescriptorProto)
  5239. return true;
  5240. failure:
  5241. // @@protoc_insertion_point(parse_failure:google.protobuf.EnumDescriptorProto)
  5242. return false;
  5243. #undef DO_
  5244. }
  5245. void EnumDescriptorProto::SerializeWithCachedSizes(
  5246. ::google::protobuf::io::CodedOutputStream* output) const {
  5247. // @@protoc_insertion_point(serialize_start:google.protobuf.EnumDescriptorProto)
  5248. // optional string name = 1;
  5249. if (has_name()) {
  5250. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  5251. this->name().data(), this->name().length(),
  5252. ::google::protobuf::internal::WireFormat::SERIALIZE,
  5253. "google.protobuf.EnumDescriptorProto.name");
  5254. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  5255. 1, this->name(), output);
  5256. }
  5257. // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
  5258. for (unsigned int i = 0, n = this->value_size(); i < n; i++) {
  5259. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  5260. 2, this->value(i), output);
  5261. }
  5262. // optional .google.protobuf.EnumOptions options = 3;
  5263. if (has_options()) {
  5264. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  5265. 3, *this->options_, output);
  5266. }
  5267. if (_internal_metadata_.have_unknown_fields()) {
  5268. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  5269. unknown_fields(), output);
  5270. }
  5271. // @@protoc_insertion_point(serialize_end:google.protobuf.EnumDescriptorProto)
  5272. }
  5273. ::google::protobuf::uint8* EnumDescriptorProto::SerializeWithCachedSizesToArray(
  5274. ::google::protobuf::uint8* target) const {
  5275. // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumDescriptorProto)
  5276. // optional string name = 1;
  5277. if (has_name()) {
  5278. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  5279. this->name().data(), this->name().length(),
  5280. ::google::protobuf::internal::WireFormat::SERIALIZE,
  5281. "google.protobuf.EnumDescriptorProto.name");
  5282. target =
  5283. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  5284. 1, this->name(), target);
  5285. }
  5286. // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
  5287. for (unsigned int i = 0, n = this->value_size(); i < n; i++) {
  5288. target = ::google::protobuf::internal::WireFormatLite::
  5289. WriteMessageNoVirtualToArray(
  5290. 2, this->value(i), target);
  5291. }
  5292. // optional .google.protobuf.EnumOptions options = 3;
  5293. if (has_options()) {
  5294. target = ::google::protobuf::internal::WireFormatLite::
  5295. WriteMessageNoVirtualToArray(
  5296. 3, *this->options_, target);
  5297. }
  5298. if (_internal_metadata_.have_unknown_fields()) {
  5299. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  5300. unknown_fields(), target);
  5301. }
  5302. // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumDescriptorProto)
  5303. return target;
  5304. }
  5305. int EnumDescriptorProto::ByteSize() const {
  5306. int total_size = 0;
  5307. if (_has_bits_[0 / 32] & 5u) {
  5308. // optional string name = 1;
  5309. if (has_name()) {
  5310. total_size += 1 +
  5311. ::google::protobuf::internal::WireFormatLite::StringSize(
  5312. this->name());
  5313. }
  5314. // optional .google.protobuf.EnumOptions options = 3;
  5315. if (has_options()) {
  5316. total_size += 1 +
  5317. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  5318. *this->options_);
  5319. }
  5320. }
  5321. // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
  5322. total_size += 1 * this->value_size();
  5323. for (int i = 0; i < this->value_size(); i++) {
  5324. total_size +=
  5325. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  5326. this->value(i));
  5327. }
  5328. if (_internal_metadata_.have_unknown_fields()) {
  5329. total_size +=
  5330. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  5331. unknown_fields());
  5332. }
  5333. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  5334. _cached_size_ = total_size;
  5335. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  5336. return total_size;
  5337. }
  5338. void EnumDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
  5339. if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
  5340. const EnumDescriptorProto* source =
  5341. ::google::protobuf::internal::DynamicCastToGenerated<const EnumDescriptorProto>(
  5342. &from);
  5343. if (source == NULL) {
  5344. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  5345. } else {
  5346. MergeFrom(*source);
  5347. }
  5348. }
  5349. void EnumDescriptorProto::MergeFrom(const EnumDescriptorProto& from) {
  5350. if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
  5351. value_.MergeFrom(from.value_);
  5352. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  5353. if (from.has_name()) {
  5354. set_has_name();
  5355. name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
  5356. }
  5357. if (from.has_options()) {
  5358. mutable_options()->::google::protobuf::EnumOptions::MergeFrom(from.options());
  5359. }
  5360. }
  5361. if (from._internal_metadata_.have_unknown_fields()) {
  5362. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  5363. }
  5364. }
  5365. void EnumDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
  5366. if (&from == this) return;
  5367. Clear();
  5368. MergeFrom(from);
  5369. }
  5370. void EnumDescriptorProto::CopyFrom(const EnumDescriptorProto& from) {
  5371. if (&from == this) return;
  5372. Clear();
  5373. MergeFrom(from);
  5374. }
  5375. bool EnumDescriptorProto::IsInitialized() const {
  5376. if (!::google::protobuf::internal::AllAreInitialized(this->value())) return false;
  5377. if (has_options()) {
  5378. if (!this->options_->IsInitialized()) return false;
  5379. }
  5380. return true;
  5381. }
  5382. void EnumDescriptorProto::Swap(EnumDescriptorProto* other) {
  5383. if (other == this) return;
  5384. InternalSwap(other);
  5385. }
  5386. void EnumDescriptorProto::InternalSwap(EnumDescriptorProto* other) {
  5387. name_.Swap(&other->name_);
  5388. value_.UnsafeArenaSwap(&other->value_);
  5389. std::swap(options_, other->options_);
  5390. std::swap(_has_bits_[0], other->_has_bits_[0]);
  5391. _internal_metadata_.Swap(&other->_internal_metadata_);
  5392. std::swap(_cached_size_, other->_cached_size_);
  5393. }
  5394. ::google::protobuf::Metadata EnumDescriptorProto::GetMetadata() const {
  5395. protobuf_AssignDescriptorsOnce();
  5396. ::google::protobuf::Metadata metadata;
  5397. metadata.descriptor = EnumDescriptorProto_descriptor_;
  5398. metadata.reflection = EnumDescriptorProto_reflection_;
  5399. return metadata;
  5400. }
  5401. #if PROTOBUF_INLINE_NOT_IN_HEADERS
  5402. // EnumDescriptorProto
  5403. // optional string name = 1;
  5404. bool EnumDescriptorProto::has_name() const {
  5405. return (_has_bits_[0] & 0x00000001u) != 0;
  5406. }
  5407. void EnumDescriptorProto::set_has_name() {
  5408. _has_bits_[0] |= 0x00000001u;
  5409. }
  5410. void EnumDescriptorProto::clear_has_name() {
  5411. _has_bits_[0] &= ~0x00000001u;
  5412. }
  5413. void EnumDescriptorProto::clear_name() {
  5414. name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  5415. clear_has_name();
  5416. }
  5417. const ::std::string& EnumDescriptorProto::name() const {
  5418. // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.name)
  5419. return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  5420. }
  5421. void EnumDescriptorProto::set_name(const ::std::string& value) {
  5422. set_has_name();
  5423. name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  5424. // @@protoc_insertion_point(field_set:google.protobuf.EnumDescriptorProto.name)
  5425. }
  5426. void EnumDescriptorProto::set_name(const char* value) {
  5427. set_has_name();
  5428. name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  5429. // @@protoc_insertion_point(field_set_char:google.protobuf.EnumDescriptorProto.name)
  5430. }
  5431. void EnumDescriptorProto::set_name(const char* value, size_t size) {
  5432. set_has_name();
  5433. name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  5434. ::std::string(reinterpret_cast<const char*>(value), size));
  5435. // @@protoc_insertion_point(field_set_pointer:google.protobuf.EnumDescriptorProto.name)
  5436. }
  5437. ::std::string* EnumDescriptorProto::mutable_name() {
  5438. set_has_name();
  5439. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto.name)
  5440. return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  5441. }
  5442. ::std::string* EnumDescriptorProto::release_name() {
  5443. clear_has_name();
  5444. return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  5445. }
  5446. void EnumDescriptorProto::set_allocated_name(::std::string* name) {
  5447. if (name != NULL) {
  5448. set_has_name();
  5449. } else {
  5450. clear_has_name();
  5451. }
  5452. name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
  5453. // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumDescriptorProto.name)
  5454. }
  5455. // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
  5456. int EnumDescriptorProto::value_size() const {
  5457. return value_.size();
  5458. }
  5459. void EnumDescriptorProto::clear_value() {
  5460. value_.Clear();
  5461. }
  5462. const ::google::protobuf::EnumValueDescriptorProto& EnumDescriptorProto::value(int index) const {
  5463. // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.value)
  5464. return value_.Get(index);
  5465. }
  5466. ::google::protobuf::EnumValueDescriptorProto* EnumDescriptorProto::mutable_value(int index) {
  5467. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto.value)
  5468. return value_.Mutable(index);
  5469. }
  5470. ::google::protobuf::EnumValueDescriptorProto* EnumDescriptorProto::add_value() {
  5471. // @@protoc_insertion_point(field_add:google.protobuf.EnumDescriptorProto.value)
  5472. return value_.Add();
  5473. }
  5474. ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescriptorProto >*
  5475. EnumDescriptorProto::mutable_value() {
  5476. // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumDescriptorProto.value)
  5477. return &value_;
  5478. }
  5479. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescriptorProto >&
  5480. EnumDescriptorProto::value() const {
  5481. // @@protoc_insertion_point(field_list:google.protobuf.EnumDescriptorProto.value)
  5482. return value_;
  5483. }
  5484. // optional .google.protobuf.EnumOptions options = 3;
  5485. bool EnumDescriptorProto::has_options() const {
  5486. return (_has_bits_[0] & 0x00000004u) != 0;
  5487. }
  5488. void EnumDescriptorProto::set_has_options() {
  5489. _has_bits_[0] |= 0x00000004u;
  5490. }
  5491. void EnumDescriptorProto::clear_has_options() {
  5492. _has_bits_[0] &= ~0x00000004u;
  5493. }
  5494. void EnumDescriptorProto::clear_options() {
  5495. if (options_ != NULL) options_->::google::protobuf::EnumOptions::Clear();
  5496. clear_has_options();
  5497. }
  5498. const ::google::protobuf::EnumOptions& EnumDescriptorProto::options() const {
  5499. // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.options)
  5500. return options_ != NULL ? *options_ : *default_instance_->options_;
  5501. }
  5502. ::google::protobuf::EnumOptions* EnumDescriptorProto::mutable_options() {
  5503. set_has_options();
  5504. if (options_ == NULL) {
  5505. options_ = new ::google::protobuf::EnumOptions;
  5506. }
  5507. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto.options)
  5508. return options_;
  5509. }
  5510. ::google::protobuf::EnumOptions* EnumDescriptorProto::release_options() {
  5511. clear_has_options();
  5512. ::google::protobuf::EnumOptions* temp = options_;
  5513. options_ = NULL;
  5514. return temp;
  5515. }
  5516. void EnumDescriptorProto::set_allocated_options(::google::protobuf::EnumOptions* options) {
  5517. delete options_;
  5518. options_ = options;
  5519. if (options) {
  5520. set_has_options();
  5521. } else {
  5522. clear_has_options();
  5523. }
  5524. // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumDescriptorProto.options)
  5525. }
  5526. #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
  5527. // ===================================================================
  5528. #ifndef _MSC_VER
  5529. const int EnumValueDescriptorProto::kNameFieldNumber;
  5530. const int EnumValueDescriptorProto::kNumberFieldNumber;
  5531. const int EnumValueDescriptorProto::kOptionsFieldNumber;
  5532. #endif // !_MSC_VER
  5533. EnumValueDescriptorProto::EnumValueDescriptorProto()
  5534. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  5535. SharedCtor();
  5536. // @@protoc_insertion_point(constructor:google.protobuf.EnumValueDescriptorProto)
  5537. }
  5538. void EnumValueDescriptorProto::InitAsDefaultInstance() {
  5539. options_ = const_cast< ::google::protobuf::EnumValueOptions*>(&::google::protobuf::EnumValueOptions::default_instance());
  5540. }
  5541. EnumValueDescriptorProto::EnumValueDescriptorProto(const EnumValueDescriptorProto& from)
  5542. : ::google::protobuf::Message(),
  5543. _internal_metadata_(NULL) {
  5544. SharedCtor();
  5545. MergeFrom(from);
  5546. // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumValueDescriptorProto)
  5547. }
  5548. void EnumValueDescriptorProto::SharedCtor() {
  5549. ::google::protobuf::internal::GetEmptyString();
  5550. _cached_size_ = 0;
  5551. name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  5552. number_ = 0;
  5553. options_ = NULL;
  5554. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  5555. }
  5556. EnumValueDescriptorProto::~EnumValueDescriptorProto() {
  5557. // @@protoc_insertion_point(destructor:google.protobuf.EnumValueDescriptorProto)
  5558. SharedDtor();
  5559. }
  5560. void EnumValueDescriptorProto::SharedDtor() {
  5561. name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  5562. if (this != default_instance_) {
  5563. delete options_;
  5564. }
  5565. }
  5566. void EnumValueDescriptorProto::SetCachedSize(int size) const {
  5567. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  5568. _cached_size_ = size;
  5569. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  5570. }
  5571. const ::google::protobuf::Descriptor* EnumValueDescriptorProto::descriptor() {
  5572. protobuf_AssignDescriptorsOnce();
  5573. return EnumValueDescriptorProto_descriptor_;
  5574. }
  5575. const EnumValueDescriptorProto& EnumValueDescriptorProto::default_instance() {
  5576. if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  5577. return *default_instance_;
  5578. }
  5579. EnumValueDescriptorProto* EnumValueDescriptorProto::default_instance_ = NULL;
  5580. EnumValueDescriptorProto* EnumValueDescriptorProto::New(::google::protobuf::Arena* arena) const {
  5581. EnumValueDescriptorProto* n = new EnumValueDescriptorProto;
  5582. if (arena != NULL) {
  5583. arena->Own(n);
  5584. }
  5585. return n;
  5586. }
  5587. void EnumValueDescriptorProto::Clear() {
  5588. if (_has_bits_[0 / 32] & 7u) {
  5589. if (has_name()) {
  5590. name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  5591. }
  5592. number_ = 0;
  5593. if (has_options()) {
  5594. if (options_ != NULL) options_->::google::protobuf::EnumValueOptions::Clear();
  5595. }
  5596. }
  5597. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  5598. if (_internal_metadata_.have_unknown_fields()) {
  5599. mutable_unknown_fields()->Clear();
  5600. }
  5601. }
  5602. bool EnumValueDescriptorProto::MergePartialFromCodedStream(
  5603. ::google::protobuf::io::CodedInputStream* input) {
  5604. #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
  5605. ::google::protobuf::uint32 tag;
  5606. // @@protoc_insertion_point(parse_start:google.protobuf.EnumValueDescriptorProto)
  5607. for (;;) {
  5608. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
  5609. tag = p.first;
  5610. if (!p.second) goto handle_unusual;
  5611. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  5612. // optional string name = 1;
  5613. case 1: {
  5614. if (tag == 10) {
  5615. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  5616. input, this->mutable_name()));
  5617. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  5618. this->name().data(), this->name().length(),
  5619. ::google::protobuf::internal::WireFormat::PARSE,
  5620. "google.protobuf.EnumValueDescriptorProto.name");
  5621. } else {
  5622. goto handle_unusual;
  5623. }
  5624. if (input->ExpectTag(16)) goto parse_number;
  5625. break;
  5626. }
  5627. // optional int32 number = 2;
  5628. case 2: {
  5629. if (tag == 16) {
  5630. parse_number:
  5631. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  5632. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  5633. input, &number_)));
  5634. set_has_number();
  5635. } else {
  5636. goto handle_unusual;
  5637. }
  5638. if (input->ExpectTag(26)) goto parse_options;
  5639. break;
  5640. }
  5641. // optional .google.protobuf.EnumValueOptions options = 3;
  5642. case 3: {
  5643. if (tag == 26) {
  5644. parse_options:
  5645. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  5646. input, mutable_options()));
  5647. } else {
  5648. goto handle_unusual;
  5649. }
  5650. if (input->ExpectAtEnd()) goto success;
  5651. break;
  5652. }
  5653. default: {
  5654. handle_unusual:
  5655. if (tag == 0 ||
  5656. ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  5657. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  5658. goto success;
  5659. }
  5660. DO_(::google::protobuf::internal::WireFormat::SkipField(
  5661. input, tag, mutable_unknown_fields()));
  5662. break;
  5663. }
  5664. }
  5665. }
  5666. success:
  5667. // @@protoc_insertion_point(parse_success:google.protobuf.EnumValueDescriptorProto)
  5668. return true;
  5669. failure:
  5670. // @@protoc_insertion_point(parse_failure:google.protobuf.EnumValueDescriptorProto)
  5671. return false;
  5672. #undef DO_
  5673. }
  5674. void EnumValueDescriptorProto::SerializeWithCachedSizes(
  5675. ::google::protobuf::io::CodedOutputStream* output) const {
  5676. // @@protoc_insertion_point(serialize_start:google.protobuf.EnumValueDescriptorProto)
  5677. // optional string name = 1;
  5678. if (has_name()) {
  5679. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  5680. this->name().data(), this->name().length(),
  5681. ::google::protobuf::internal::WireFormat::SERIALIZE,
  5682. "google.protobuf.EnumValueDescriptorProto.name");
  5683. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  5684. 1, this->name(), output);
  5685. }
  5686. // optional int32 number = 2;
  5687. if (has_number()) {
  5688. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->number(), output);
  5689. }
  5690. // optional .google.protobuf.EnumValueOptions options = 3;
  5691. if (has_options()) {
  5692. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  5693. 3, *this->options_, output);
  5694. }
  5695. if (_internal_metadata_.have_unknown_fields()) {
  5696. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  5697. unknown_fields(), output);
  5698. }
  5699. // @@protoc_insertion_point(serialize_end:google.protobuf.EnumValueDescriptorProto)
  5700. }
  5701. ::google::protobuf::uint8* EnumValueDescriptorProto::SerializeWithCachedSizesToArray(
  5702. ::google::protobuf::uint8* target) const {
  5703. // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumValueDescriptorProto)
  5704. // optional string name = 1;
  5705. if (has_name()) {
  5706. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  5707. this->name().data(), this->name().length(),
  5708. ::google::protobuf::internal::WireFormat::SERIALIZE,
  5709. "google.protobuf.EnumValueDescriptorProto.name");
  5710. target =
  5711. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  5712. 1, this->name(), target);
  5713. }
  5714. // optional int32 number = 2;
  5715. if (has_number()) {
  5716. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->number(), target);
  5717. }
  5718. // optional .google.protobuf.EnumValueOptions options = 3;
  5719. if (has_options()) {
  5720. target = ::google::protobuf::internal::WireFormatLite::
  5721. WriteMessageNoVirtualToArray(
  5722. 3, *this->options_, target);
  5723. }
  5724. if (_internal_metadata_.have_unknown_fields()) {
  5725. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  5726. unknown_fields(), target);
  5727. }
  5728. // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumValueDescriptorProto)
  5729. return target;
  5730. }
  5731. int EnumValueDescriptorProto::ByteSize() const {
  5732. int total_size = 0;
  5733. if (_has_bits_[0 / 32] & 7u) {
  5734. // optional string name = 1;
  5735. if (has_name()) {
  5736. total_size += 1 +
  5737. ::google::protobuf::internal::WireFormatLite::StringSize(
  5738. this->name());
  5739. }
  5740. // optional int32 number = 2;
  5741. if (has_number()) {
  5742. total_size += 1 +
  5743. ::google::protobuf::internal::WireFormatLite::Int32Size(
  5744. this->number());
  5745. }
  5746. // optional .google.protobuf.EnumValueOptions options = 3;
  5747. if (has_options()) {
  5748. total_size += 1 +
  5749. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  5750. *this->options_);
  5751. }
  5752. }
  5753. if (_internal_metadata_.have_unknown_fields()) {
  5754. total_size +=
  5755. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  5756. unknown_fields());
  5757. }
  5758. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  5759. _cached_size_ = total_size;
  5760. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  5761. return total_size;
  5762. }
  5763. void EnumValueDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
  5764. if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
  5765. const EnumValueDescriptorProto* source =
  5766. ::google::protobuf::internal::DynamicCastToGenerated<const EnumValueDescriptorProto>(
  5767. &from);
  5768. if (source == NULL) {
  5769. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  5770. } else {
  5771. MergeFrom(*source);
  5772. }
  5773. }
  5774. void EnumValueDescriptorProto::MergeFrom(const EnumValueDescriptorProto& from) {
  5775. if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
  5776. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  5777. if (from.has_name()) {
  5778. set_has_name();
  5779. name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
  5780. }
  5781. if (from.has_number()) {
  5782. set_number(from.number());
  5783. }
  5784. if (from.has_options()) {
  5785. mutable_options()->::google::protobuf::EnumValueOptions::MergeFrom(from.options());
  5786. }
  5787. }
  5788. if (from._internal_metadata_.have_unknown_fields()) {
  5789. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  5790. }
  5791. }
  5792. void EnumValueDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
  5793. if (&from == this) return;
  5794. Clear();
  5795. MergeFrom(from);
  5796. }
  5797. void EnumValueDescriptorProto::CopyFrom(const EnumValueDescriptorProto& from) {
  5798. if (&from == this) return;
  5799. Clear();
  5800. MergeFrom(from);
  5801. }
  5802. bool EnumValueDescriptorProto::IsInitialized() const {
  5803. if (has_options()) {
  5804. if (!this->options_->IsInitialized()) return false;
  5805. }
  5806. return true;
  5807. }
  5808. void EnumValueDescriptorProto::Swap(EnumValueDescriptorProto* other) {
  5809. if (other == this) return;
  5810. InternalSwap(other);
  5811. }
  5812. void EnumValueDescriptorProto::InternalSwap(EnumValueDescriptorProto* other) {
  5813. name_.Swap(&other->name_);
  5814. std::swap(number_, other->number_);
  5815. std::swap(options_, other->options_);
  5816. std::swap(_has_bits_[0], other->_has_bits_[0]);
  5817. _internal_metadata_.Swap(&other->_internal_metadata_);
  5818. std::swap(_cached_size_, other->_cached_size_);
  5819. }
  5820. ::google::protobuf::Metadata EnumValueDescriptorProto::GetMetadata() const {
  5821. protobuf_AssignDescriptorsOnce();
  5822. ::google::protobuf::Metadata metadata;
  5823. metadata.descriptor = EnumValueDescriptorProto_descriptor_;
  5824. metadata.reflection = EnumValueDescriptorProto_reflection_;
  5825. return metadata;
  5826. }
  5827. #if PROTOBUF_INLINE_NOT_IN_HEADERS
  5828. // EnumValueDescriptorProto
  5829. // optional string name = 1;
  5830. bool EnumValueDescriptorProto::has_name() const {
  5831. return (_has_bits_[0] & 0x00000001u) != 0;
  5832. }
  5833. void EnumValueDescriptorProto::set_has_name() {
  5834. _has_bits_[0] |= 0x00000001u;
  5835. }
  5836. void EnumValueDescriptorProto::clear_has_name() {
  5837. _has_bits_[0] &= ~0x00000001u;
  5838. }
  5839. void EnumValueDescriptorProto::clear_name() {
  5840. name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  5841. clear_has_name();
  5842. }
  5843. const ::std::string& EnumValueDescriptorProto::name() const {
  5844. // @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto.name)
  5845. return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  5846. }
  5847. void EnumValueDescriptorProto::set_name(const ::std::string& value) {
  5848. set_has_name();
  5849. name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  5850. // @@protoc_insertion_point(field_set:google.protobuf.EnumValueDescriptorProto.name)
  5851. }
  5852. void EnumValueDescriptorProto::set_name(const char* value) {
  5853. set_has_name();
  5854. name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  5855. // @@protoc_insertion_point(field_set_char:google.protobuf.EnumValueDescriptorProto.name)
  5856. }
  5857. void EnumValueDescriptorProto::set_name(const char* value, size_t size) {
  5858. set_has_name();
  5859. name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  5860. ::std::string(reinterpret_cast<const char*>(value), size));
  5861. // @@protoc_insertion_point(field_set_pointer:google.protobuf.EnumValueDescriptorProto.name)
  5862. }
  5863. ::std::string* EnumValueDescriptorProto::mutable_name() {
  5864. set_has_name();
  5865. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValueDescriptorProto.name)
  5866. return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  5867. }
  5868. ::std::string* EnumValueDescriptorProto::release_name() {
  5869. clear_has_name();
  5870. return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  5871. }
  5872. void EnumValueDescriptorProto::set_allocated_name(::std::string* name) {
  5873. if (name != NULL) {
  5874. set_has_name();
  5875. } else {
  5876. clear_has_name();
  5877. }
  5878. name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
  5879. // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumValueDescriptorProto.name)
  5880. }
  5881. // optional int32 number = 2;
  5882. bool EnumValueDescriptorProto::has_number() const {
  5883. return (_has_bits_[0] & 0x00000002u) != 0;
  5884. }
  5885. void EnumValueDescriptorProto::set_has_number() {
  5886. _has_bits_[0] |= 0x00000002u;
  5887. }
  5888. void EnumValueDescriptorProto::clear_has_number() {
  5889. _has_bits_[0] &= ~0x00000002u;
  5890. }
  5891. void EnumValueDescriptorProto::clear_number() {
  5892. number_ = 0;
  5893. clear_has_number();
  5894. }
  5895. ::google::protobuf::int32 EnumValueDescriptorProto::number() const {
  5896. // @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto.number)
  5897. return number_;
  5898. }
  5899. void EnumValueDescriptorProto::set_number(::google::protobuf::int32 value) {
  5900. set_has_number();
  5901. number_ = value;
  5902. // @@protoc_insertion_point(field_set:google.protobuf.EnumValueDescriptorProto.number)
  5903. }
  5904. // optional .google.protobuf.EnumValueOptions options = 3;
  5905. bool EnumValueDescriptorProto::has_options() const {
  5906. return (_has_bits_[0] & 0x00000004u) != 0;
  5907. }
  5908. void EnumValueDescriptorProto::set_has_options() {
  5909. _has_bits_[0] |= 0x00000004u;
  5910. }
  5911. void EnumValueDescriptorProto::clear_has_options() {
  5912. _has_bits_[0] &= ~0x00000004u;
  5913. }
  5914. void EnumValueDescriptorProto::clear_options() {
  5915. if (options_ != NULL) options_->::google::protobuf::EnumValueOptions::Clear();
  5916. clear_has_options();
  5917. }
  5918. const ::google::protobuf::EnumValueOptions& EnumValueDescriptorProto::options() const {
  5919. // @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto.options)
  5920. return options_ != NULL ? *options_ : *default_instance_->options_;
  5921. }
  5922. ::google::protobuf::EnumValueOptions* EnumValueDescriptorProto::mutable_options() {
  5923. set_has_options();
  5924. if (options_ == NULL) {
  5925. options_ = new ::google::protobuf::EnumValueOptions;
  5926. }
  5927. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValueDescriptorProto.options)
  5928. return options_;
  5929. }
  5930. ::google::protobuf::EnumValueOptions* EnumValueDescriptorProto::release_options() {
  5931. clear_has_options();
  5932. ::google::protobuf::EnumValueOptions* temp = options_;
  5933. options_ = NULL;
  5934. return temp;
  5935. }
  5936. void EnumValueDescriptorProto::set_allocated_options(::google::protobuf::EnumValueOptions* options) {
  5937. delete options_;
  5938. options_ = options;
  5939. if (options) {
  5940. set_has_options();
  5941. } else {
  5942. clear_has_options();
  5943. }
  5944. // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumValueDescriptorProto.options)
  5945. }
  5946. #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
  5947. // ===================================================================
  5948. #ifndef _MSC_VER
  5949. const int ServiceDescriptorProto::kNameFieldNumber;
  5950. const int ServiceDescriptorProto::kMethodFieldNumber;
  5951. const int ServiceDescriptorProto::kOptionsFieldNumber;
  5952. #endif // !_MSC_VER
  5953. ServiceDescriptorProto::ServiceDescriptorProto()
  5954. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  5955. SharedCtor();
  5956. // @@protoc_insertion_point(constructor:google.protobuf.ServiceDescriptorProto)
  5957. }
  5958. void ServiceDescriptorProto::InitAsDefaultInstance() {
  5959. options_ = const_cast< ::google::protobuf::ServiceOptions*>(&::google::protobuf::ServiceOptions::default_instance());
  5960. }
  5961. ServiceDescriptorProto::ServiceDescriptorProto(const ServiceDescriptorProto& from)
  5962. : ::google::protobuf::Message(),
  5963. _internal_metadata_(NULL) {
  5964. SharedCtor();
  5965. MergeFrom(from);
  5966. // @@protoc_insertion_point(copy_constructor:google.protobuf.ServiceDescriptorProto)
  5967. }
  5968. void ServiceDescriptorProto::SharedCtor() {
  5969. ::google::protobuf::internal::GetEmptyString();
  5970. _cached_size_ = 0;
  5971. name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  5972. options_ = NULL;
  5973. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  5974. }
  5975. ServiceDescriptorProto::~ServiceDescriptorProto() {
  5976. // @@protoc_insertion_point(destructor:google.protobuf.ServiceDescriptorProto)
  5977. SharedDtor();
  5978. }
  5979. void ServiceDescriptorProto::SharedDtor() {
  5980. name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  5981. if (this != default_instance_) {
  5982. delete options_;
  5983. }
  5984. }
  5985. void ServiceDescriptorProto::SetCachedSize(int size) const {
  5986. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  5987. _cached_size_ = size;
  5988. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  5989. }
  5990. const ::google::protobuf::Descriptor* ServiceDescriptorProto::descriptor() {
  5991. protobuf_AssignDescriptorsOnce();
  5992. return ServiceDescriptorProto_descriptor_;
  5993. }
  5994. const ServiceDescriptorProto& ServiceDescriptorProto::default_instance() {
  5995. if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  5996. return *default_instance_;
  5997. }
  5998. ServiceDescriptorProto* ServiceDescriptorProto::default_instance_ = NULL;
  5999. ServiceDescriptorProto* ServiceDescriptorProto::New(::google::protobuf::Arena* arena) const {
  6000. ServiceDescriptorProto* n = new ServiceDescriptorProto;
  6001. if (arena != NULL) {
  6002. arena->Own(n);
  6003. }
  6004. return n;
  6005. }
  6006. void ServiceDescriptorProto::Clear() {
  6007. if (_has_bits_[0 / 32] & 5u) {
  6008. if (has_name()) {
  6009. name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  6010. }
  6011. if (has_options()) {
  6012. if (options_ != NULL) options_->::google::protobuf::ServiceOptions::Clear();
  6013. }
  6014. }
  6015. method_.Clear();
  6016. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  6017. if (_internal_metadata_.have_unknown_fields()) {
  6018. mutable_unknown_fields()->Clear();
  6019. }
  6020. }
  6021. bool ServiceDescriptorProto::MergePartialFromCodedStream(
  6022. ::google::protobuf::io::CodedInputStream* input) {
  6023. #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
  6024. ::google::protobuf::uint32 tag;
  6025. // @@protoc_insertion_point(parse_start:google.protobuf.ServiceDescriptorProto)
  6026. for (;;) {
  6027. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
  6028. tag = p.first;
  6029. if (!p.second) goto handle_unusual;
  6030. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  6031. // optional string name = 1;
  6032. case 1: {
  6033. if (tag == 10) {
  6034. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  6035. input, this->mutable_name()));
  6036. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  6037. this->name().data(), this->name().length(),
  6038. ::google::protobuf::internal::WireFormat::PARSE,
  6039. "google.protobuf.ServiceDescriptorProto.name");
  6040. } else {
  6041. goto handle_unusual;
  6042. }
  6043. if (input->ExpectTag(18)) goto parse_method;
  6044. break;
  6045. }
  6046. // repeated .google.protobuf.MethodDescriptorProto method = 2;
  6047. case 2: {
  6048. if (tag == 18) {
  6049. parse_method:
  6050. DO_(input->IncrementRecursionDepth());
  6051. parse_loop_method:
  6052. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
  6053. input, add_method()));
  6054. } else {
  6055. goto handle_unusual;
  6056. }
  6057. if (input->ExpectTag(18)) goto parse_loop_method;
  6058. input->UnsafeDecrementRecursionDepth();
  6059. if (input->ExpectTag(26)) goto parse_options;
  6060. break;
  6061. }
  6062. // optional .google.protobuf.ServiceOptions options = 3;
  6063. case 3: {
  6064. if (tag == 26) {
  6065. parse_options:
  6066. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  6067. input, mutable_options()));
  6068. } else {
  6069. goto handle_unusual;
  6070. }
  6071. if (input->ExpectAtEnd()) goto success;
  6072. break;
  6073. }
  6074. default: {
  6075. handle_unusual:
  6076. if (tag == 0 ||
  6077. ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  6078. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  6079. goto success;
  6080. }
  6081. DO_(::google::protobuf::internal::WireFormat::SkipField(
  6082. input, tag, mutable_unknown_fields()));
  6083. break;
  6084. }
  6085. }
  6086. }
  6087. success:
  6088. // @@protoc_insertion_point(parse_success:google.protobuf.ServiceDescriptorProto)
  6089. return true;
  6090. failure:
  6091. // @@protoc_insertion_point(parse_failure:google.protobuf.ServiceDescriptorProto)
  6092. return false;
  6093. #undef DO_
  6094. }
  6095. void ServiceDescriptorProto::SerializeWithCachedSizes(
  6096. ::google::protobuf::io::CodedOutputStream* output) const {
  6097. // @@protoc_insertion_point(serialize_start:google.protobuf.ServiceDescriptorProto)
  6098. // optional string name = 1;
  6099. if (has_name()) {
  6100. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  6101. this->name().data(), this->name().length(),
  6102. ::google::protobuf::internal::WireFormat::SERIALIZE,
  6103. "google.protobuf.ServiceDescriptorProto.name");
  6104. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  6105. 1, this->name(), output);
  6106. }
  6107. // repeated .google.protobuf.MethodDescriptorProto method = 2;
  6108. for (unsigned int i = 0, n = this->method_size(); i < n; i++) {
  6109. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  6110. 2, this->method(i), output);
  6111. }
  6112. // optional .google.protobuf.ServiceOptions options = 3;
  6113. if (has_options()) {
  6114. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  6115. 3, *this->options_, output);
  6116. }
  6117. if (_internal_metadata_.have_unknown_fields()) {
  6118. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  6119. unknown_fields(), output);
  6120. }
  6121. // @@protoc_insertion_point(serialize_end:google.protobuf.ServiceDescriptorProto)
  6122. }
  6123. ::google::protobuf::uint8* ServiceDescriptorProto::SerializeWithCachedSizesToArray(
  6124. ::google::protobuf::uint8* target) const {
  6125. // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.ServiceDescriptorProto)
  6126. // optional string name = 1;
  6127. if (has_name()) {
  6128. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  6129. this->name().data(), this->name().length(),
  6130. ::google::protobuf::internal::WireFormat::SERIALIZE,
  6131. "google.protobuf.ServiceDescriptorProto.name");
  6132. target =
  6133. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  6134. 1, this->name(), target);
  6135. }
  6136. // repeated .google.protobuf.MethodDescriptorProto method = 2;
  6137. for (unsigned int i = 0, n = this->method_size(); i < n; i++) {
  6138. target = ::google::protobuf::internal::WireFormatLite::
  6139. WriteMessageNoVirtualToArray(
  6140. 2, this->method(i), target);
  6141. }
  6142. // optional .google.protobuf.ServiceOptions options = 3;
  6143. if (has_options()) {
  6144. target = ::google::protobuf::internal::WireFormatLite::
  6145. WriteMessageNoVirtualToArray(
  6146. 3, *this->options_, target);
  6147. }
  6148. if (_internal_metadata_.have_unknown_fields()) {
  6149. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  6150. unknown_fields(), target);
  6151. }
  6152. // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.ServiceDescriptorProto)
  6153. return target;
  6154. }
  6155. int ServiceDescriptorProto::ByteSize() const {
  6156. int total_size = 0;
  6157. if (_has_bits_[0 / 32] & 5u) {
  6158. // optional string name = 1;
  6159. if (has_name()) {
  6160. total_size += 1 +
  6161. ::google::protobuf::internal::WireFormatLite::StringSize(
  6162. this->name());
  6163. }
  6164. // optional .google.protobuf.ServiceOptions options = 3;
  6165. if (has_options()) {
  6166. total_size += 1 +
  6167. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  6168. *this->options_);
  6169. }
  6170. }
  6171. // repeated .google.protobuf.MethodDescriptorProto method = 2;
  6172. total_size += 1 * this->method_size();
  6173. for (int i = 0; i < this->method_size(); i++) {
  6174. total_size +=
  6175. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  6176. this->method(i));
  6177. }
  6178. if (_internal_metadata_.have_unknown_fields()) {
  6179. total_size +=
  6180. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  6181. unknown_fields());
  6182. }
  6183. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  6184. _cached_size_ = total_size;
  6185. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  6186. return total_size;
  6187. }
  6188. void ServiceDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
  6189. if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
  6190. const ServiceDescriptorProto* source =
  6191. ::google::protobuf::internal::DynamicCastToGenerated<const ServiceDescriptorProto>(
  6192. &from);
  6193. if (source == NULL) {
  6194. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  6195. } else {
  6196. MergeFrom(*source);
  6197. }
  6198. }
  6199. void ServiceDescriptorProto::MergeFrom(const ServiceDescriptorProto& from) {
  6200. if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
  6201. method_.MergeFrom(from.method_);
  6202. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  6203. if (from.has_name()) {
  6204. set_has_name();
  6205. name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
  6206. }
  6207. if (from.has_options()) {
  6208. mutable_options()->::google::protobuf::ServiceOptions::MergeFrom(from.options());
  6209. }
  6210. }
  6211. if (from._internal_metadata_.have_unknown_fields()) {
  6212. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  6213. }
  6214. }
  6215. void ServiceDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
  6216. if (&from == this) return;
  6217. Clear();
  6218. MergeFrom(from);
  6219. }
  6220. void ServiceDescriptorProto::CopyFrom(const ServiceDescriptorProto& from) {
  6221. if (&from == this) return;
  6222. Clear();
  6223. MergeFrom(from);
  6224. }
  6225. bool ServiceDescriptorProto::IsInitialized() const {
  6226. if (!::google::protobuf::internal::AllAreInitialized(this->method())) return false;
  6227. if (has_options()) {
  6228. if (!this->options_->IsInitialized()) return false;
  6229. }
  6230. return true;
  6231. }
  6232. void ServiceDescriptorProto::Swap(ServiceDescriptorProto* other) {
  6233. if (other == this) return;
  6234. InternalSwap(other);
  6235. }
  6236. void ServiceDescriptorProto::InternalSwap(ServiceDescriptorProto* other) {
  6237. name_.Swap(&other->name_);
  6238. method_.UnsafeArenaSwap(&other->method_);
  6239. std::swap(options_, other->options_);
  6240. std::swap(_has_bits_[0], other->_has_bits_[0]);
  6241. _internal_metadata_.Swap(&other->_internal_metadata_);
  6242. std::swap(_cached_size_, other->_cached_size_);
  6243. }
  6244. ::google::protobuf::Metadata ServiceDescriptorProto::GetMetadata() const {
  6245. protobuf_AssignDescriptorsOnce();
  6246. ::google::protobuf::Metadata metadata;
  6247. metadata.descriptor = ServiceDescriptorProto_descriptor_;
  6248. metadata.reflection = ServiceDescriptorProto_reflection_;
  6249. return metadata;
  6250. }
  6251. #if PROTOBUF_INLINE_NOT_IN_HEADERS
  6252. // ServiceDescriptorProto
  6253. // optional string name = 1;
  6254. bool ServiceDescriptorProto::has_name() const {
  6255. return (_has_bits_[0] & 0x00000001u) != 0;
  6256. }
  6257. void ServiceDescriptorProto::set_has_name() {
  6258. _has_bits_[0] |= 0x00000001u;
  6259. }
  6260. void ServiceDescriptorProto::clear_has_name() {
  6261. _has_bits_[0] &= ~0x00000001u;
  6262. }
  6263. void ServiceDescriptorProto::clear_name() {
  6264. name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  6265. clear_has_name();
  6266. }
  6267. const ::std::string& ServiceDescriptorProto::name() const {
  6268. // @@protoc_insertion_point(field_get:google.protobuf.ServiceDescriptorProto.name)
  6269. return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  6270. }
  6271. void ServiceDescriptorProto::set_name(const ::std::string& value) {
  6272. set_has_name();
  6273. name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  6274. // @@protoc_insertion_point(field_set:google.protobuf.ServiceDescriptorProto.name)
  6275. }
  6276. void ServiceDescriptorProto::set_name(const char* value) {
  6277. set_has_name();
  6278. name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  6279. // @@protoc_insertion_point(field_set_char:google.protobuf.ServiceDescriptorProto.name)
  6280. }
  6281. void ServiceDescriptorProto::set_name(const char* value, size_t size) {
  6282. set_has_name();
  6283. name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  6284. ::std::string(reinterpret_cast<const char*>(value), size));
  6285. // @@protoc_insertion_point(field_set_pointer:google.protobuf.ServiceDescriptorProto.name)
  6286. }
  6287. ::std::string* ServiceDescriptorProto::mutable_name() {
  6288. set_has_name();
  6289. // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceDescriptorProto.name)
  6290. return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  6291. }
  6292. ::std::string* ServiceDescriptorProto::release_name() {
  6293. clear_has_name();
  6294. return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  6295. }
  6296. void ServiceDescriptorProto::set_allocated_name(::std::string* name) {
  6297. if (name != NULL) {
  6298. set_has_name();
  6299. } else {
  6300. clear_has_name();
  6301. }
  6302. name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
  6303. // @@protoc_insertion_point(field_set_allocated:google.protobuf.ServiceDescriptorProto.name)
  6304. }
  6305. // repeated .google.protobuf.MethodDescriptorProto method = 2;
  6306. int ServiceDescriptorProto::method_size() const {
  6307. return method_.size();
  6308. }
  6309. void ServiceDescriptorProto::clear_method() {
  6310. method_.Clear();
  6311. }
  6312. const ::google::protobuf::MethodDescriptorProto& ServiceDescriptorProto::method(int index) const {
  6313. // @@protoc_insertion_point(field_get:google.protobuf.ServiceDescriptorProto.method)
  6314. return method_.Get(index);
  6315. }
  6316. ::google::protobuf::MethodDescriptorProto* ServiceDescriptorProto::mutable_method(int index) {
  6317. // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceDescriptorProto.method)
  6318. return method_.Mutable(index);
  6319. }
  6320. ::google::protobuf::MethodDescriptorProto* ServiceDescriptorProto::add_method() {
  6321. // @@protoc_insertion_point(field_add:google.protobuf.ServiceDescriptorProto.method)
  6322. return method_.Add();
  6323. }
  6324. ::google::protobuf::RepeatedPtrField< ::google::protobuf::MethodDescriptorProto >*
  6325. ServiceDescriptorProto::mutable_method() {
  6326. // @@protoc_insertion_point(field_mutable_list:google.protobuf.ServiceDescriptorProto.method)
  6327. return &method_;
  6328. }
  6329. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::MethodDescriptorProto >&
  6330. ServiceDescriptorProto::method() const {
  6331. // @@protoc_insertion_point(field_list:google.protobuf.ServiceDescriptorProto.method)
  6332. return method_;
  6333. }
  6334. // optional .google.protobuf.ServiceOptions options = 3;
  6335. bool ServiceDescriptorProto::has_options() const {
  6336. return (_has_bits_[0] & 0x00000004u) != 0;
  6337. }
  6338. void ServiceDescriptorProto::set_has_options() {
  6339. _has_bits_[0] |= 0x00000004u;
  6340. }
  6341. void ServiceDescriptorProto::clear_has_options() {
  6342. _has_bits_[0] &= ~0x00000004u;
  6343. }
  6344. void ServiceDescriptorProto::clear_options() {
  6345. if (options_ != NULL) options_->::google::protobuf::ServiceOptions::Clear();
  6346. clear_has_options();
  6347. }
  6348. const ::google::protobuf::ServiceOptions& ServiceDescriptorProto::options() const {
  6349. // @@protoc_insertion_point(field_get:google.protobuf.ServiceDescriptorProto.options)
  6350. return options_ != NULL ? *options_ : *default_instance_->options_;
  6351. }
  6352. ::google::protobuf::ServiceOptions* ServiceDescriptorProto::mutable_options() {
  6353. set_has_options();
  6354. if (options_ == NULL) {
  6355. options_ = new ::google::protobuf::ServiceOptions;
  6356. }
  6357. // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceDescriptorProto.options)
  6358. return options_;
  6359. }
  6360. ::google::protobuf::ServiceOptions* ServiceDescriptorProto::release_options() {
  6361. clear_has_options();
  6362. ::google::protobuf::ServiceOptions* temp = options_;
  6363. options_ = NULL;
  6364. return temp;
  6365. }
  6366. void ServiceDescriptorProto::set_allocated_options(::google::protobuf::ServiceOptions* options) {
  6367. delete options_;
  6368. options_ = options;
  6369. if (options) {
  6370. set_has_options();
  6371. } else {
  6372. clear_has_options();
  6373. }
  6374. // @@protoc_insertion_point(field_set_allocated:google.protobuf.ServiceDescriptorProto.options)
  6375. }
  6376. #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
  6377. // ===================================================================
  6378. #ifndef _MSC_VER
  6379. const int MethodDescriptorProto::kNameFieldNumber;
  6380. const int MethodDescriptorProto::kInputTypeFieldNumber;
  6381. const int MethodDescriptorProto::kOutputTypeFieldNumber;
  6382. const int MethodDescriptorProto::kOptionsFieldNumber;
  6383. const int MethodDescriptorProto::kClientStreamingFieldNumber;
  6384. const int MethodDescriptorProto::kServerStreamingFieldNumber;
  6385. #endif // !_MSC_VER
  6386. MethodDescriptorProto::MethodDescriptorProto()
  6387. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  6388. SharedCtor();
  6389. // @@protoc_insertion_point(constructor:google.protobuf.MethodDescriptorProto)
  6390. }
  6391. void MethodDescriptorProto::InitAsDefaultInstance() {
  6392. options_ = const_cast< ::google::protobuf::MethodOptions*>(&::google::protobuf::MethodOptions::default_instance());
  6393. }
  6394. MethodDescriptorProto::MethodDescriptorProto(const MethodDescriptorProto& from)
  6395. : ::google::protobuf::Message(),
  6396. _internal_metadata_(NULL) {
  6397. SharedCtor();
  6398. MergeFrom(from);
  6399. // @@protoc_insertion_point(copy_constructor:google.protobuf.MethodDescriptorProto)
  6400. }
  6401. void MethodDescriptorProto::SharedCtor() {
  6402. ::google::protobuf::internal::GetEmptyString();
  6403. _cached_size_ = 0;
  6404. name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  6405. input_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  6406. output_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  6407. options_ = NULL;
  6408. client_streaming_ = false;
  6409. server_streaming_ = false;
  6410. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  6411. }
  6412. MethodDescriptorProto::~MethodDescriptorProto() {
  6413. // @@protoc_insertion_point(destructor:google.protobuf.MethodDescriptorProto)
  6414. SharedDtor();
  6415. }
  6416. void MethodDescriptorProto::SharedDtor() {
  6417. name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  6418. input_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  6419. output_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  6420. if (this != default_instance_) {
  6421. delete options_;
  6422. }
  6423. }
  6424. void MethodDescriptorProto::SetCachedSize(int size) const {
  6425. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  6426. _cached_size_ = size;
  6427. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  6428. }
  6429. const ::google::protobuf::Descriptor* MethodDescriptorProto::descriptor() {
  6430. protobuf_AssignDescriptorsOnce();
  6431. return MethodDescriptorProto_descriptor_;
  6432. }
  6433. const MethodDescriptorProto& MethodDescriptorProto::default_instance() {
  6434. if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  6435. return *default_instance_;
  6436. }
  6437. MethodDescriptorProto* MethodDescriptorProto::default_instance_ = NULL;
  6438. MethodDescriptorProto* MethodDescriptorProto::New(::google::protobuf::Arena* arena) const {
  6439. MethodDescriptorProto* n = new MethodDescriptorProto;
  6440. if (arena != NULL) {
  6441. arena->Own(n);
  6442. }
  6443. return n;
  6444. }
  6445. void MethodDescriptorProto::Clear() {
  6446. #define ZR_HELPER_(f) reinterpret_cast<char*>(\
  6447. &reinterpret_cast<MethodDescriptorProto*>(16)->f)
  6448. #define ZR_(first, last) do {\
  6449. ::memset(&first, 0,\
  6450. ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\
  6451. } while (0)
  6452. if (_has_bits_[0 / 32] & 63u) {
  6453. ZR_(client_streaming_, server_streaming_);
  6454. if (has_name()) {
  6455. name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  6456. }
  6457. if (has_input_type()) {
  6458. input_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  6459. }
  6460. if (has_output_type()) {
  6461. output_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  6462. }
  6463. if (has_options()) {
  6464. if (options_ != NULL) options_->::google::protobuf::MethodOptions::Clear();
  6465. }
  6466. }
  6467. #undef ZR_HELPER_
  6468. #undef ZR_
  6469. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  6470. if (_internal_metadata_.have_unknown_fields()) {
  6471. mutable_unknown_fields()->Clear();
  6472. }
  6473. }
  6474. bool MethodDescriptorProto::MergePartialFromCodedStream(
  6475. ::google::protobuf::io::CodedInputStream* input) {
  6476. #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
  6477. ::google::protobuf::uint32 tag;
  6478. // @@protoc_insertion_point(parse_start:google.protobuf.MethodDescriptorProto)
  6479. for (;;) {
  6480. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
  6481. tag = p.first;
  6482. if (!p.second) goto handle_unusual;
  6483. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  6484. // optional string name = 1;
  6485. case 1: {
  6486. if (tag == 10) {
  6487. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  6488. input, this->mutable_name()));
  6489. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  6490. this->name().data(), this->name().length(),
  6491. ::google::protobuf::internal::WireFormat::PARSE,
  6492. "google.protobuf.MethodDescriptorProto.name");
  6493. } else {
  6494. goto handle_unusual;
  6495. }
  6496. if (input->ExpectTag(18)) goto parse_input_type;
  6497. break;
  6498. }
  6499. // optional string input_type = 2;
  6500. case 2: {
  6501. if (tag == 18) {
  6502. parse_input_type:
  6503. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  6504. input, this->mutable_input_type()));
  6505. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  6506. this->input_type().data(), this->input_type().length(),
  6507. ::google::protobuf::internal::WireFormat::PARSE,
  6508. "google.protobuf.MethodDescriptorProto.input_type");
  6509. } else {
  6510. goto handle_unusual;
  6511. }
  6512. if (input->ExpectTag(26)) goto parse_output_type;
  6513. break;
  6514. }
  6515. // optional string output_type = 3;
  6516. case 3: {
  6517. if (tag == 26) {
  6518. parse_output_type:
  6519. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  6520. input, this->mutable_output_type()));
  6521. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  6522. this->output_type().data(), this->output_type().length(),
  6523. ::google::protobuf::internal::WireFormat::PARSE,
  6524. "google.protobuf.MethodDescriptorProto.output_type");
  6525. } else {
  6526. goto handle_unusual;
  6527. }
  6528. if (input->ExpectTag(34)) goto parse_options;
  6529. break;
  6530. }
  6531. // optional .google.protobuf.MethodOptions options = 4;
  6532. case 4: {
  6533. if (tag == 34) {
  6534. parse_options:
  6535. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  6536. input, mutable_options()));
  6537. } else {
  6538. goto handle_unusual;
  6539. }
  6540. if (input->ExpectTag(40)) goto parse_client_streaming;
  6541. break;
  6542. }
  6543. // optional bool client_streaming = 5 [default = false];
  6544. case 5: {
  6545. if (tag == 40) {
  6546. parse_client_streaming:
  6547. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  6548. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL_X>(
  6549. input, &client_streaming_)));
  6550. set_has_client_streaming();
  6551. } else {
  6552. goto handle_unusual;
  6553. }
  6554. if (input->ExpectTag(48)) goto parse_server_streaming;
  6555. break;
  6556. }
  6557. // optional bool server_streaming = 6 [default = false];
  6558. case 6: {
  6559. if (tag == 48) {
  6560. parse_server_streaming:
  6561. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  6562. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL_X>(
  6563. input, &server_streaming_)));
  6564. set_has_server_streaming();
  6565. } else {
  6566. goto handle_unusual;
  6567. }
  6568. if (input->ExpectAtEnd()) goto success;
  6569. break;
  6570. }
  6571. default: {
  6572. handle_unusual:
  6573. if (tag == 0 ||
  6574. ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  6575. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  6576. goto success;
  6577. }
  6578. DO_(::google::protobuf::internal::WireFormat::SkipField(
  6579. input, tag, mutable_unknown_fields()));
  6580. break;
  6581. }
  6582. }
  6583. }
  6584. success:
  6585. // @@protoc_insertion_point(parse_success:google.protobuf.MethodDescriptorProto)
  6586. return true;
  6587. failure:
  6588. // @@protoc_insertion_point(parse_failure:google.protobuf.MethodDescriptorProto)
  6589. return false;
  6590. #undef DO_
  6591. }
  6592. void MethodDescriptorProto::SerializeWithCachedSizes(
  6593. ::google::protobuf::io::CodedOutputStream* output) const {
  6594. // @@protoc_insertion_point(serialize_start:google.protobuf.MethodDescriptorProto)
  6595. // optional string name = 1;
  6596. if (has_name()) {
  6597. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  6598. this->name().data(), this->name().length(),
  6599. ::google::protobuf::internal::WireFormat::SERIALIZE,
  6600. "google.protobuf.MethodDescriptorProto.name");
  6601. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  6602. 1, this->name(), output);
  6603. }
  6604. // optional string input_type = 2;
  6605. if (has_input_type()) {
  6606. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  6607. this->input_type().data(), this->input_type().length(),
  6608. ::google::protobuf::internal::WireFormat::SERIALIZE,
  6609. "google.protobuf.MethodDescriptorProto.input_type");
  6610. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  6611. 2, this->input_type(), output);
  6612. }
  6613. // optional string output_type = 3;
  6614. if (has_output_type()) {
  6615. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  6616. this->output_type().data(), this->output_type().length(),
  6617. ::google::protobuf::internal::WireFormat::SERIALIZE,
  6618. "google.protobuf.MethodDescriptorProto.output_type");
  6619. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  6620. 3, this->output_type(), output);
  6621. }
  6622. // optional .google.protobuf.MethodOptions options = 4;
  6623. if (has_options()) {
  6624. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  6625. 4, *this->options_, output);
  6626. }
  6627. // optional bool client_streaming = 5 [default = false];
  6628. if (has_client_streaming()) {
  6629. ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->client_streaming(), output);
  6630. }
  6631. // optional bool server_streaming = 6 [default = false];
  6632. if (has_server_streaming()) {
  6633. ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->server_streaming(), output);
  6634. }
  6635. if (_internal_metadata_.have_unknown_fields()) {
  6636. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  6637. unknown_fields(), output);
  6638. }
  6639. // @@protoc_insertion_point(serialize_end:google.protobuf.MethodDescriptorProto)
  6640. }
  6641. ::google::protobuf::uint8* MethodDescriptorProto::SerializeWithCachedSizesToArray(
  6642. ::google::protobuf::uint8* target) const {
  6643. // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.MethodDescriptorProto)
  6644. // optional string name = 1;
  6645. if (has_name()) {
  6646. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  6647. this->name().data(), this->name().length(),
  6648. ::google::protobuf::internal::WireFormat::SERIALIZE,
  6649. "google.protobuf.MethodDescriptorProto.name");
  6650. target =
  6651. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  6652. 1, this->name(), target);
  6653. }
  6654. // optional string input_type = 2;
  6655. if (has_input_type()) {
  6656. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  6657. this->input_type().data(), this->input_type().length(),
  6658. ::google::protobuf::internal::WireFormat::SERIALIZE,
  6659. "google.protobuf.MethodDescriptorProto.input_type");
  6660. target =
  6661. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  6662. 2, this->input_type(), target);
  6663. }
  6664. // optional string output_type = 3;
  6665. if (has_output_type()) {
  6666. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  6667. this->output_type().data(), this->output_type().length(),
  6668. ::google::protobuf::internal::WireFormat::SERIALIZE,
  6669. "google.protobuf.MethodDescriptorProto.output_type");
  6670. target =
  6671. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  6672. 3, this->output_type(), target);
  6673. }
  6674. // optional .google.protobuf.MethodOptions options = 4;
  6675. if (has_options()) {
  6676. target = ::google::protobuf::internal::WireFormatLite::
  6677. WriteMessageNoVirtualToArray(
  6678. 4, *this->options_, target);
  6679. }
  6680. // optional bool client_streaming = 5 [default = false];
  6681. if (has_client_streaming()) {
  6682. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->client_streaming(), target);
  6683. }
  6684. // optional bool server_streaming = 6 [default = false];
  6685. if (has_server_streaming()) {
  6686. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->server_streaming(), target);
  6687. }
  6688. if (_internal_metadata_.have_unknown_fields()) {
  6689. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  6690. unknown_fields(), target);
  6691. }
  6692. // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.MethodDescriptorProto)
  6693. return target;
  6694. }
  6695. int MethodDescriptorProto::ByteSize() const {
  6696. int total_size = 0;
  6697. if (_has_bits_[0 / 32] & 63u) {
  6698. // optional string name = 1;
  6699. if (has_name()) {
  6700. total_size += 1 +
  6701. ::google::protobuf::internal::WireFormatLite::StringSize(
  6702. this->name());
  6703. }
  6704. // optional string input_type = 2;
  6705. if (has_input_type()) {
  6706. total_size += 1 +
  6707. ::google::protobuf::internal::WireFormatLite::StringSize(
  6708. this->input_type());
  6709. }
  6710. // optional string output_type = 3;
  6711. if (has_output_type()) {
  6712. total_size += 1 +
  6713. ::google::protobuf::internal::WireFormatLite::StringSize(
  6714. this->output_type());
  6715. }
  6716. // optional .google.protobuf.MethodOptions options = 4;
  6717. if (has_options()) {
  6718. total_size += 1 +
  6719. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  6720. *this->options_);
  6721. }
  6722. // optional bool client_streaming = 5 [default = false];
  6723. if (has_client_streaming()) {
  6724. total_size += 1 + 1;
  6725. }
  6726. // optional bool server_streaming = 6 [default = false];
  6727. if (has_server_streaming()) {
  6728. total_size += 1 + 1;
  6729. }
  6730. }
  6731. if (_internal_metadata_.have_unknown_fields()) {
  6732. total_size +=
  6733. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  6734. unknown_fields());
  6735. }
  6736. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  6737. _cached_size_ = total_size;
  6738. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  6739. return total_size;
  6740. }
  6741. void MethodDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
  6742. if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
  6743. const MethodDescriptorProto* source =
  6744. ::google::protobuf::internal::DynamicCastToGenerated<const MethodDescriptorProto>(
  6745. &from);
  6746. if (source == NULL) {
  6747. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  6748. } else {
  6749. MergeFrom(*source);
  6750. }
  6751. }
  6752. void MethodDescriptorProto::MergeFrom(const MethodDescriptorProto& from) {
  6753. if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
  6754. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  6755. if (from.has_name()) {
  6756. set_has_name();
  6757. name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
  6758. }
  6759. if (from.has_input_type()) {
  6760. set_has_input_type();
  6761. input_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.input_type_);
  6762. }
  6763. if (from.has_output_type()) {
  6764. set_has_output_type();
  6765. output_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.output_type_);
  6766. }
  6767. if (from.has_options()) {
  6768. mutable_options()->::google::protobuf::MethodOptions::MergeFrom(from.options());
  6769. }
  6770. if (from.has_client_streaming()) {
  6771. set_client_streaming(from.client_streaming());
  6772. }
  6773. if (from.has_server_streaming()) {
  6774. set_server_streaming(from.server_streaming());
  6775. }
  6776. }
  6777. if (from._internal_metadata_.have_unknown_fields()) {
  6778. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  6779. }
  6780. }
  6781. void MethodDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
  6782. if (&from == this) return;
  6783. Clear();
  6784. MergeFrom(from);
  6785. }
  6786. void MethodDescriptorProto::CopyFrom(const MethodDescriptorProto& from) {
  6787. if (&from == this) return;
  6788. Clear();
  6789. MergeFrom(from);
  6790. }
  6791. bool MethodDescriptorProto::IsInitialized() const {
  6792. if (has_options()) {
  6793. if (!this->options_->IsInitialized()) return false;
  6794. }
  6795. return true;
  6796. }
  6797. void MethodDescriptorProto::Swap(MethodDescriptorProto* other) {
  6798. if (other == this) return;
  6799. InternalSwap(other);
  6800. }
  6801. void MethodDescriptorProto::InternalSwap(MethodDescriptorProto* other) {
  6802. name_.Swap(&other->name_);
  6803. input_type_.Swap(&other->input_type_);
  6804. output_type_.Swap(&other->output_type_);
  6805. std::swap(options_, other->options_);
  6806. std::swap(client_streaming_, other->client_streaming_);
  6807. std::swap(server_streaming_, other->server_streaming_);
  6808. std::swap(_has_bits_[0], other->_has_bits_[0]);
  6809. _internal_metadata_.Swap(&other->_internal_metadata_);
  6810. std::swap(_cached_size_, other->_cached_size_);
  6811. }
  6812. ::google::protobuf::Metadata MethodDescriptorProto::GetMetadata() const {
  6813. protobuf_AssignDescriptorsOnce();
  6814. ::google::protobuf::Metadata metadata;
  6815. metadata.descriptor = MethodDescriptorProto_descriptor_;
  6816. metadata.reflection = MethodDescriptorProto_reflection_;
  6817. return metadata;
  6818. }
  6819. #if PROTOBUF_INLINE_NOT_IN_HEADERS
  6820. // MethodDescriptorProto
  6821. // optional string name = 1;
  6822. bool MethodDescriptorProto::has_name() const {
  6823. return (_has_bits_[0] & 0x00000001u) != 0;
  6824. }
  6825. void MethodDescriptorProto::set_has_name() {
  6826. _has_bits_[0] |= 0x00000001u;
  6827. }
  6828. void MethodDescriptorProto::clear_has_name() {
  6829. _has_bits_[0] &= ~0x00000001u;
  6830. }
  6831. void MethodDescriptorProto::clear_name() {
  6832. name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  6833. clear_has_name();
  6834. }
  6835. const ::std::string& MethodDescriptorProto::name() const {
  6836. // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.name)
  6837. return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  6838. }
  6839. void MethodDescriptorProto::set_name(const ::std::string& value) {
  6840. set_has_name();
  6841. name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  6842. // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.name)
  6843. }
  6844. void MethodDescriptorProto::set_name(const char* value) {
  6845. set_has_name();
  6846. name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  6847. // @@protoc_insertion_point(field_set_char:google.protobuf.MethodDescriptorProto.name)
  6848. }
  6849. void MethodDescriptorProto::set_name(const char* value, size_t size) {
  6850. set_has_name();
  6851. name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  6852. ::std::string(reinterpret_cast<const char*>(value), size));
  6853. // @@protoc_insertion_point(field_set_pointer:google.protobuf.MethodDescriptorProto.name)
  6854. }
  6855. ::std::string* MethodDescriptorProto::mutable_name() {
  6856. set_has_name();
  6857. // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProto.name)
  6858. return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  6859. }
  6860. ::std::string* MethodDescriptorProto::release_name() {
  6861. clear_has_name();
  6862. return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  6863. }
  6864. void MethodDescriptorProto::set_allocated_name(::std::string* name) {
  6865. if (name != NULL) {
  6866. set_has_name();
  6867. } else {
  6868. clear_has_name();
  6869. }
  6870. name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
  6871. // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescriptorProto.name)
  6872. }
  6873. // optional string input_type = 2;
  6874. bool MethodDescriptorProto::has_input_type() const {
  6875. return (_has_bits_[0] & 0x00000002u) != 0;
  6876. }
  6877. void MethodDescriptorProto::set_has_input_type() {
  6878. _has_bits_[0] |= 0x00000002u;
  6879. }
  6880. void MethodDescriptorProto::clear_has_input_type() {
  6881. _has_bits_[0] &= ~0x00000002u;
  6882. }
  6883. void MethodDescriptorProto::clear_input_type() {
  6884. input_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  6885. clear_has_input_type();
  6886. }
  6887. const ::std::string& MethodDescriptorProto::input_type() const {
  6888. // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.input_type)
  6889. return input_type_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  6890. }
  6891. void MethodDescriptorProto::set_input_type(const ::std::string& value) {
  6892. set_has_input_type();
  6893. input_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  6894. // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.input_type)
  6895. }
  6896. void MethodDescriptorProto::set_input_type(const char* value) {
  6897. set_has_input_type();
  6898. input_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  6899. // @@protoc_insertion_point(field_set_char:google.protobuf.MethodDescriptorProto.input_type)
  6900. }
  6901. void MethodDescriptorProto::set_input_type(const char* value, size_t size) {
  6902. set_has_input_type();
  6903. input_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  6904. ::std::string(reinterpret_cast<const char*>(value), size));
  6905. // @@protoc_insertion_point(field_set_pointer:google.protobuf.MethodDescriptorProto.input_type)
  6906. }
  6907. ::std::string* MethodDescriptorProto::mutable_input_type() {
  6908. set_has_input_type();
  6909. // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProto.input_type)
  6910. return input_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  6911. }
  6912. ::std::string* MethodDescriptorProto::release_input_type() {
  6913. clear_has_input_type();
  6914. return input_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  6915. }
  6916. void MethodDescriptorProto::set_allocated_input_type(::std::string* input_type) {
  6917. if (input_type != NULL) {
  6918. set_has_input_type();
  6919. } else {
  6920. clear_has_input_type();
  6921. }
  6922. input_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), input_type);
  6923. // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescriptorProto.input_type)
  6924. }
  6925. // optional string output_type = 3;
  6926. bool MethodDescriptorProto::has_output_type() const {
  6927. return (_has_bits_[0] & 0x00000004u) != 0;
  6928. }
  6929. void MethodDescriptorProto::set_has_output_type() {
  6930. _has_bits_[0] |= 0x00000004u;
  6931. }
  6932. void MethodDescriptorProto::clear_has_output_type() {
  6933. _has_bits_[0] &= ~0x00000004u;
  6934. }
  6935. void MethodDescriptorProto::clear_output_type() {
  6936. output_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  6937. clear_has_output_type();
  6938. }
  6939. const ::std::string& MethodDescriptorProto::output_type() const {
  6940. // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.output_type)
  6941. return output_type_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  6942. }
  6943. void MethodDescriptorProto::set_output_type(const ::std::string& value) {
  6944. set_has_output_type();
  6945. output_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  6946. // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.output_type)
  6947. }
  6948. void MethodDescriptorProto::set_output_type(const char* value) {
  6949. set_has_output_type();
  6950. output_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  6951. // @@protoc_insertion_point(field_set_char:google.protobuf.MethodDescriptorProto.output_type)
  6952. }
  6953. void MethodDescriptorProto::set_output_type(const char* value, size_t size) {
  6954. set_has_output_type();
  6955. output_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  6956. ::std::string(reinterpret_cast<const char*>(value), size));
  6957. // @@protoc_insertion_point(field_set_pointer:google.protobuf.MethodDescriptorProto.output_type)
  6958. }
  6959. ::std::string* MethodDescriptorProto::mutable_output_type() {
  6960. set_has_output_type();
  6961. // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProto.output_type)
  6962. return output_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  6963. }
  6964. ::std::string* MethodDescriptorProto::release_output_type() {
  6965. clear_has_output_type();
  6966. return output_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  6967. }
  6968. void MethodDescriptorProto::set_allocated_output_type(::std::string* output_type) {
  6969. if (output_type != NULL) {
  6970. set_has_output_type();
  6971. } else {
  6972. clear_has_output_type();
  6973. }
  6974. output_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), output_type);
  6975. // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescriptorProto.output_type)
  6976. }
  6977. // optional .google.protobuf.MethodOptions options = 4;
  6978. bool MethodDescriptorProto::has_options() const {
  6979. return (_has_bits_[0] & 0x00000008u) != 0;
  6980. }
  6981. void MethodDescriptorProto::set_has_options() {
  6982. _has_bits_[0] |= 0x00000008u;
  6983. }
  6984. void MethodDescriptorProto::clear_has_options() {
  6985. _has_bits_[0] &= ~0x00000008u;
  6986. }
  6987. void MethodDescriptorProto::clear_options() {
  6988. if (options_ != NULL) options_->::google::protobuf::MethodOptions::Clear();
  6989. clear_has_options();
  6990. }
  6991. const ::google::protobuf::MethodOptions& MethodDescriptorProto::options() const {
  6992. // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.options)
  6993. return options_ != NULL ? *options_ : *default_instance_->options_;
  6994. }
  6995. ::google::protobuf::MethodOptions* MethodDescriptorProto::mutable_options() {
  6996. set_has_options();
  6997. if (options_ == NULL) {
  6998. options_ = new ::google::protobuf::MethodOptions;
  6999. }
  7000. // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProto.options)
  7001. return options_;
  7002. }
  7003. ::google::protobuf::MethodOptions* MethodDescriptorProto::release_options() {
  7004. clear_has_options();
  7005. ::google::protobuf::MethodOptions* temp = options_;
  7006. options_ = NULL;
  7007. return temp;
  7008. }
  7009. void MethodDescriptorProto::set_allocated_options(::google::protobuf::MethodOptions* options) {
  7010. delete options_;
  7011. options_ = options;
  7012. if (options) {
  7013. set_has_options();
  7014. } else {
  7015. clear_has_options();
  7016. }
  7017. // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescriptorProto.options)
  7018. }
  7019. // optional bool client_streaming = 5 [default = false];
  7020. bool MethodDescriptorProto::has_client_streaming() const {
  7021. return (_has_bits_[0] & 0x00000010u) != 0;
  7022. }
  7023. void MethodDescriptorProto::set_has_client_streaming() {
  7024. _has_bits_[0] |= 0x00000010u;
  7025. }
  7026. void MethodDescriptorProto::clear_has_client_streaming() {
  7027. _has_bits_[0] &= ~0x00000010u;
  7028. }
  7029. void MethodDescriptorProto::clear_client_streaming() {
  7030. client_streaming_ = false;
  7031. clear_has_client_streaming();
  7032. }
  7033. bool MethodDescriptorProto::client_streaming() const {
  7034. // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.client_streaming)
  7035. return client_streaming_;
  7036. }
  7037. void MethodDescriptorProto::set_client_streaming(bool value) {
  7038. set_has_client_streaming();
  7039. client_streaming_ = value;
  7040. // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.client_streaming)
  7041. }
  7042. // optional bool server_streaming = 6 [default = false];
  7043. bool MethodDescriptorProto::has_server_streaming() const {
  7044. return (_has_bits_[0] & 0x00000020u) != 0;
  7045. }
  7046. void MethodDescriptorProto::set_has_server_streaming() {
  7047. _has_bits_[0] |= 0x00000020u;
  7048. }
  7049. void MethodDescriptorProto::clear_has_server_streaming() {
  7050. _has_bits_[0] &= ~0x00000020u;
  7051. }
  7052. void MethodDescriptorProto::clear_server_streaming() {
  7053. server_streaming_ = false;
  7054. clear_has_server_streaming();
  7055. }
  7056. bool MethodDescriptorProto::server_streaming() const {
  7057. // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.server_streaming)
  7058. return server_streaming_;
  7059. }
  7060. void MethodDescriptorProto::set_server_streaming(bool value) {
  7061. set_has_server_streaming();
  7062. server_streaming_ = value;
  7063. // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.server_streaming)
  7064. }
  7065. #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
  7066. // ===================================================================
  7067. const ::google::protobuf::EnumDescriptor* FileOptions_OptimizeMode_descriptor() {
  7068. protobuf_AssignDescriptorsOnce();
  7069. return FileOptions_OptimizeMode_descriptor_;
  7070. }
  7071. bool FileOptions_OptimizeMode_IsValid(int value) {
  7072. switch(value) {
  7073. case 1:
  7074. case 2:
  7075. case 3:
  7076. return true;
  7077. default:
  7078. return false;
  7079. }
  7080. }
  7081. #ifndef _MSC_VER
  7082. const FileOptions_OptimizeMode FileOptions::SPEED;
  7083. const FileOptions_OptimizeMode FileOptions::CODE_SIZE;
  7084. const FileOptions_OptimizeMode FileOptions::LITE_RUNTIME;
  7085. const FileOptions_OptimizeMode FileOptions::OptimizeMode_MIN;
  7086. const FileOptions_OptimizeMode FileOptions::OptimizeMode_MAX;
  7087. const int FileOptions::OptimizeMode_ARRAYSIZE;
  7088. #endif // _MSC_VER
  7089. #ifndef _MSC_VER
  7090. const int FileOptions::kJavaPackageFieldNumber;
  7091. const int FileOptions::kJavaOuterClassnameFieldNumber;
  7092. const int FileOptions::kJavaMultipleFilesFieldNumber;
  7093. const int FileOptions::kJavaGenerateEqualsAndHashFieldNumber;
  7094. const int FileOptions::kJavaStringCheckUtf8FieldNumber;
  7095. const int FileOptions::kOptimizeForFieldNumber;
  7096. const int FileOptions::kGoPackageFieldNumber;
  7097. const int FileOptions::kCcGenericServicesFieldNumber;
  7098. const int FileOptions::kJavaGenericServicesFieldNumber;
  7099. const int FileOptions::kPyGenericServicesFieldNumber;
  7100. const int FileOptions::kDeprecatedFieldNumber;
  7101. const int FileOptions::kCcEnableArenasFieldNumber;
  7102. const int FileOptions::kObjcClassPrefixFieldNumber;
  7103. const int FileOptions::kCsharpNamespaceFieldNumber;
  7104. const int FileOptions::kJavananoUseDeprecatedPackageFieldNumber;
  7105. const int FileOptions::kUninterpretedOptionFieldNumber;
  7106. #endif // !_MSC_VER
  7107. FileOptions::FileOptions()
  7108. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  7109. SharedCtor();
  7110. // @@protoc_insertion_point(constructor:google.protobuf.FileOptions)
  7111. }
  7112. void FileOptions::InitAsDefaultInstance() {
  7113. }
  7114. FileOptions::FileOptions(const FileOptions& from)
  7115. : ::google::protobuf::Message(),
  7116. _internal_metadata_(NULL) {
  7117. SharedCtor();
  7118. MergeFrom(from);
  7119. // @@protoc_insertion_point(copy_constructor:google.protobuf.FileOptions)
  7120. }
  7121. void FileOptions::SharedCtor() {
  7122. ::google::protobuf::internal::GetEmptyString();
  7123. _cached_size_ = 0;
  7124. java_package_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  7125. java_outer_classname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  7126. java_multiple_files_ = false;
  7127. java_generate_equals_and_hash_ = false;
  7128. java_string_check_utf8_ = false;
  7129. optimize_for_ = 1;
  7130. go_package_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  7131. cc_generic_services_ = false;
  7132. java_generic_services_ = false;
  7133. py_generic_services_ = false;
  7134. deprecated_ = false;
  7135. cc_enable_arenas_ = false;
  7136. objc_class_prefix_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  7137. csharp_namespace_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  7138. javanano_use_deprecated_package_ = false;
  7139. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  7140. }
  7141. FileOptions::~FileOptions() {
  7142. // @@protoc_insertion_point(destructor:google.protobuf.FileOptions)
  7143. SharedDtor();
  7144. }
  7145. void FileOptions::SharedDtor() {
  7146. java_package_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  7147. java_outer_classname_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  7148. go_package_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  7149. objc_class_prefix_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  7150. csharp_namespace_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  7151. if (this != default_instance_) {
  7152. }
  7153. }
  7154. void FileOptions::SetCachedSize(int size) const {
  7155. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  7156. _cached_size_ = size;
  7157. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  7158. }
  7159. const ::google::protobuf::Descriptor* FileOptions::descriptor() {
  7160. protobuf_AssignDescriptorsOnce();
  7161. return FileOptions_descriptor_;
  7162. }
  7163. const FileOptions& FileOptions::default_instance() {
  7164. if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  7165. return *default_instance_;
  7166. }
  7167. FileOptions* FileOptions::default_instance_ = NULL;
  7168. FileOptions* FileOptions::New(::google::protobuf::Arena* arena) const {
  7169. FileOptions* n = new FileOptions;
  7170. if (arena != NULL) {
  7171. arena->Own(n);
  7172. }
  7173. return n;
  7174. }
  7175. void FileOptions::Clear() {
  7176. _extensions_.Clear();
  7177. #define ZR_HELPER_(f) reinterpret_cast<char*>(\
  7178. &reinterpret_cast<FileOptions*>(16)->f)
  7179. #define ZR_(first, last) do {\
  7180. ::memset(&first, 0,\
  7181. ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\
  7182. } while (0)
  7183. if (_has_bits_[0 / 32] & 255u) {
  7184. ZR_(java_multiple_files_, cc_generic_services_);
  7185. if (has_java_package()) {
  7186. java_package_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  7187. }
  7188. if (has_java_outer_classname()) {
  7189. java_outer_classname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  7190. }
  7191. optimize_for_ = 1;
  7192. if (has_go_package()) {
  7193. go_package_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  7194. }
  7195. }
  7196. if (_has_bits_[8 / 32] & 32512u) {
  7197. ZR_(java_generic_services_, javanano_use_deprecated_package_);
  7198. if (has_objc_class_prefix()) {
  7199. objc_class_prefix_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  7200. }
  7201. if (has_csharp_namespace()) {
  7202. csharp_namespace_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  7203. }
  7204. }
  7205. #undef ZR_HELPER_
  7206. #undef ZR_
  7207. uninterpreted_option_.Clear();
  7208. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  7209. if (_internal_metadata_.have_unknown_fields()) {
  7210. mutable_unknown_fields()->Clear();
  7211. }
  7212. }
  7213. bool FileOptions::MergePartialFromCodedStream(
  7214. ::google::protobuf::io::CodedInputStream* input) {
  7215. #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
  7216. ::google::protobuf::uint32 tag;
  7217. // @@protoc_insertion_point(parse_start:google.protobuf.FileOptions)
  7218. for (;;) {
  7219. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383);
  7220. tag = p.first;
  7221. if (!p.second) goto handle_unusual;
  7222. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  7223. // optional string java_package = 1;
  7224. case 1: {
  7225. if (tag == 10) {
  7226. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  7227. input, this->mutable_java_package()));
  7228. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  7229. this->java_package().data(), this->java_package().length(),
  7230. ::google::protobuf::internal::WireFormat::PARSE,
  7231. "google.protobuf.FileOptions.java_package");
  7232. } else {
  7233. goto handle_unusual;
  7234. }
  7235. if (input->ExpectTag(66)) goto parse_java_outer_classname;
  7236. break;
  7237. }
  7238. // optional string java_outer_classname = 8;
  7239. case 8: {
  7240. if (tag == 66) {
  7241. parse_java_outer_classname:
  7242. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  7243. input, this->mutable_java_outer_classname()));
  7244. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  7245. this->java_outer_classname().data(), this->java_outer_classname().length(),
  7246. ::google::protobuf::internal::WireFormat::PARSE,
  7247. "google.protobuf.FileOptions.java_outer_classname");
  7248. } else {
  7249. goto handle_unusual;
  7250. }
  7251. if (input->ExpectTag(72)) goto parse_optimize_for;
  7252. break;
  7253. }
  7254. // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
  7255. case 9: {
  7256. if (tag == 72) {
  7257. parse_optimize_for:
  7258. int value;
  7259. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  7260. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  7261. input, &value)));
  7262. if (::google::protobuf::FileOptions_OptimizeMode_IsValid(value)) {
  7263. set_optimize_for(static_cast< ::google::protobuf::FileOptions_OptimizeMode >(value));
  7264. } else {
  7265. mutable_unknown_fields()->AddVarint(9, value);
  7266. }
  7267. } else {
  7268. goto handle_unusual;
  7269. }
  7270. if (input->ExpectTag(80)) goto parse_java_multiple_files;
  7271. break;
  7272. }
  7273. // optional bool java_multiple_files = 10 [default = false];
  7274. case 10: {
  7275. if (tag == 80) {
  7276. parse_java_multiple_files:
  7277. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  7278. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL_X>(
  7279. input, &java_multiple_files_)));
  7280. set_has_java_multiple_files();
  7281. } else {
  7282. goto handle_unusual;
  7283. }
  7284. if (input->ExpectTag(90)) goto parse_go_package;
  7285. break;
  7286. }
  7287. // optional string go_package = 11;
  7288. case 11: {
  7289. if (tag == 90) {
  7290. parse_go_package:
  7291. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  7292. input, this->mutable_go_package()));
  7293. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  7294. this->go_package().data(), this->go_package().length(),
  7295. ::google::protobuf::internal::WireFormat::PARSE,
  7296. "google.protobuf.FileOptions.go_package");
  7297. } else {
  7298. goto handle_unusual;
  7299. }
  7300. if (input->ExpectTag(128)) goto parse_cc_generic_services;
  7301. break;
  7302. }
  7303. // optional bool cc_generic_services = 16 [default = false];
  7304. case 16: {
  7305. if (tag == 128) {
  7306. parse_cc_generic_services:
  7307. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  7308. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL_X>(
  7309. input, &cc_generic_services_)));
  7310. set_has_cc_generic_services();
  7311. } else {
  7312. goto handle_unusual;
  7313. }
  7314. if (input->ExpectTag(136)) goto parse_java_generic_services;
  7315. break;
  7316. }
  7317. // optional bool java_generic_services = 17 [default = false];
  7318. case 17: {
  7319. if (tag == 136) {
  7320. parse_java_generic_services:
  7321. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  7322. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL_X>(
  7323. input, &java_generic_services_)));
  7324. set_has_java_generic_services();
  7325. } else {
  7326. goto handle_unusual;
  7327. }
  7328. if (input->ExpectTag(144)) goto parse_py_generic_services;
  7329. break;
  7330. }
  7331. // optional bool py_generic_services = 18 [default = false];
  7332. case 18: {
  7333. if (tag == 144) {
  7334. parse_py_generic_services:
  7335. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  7336. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL_X>(
  7337. input, &py_generic_services_)));
  7338. set_has_py_generic_services();
  7339. } else {
  7340. goto handle_unusual;
  7341. }
  7342. if (input->ExpectTag(160)) goto parse_java_generate_equals_and_hash;
  7343. break;
  7344. }
  7345. // optional bool java_generate_equals_and_hash = 20 [default = false];
  7346. case 20: {
  7347. if (tag == 160) {
  7348. parse_java_generate_equals_and_hash:
  7349. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  7350. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL_X>(
  7351. input, &java_generate_equals_and_hash_)));
  7352. set_has_java_generate_equals_and_hash();
  7353. } else {
  7354. goto handle_unusual;
  7355. }
  7356. if (input->ExpectTag(184)) goto parse_deprecated;
  7357. break;
  7358. }
  7359. // optional bool deprecated = 23 [default = false];
  7360. case 23: {
  7361. if (tag == 184) {
  7362. parse_deprecated:
  7363. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  7364. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL_X>(
  7365. input, &deprecated_)));
  7366. set_has_deprecated();
  7367. } else {
  7368. goto handle_unusual;
  7369. }
  7370. if (input->ExpectTag(216)) goto parse_java_string_check_utf8;
  7371. break;
  7372. }
  7373. // optional bool java_string_check_utf8 = 27 [default = false];
  7374. case 27: {
  7375. if (tag == 216) {
  7376. parse_java_string_check_utf8:
  7377. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  7378. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL_X>(
  7379. input, &java_string_check_utf8_)));
  7380. set_has_java_string_check_utf8();
  7381. } else {
  7382. goto handle_unusual;
  7383. }
  7384. if (input->ExpectTag(248)) goto parse_cc_enable_arenas;
  7385. break;
  7386. }
  7387. // optional bool cc_enable_arenas = 31 [default = false];
  7388. case 31: {
  7389. if (tag == 248) {
  7390. parse_cc_enable_arenas:
  7391. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  7392. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL_X>(
  7393. input, &cc_enable_arenas_)));
  7394. set_has_cc_enable_arenas();
  7395. } else {
  7396. goto handle_unusual;
  7397. }
  7398. if (input->ExpectTag(290)) goto parse_objc_class_prefix;
  7399. break;
  7400. }
  7401. // optional string objc_class_prefix = 36;
  7402. case 36: {
  7403. if (tag == 290) {
  7404. parse_objc_class_prefix:
  7405. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  7406. input, this->mutable_objc_class_prefix()));
  7407. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  7408. this->objc_class_prefix().data(), this->objc_class_prefix().length(),
  7409. ::google::protobuf::internal::WireFormat::PARSE,
  7410. "google.protobuf.FileOptions.objc_class_prefix");
  7411. } else {
  7412. goto handle_unusual;
  7413. }
  7414. if (input->ExpectTag(298)) goto parse_csharp_namespace;
  7415. break;
  7416. }
  7417. // optional string csharp_namespace = 37;
  7418. case 37: {
  7419. if (tag == 298) {
  7420. parse_csharp_namespace:
  7421. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  7422. input, this->mutable_csharp_namespace()));
  7423. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  7424. this->csharp_namespace().data(), this->csharp_namespace().length(),
  7425. ::google::protobuf::internal::WireFormat::PARSE,
  7426. "google.protobuf.FileOptions.csharp_namespace");
  7427. } else {
  7428. goto handle_unusual;
  7429. }
  7430. if (input->ExpectTag(304)) goto parse_javanano_use_deprecated_package;
  7431. break;
  7432. }
  7433. // optional bool javanano_use_deprecated_package = 38;
  7434. case 38: {
  7435. if (tag == 304) {
  7436. parse_javanano_use_deprecated_package:
  7437. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  7438. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL_X>(
  7439. input, &javanano_use_deprecated_package_)));
  7440. set_has_javanano_use_deprecated_package();
  7441. } else {
  7442. goto handle_unusual;
  7443. }
  7444. if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
  7445. break;
  7446. }
  7447. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  7448. case 999: {
  7449. if (tag == 7994) {
  7450. parse_uninterpreted_option:
  7451. DO_(input->IncrementRecursionDepth());
  7452. parse_loop_uninterpreted_option:
  7453. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
  7454. input, add_uninterpreted_option()));
  7455. } else {
  7456. goto handle_unusual;
  7457. }
  7458. if (input->ExpectTag(7994)) goto parse_loop_uninterpreted_option;
  7459. input->UnsafeDecrementRecursionDepth();
  7460. if (input->ExpectAtEnd()) goto success;
  7461. break;
  7462. }
  7463. default: {
  7464. handle_unusual:
  7465. if (tag == 0 ||
  7466. ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  7467. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  7468. goto success;
  7469. }
  7470. if ((8000u <= tag)) {
  7471. DO_(_extensions_.ParseField(tag, input, default_instance_,
  7472. mutable_unknown_fields()));
  7473. continue;
  7474. }
  7475. DO_(::google::protobuf::internal::WireFormat::SkipField(
  7476. input, tag, mutable_unknown_fields()));
  7477. break;
  7478. }
  7479. }
  7480. }
  7481. success:
  7482. // @@protoc_insertion_point(parse_success:google.protobuf.FileOptions)
  7483. return true;
  7484. failure:
  7485. // @@protoc_insertion_point(parse_failure:google.protobuf.FileOptions)
  7486. return false;
  7487. #undef DO_
  7488. }
  7489. void FileOptions::SerializeWithCachedSizes(
  7490. ::google::protobuf::io::CodedOutputStream* output) const {
  7491. // @@protoc_insertion_point(serialize_start:google.protobuf.FileOptions)
  7492. // optional string java_package = 1;
  7493. if (has_java_package()) {
  7494. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  7495. this->java_package().data(), this->java_package().length(),
  7496. ::google::protobuf::internal::WireFormat::SERIALIZE,
  7497. "google.protobuf.FileOptions.java_package");
  7498. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  7499. 1, this->java_package(), output);
  7500. }
  7501. // optional string java_outer_classname = 8;
  7502. if (has_java_outer_classname()) {
  7503. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  7504. this->java_outer_classname().data(), this->java_outer_classname().length(),
  7505. ::google::protobuf::internal::WireFormat::SERIALIZE,
  7506. "google.protobuf.FileOptions.java_outer_classname");
  7507. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  7508. 8, this->java_outer_classname(), output);
  7509. }
  7510. // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
  7511. if (has_optimize_for()) {
  7512. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  7513. 9, this->optimize_for(), output);
  7514. }
  7515. // optional bool java_multiple_files = 10 [default = false];
  7516. if (has_java_multiple_files()) {
  7517. ::google::protobuf::internal::WireFormatLite::WriteBool(10, this->java_multiple_files(), output);
  7518. }
  7519. // optional string go_package = 11;
  7520. if (has_go_package()) {
  7521. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  7522. this->go_package().data(), this->go_package().length(),
  7523. ::google::protobuf::internal::WireFormat::SERIALIZE,
  7524. "google.protobuf.FileOptions.go_package");
  7525. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  7526. 11, this->go_package(), output);
  7527. }
  7528. // optional bool cc_generic_services = 16 [default = false];
  7529. if (has_cc_generic_services()) {
  7530. ::google::protobuf::internal::WireFormatLite::WriteBool(16, this->cc_generic_services(), output);
  7531. }
  7532. // optional bool java_generic_services = 17 [default = false];
  7533. if (has_java_generic_services()) {
  7534. ::google::protobuf::internal::WireFormatLite::WriteBool(17, this->java_generic_services(), output);
  7535. }
  7536. // optional bool py_generic_services = 18 [default = false];
  7537. if (has_py_generic_services()) {
  7538. ::google::protobuf::internal::WireFormatLite::WriteBool(18, this->py_generic_services(), output);
  7539. }
  7540. // optional bool java_generate_equals_and_hash = 20 [default = false];
  7541. if (has_java_generate_equals_and_hash()) {
  7542. ::google::protobuf::internal::WireFormatLite::WriteBool(20, this->java_generate_equals_and_hash(), output);
  7543. }
  7544. // optional bool deprecated = 23 [default = false];
  7545. if (has_deprecated()) {
  7546. ::google::protobuf::internal::WireFormatLite::WriteBool(23, this->deprecated(), output);
  7547. }
  7548. // optional bool java_string_check_utf8 = 27 [default = false];
  7549. if (has_java_string_check_utf8()) {
  7550. ::google::protobuf::internal::WireFormatLite::WriteBool(27, this->java_string_check_utf8(), output);
  7551. }
  7552. // optional bool cc_enable_arenas = 31 [default = false];
  7553. if (has_cc_enable_arenas()) {
  7554. ::google::protobuf::internal::WireFormatLite::WriteBool(31, this->cc_enable_arenas(), output);
  7555. }
  7556. // optional string objc_class_prefix = 36;
  7557. if (has_objc_class_prefix()) {
  7558. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  7559. this->objc_class_prefix().data(), this->objc_class_prefix().length(),
  7560. ::google::protobuf::internal::WireFormat::SERIALIZE,
  7561. "google.protobuf.FileOptions.objc_class_prefix");
  7562. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  7563. 36, this->objc_class_prefix(), output);
  7564. }
  7565. // optional string csharp_namespace = 37;
  7566. if (has_csharp_namespace()) {
  7567. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  7568. this->csharp_namespace().data(), this->csharp_namespace().length(),
  7569. ::google::protobuf::internal::WireFormat::SERIALIZE,
  7570. "google.protobuf.FileOptions.csharp_namespace");
  7571. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  7572. 37, this->csharp_namespace(), output);
  7573. }
  7574. // optional bool javanano_use_deprecated_package = 38;
  7575. if (has_javanano_use_deprecated_package()) {
  7576. ::google::protobuf::internal::WireFormatLite::WriteBool(38, this->javanano_use_deprecated_package(), output);
  7577. }
  7578. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  7579. for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) {
  7580. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  7581. 999, this->uninterpreted_option(i), output);
  7582. }
  7583. // Extension range [1000, 536870912)
  7584. _extensions_.SerializeWithCachedSizes(
  7585. 1000, 536870912, output);
  7586. if (_internal_metadata_.have_unknown_fields()) {
  7587. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  7588. unknown_fields(), output);
  7589. }
  7590. // @@protoc_insertion_point(serialize_end:google.protobuf.FileOptions)
  7591. }
  7592. ::google::protobuf::uint8* FileOptions::SerializeWithCachedSizesToArray(
  7593. ::google::protobuf::uint8* target) const {
  7594. // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FileOptions)
  7595. // optional string java_package = 1;
  7596. if (has_java_package()) {
  7597. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  7598. this->java_package().data(), this->java_package().length(),
  7599. ::google::protobuf::internal::WireFormat::SERIALIZE,
  7600. "google.protobuf.FileOptions.java_package");
  7601. target =
  7602. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  7603. 1, this->java_package(), target);
  7604. }
  7605. // optional string java_outer_classname = 8;
  7606. if (has_java_outer_classname()) {
  7607. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  7608. this->java_outer_classname().data(), this->java_outer_classname().length(),
  7609. ::google::protobuf::internal::WireFormat::SERIALIZE,
  7610. "google.protobuf.FileOptions.java_outer_classname");
  7611. target =
  7612. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  7613. 8, this->java_outer_classname(), target);
  7614. }
  7615. // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
  7616. if (has_optimize_for()) {
  7617. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  7618. 9, this->optimize_for(), target);
  7619. }
  7620. // optional bool java_multiple_files = 10 [default = false];
  7621. if (has_java_multiple_files()) {
  7622. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(10, this->java_multiple_files(), target);
  7623. }
  7624. // optional string go_package = 11;
  7625. if (has_go_package()) {
  7626. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  7627. this->go_package().data(), this->go_package().length(),
  7628. ::google::protobuf::internal::WireFormat::SERIALIZE,
  7629. "google.protobuf.FileOptions.go_package");
  7630. target =
  7631. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  7632. 11, this->go_package(), target);
  7633. }
  7634. // optional bool cc_generic_services = 16 [default = false];
  7635. if (has_cc_generic_services()) {
  7636. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(16, this->cc_generic_services(), target);
  7637. }
  7638. // optional bool java_generic_services = 17 [default = false];
  7639. if (has_java_generic_services()) {
  7640. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(17, this->java_generic_services(), target);
  7641. }
  7642. // optional bool py_generic_services = 18 [default = false];
  7643. if (has_py_generic_services()) {
  7644. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(18, this->py_generic_services(), target);
  7645. }
  7646. // optional bool java_generate_equals_and_hash = 20 [default = false];
  7647. if (has_java_generate_equals_and_hash()) {
  7648. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(20, this->java_generate_equals_and_hash(), target);
  7649. }
  7650. // optional bool deprecated = 23 [default = false];
  7651. if (has_deprecated()) {
  7652. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(23, this->deprecated(), target);
  7653. }
  7654. // optional bool java_string_check_utf8 = 27 [default = false];
  7655. if (has_java_string_check_utf8()) {
  7656. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(27, this->java_string_check_utf8(), target);
  7657. }
  7658. // optional bool cc_enable_arenas = 31 [default = false];
  7659. if (has_cc_enable_arenas()) {
  7660. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(31, this->cc_enable_arenas(), target);
  7661. }
  7662. // optional string objc_class_prefix = 36;
  7663. if (has_objc_class_prefix()) {
  7664. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  7665. this->objc_class_prefix().data(), this->objc_class_prefix().length(),
  7666. ::google::protobuf::internal::WireFormat::SERIALIZE,
  7667. "google.protobuf.FileOptions.objc_class_prefix");
  7668. target =
  7669. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  7670. 36, this->objc_class_prefix(), target);
  7671. }
  7672. // optional string csharp_namespace = 37;
  7673. if (has_csharp_namespace()) {
  7674. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  7675. this->csharp_namespace().data(), this->csharp_namespace().length(),
  7676. ::google::protobuf::internal::WireFormat::SERIALIZE,
  7677. "google.protobuf.FileOptions.csharp_namespace");
  7678. target =
  7679. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  7680. 37, this->csharp_namespace(), target);
  7681. }
  7682. // optional bool javanano_use_deprecated_package = 38;
  7683. if (has_javanano_use_deprecated_package()) {
  7684. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(38, this->javanano_use_deprecated_package(), target);
  7685. }
  7686. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  7687. for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) {
  7688. target = ::google::protobuf::internal::WireFormatLite::
  7689. WriteMessageNoVirtualToArray(
  7690. 999, this->uninterpreted_option(i), target);
  7691. }
  7692. // Extension range [1000, 536870912)
  7693. target = _extensions_.SerializeWithCachedSizesToArray(
  7694. 1000, 536870912, target);
  7695. if (_internal_metadata_.have_unknown_fields()) {
  7696. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  7697. unknown_fields(), target);
  7698. }
  7699. // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FileOptions)
  7700. return target;
  7701. }
  7702. int FileOptions::ByteSize() const {
  7703. int total_size = 0;
  7704. if (_has_bits_[0 / 32] & 255u) {
  7705. // optional string java_package = 1;
  7706. if (has_java_package()) {
  7707. total_size += 1 +
  7708. ::google::protobuf::internal::WireFormatLite::StringSize(
  7709. this->java_package());
  7710. }
  7711. // optional string java_outer_classname = 8;
  7712. if (has_java_outer_classname()) {
  7713. total_size += 1 +
  7714. ::google::protobuf::internal::WireFormatLite::StringSize(
  7715. this->java_outer_classname());
  7716. }
  7717. // optional bool java_multiple_files = 10 [default = false];
  7718. if (has_java_multiple_files()) {
  7719. total_size += 1 + 1;
  7720. }
  7721. // optional bool java_generate_equals_and_hash = 20 [default = false];
  7722. if (has_java_generate_equals_and_hash()) {
  7723. total_size += 2 + 1;
  7724. }
  7725. // optional bool java_string_check_utf8 = 27 [default = false];
  7726. if (has_java_string_check_utf8()) {
  7727. total_size += 2 + 1;
  7728. }
  7729. // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
  7730. if (has_optimize_for()) {
  7731. total_size += 1 +
  7732. ::google::protobuf::internal::WireFormatLite::EnumSize(this->optimize_for());
  7733. }
  7734. // optional string go_package = 11;
  7735. if (has_go_package()) {
  7736. total_size += 1 +
  7737. ::google::protobuf::internal::WireFormatLite::StringSize(
  7738. this->go_package());
  7739. }
  7740. // optional bool cc_generic_services = 16 [default = false];
  7741. if (has_cc_generic_services()) {
  7742. total_size += 2 + 1;
  7743. }
  7744. }
  7745. if (_has_bits_[8 / 32] & 32512u) {
  7746. // optional bool java_generic_services = 17 [default = false];
  7747. if (has_java_generic_services()) {
  7748. total_size += 2 + 1;
  7749. }
  7750. // optional bool py_generic_services = 18 [default = false];
  7751. if (has_py_generic_services()) {
  7752. total_size += 2 + 1;
  7753. }
  7754. // optional bool deprecated = 23 [default = false];
  7755. if (has_deprecated()) {
  7756. total_size += 2 + 1;
  7757. }
  7758. // optional bool cc_enable_arenas = 31 [default = false];
  7759. if (has_cc_enable_arenas()) {
  7760. total_size += 2 + 1;
  7761. }
  7762. // optional string objc_class_prefix = 36;
  7763. if (has_objc_class_prefix()) {
  7764. total_size += 2 +
  7765. ::google::protobuf::internal::WireFormatLite::StringSize(
  7766. this->objc_class_prefix());
  7767. }
  7768. // optional string csharp_namespace = 37;
  7769. if (has_csharp_namespace()) {
  7770. total_size += 2 +
  7771. ::google::protobuf::internal::WireFormatLite::StringSize(
  7772. this->csharp_namespace());
  7773. }
  7774. // optional bool javanano_use_deprecated_package = 38;
  7775. if (has_javanano_use_deprecated_package()) {
  7776. total_size += 2 + 1;
  7777. }
  7778. }
  7779. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  7780. total_size += 2 * this->uninterpreted_option_size();
  7781. for (int i = 0; i < this->uninterpreted_option_size(); i++) {
  7782. total_size +=
  7783. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  7784. this->uninterpreted_option(i));
  7785. }
  7786. total_size += _extensions_.ByteSize();
  7787. if (_internal_metadata_.have_unknown_fields()) {
  7788. total_size +=
  7789. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  7790. unknown_fields());
  7791. }
  7792. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  7793. _cached_size_ = total_size;
  7794. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  7795. return total_size;
  7796. }
  7797. void FileOptions::MergeFrom(const ::google::protobuf::Message& from) {
  7798. if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
  7799. const FileOptions* source =
  7800. ::google::protobuf::internal::DynamicCastToGenerated<const FileOptions>(
  7801. &from);
  7802. if (source == NULL) {
  7803. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  7804. } else {
  7805. MergeFrom(*source);
  7806. }
  7807. }
  7808. void FileOptions::MergeFrom(const FileOptions& from) {
  7809. if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
  7810. uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
  7811. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  7812. if (from.has_java_package()) {
  7813. set_has_java_package();
  7814. java_package_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.java_package_);
  7815. }
  7816. if (from.has_java_outer_classname()) {
  7817. set_has_java_outer_classname();
  7818. java_outer_classname_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.java_outer_classname_);
  7819. }
  7820. if (from.has_java_multiple_files()) {
  7821. set_java_multiple_files(from.java_multiple_files());
  7822. }
  7823. if (from.has_java_generate_equals_and_hash()) {
  7824. set_java_generate_equals_and_hash(from.java_generate_equals_and_hash());
  7825. }
  7826. if (from.has_java_string_check_utf8()) {
  7827. set_java_string_check_utf8(from.java_string_check_utf8());
  7828. }
  7829. if (from.has_optimize_for()) {
  7830. set_optimize_for(from.optimize_for());
  7831. }
  7832. if (from.has_go_package()) {
  7833. set_has_go_package();
  7834. go_package_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.go_package_);
  7835. }
  7836. if (from.has_cc_generic_services()) {
  7837. set_cc_generic_services(from.cc_generic_services());
  7838. }
  7839. }
  7840. if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
  7841. if (from.has_java_generic_services()) {
  7842. set_java_generic_services(from.java_generic_services());
  7843. }
  7844. if (from.has_py_generic_services()) {
  7845. set_py_generic_services(from.py_generic_services());
  7846. }
  7847. if (from.has_deprecated()) {
  7848. set_deprecated(from.deprecated());
  7849. }
  7850. if (from.has_cc_enable_arenas()) {
  7851. set_cc_enable_arenas(from.cc_enable_arenas());
  7852. }
  7853. if (from.has_objc_class_prefix()) {
  7854. set_has_objc_class_prefix();
  7855. objc_class_prefix_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.objc_class_prefix_);
  7856. }
  7857. if (from.has_csharp_namespace()) {
  7858. set_has_csharp_namespace();
  7859. csharp_namespace_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.csharp_namespace_);
  7860. }
  7861. if (from.has_javanano_use_deprecated_package()) {
  7862. set_javanano_use_deprecated_package(from.javanano_use_deprecated_package());
  7863. }
  7864. }
  7865. _extensions_.MergeFrom(from._extensions_);
  7866. if (from._internal_metadata_.have_unknown_fields()) {
  7867. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  7868. }
  7869. }
  7870. void FileOptions::CopyFrom(const ::google::protobuf::Message& from) {
  7871. if (&from == this) return;
  7872. Clear();
  7873. MergeFrom(from);
  7874. }
  7875. void FileOptions::CopyFrom(const FileOptions& from) {
  7876. if (&from == this) return;
  7877. Clear();
  7878. MergeFrom(from);
  7879. }
  7880. bool FileOptions::IsInitialized() const {
  7881. if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false;
  7882. if (!_extensions_.IsInitialized()) return false; return true;
  7883. }
  7884. void FileOptions::Swap(FileOptions* other) {
  7885. if (other == this) return;
  7886. InternalSwap(other);
  7887. }
  7888. void FileOptions::InternalSwap(FileOptions* other) {
  7889. java_package_.Swap(&other->java_package_);
  7890. java_outer_classname_.Swap(&other->java_outer_classname_);
  7891. std::swap(java_multiple_files_, other->java_multiple_files_);
  7892. std::swap(java_generate_equals_and_hash_, other->java_generate_equals_and_hash_);
  7893. std::swap(java_string_check_utf8_, other->java_string_check_utf8_);
  7894. std::swap(optimize_for_, other->optimize_for_);
  7895. go_package_.Swap(&other->go_package_);
  7896. std::swap(cc_generic_services_, other->cc_generic_services_);
  7897. std::swap(java_generic_services_, other->java_generic_services_);
  7898. std::swap(py_generic_services_, other->py_generic_services_);
  7899. std::swap(deprecated_, other->deprecated_);
  7900. std::swap(cc_enable_arenas_, other->cc_enable_arenas_);
  7901. objc_class_prefix_.Swap(&other->objc_class_prefix_);
  7902. csharp_namespace_.Swap(&other->csharp_namespace_);
  7903. std::swap(javanano_use_deprecated_package_, other->javanano_use_deprecated_package_);
  7904. uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_);
  7905. std::swap(_has_bits_[0], other->_has_bits_[0]);
  7906. _internal_metadata_.Swap(&other->_internal_metadata_);
  7907. std::swap(_cached_size_, other->_cached_size_);
  7908. _extensions_.Swap(&other->_extensions_);
  7909. }
  7910. ::google::protobuf::Metadata FileOptions::GetMetadata() const {
  7911. protobuf_AssignDescriptorsOnce();
  7912. ::google::protobuf::Metadata metadata;
  7913. metadata.descriptor = FileOptions_descriptor_;
  7914. metadata.reflection = FileOptions_reflection_;
  7915. return metadata;
  7916. }
  7917. #if PROTOBUF_INLINE_NOT_IN_HEADERS
  7918. // FileOptions
  7919. // optional string java_package = 1;
  7920. bool FileOptions::has_java_package() const {
  7921. return (_has_bits_[0] & 0x00000001u) != 0;
  7922. }
  7923. void FileOptions::set_has_java_package() {
  7924. _has_bits_[0] |= 0x00000001u;
  7925. }
  7926. void FileOptions::clear_has_java_package() {
  7927. _has_bits_[0] &= ~0x00000001u;
  7928. }
  7929. void FileOptions::clear_java_package() {
  7930. java_package_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  7931. clear_has_java_package();
  7932. }
  7933. const ::std::string& FileOptions::java_package() const {
  7934. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_package)
  7935. return java_package_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  7936. }
  7937. void FileOptions::set_java_package(const ::std::string& value) {
  7938. set_has_java_package();
  7939. java_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  7940. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_package)
  7941. }
  7942. void FileOptions::set_java_package(const char* value) {
  7943. set_has_java_package();
  7944. java_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  7945. // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.java_package)
  7946. }
  7947. void FileOptions::set_java_package(const char* value, size_t size) {
  7948. set_has_java_package();
  7949. java_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  7950. ::std::string(reinterpret_cast<const char*>(value), size));
  7951. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.java_package)
  7952. }
  7953. ::std::string* FileOptions::mutable_java_package() {
  7954. set_has_java_package();
  7955. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.java_package)
  7956. return java_package_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  7957. }
  7958. ::std::string* FileOptions::release_java_package() {
  7959. clear_has_java_package();
  7960. return java_package_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  7961. }
  7962. void FileOptions::set_allocated_java_package(::std::string* java_package) {
  7963. if (java_package != NULL) {
  7964. set_has_java_package();
  7965. } else {
  7966. clear_has_java_package();
  7967. }
  7968. java_package_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), java_package);
  7969. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.java_package)
  7970. }
  7971. // optional string java_outer_classname = 8;
  7972. bool FileOptions::has_java_outer_classname() const {
  7973. return (_has_bits_[0] & 0x00000002u) != 0;
  7974. }
  7975. void FileOptions::set_has_java_outer_classname() {
  7976. _has_bits_[0] |= 0x00000002u;
  7977. }
  7978. void FileOptions::clear_has_java_outer_classname() {
  7979. _has_bits_[0] &= ~0x00000002u;
  7980. }
  7981. void FileOptions::clear_java_outer_classname() {
  7982. java_outer_classname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  7983. clear_has_java_outer_classname();
  7984. }
  7985. const ::std::string& FileOptions::java_outer_classname() const {
  7986. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_outer_classname)
  7987. return java_outer_classname_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  7988. }
  7989. void FileOptions::set_java_outer_classname(const ::std::string& value) {
  7990. set_has_java_outer_classname();
  7991. java_outer_classname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  7992. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_outer_classname)
  7993. }
  7994. void FileOptions::set_java_outer_classname(const char* value) {
  7995. set_has_java_outer_classname();
  7996. java_outer_classname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  7997. // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.java_outer_classname)
  7998. }
  7999. void FileOptions::set_java_outer_classname(const char* value, size_t size) {
  8000. set_has_java_outer_classname();
  8001. java_outer_classname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  8002. ::std::string(reinterpret_cast<const char*>(value), size));
  8003. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.java_outer_classname)
  8004. }
  8005. ::std::string* FileOptions::mutable_java_outer_classname() {
  8006. set_has_java_outer_classname();
  8007. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.java_outer_classname)
  8008. return java_outer_classname_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  8009. }
  8010. ::std::string* FileOptions::release_java_outer_classname() {
  8011. clear_has_java_outer_classname();
  8012. return java_outer_classname_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  8013. }
  8014. void FileOptions::set_allocated_java_outer_classname(::std::string* java_outer_classname) {
  8015. if (java_outer_classname != NULL) {
  8016. set_has_java_outer_classname();
  8017. } else {
  8018. clear_has_java_outer_classname();
  8019. }
  8020. java_outer_classname_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), java_outer_classname);
  8021. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.java_outer_classname)
  8022. }
  8023. // optional bool java_multiple_files = 10 [default = false];
  8024. bool FileOptions::has_java_multiple_files() const {
  8025. return (_has_bits_[0] & 0x00000004u) != 0;
  8026. }
  8027. void FileOptions::set_has_java_multiple_files() {
  8028. _has_bits_[0] |= 0x00000004u;
  8029. }
  8030. void FileOptions::clear_has_java_multiple_files() {
  8031. _has_bits_[0] &= ~0x00000004u;
  8032. }
  8033. void FileOptions::clear_java_multiple_files() {
  8034. java_multiple_files_ = false;
  8035. clear_has_java_multiple_files();
  8036. }
  8037. bool FileOptions::java_multiple_files() const {
  8038. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_multiple_files)
  8039. return java_multiple_files_;
  8040. }
  8041. void FileOptions::set_java_multiple_files(bool value) {
  8042. set_has_java_multiple_files();
  8043. java_multiple_files_ = value;
  8044. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_multiple_files)
  8045. }
  8046. // optional bool java_generate_equals_and_hash = 20 [default = false];
  8047. bool FileOptions::has_java_generate_equals_and_hash() const {
  8048. return (_has_bits_[0] & 0x00000008u) != 0;
  8049. }
  8050. void FileOptions::set_has_java_generate_equals_and_hash() {
  8051. _has_bits_[0] |= 0x00000008u;
  8052. }
  8053. void FileOptions::clear_has_java_generate_equals_and_hash() {
  8054. _has_bits_[0] &= ~0x00000008u;
  8055. }
  8056. void FileOptions::clear_java_generate_equals_and_hash() {
  8057. java_generate_equals_and_hash_ = false;
  8058. clear_has_java_generate_equals_and_hash();
  8059. }
  8060. bool FileOptions::java_generate_equals_and_hash() const {
  8061. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_generate_equals_and_hash)
  8062. return java_generate_equals_and_hash_;
  8063. }
  8064. void FileOptions::set_java_generate_equals_and_hash(bool value) {
  8065. set_has_java_generate_equals_and_hash();
  8066. java_generate_equals_and_hash_ = value;
  8067. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_generate_equals_and_hash)
  8068. }
  8069. // optional bool java_string_check_utf8 = 27 [default = false];
  8070. bool FileOptions::has_java_string_check_utf8() const {
  8071. return (_has_bits_[0] & 0x00000010u) != 0;
  8072. }
  8073. void FileOptions::set_has_java_string_check_utf8() {
  8074. _has_bits_[0] |= 0x00000010u;
  8075. }
  8076. void FileOptions::clear_has_java_string_check_utf8() {
  8077. _has_bits_[0] &= ~0x00000010u;
  8078. }
  8079. void FileOptions::clear_java_string_check_utf8() {
  8080. java_string_check_utf8_ = false;
  8081. clear_has_java_string_check_utf8();
  8082. }
  8083. bool FileOptions::java_string_check_utf8() const {
  8084. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_string_check_utf8)
  8085. return java_string_check_utf8_;
  8086. }
  8087. void FileOptions::set_java_string_check_utf8(bool value) {
  8088. set_has_java_string_check_utf8();
  8089. java_string_check_utf8_ = value;
  8090. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_string_check_utf8)
  8091. }
  8092. // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
  8093. bool FileOptions::has_optimize_for() const {
  8094. return (_has_bits_[0] & 0x00000020u) != 0;
  8095. }
  8096. void FileOptions::set_has_optimize_for() {
  8097. _has_bits_[0] |= 0x00000020u;
  8098. }
  8099. void FileOptions::clear_has_optimize_for() {
  8100. _has_bits_[0] &= ~0x00000020u;
  8101. }
  8102. void FileOptions::clear_optimize_for() {
  8103. optimize_for_ = 1;
  8104. clear_has_optimize_for();
  8105. }
  8106. ::google::protobuf::FileOptions_OptimizeMode FileOptions::optimize_for() const {
  8107. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.optimize_for)
  8108. return static_cast< ::google::protobuf::FileOptions_OptimizeMode >(optimize_for_);
  8109. }
  8110. void FileOptions::set_optimize_for(::google::protobuf::FileOptions_OptimizeMode value) {
  8111. assert(::google::protobuf::FileOptions_OptimizeMode_IsValid(value));
  8112. set_has_optimize_for();
  8113. optimize_for_ = value;
  8114. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.optimize_for)
  8115. }
  8116. // optional string go_package = 11;
  8117. bool FileOptions::has_go_package() const {
  8118. return (_has_bits_[0] & 0x00000040u) != 0;
  8119. }
  8120. void FileOptions::set_has_go_package() {
  8121. _has_bits_[0] |= 0x00000040u;
  8122. }
  8123. void FileOptions::clear_has_go_package() {
  8124. _has_bits_[0] &= ~0x00000040u;
  8125. }
  8126. void FileOptions::clear_go_package() {
  8127. go_package_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  8128. clear_has_go_package();
  8129. }
  8130. const ::std::string& FileOptions::go_package() const {
  8131. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.go_package)
  8132. return go_package_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  8133. }
  8134. void FileOptions::set_go_package(const ::std::string& value) {
  8135. set_has_go_package();
  8136. go_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  8137. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.go_package)
  8138. }
  8139. void FileOptions::set_go_package(const char* value) {
  8140. set_has_go_package();
  8141. go_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  8142. // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.go_package)
  8143. }
  8144. void FileOptions::set_go_package(const char* value, size_t size) {
  8145. set_has_go_package();
  8146. go_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  8147. ::std::string(reinterpret_cast<const char*>(value), size));
  8148. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.go_package)
  8149. }
  8150. ::std::string* FileOptions::mutable_go_package() {
  8151. set_has_go_package();
  8152. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.go_package)
  8153. return go_package_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  8154. }
  8155. ::std::string* FileOptions::release_go_package() {
  8156. clear_has_go_package();
  8157. return go_package_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  8158. }
  8159. void FileOptions::set_allocated_go_package(::std::string* go_package) {
  8160. if (go_package != NULL) {
  8161. set_has_go_package();
  8162. } else {
  8163. clear_has_go_package();
  8164. }
  8165. go_package_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), go_package);
  8166. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.go_package)
  8167. }
  8168. // optional bool cc_generic_services = 16 [default = false];
  8169. bool FileOptions::has_cc_generic_services() const {
  8170. return (_has_bits_[0] & 0x00000080u) != 0;
  8171. }
  8172. void FileOptions::set_has_cc_generic_services() {
  8173. _has_bits_[0] |= 0x00000080u;
  8174. }
  8175. void FileOptions::clear_has_cc_generic_services() {
  8176. _has_bits_[0] &= ~0x00000080u;
  8177. }
  8178. void FileOptions::clear_cc_generic_services() {
  8179. cc_generic_services_ = false;
  8180. clear_has_cc_generic_services();
  8181. }
  8182. bool FileOptions::cc_generic_services() const {
  8183. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.cc_generic_services)
  8184. return cc_generic_services_;
  8185. }
  8186. void FileOptions::set_cc_generic_services(bool value) {
  8187. set_has_cc_generic_services();
  8188. cc_generic_services_ = value;
  8189. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.cc_generic_services)
  8190. }
  8191. // optional bool java_generic_services = 17 [default = false];
  8192. bool FileOptions::has_java_generic_services() const {
  8193. return (_has_bits_[0] & 0x00000100u) != 0;
  8194. }
  8195. void FileOptions::set_has_java_generic_services() {
  8196. _has_bits_[0] |= 0x00000100u;
  8197. }
  8198. void FileOptions::clear_has_java_generic_services() {
  8199. _has_bits_[0] &= ~0x00000100u;
  8200. }
  8201. void FileOptions::clear_java_generic_services() {
  8202. java_generic_services_ = false;
  8203. clear_has_java_generic_services();
  8204. }
  8205. bool FileOptions::java_generic_services() const {
  8206. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_generic_services)
  8207. return java_generic_services_;
  8208. }
  8209. void FileOptions::set_java_generic_services(bool value) {
  8210. set_has_java_generic_services();
  8211. java_generic_services_ = value;
  8212. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_generic_services)
  8213. }
  8214. // optional bool py_generic_services = 18 [default = false];
  8215. bool FileOptions::has_py_generic_services() const {
  8216. return (_has_bits_[0] & 0x00000200u) != 0;
  8217. }
  8218. void FileOptions::set_has_py_generic_services() {
  8219. _has_bits_[0] |= 0x00000200u;
  8220. }
  8221. void FileOptions::clear_has_py_generic_services() {
  8222. _has_bits_[0] &= ~0x00000200u;
  8223. }
  8224. void FileOptions::clear_py_generic_services() {
  8225. py_generic_services_ = false;
  8226. clear_has_py_generic_services();
  8227. }
  8228. bool FileOptions::py_generic_services() const {
  8229. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.py_generic_services)
  8230. return py_generic_services_;
  8231. }
  8232. void FileOptions::set_py_generic_services(bool value) {
  8233. set_has_py_generic_services();
  8234. py_generic_services_ = value;
  8235. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.py_generic_services)
  8236. }
  8237. // optional bool deprecated = 23 [default = false];
  8238. bool FileOptions::has_deprecated() const {
  8239. return (_has_bits_[0] & 0x00000400u) != 0;
  8240. }
  8241. void FileOptions::set_has_deprecated() {
  8242. _has_bits_[0] |= 0x00000400u;
  8243. }
  8244. void FileOptions::clear_has_deprecated() {
  8245. _has_bits_[0] &= ~0x00000400u;
  8246. }
  8247. void FileOptions::clear_deprecated() {
  8248. deprecated_ = false;
  8249. clear_has_deprecated();
  8250. }
  8251. bool FileOptions::deprecated() const {
  8252. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.deprecated)
  8253. return deprecated_;
  8254. }
  8255. void FileOptions::set_deprecated(bool value) {
  8256. set_has_deprecated();
  8257. deprecated_ = value;
  8258. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.deprecated)
  8259. }
  8260. // optional bool cc_enable_arenas = 31 [default = false];
  8261. bool FileOptions::has_cc_enable_arenas() const {
  8262. return (_has_bits_[0] & 0x00000800u) != 0;
  8263. }
  8264. void FileOptions::set_has_cc_enable_arenas() {
  8265. _has_bits_[0] |= 0x00000800u;
  8266. }
  8267. void FileOptions::clear_has_cc_enable_arenas() {
  8268. _has_bits_[0] &= ~0x00000800u;
  8269. }
  8270. void FileOptions::clear_cc_enable_arenas() {
  8271. cc_enable_arenas_ = false;
  8272. clear_has_cc_enable_arenas();
  8273. }
  8274. bool FileOptions::cc_enable_arenas() const {
  8275. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.cc_enable_arenas)
  8276. return cc_enable_arenas_;
  8277. }
  8278. void FileOptions::set_cc_enable_arenas(bool value) {
  8279. set_has_cc_enable_arenas();
  8280. cc_enable_arenas_ = value;
  8281. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.cc_enable_arenas)
  8282. }
  8283. // optional string objc_class_prefix = 36;
  8284. bool FileOptions::has_objc_class_prefix() const {
  8285. return (_has_bits_[0] & 0x00001000u) != 0;
  8286. }
  8287. void FileOptions::set_has_objc_class_prefix() {
  8288. _has_bits_[0] |= 0x00001000u;
  8289. }
  8290. void FileOptions::clear_has_objc_class_prefix() {
  8291. _has_bits_[0] &= ~0x00001000u;
  8292. }
  8293. void FileOptions::clear_objc_class_prefix() {
  8294. objc_class_prefix_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  8295. clear_has_objc_class_prefix();
  8296. }
  8297. const ::std::string& FileOptions::objc_class_prefix() const {
  8298. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.objc_class_prefix)
  8299. return objc_class_prefix_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  8300. }
  8301. void FileOptions::set_objc_class_prefix(const ::std::string& value) {
  8302. set_has_objc_class_prefix();
  8303. objc_class_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  8304. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.objc_class_prefix)
  8305. }
  8306. void FileOptions::set_objc_class_prefix(const char* value) {
  8307. set_has_objc_class_prefix();
  8308. objc_class_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  8309. // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.objc_class_prefix)
  8310. }
  8311. void FileOptions::set_objc_class_prefix(const char* value, size_t size) {
  8312. set_has_objc_class_prefix();
  8313. objc_class_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  8314. ::std::string(reinterpret_cast<const char*>(value), size));
  8315. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.objc_class_prefix)
  8316. }
  8317. ::std::string* FileOptions::mutable_objc_class_prefix() {
  8318. set_has_objc_class_prefix();
  8319. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.objc_class_prefix)
  8320. return objc_class_prefix_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  8321. }
  8322. ::std::string* FileOptions::release_objc_class_prefix() {
  8323. clear_has_objc_class_prefix();
  8324. return objc_class_prefix_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  8325. }
  8326. void FileOptions::set_allocated_objc_class_prefix(::std::string* objc_class_prefix) {
  8327. if (objc_class_prefix != NULL) {
  8328. set_has_objc_class_prefix();
  8329. } else {
  8330. clear_has_objc_class_prefix();
  8331. }
  8332. objc_class_prefix_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), objc_class_prefix);
  8333. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.objc_class_prefix)
  8334. }
  8335. // optional string csharp_namespace = 37;
  8336. bool FileOptions::has_csharp_namespace() const {
  8337. return (_has_bits_[0] & 0x00002000u) != 0;
  8338. }
  8339. void FileOptions::set_has_csharp_namespace() {
  8340. _has_bits_[0] |= 0x00002000u;
  8341. }
  8342. void FileOptions::clear_has_csharp_namespace() {
  8343. _has_bits_[0] &= ~0x00002000u;
  8344. }
  8345. void FileOptions::clear_csharp_namespace() {
  8346. csharp_namespace_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  8347. clear_has_csharp_namespace();
  8348. }
  8349. const ::std::string& FileOptions::csharp_namespace() const {
  8350. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.csharp_namespace)
  8351. return csharp_namespace_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  8352. }
  8353. void FileOptions::set_csharp_namespace(const ::std::string& value) {
  8354. set_has_csharp_namespace();
  8355. csharp_namespace_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  8356. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.csharp_namespace)
  8357. }
  8358. void FileOptions::set_csharp_namespace(const char* value) {
  8359. set_has_csharp_namespace();
  8360. csharp_namespace_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  8361. // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.csharp_namespace)
  8362. }
  8363. void FileOptions::set_csharp_namespace(const char* value, size_t size) {
  8364. set_has_csharp_namespace();
  8365. csharp_namespace_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  8366. ::std::string(reinterpret_cast<const char*>(value), size));
  8367. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.csharp_namespace)
  8368. }
  8369. ::std::string* FileOptions::mutable_csharp_namespace() {
  8370. set_has_csharp_namespace();
  8371. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.csharp_namespace)
  8372. return csharp_namespace_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  8373. }
  8374. ::std::string* FileOptions::release_csharp_namespace() {
  8375. clear_has_csharp_namespace();
  8376. return csharp_namespace_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  8377. }
  8378. void FileOptions::set_allocated_csharp_namespace(::std::string* csharp_namespace) {
  8379. if (csharp_namespace != NULL) {
  8380. set_has_csharp_namespace();
  8381. } else {
  8382. clear_has_csharp_namespace();
  8383. }
  8384. csharp_namespace_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), csharp_namespace);
  8385. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.csharp_namespace)
  8386. }
  8387. // optional bool javanano_use_deprecated_package = 38;
  8388. bool FileOptions::has_javanano_use_deprecated_package() const {
  8389. return (_has_bits_[0] & 0x00004000u) != 0;
  8390. }
  8391. void FileOptions::set_has_javanano_use_deprecated_package() {
  8392. _has_bits_[0] |= 0x00004000u;
  8393. }
  8394. void FileOptions::clear_has_javanano_use_deprecated_package() {
  8395. _has_bits_[0] &= ~0x00004000u;
  8396. }
  8397. void FileOptions::clear_javanano_use_deprecated_package() {
  8398. javanano_use_deprecated_package_ = false;
  8399. clear_has_javanano_use_deprecated_package();
  8400. }
  8401. bool FileOptions::javanano_use_deprecated_package() const {
  8402. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.javanano_use_deprecated_package)
  8403. return javanano_use_deprecated_package_;
  8404. }
  8405. void FileOptions::set_javanano_use_deprecated_package(bool value) {
  8406. set_has_javanano_use_deprecated_package();
  8407. javanano_use_deprecated_package_ = value;
  8408. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.javanano_use_deprecated_package)
  8409. }
  8410. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  8411. int FileOptions::uninterpreted_option_size() const {
  8412. return uninterpreted_option_.size();
  8413. }
  8414. void FileOptions::clear_uninterpreted_option() {
  8415. uninterpreted_option_.Clear();
  8416. }
  8417. const ::google::protobuf::UninterpretedOption& FileOptions::uninterpreted_option(int index) const {
  8418. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.uninterpreted_option)
  8419. return uninterpreted_option_.Get(index);
  8420. }
  8421. ::google::protobuf::UninterpretedOption* FileOptions::mutable_uninterpreted_option(int index) {
  8422. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.uninterpreted_option)
  8423. return uninterpreted_option_.Mutable(index);
  8424. }
  8425. ::google::protobuf::UninterpretedOption* FileOptions::add_uninterpreted_option() {
  8426. // @@protoc_insertion_point(field_add:google.protobuf.FileOptions.uninterpreted_option)
  8427. return uninterpreted_option_.Add();
  8428. }
  8429. ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
  8430. FileOptions::mutable_uninterpreted_option() {
  8431. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileOptions.uninterpreted_option)
  8432. return &uninterpreted_option_;
  8433. }
  8434. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
  8435. FileOptions::uninterpreted_option() const {
  8436. // @@protoc_insertion_point(field_list:google.protobuf.FileOptions.uninterpreted_option)
  8437. return uninterpreted_option_;
  8438. }
  8439. #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
  8440. // ===================================================================
  8441. #ifndef _MSC_VER
  8442. const int MessageOptions::kMessageSetWireFormatFieldNumber;
  8443. const int MessageOptions::kNoStandardDescriptorAccessorFieldNumber;
  8444. const int MessageOptions::kDeprecatedFieldNumber;
  8445. const int MessageOptions::kMapEntryFieldNumber;
  8446. const int MessageOptions::kUninterpretedOptionFieldNumber;
  8447. #endif // !_MSC_VER
  8448. MessageOptions::MessageOptions()
  8449. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  8450. SharedCtor();
  8451. // @@protoc_insertion_point(constructor:google.protobuf.MessageOptions)
  8452. }
  8453. void MessageOptions::InitAsDefaultInstance() {
  8454. }
  8455. MessageOptions::MessageOptions(const MessageOptions& from)
  8456. : ::google::protobuf::Message(),
  8457. _internal_metadata_(NULL) {
  8458. SharedCtor();
  8459. MergeFrom(from);
  8460. // @@protoc_insertion_point(copy_constructor:google.protobuf.MessageOptions)
  8461. }
  8462. void MessageOptions::SharedCtor() {
  8463. _cached_size_ = 0;
  8464. message_set_wire_format_ = false;
  8465. no_standard_descriptor_accessor_ = false;
  8466. deprecated_ = false;
  8467. map_entry_ = false;
  8468. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  8469. }
  8470. MessageOptions::~MessageOptions() {
  8471. // @@protoc_insertion_point(destructor:google.protobuf.MessageOptions)
  8472. SharedDtor();
  8473. }
  8474. void MessageOptions::SharedDtor() {
  8475. if (this != default_instance_) {
  8476. }
  8477. }
  8478. void MessageOptions::SetCachedSize(int size) const {
  8479. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  8480. _cached_size_ = size;
  8481. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  8482. }
  8483. const ::google::protobuf::Descriptor* MessageOptions::descriptor() {
  8484. protobuf_AssignDescriptorsOnce();
  8485. return MessageOptions_descriptor_;
  8486. }
  8487. const MessageOptions& MessageOptions::default_instance() {
  8488. if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  8489. return *default_instance_;
  8490. }
  8491. MessageOptions* MessageOptions::default_instance_ = NULL;
  8492. MessageOptions* MessageOptions::New(::google::protobuf::Arena* arena) const {
  8493. MessageOptions* n = new MessageOptions;
  8494. if (arena != NULL) {
  8495. arena->Own(n);
  8496. }
  8497. return n;
  8498. }
  8499. void MessageOptions::Clear() {
  8500. _extensions_.Clear();
  8501. #define ZR_HELPER_(f) reinterpret_cast<char*>(\
  8502. &reinterpret_cast<MessageOptions*>(16)->f)
  8503. #define ZR_(first, last) do {\
  8504. ::memset(&first, 0,\
  8505. ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\
  8506. } while (0)
  8507. ZR_(message_set_wire_format_, map_entry_);
  8508. #undef ZR_HELPER_
  8509. #undef ZR_
  8510. uninterpreted_option_.Clear();
  8511. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  8512. if (_internal_metadata_.have_unknown_fields()) {
  8513. mutable_unknown_fields()->Clear();
  8514. }
  8515. }
  8516. bool MessageOptions::MergePartialFromCodedStream(
  8517. ::google::protobuf::io::CodedInputStream* input) {
  8518. #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
  8519. ::google::protobuf::uint32 tag;
  8520. // @@protoc_insertion_point(parse_start:google.protobuf.MessageOptions)
  8521. for (;;) {
  8522. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383);
  8523. tag = p.first;
  8524. if (!p.second) goto handle_unusual;
  8525. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  8526. // optional bool message_set_wire_format = 1 [default = false];
  8527. case 1: {
  8528. if (tag == 8) {
  8529. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  8530. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL_X>(
  8531. input, &message_set_wire_format_)));
  8532. set_has_message_set_wire_format();
  8533. } else {
  8534. goto handle_unusual;
  8535. }
  8536. if (input->ExpectTag(16)) goto parse_no_standard_descriptor_accessor;
  8537. break;
  8538. }
  8539. // optional bool no_standard_descriptor_accessor = 2 [default = false];
  8540. case 2: {
  8541. if (tag == 16) {
  8542. parse_no_standard_descriptor_accessor:
  8543. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  8544. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL_X>(
  8545. input, &no_standard_descriptor_accessor_)));
  8546. set_has_no_standard_descriptor_accessor();
  8547. } else {
  8548. goto handle_unusual;
  8549. }
  8550. if (input->ExpectTag(24)) goto parse_deprecated;
  8551. break;
  8552. }
  8553. // optional bool deprecated = 3 [default = false];
  8554. case 3: {
  8555. if (tag == 24) {
  8556. parse_deprecated:
  8557. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  8558. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL_X>(
  8559. input, &deprecated_)));
  8560. set_has_deprecated();
  8561. } else {
  8562. goto handle_unusual;
  8563. }
  8564. if (input->ExpectTag(56)) goto parse_map_entry;
  8565. break;
  8566. }
  8567. // optional bool map_entry = 7;
  8568. case 7: {
  8569. if (tag == 56) {
  8570. parse_map_entry:
  8571. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  8572. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL_X>(
  8573. input, &map_entry_)));
  8574. set_has_map_entry();
  8575. } else {
  8576. goto handle_unusual;
  8577. }
  8578. if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
  8579. break;
  8580. }
  8581. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  8582. case 999: {
  8583. if (tag == 7994) {
  8584. parse_uninterpreted_option:
  8585. DO_(input->IncrementRecursionDepth());
  8586. parse_loop_uninterpreted_option:
  8587. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
  8588. input, add_uninterpreted_option()));
  8589. } else {
  8590. goto handle_unusual;
  8591. }
  8592. if (input->ExpectTag(7994)) goto parse_loop_uninterpreted_option;
  8593. input->UnsafeDecrementRecursionDepth();
  8594. if (input->ExpectAtEnd()) goto success;
  8595. break;
  8596. }
  8597. default: {
  8598. handle_unusual:
  8599. if (tag == 0 ||
  8600. ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  8601. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  8602. goto success;
  8603. }
  8604. if ((8000u <= tag)) {
  8605. DO_(_extensions_.ParseField(tag, input, default_instance_,
  8606. mutable_unknown_fields()));
  8607. continue;
  8608. }
  8609. DO_(::google::protobuf::internal::WireFormat::SkipField(
  8610. input, tag, mutable_unknown_fields()));
  8611. break;
  8612. }
  8613. }
  8614. }
  8615. success:
  8616. // @@protoc_insertion_point(parse_success:google.protobuf.MessageOptions)
  8617. return true;
  8618. failure:
  8619. // @@protoc_insertion_point(parse_failure:google.protobuf.MessageOptions)
  8620. return false;
  8621. #undef DO_
  8622. }
  8623. void MessageOptions::SerializeWithCachedSizes(
  8624. ::google::protobuf::io::CodedOutputStream* output) const {
  8625. // @@protoc_insertion_point(serialize_start:google.protobuf.MessageOptions)
  8626. // optional bool message_set_wire_format = 1 [default = false];
  8627. if (has_message_set_wire_format()) {
  8628. ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->message_set_wire_format(), output);
  8629. }
  8630. // optional bool no_standard_descriptor_accessor = 2 [default = false];
  8631. if (has_no_standard_descriptor_accessor()) {
  8632. ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->no_standard_descriptor_accessor(), output);
  8633. }
  8634. // optional bool deprecated = 3 [default = false];
  8635. if (has_deprecated()) {
  8636. ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->deprecated(), output);
  8637. }
  8638. // optional bool map_entry = 7;
  8639. if (has_map_entry()) {
  8640. ::google::protobuf::internal::WireFormatLite::WriteBool(7, this->map_entry(), output);
  8641. }
  8642. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  8643. for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) {
  8644. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  8645. 999, this->uninterpreted_option(i), output);
  8646. }
  8647. // Extension range [1000, 536870912)
  8648. _extensions_.SerializeWithCachedSizes(
  8649. 1000, 536870912, output);
  8650. if (_internal_metadata_.have_unknown_fields()) {
  8651. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  8652. unknown_fields(), output);
  8653. }
  8654. // @@protoc_insertion_point(serialize_end:google.protobuf.MessageOptions)
  8655. }
  8656. ::google::protobuf::uint8* MessageOptions::SerializeWithCachedSizesToArray(
  8657. ::google::protobuf::uint8* target) const {
  8658. // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.MessageOptions)
  8659. // optional bool message_set_wire_format = 1 [default = false];
  8660. if (has_message_set_wire_format()) {
  8661. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->message_set_wire_format(), target);
  8662. }
  8663. // optional bool no_standard_descriptor_accessor = 2 [default = false];
  8664. if (has_no_standard_descriptor_accessor()) {
  8665. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->no_standard_descriptor_accessor(), target);
  8666. }
  8667. // optional bool deprecated = 3 [default = false];
  8668. if (has_deprecated()) {
  8669. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->deprecated(), target);
  8670. }
  8671. // optional bool map_entry = 7;
  8672. if (has_map_entry()) {
  8673. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->map_entry(), target);
  8674. }
  8675. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  8676. for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) {
  8677. target = ::google::protobuf::internal::WireFormatLite::
  8678. WriteMessageNoVirtualToArray(
  8679. 999, this->uninterpreted_option(i), target);
  8680. }
  8681. // Extension range [1000, 536870912)
  8682. target = _extensions_.SerializeWithCachedSizesToArray(
  8683. 1000, 536870912, target);
  8684. if (_internal_metadata_.have_unknown_fields()) {
  8685. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  8686. unknown_fields(), target);
  8687. }
  8688. // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.MessageOptions)
  8689. return target;
  8690. }
  8691. int MessageOptions::ByteSize() const {
  8692. int total_size = 0;
  8693. if (_has_bits_[0 / 32] & 15u) {
  8694. // optional bool message_set_wire_format = 1 [default = false];
  8695. if (has_message_set_wire_format()) {
  8696. total_size += 1 + 1;
  8697. }
  8698. // optional bool no_standard_descriptor_accessor = 2 [default = false];
  8699. if (has_no_standard_descriptor_accessor()) {
  8700. total_size += 1 + 1;
  8701. }
  8702. // optional bool deprecated = 3 [default = false];
  8703. if (has_deprecated()) {
  8704. total_size += 1 + 1;
  8705. }
  8706. // optional bool map_entry = 7;
  8707. if (has_map_entry()) {
  8708. total_size += 1 + 1;
  8709. }
  8710. }
  8711. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  8712. total_size += 2 * this->uninterpreted_option_size();
  8713. for (int i = 0; i < this->uninterpreted_option_size(); i++) {
  8714. total_size +=
  8715. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  8716. this->uninterpreted_option(i));
  8717. }
  8718. total_size += _extensions_.ByteSize();
  8719. if (_internal_metadata_.have_unknown_fields()) {
  8720. total_size +=
  8721. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  8722. unknown_fields());
  8723. }
  8724. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  8725. _cached_size_ = total_size;
  8726. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  8727. return total_size;
  8728. }
  8729. void MessageOptions::MergeFrom(const ::google::protobuf::Message& from) {
  8730. if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
  8731. const MessageOptions* source =
  8732. ::google::protobuf::internal::DynamicCastToGenerated<const MessageOptions>(
  8733. &from);
  8734. if (source == NULL) {
  8735. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  8736. } else {
  8737. MergeFrom(*source);
  8738. }
  8739. }
  8740. void MessageOptions::MergeFrom(const MessageOptions& from) {
  8741. if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
  8742. uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
  8743. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  8744. if (from.has_message_set_wire_format()) {
  8745. set_message_set_wire_format(from.message_set_wire_format());
  8746. }
  8747. if (from.has_no_standard_descriptor_accessor()) {
  8748. set_no_standard_descriptor_accessor(from.no_standard_descriptor_accessor());
  8749. }
  8750. if (from.has_deprecated()) {
  8751. set_deprecated(from.deprecated());
  8752. }
  8753. if (from.has_map_entry()) {
  8754. set_map_entry(from.map_entry());
  8755. }
  8756. }
  8757. _extensions_.MergeFrom(from._extensions_);
  8758. if (from._internal_metadata_.have_unknown_fields()) {
  8759. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  8760. }
  8761. }
  8762. void MessageOptions::CopyFrom(const ::google::protobuf::Message& from) {
  8763. if (&from == this) return;
  8764. Clear();
  8765. MergeFrom(from);
  8766. }
  8767. void MessageOptions::CopyFrom(const MessageOptions& from) {
  8768. if (&from == this) return;
  8769. Clear();
  8770. MergeFrom(from);
  8771. }
  8772. bool MessageOptions::IsInitialized() const {
  8773. if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false;
  8774. if (!_extensions_.IsInitialized()) return false; return true;
  8775. }
  8776. void MessageOptions::Swap(MessageOptions* other) {
  8777. if (other == this) return;
  8778. InternalSwap(other);
  8779. }
  8780. void MessageOptions::InternalSwap(MessageOptions* other) {
  8781. std::swap(message_set_wire_format_, other->message_set_wire_format_);
  8782. std::swap(no_standard_descriptor_accessor_, other->no_standard_descriptor_accessor_);
  8783. std::swap(deprecated_, other->deprecated_);
  8784. std::swap(map_entry_, other->map_entry_);
  8785. uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_);
  8786. std::swap(_has_bits_[0], other->_has_bits_[0]);
  8787. _internal_metadata_.Swap(&other->_internal_metadata_);
  8788. std::swap(_cached_size_, other->_cached_size_);
  8789. _extensions_.Swap(&other->_extensions_);
  8790. }
  8791. ::google::protobuf::Metadata MessageOptions::GetMetadata() const {
  8792. protobuf_AssignDescriptorsOnce();
  8793. ::google::protobuf::Metadata metadata;
  8794. metadata.descriptor = MessageOptions_descriptor_;
  8795. metadata.reflection = MessageOptions_reflection_;
  8796. return metadata;
  8797. }
  8798. #if PROTOBUF_INLINE_NOT_IN_HEADERS
  8799. // MessageOptions
  8800. // optional bool message_set_wire_format = 1 [default = false];
  8801. bool MessageOptions::has_message_set_wire_format() const {
  8802. return (_has_bits_[0] & 0x00000001u) != 0;
  8803. }
  8804. void MessageOptions::set_has_message_set_wire_format() {
  8805. _has_bits_[0] |= 0x00000001u;
  8806. }
  8807. void MessageOptions::clear_has_message_set_wire_format() {
  8808. _has_bits_[0] &= ~0x00000001u;
  8809. }
  8810. void MessageOptions::clear_message_set_wire_format() {
  8811. message_set_wire_format_ = false;
  8812. clear_has_message_set_wire_format();
  8813. }
  8814. bool MessageOptions::message_set_wire_format() const {
  8815. // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.message_set_wire_format)
  8816. return message_set_wire_format_;
  8817. }
  8818. void MessageOptions::set_message_set_wire_format(bool value) {
  8819. set_has_message_set_wire_format();
  8820. message_set_wire_format_ = value;
  8821. // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.message_set_wire_format)
  8822. }
  8823. // optional bool no_standard_descriptor_accessor = 2 [default = false];
  8824. bool MessageOptions::has_no_standard_descriptor_accessor() const {
  8825. return (_has_bits_[0] & 0x00000002u) != 0;
  8826. }
  8827. void MessageOptions::set_has_no_standard_descriptor_accessor() {
  8828. _has_bits_[0] |= 0x00000002u;
  8829. }
  8830. void MessageOptions::clear_has_no_standard_descriptor_accessor() {
  8831. _has_bits_[0] &= ~0x00000002u;
  8832. }
  8833. void MessageOptions::clear_no_standard_descriptor_accessor() {
  8834. no_standard_descriptor_accessor_ = false;
  8835. clear_has_no_standard_descriptor_accessor();
  8836. }
  8837. bool MessageOptions::no_standard_descriptor_accessor() const {
  8838. // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.no_standard_descriptor_accessor)
  8839. return no_standard_descriptor_accessor_;
  8840. }
  8841. void MessageOptions::set_no_standard_descriptor_accessor(bool value) {
  8842. set_has_no_standard_descriptor_accessor();
  8843. no_standard_descriptor_accessor_ = value;
  8844. // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.no_standard_descriptor_accessor)
  8845. }
  8846. // optional bool deprecated = 3 [default = false];
  8847. bool MessageOptions::has_deprecated() const {
  8848. return (_has_bits_[0] & 0x00000004u) != 0;
  8849. }
  8850. void MessageOptions::set_has_deprecated() {
  8851. _has_bits_[0] |= 0x00000004u;
  8852. }
  8853. void MessageOptions::clear_has_deprecated() {
  8854. _has_bits_[0] &= ~0x00000004u;
  8855. }
  8856. void MessageOptions::clear_deprecated() {
  8857. deprecated_ = false;
  8858. clear_has_deprecated();
  8859. }
  8860. bool MessageOptions::deprecated() const {
  8861. // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.deprecated)
  8862. return deprecated_;
  8863. }
  8864. void MessageOptions::set_deprecated(bool value) {
  8865. set_has_deprecated();
  8866. deprecated_ = value;
  8867. // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.deprecated)
  8868. }
  8869. // optional bool map_entry = 7;
  8870. bool MessageOptions::has_map_entry() const {
  8871. return (_has_bits_[0] & 0x00000008u) != 0;
  8872. }
  8873. void MessageOptions::set_has_map_entry() {
  8874. _has_bits_[0] |= 0x00000008u;
  8875. }
  8876. void MessageOptions::clear_has_map_entry() {
  8877. _has_bits_[0] &= ~0x00000008u;
  8878. }
  8879. void MessageOptions::clear_map_entry() {
  8880. map_entry_ = false;
  8881. clear_has_map_entry();
  8882. }
  8883. bool MessageOptions::map_entry() const {
  8884. // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.map_entry)
  8885. return map_entry_;
  8886. }
  8887. void MessageOptions::set_map_entry(bool value) {
  8888. set_has_map_entry();
  8889. map_entry_ = value;
  8890. // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.map_entry)
  8891. }
  8892. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  8893. int MessageOptions::uninterpreted_option_size() const {
  8894. return uninterpreted_option_.size();
  8895. }
  8896. void MessageOptions::clear_uninterpreted_option() {
  8897. uninterpreted_option_.Clear();
  8898. }
  8899. const ::google::protobuf::UninterpretedOption& MessageOptions::uninterpreted_option(int index) const {
  8900. // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.uninterpreted_option)
  8901. return uninterpreted_option_.Get(index);
  8902. }
  8903. ::google::protobuf::UninterpretedOption* MessageOptions::mutable_uninterpreted_option(int index) {
  8904. // @@protoc_insertion_point(field_mutable:google.protobuf.MessageOptions.uninterpreted_option)
  8905. return uninterpreted_option_.Mutable(index);
  8906. }
  8907. ::google::protobuf::UninterpretedOption* MessageOptions::add_uninterpreted_option() {
  8908. // @@protoc_insertion_point(field_add:google.protobuf.MessageOptions.uninterpreted_option)
  8909. return uninterpreted_option_.Add();
  8910. }
  8911. ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
  8912. MessageOptions::mutable_uninterpreted_option() {
  8913. // @@protoc_insertion_point(field_mutable_list:google.protobuf.MessageOptions.uninterpreted_option)
  8914. return &uninterpreted_option_;
  8915. }
  8916. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
  8917. MessageOptions::uninterpreted_option() const {
  8918. // @@protoc_insertion_point(field_list:google.protobuf.MessageOptions.uninterpreted_option)
  8919. return uninterpreted_option_;
  8920. }
  8921. #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
  8922. // ===================================================================
  8923. const ::google::protobuf::EnumDescriptor* FieldOptions_CType_descriptor() {
  8924. protobuf_AssignDescriptorsOnce();
  8925. return FieldOptions_CType_descriptor_;
  8926. }
  8927. bool FieldOptions_CType_IsValid(int value) {
  8928. switch(value) {
  8929. case 0:
  8930. case 1:
  8931. case 2:
  8932. return true;
  8933. default:
  8934. return false;
  8935. }
  8936. }
  8937. #ifndef _MSC_VER
  8938. const FieldOptions_CType FieldOptions::STRING;
  8939. const FieldOptions_CType FieldOptions::CORD;
  8940. const FieldOptions_CType FieldOptions::STRING_PIECE;
  8941. const FieldOptions_CType FieldOptions::CType_MIN;
  8942. const FieldOptions_CType FieldOptions::CType_MAX;
  8943. const int FieldOptions::CType_ARRAYSIZE;
  8944. #endif // _MSC_VER
  8945. const ::google::protobuf::EnumDescriptor* FieldOptions_JSType_descriptor() {
  8946. protobuf_AssignDescriptorsOnce();
  8947. return FieldOptions_JSType_descriptor_;
  8948. }
  8949. bool FieldOptions_JSType_IsValid(int value) {
  8950. switch(value) {
  8951. case 0:
  8952. case 1:
  8953. case 2:
  8954. return true;
  8955. default:
  8956. return false;
  8957. }
  8958. }
  8959. #ifndef _MSC_VER
  8960. const FieldOptions_JSType FieldOptions::JS_NORMAL;
  8961. const FieldOptions_JSType FieldOptions::JS_STRING;
  8962. const FieldOptions_JSType FieldOptions::JS_NUMBER;
  8963. const FieldOptions_JSType FieldOptions::JSType_MIN;
  8964. const FieldOptions_JSType FieldOptions::JSType_MAX;
  8965. const int FieldOptions::JSType_ARRAYSIZE;
  8966. #endif // _MSC_VER
  8967. #ifndef _MSC_VER
  8968. const int FieldOptions::kCtypeFieldNumber;
  8969. const int FieldOptions::kPackedFieldNumber;
  8970. const int FieldOptions::kJstypeFieldNumber;
  8971. const int FieldOptions::kLazyFieldNumber;
  8972. const int FieldOptions::kDeprecatedFieldNumber;
  8973. const int FieldOptions::kWeakFieldNumber;
  8974. const int FieldOptions::kUninterpretedOptionFieldNumber;
  8975. #endif // !_MSC_VER
  8976. FieldOptions::FieldOptions()
  8977. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  8978. SharedCtor();
  8979. // @@protoc_insertion_point(constructor:google.protobuf.FieldOptions)
  8980. }
  8981. void FieldOptions::InitAsDefaultInstance() {
  8982. }
  8983. FieldOptions::FieldOptions(const FieldOptions& from)
  8984. : ::google::protobuf::Message(),
  8985. _internal_metadata_(NULL) {
  8986. SharedCtor();
  8987. MergeFrom(from);
  8988. // @@protoc_insertion_point(copy_constructor:google.protobuf.FieldOptions)
  8989. }
  8990. void FieldOptions::SharedCtor() {
  8991. _cached_size_ = 0;
  8992. ctype_ = 0;
  8993. packed_ = false;
  8994. jstype_ = 0;
  8995. lazy_ = false;
  8996. deprecated_ = false;
  8997. weak_ = false;
  8998. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  8999. }
  9000. FieldOptions::~FieldOptions() {
  9001. // @@protoc_insertion_point(destructor:google.protobuf.FieldOptions)
  9002. SharedDtor();
  9003. }
  9004. void FieldOptions::SharedDtor() {
  9005. if (this != default_instance_) {
  9006. }
  9007. }
  9008. void FieldOptions::SetCachedSize(int size) const {
  9009. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  9010. _cached_size_ = size;
  9011. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  9012. }
  9013. const ::google::protobuf::Descriptor* FieldOptions::descriptor() {
  9014. protobuf_AssignDescriptorsOnce();
  9015. return FieldOptions_descriptor_;
  9016. }
  9017. const FieldOptions& FieldOptions::default_instance() {
  9018. if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  9019. return *default_instance_;
  9020. }
  9021. FieldOptions* FieldOptions::default_instance_ = NULL;
  9022. FieldOptions* FieldOptions::New(::google::protobuf::Arena* arena) const {
  9023. FieldOptions* n = new FieldOptions;
  9024. if (arena != NULL) {
  9025. arena->Own(n);
  9026. }
  9027. return n;
  9028. }
  9029. void FieldOptions::Clear() {
  9030. _extensions_.Clear();
  9031. #define ZR_HELPER_(f) reinterpret_cast<char*>(\
  9032. &reinterpret_cast<FieldOptions*>(16)->f)
  9033. #define ZR_(first, last) do {\
  9034. ::memset(&first, 0,\
  9035. ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\
  9036. } while (0)
  9037. if (_has_bits_[0 / 32] & 63u) {
  9038. ZR_(ctype_, jstype_);
  9039. ZR_(packed_, weak_);
  9040. }
  9041. #undef ZR_HELPER_
  9042. #undef ZR_
  9043. uninterpreted_option_.Clear();
  9044. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  9045. if (_internal_metadata_.have_unknown_fields()) {
  9046. mutable_unknown_fields()->Clear();
  9047. }
  9048. }
  9049. bool FieldOptions::MergePartialFromCodedStream(
  9050. ::google::protobuf::io::CodedInputStream* input) {
  9051. #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
  9052. ::google::protobuf::uint32 tag;
  9053. // @@protoc_insertion_point(parse_start:google.protobuf.FieldOptions)
  9054. for (;;) {
  9055. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383);
  9056. tag = p.first;
  9057. if (!p.second) goto handle_unusual;
  9058. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  9059. // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
  9060. case 1: {
  9061. if (tag == 8) {
  9062. int value;
  9063. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  9064. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  9065. input, &value)));
  9066. if (::google::protobuf::FieldOptions_CType_IsValid(value)) {
  9067. set_ctype(static_cast< ::google::protobuf::FieldOptions_CType >(value));
  9068. } else {
  9069. mutable_unknown_fields()->AddVarint(1, value);
  9070. }
  9071. } else {
  9072. goto handle_unusual;
  9073. }
  9074. if (input->ExpectTag(16)) goto parse_packed;
  9075. break;
  9076. }
  9077. // optional bool packed = 2;
  9078. case 2: {
  9079. if (tag == 16) {
  9080. parse_packed:
  9081. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  9082. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL_X>(
  9083. input, &packed_)));
  9084. set_has_packed();
  9085. } else {
  9086. goto handle_unusual;
  9087. }
  9088. if (input->ExpectTag(24)) goto parse_deprecated;
  9089. break;
  9090. }
  9091. // optional bool deprecated = 3 [default = false];
  9092. case 3: {
  9093. if (tag == 24) {
  9094. parse_deprecated:
  9095. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  9096. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL_X>(
  9097. input, &deprecated_)));
  9098. set_has_deprecated();
  9099. } else {
  9100. goto handle_unusual;
  9101. }
  9102. if (input->ExpectTag(40)) goto parse_lazy;
  9103. break;
  9104. }
  9105. // optional bool lazy = 5 [default = false];
  9106. case 5: {
  9107. if (tag == 40) {
  9108. parse_lazy:
  9109. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  9110. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL_X>(
  9111. input, &lazy_)));
  9112. set_has_lazy();
  9113. } else {
  9114. goto handle_unusual;
  9115. }
  9116. if (input->ExpectTag(48)) goto parse_jstype;
  9117. break;
  9118. }
  9119. // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];
  9120. case 6: {
  9121. if (tag == 48) {
  9122. parse_jstype:
  9123. int value;
  9124. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  9125. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  9126. input, &value)));
  9127. if (::google::protobuf::FieldOptions_JSType_IsValid(value)) {
  9128. set_jstype(static_cast< ::google::protobuf::FieldOptions_JSType >(value));
  9129. } else {
  9130. mutable_unknown_fields()->AddVarint(6, value);
  9131. }
  9132. } else {
  9133. goto handle_unusual;
  9134. }
  9135. if (input->ExpectTag(80)) goto parse_weak;
  9136. break;
  9137. }
  9138. // optional bool weak = 10 [default = false];
  9139. case 10: {
  9140. if (tag == 80) {
  9141. parse_weak:
  9142. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  9143. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL_X>(
  9144. input, &weak_)));
  9145. set_has_weak();
  9146. } else {
  9147. goto handle_unusual;
  9148. }
  9149. if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
  9150. break;
  9151. }
  9152. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  9153. case 999: {
  9154. if (tag == 7994) {
  9155. parse_uninterpreted_option:
  9156. DO_(input->IncrementRecursionDepth());
  9157. parse_loop_uninterpreted_option:
  9158. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
  9159. input, add_uninterpreted_option()));
  9160. } else {
  9161. goto handle_unusual;
  9162. }
  9163. if (input->ExpectTag(7994)) goto parse_loop_uninterpreted_option;
  9164. input->UnsafeDecrementRecursionDepth();
  9165. if (input->ExpectAtEnd()) goto success;
  9166. break;
  9167. }
  9168. default: {
  9169. handle_unusual:
  9170. if (tag == 0 ||
  9171. ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  9172. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  9173. goto success;
  9174. }
  9175. if ((8000u <= tag)) {
  9176. DO_(_extensions_.ParseField(tag, input, default_instance_,
  9177. mutable_unknown_fields()));
  9178. continue;
  9179. }
  9180. DO_(::google::protobuf::internal::WireFormat::SkipField(
  9181. input, tag, mutable_unknown_fields()));
  9182. break;
  9183. }
  9184. }
  9185. }
  9186. success:
  9187. // @@protoc_insertion_point(parse_success:google.protobuf.FieldOptions)
  9188. return true;
  9189. failure:
  9190. // @@protoc_insertion_point(parse_failure:google.protobuf.FieldOptions)
  9191. return false;
  9192. #undef DO_
  9193. }
  9194. void FieldOptions::SerializeWithCachedSizes(
  9195. ::google::protobuf::io::CodedOutputStream* output) const {
  9196. // @@protoc_insertion_point(serialize_start:google.protobuf.FieldOptions)
  9197. // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
  9198. if (has_ctype()) {
  9199. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  9200. 1, this->ctype(), output);
  9201. }
  9202. // optional bool packed = 2;
  9203. if (has_packed()) {
  9204. ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->packed(), output);
  9205. }
  9206. // optional bool deprecated = 3 [default = false];
  9207. if (has_deprecated()) {
  9208. ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->deprecated(), output);
  9209. }
  9210. // optional bool lazy = 5 [default = false];
  9211. if (has_lazy()) {
  9212. ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->lazy(), output);
  9213. }
  9214. // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];
  9215. if (has_jstype()) {
  9216. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  9217. 6, this->jstype(), output);
  9218. }
  9219. // optional bool weak = 10 [default = false];
  9220. if (has_weak()) {
  9221. ::google::protobuf::internal::WireFormatLite::WriteBool(10, this->weak(), output);
  9222. }
  9223. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  9224. for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) {
  9225. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  9226. 999, this->uninterpreted_option(i), output);
  9227. }
  9228. // Extension range [1000, 536870912)
  9229. _extensions_.SerializeWithCachedSizes(
  9230. 1000, 536870912, output);
  9231. if (_internal_metadata_.have_unknown_fields()) {
  9232. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  9233. unknown_fields(), output);
  9234. }
  9235. // @@protoc_insertion_point(serialize_end:google.protobuf.FieldOptions)
  9236. }
  9237. ::google::protobuf::uint8* FieldOptions::SerializeWithCachedSizesToArray(
  9238. ::google::protobuf::uint8* target) const {
  9239. // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FieldOptions)
  9240. // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
  9241. if (has_ctype()) {
  9242. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  9243. 1, this->ctype(), target);
  9244. }
  9245. // optional bool packed = 2;
  9246. if (has_packed()) {
  9247. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->packed(), target);
  9248. }
  9249. // optional bool deprecated = 3 [default = false];
  9250. if (has_deprecated()) {
  9251. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->deprecated(), target);
  9252. }
  9253. // optional bool lazy = 5 [default = false];
  9254. if (has_lazy()) {
  9255. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->lazy(), target);
  9256. }
  9257. // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];
  9258. if (has_jstype()) {
  9259. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  9260. 6, this->jstype(), target);
  9261. }
  9262. // optional bool weak = 10 [default = false];
  9263. if (has_weak()) {
  9264. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(10, this->weak(), target);
  9265. }
  9266. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  9267. for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) {
  9268. target = ::google::protobuf::internal::WireFormatLite::
  9269. WriteMessageNoVirtualToArray(
  9270. 999, this->uninterpreted_option(i), target);
  9271. }
  9272. // Extension range [1000, 536870912)
  9273. target = _extensions_.SerializeWithCachedSizesToArray(
  9274. 1000, 536870912, target);
  9275. if (_internal_metadata_.have_unknown_fields()) {
  9276. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  9277. unknown_fields(), target);
  9278. }
  9279. // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FieldOptions)
  9280. return target;
  9281. }
  9282. int FieldOptions::ByteSize() const {
  9283. int total_size = 0;
  9284. if (_has_bits_[0 / 32] & 63u) {
  9285. // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
  9286. if (has_ctype()) {
  9287. total_size += 1 +
  9288. ::google::protobuf::internal::WireFormatLite::EnumSize(this->ctype());
  9289. }
  9290. // optional bool packed = 2;
  9291. if (has_packed()) {
  9292. total_size += 1 + 1;
  9293. }
  9294. // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];
  9295. if (has_jstype()) {
  9296. total_size += 1 +
  9297. ::google::protobuf::internal::WireFormatLite::EnumSize(this->jstype());
  9298. }
  9299. // optional bool lazy = 5 [default = false];
  9300. if (has_lazy()) {
  9301. total_size += 1 + 1;
  9302. }
  9303. // optional bool deprecated = 3 [default = false];
  9304. if (has_deprecated()) {
  9305. total_size += 1 + 1;
  9306. }
  9307. // optional bool weak = 10 [default = false];
  9308. if (has_weak()) {
  9309. total_size += 1 + 1;
  9310. }
  9311. }
  9312. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  9313. total_size += 2 * this->uninterpreted_option_size();
  9314. for (int i = 0; i < this->uninterpreted_option_size(); i++) {
  9315. total_size +=
  9316. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  9317. this->uninterpreted_option(i));
  9318. }
  9319. total_size += _extensions_.ByteSize();
  9320. if (_internal_metadata_.have_unknown_fields()) {
  9321. total_size +=
  9322. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  9323. unknown_fields());
  9324. }
  9325. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  9326. _cached_size_ = total_size;
  9327. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  9328. return total_size;
  9329. }
  9330. void FieldOptions::MergeFrom(const ::google::protobuf::Message& from) {
  9331. if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
  9332. const FieldOptions* source =
  9333. ::google::protobuf::internal::DynamicCastToGenerated<const FieldOptions>(
  9334. &from);
  9335. if (source == NULL) {
  9336. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  9337. } else {
  9338. MergeFrom(*source);
  9339. }
  9340. }
  9341. void FieldOptions::MergeFrom(const FieldOptions& from) {
  9342. if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
  9343. uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
  9344. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  9345. if (from.has_ctype()) {
  9346. set_ctype(from.ctype());
  9347. }
  9348. if (from.has_packed()) {
  9349. set_packed(from.packed());
  9350. }
  9351. if (from.has_jstype()) {
  9352. set_jstype(from.jstype());
  9353. }
  9354. if (from.has_lazy()) {
  9355. set_lazy(from.lazy());
  9356. }
  9357. if (from.has_deprecated()) {
  9358. set_deprecated(from.deprecated());
  9359. }
  9360. if (from.has_weak()) {
  9361. set_weak(from.weak());
  9362. }
  9363. }
  9364. _extensions_.MergeFrom(from._extensions_);
  9365. if (from._internal_metadata_.have_unknown_fields()) {
  9366. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  9367. }
  9368. }
  9369. void FieldOptions::CopyFrom(const ::google::protobuf::Message& from) {
  9370. if (&from == this) return;
  9371. Clear();
  9372. MergeFrom(from);
  9373. }
  9374. void FieldOptions::CopyFrom(const FieldOptions& from) {
  9375. if (&from == this) return;
  9376. Clear();
  9377. MergeFrom(from);
  9378. }
  9379. bool FieldOptions::IsInitialized() const {
  9380. if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false;
  9381. if (!_extensions_.IsInitialized()) return false; return true;
  9382. }
  9383. void FieldOptions::Swap(FieldOptions* other) {
  9384. if (other == this) return;
  9385. InternalSwap(other);
  9386. }
  9387. void FieldOptions::InternalSwap(FieldOptions* other) {
  9388. std::swap(ctype_, other->ctype_);
  9389. std::swap(packed_, other->packed_);
  9390. std::swap(jstype_, other->jstype_);
  9391. std::swap(lazy_, other->lazy_);
  9392. std::swap(deprecated_, other->deprecated_);
  9393. std::swap(weak_, other->weak_);
  9394. uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_);
  9395. std::swap(_has_bits_[0], other->_has_bits_[0]);
  9396. _internal_metadata_.Swap(&other->_internal_metadata_);
  9397. std::swap(_cached_size_, other->_cached_size_);
  9398. _extensions_.Swap(&other->_extensions_);
  9399. }
  9400. ::google::protobuf::Metadata FieldOptions::GetMetadata() const {
  9401. protobuf_AssignDescriptorsOnce();
  9402. ::google::protobuf::Metadata metadata;
  9403. metadata.descriptor = FieldOptions_descriptor_;
  9404. metadata.reflection = FieldOptions_reflection_;
  9405. return metadata;
  9406. }
  9407. #if PROTOBUF_INLINE_NOT_IN_HEADERS
  9408. // FieldOptions
  9409. // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
  9410. bool FieldOptions::has_ctype() const {
  9411. return (_has_bits_[0] & 0x00000001u) != 0;
  9412. }
  9413. void FieldOptions::set_has_ctype() {
  9414. _has_bits_[0] |= 0x00000001u;
  9415. }
  9416. void FieldOptions::clear_has_ctype() {
  9417. _has_bits_[0] &= ~0x00000001u;
  9418. }
  9419. void FieldOptions::clear_ctype() {
  9420. ctype_ = 0;
  9421. clear_has_ctype();
  9422. }
  9423. ::google::protobuf::FieldOptions_CType FieldOptions::ctype() const {
  9424. // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.ctype)
  9425. return static_cast< ::google::protobuf::FieldOptions_CType >(ctype_);
  9426. }
  9427. void FieldOptions::set_ctype(::google::protobuf::FieldOptions_CType value) {
  9428. assert(::google::protobuf::FieldOptions_CType_IsValid(value));
  9429. set_has_ctype();
  9430. ctype_ = value;
  9431. // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.ctype)
  9432. }
  9433. // optional bool packed = 2;
  9434. bool FieldOptions::has_packed() const {
  9435. return (_has_bits_[0] & 0x00000002u) != 0;
  9436. }
  9437. void FieldOptions::set_has_packed() {
  9438. _has_bits_[0] |= 0x00000002u;
  9439. }
  9440. void FieldOptions::clear_has_packed() {
  9441. _has_bits_[0] &= ~0x00000002u;
  9442. }
  9443. void FieldOptions::clear_packed() {
  9444. packed_ = false;
  9445. clear_has_packed();
  9446. }
  9447. bool FieldOptions::packed() const {
  9448. // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.packed)
  9449. return packed_;
  9450. }
  9451. void FieldOptions::set_packed(bool value) {
  9452. set_has_packed();
  9453. packed_ = value;
  9454. // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.packed)
  9455. }
  9456. // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];
  9457. bool FieldOptions::has_jstype() const {
  9458. return (_has_bits_[0] & 0x00000004u) != 0;
  9459. }
  9460. void FieldOptions::set_has_jstype() {
  9461. _has_bits_[0] |= 0x00000004u;
  9462. }
  9463. void FieldOptions::clear_has_jstype() {
  9464. _has_bits_[0] &= ~0x00000004u;
  9465. }
  9466. void FieldOptions::clear_jstype() {
  9467. jstype_ = 0;
  9468. clear_has_jstype();
  9469. }
  9470. ::google::protobuf::FieldOptions_JSType FieldOptions::jstype() const {
  9471. // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.jstype)
  9472. return static_cast< ::google::protobuf::FieldOptions_JSType >(jstype_);
  9473. }
  9474. void FieldOptions::set_jstype(::google::protobuf::FieldOptions_JSType value) {
  9475. assert(::google::protobuf::FieldOptions_JSType_IsValid(value));
  9476. set_has_jstype();
  9477. jstype_ = value;
  9478. // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.jstype)
  9479. }
  9480. // optional bool lazy = 5 [default = false];
  9481. bool FieldOptions::has_lazy() const {
  9482. return (_has_bits_[0] & 0x00000008u) != 0;
  9483. }
  9484. void FieldOptions::set_has_lazy() {
  9485. _has_bits_[0] |= 0x00000008u;
  9486. }
  9487. void FieldOptions::clear_has_lazy() {
  9488. _has_bits_[0] &= ~0x00000008u;
  9489. }
  9490. void FieldOptions::clear_lazy() {
  9491. lazy_ = false;
  9492. clear_has_lazy();
  9493. }
  9494. bool FieldOptions::lazy() const {
  9495. // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.lazy)
  9496. return lazy_;
  9497. }
  9498. void FieldOptions::set_lazy(bool value) {
  9499. set_has_lazy();
  9500. lazy_ = value;
  9501. // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.lazy)
  9502. }
  9503. // optional bool deprecated = 3 [default = false];
  9504. bool FieldOptions::has_deprecated() const {
  9505. return (_has_bits_[0] & 0x00000010u) != 0;
  9506. }
  9507. void FieldOptions::set_has_deprecated() {
  9508. _has_bits_[0] |= 0x00000010u;
  9509. }
  9510. void FieldOptions::clear_has_deprecated() {
  9511. _has_bits_[0] &= ~0x00000010u;
  9512. }
  9513. void FieldOptions::clear_deprecated() {
  9514. deprecated_ = false;
  9515. clear_has_deprecated();
  9516. }
  9517. bool FieldOptions::deprecated() const {
  9518. // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.deprecated)
  9519. return deprecated_;
  9520. }
  9521. void FieldOptions::set_deprecated(bool value) {
  9522. set_has_deprecated();
  9523. deprecated_ = value;
  9524. // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.deprecated)
  9525. }
  9526. // optional bool weak = 10 [default = false];
  9527. bool FieldOptions::has_weak() const {
  9528. return (_has_bits_[0] & 0x00000020u) != 0;
  9529. }
  9530. void FieldOptions::set_has_weak() {
  9531. _has_bits_[0] |= 0x00000020u;
  9532. }
  9533. void FieldOptions::clear_has_weak() {
  9534. _has_bits_[0] &= ~0x00000020u;
  9535. }
  9536. void FieldOptions::clear_weak() {
  9537. weak_ = false;
  9538. clear_has_weak();
  9539. }
  9540. bool FieldOptions::weak() const {
  9541. // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.weak)
  9542. return weak_;
  9543. }
  9544. void FieldOptions::set_weak(bool value) {
  9545. set_has_weak();
  9546. weak_ = value;
  9547. // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.weak)
  9548. }
  9549. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  9550. int FieldOptions::uninterpreted_option_size() const {
  9551. return uninterpreted_option_.size();
  9552. }
  9553. void FieldOptions::clear_uninterpreted_option() {
  9554. uninterpreted_option_.Clear();
  9555. }
  9556. const ::google::protobuf::UninterpretedOption& FieldOptions::uninterpreted_option(int index) const {
  9557. // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.uninterpreted_option)
  9558. return uninterpreted_option_.Get(index);
  9559. }
  9560. ::google::protobuf::UninterpretedOption* FieldOptions::mutable_uninterpreted_option(int index) {
  9561. // @@protoc_insertion_point(field_mutable:google.protobuf.FieldOptions.uninterpreted_option)
  9562. return uninterpreted_option_.Mutable(index);
  9563. }
  9564. ::google::protobuf::UninterpretedOption* FieldOptions::add_uninterpreted_option() {
  9565. // @@protoc_insertion_point(field_add:google.protobuf.FieldOptions.uninterpreted_option)
  9566. return uninterpreted_option_.Add();
  9567. }
  9568. ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
  9569. FieldOptions::mutable_uninterpreted_option() {
  9570. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FieldOptions.uninterpreted_option)
  9571. return &uninterpreted_option_;
  9572. }
  9573. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
  9574. FieldOptions::uninterpreted_option() const {
  9575. // @@protoc_insertion_point(field_list:google.protobuf.FieldOptions.uninterpreted_option)
  9576. return uninterpreted_option_;
  9577. }
  9578. #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
  9579. // ===================================================================
  9580. #ifndef _MSC_VER
  9581. const int EnumOptions::kAllowAliasFieldNumber;
  9582. const int EnumOptions::kDeprecatedFieldNumber;
  9583. const int EnumOptions::kUninterpretedOptionFieldNumber;
  9584. #endif // !_MSC_VER
  9585. EnumOptions::EnumOptions()
  9586. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  9587. SharedCtor();
  9588. // @@protoc_insertion_point(constructor:google.protobuf.EnumOptions)
  9589. }
  9590. void EnumOptions::InitAsDefaultInstance() {
  9591. }
  9592. EnumOptions::EnumOptions(const EnumOptions& from)
  9593. : ::google::protobuf::Message(),
  9594. _internal_metadata_(NULL) {
  9595. SharedCtor();
  9596. MergeFrom(from);
  9597. // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumOptions)
  9598. }
  9599. void EnumOptions::SharedCtor() {
  9600. _cached_size_ = 0;
  9601. allow_alias_ = false;
  9602. deprecated_ = false;
  9603. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  9604. }
  9605. EnumOptions::~EnumOptions() {
  9606. // @@protoc_insertion_point(destructor:google.protobuf.EnumOptions)
  9607. SharedDtor();
  9608. }
  9609. void EnumOptions::SharedDtor() {
  9610. if (this != default_instance_) {
  9611. }
  9612. }
  9613. void EnumOptions::SetCachedSize(int size) const {
  9614. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  9615. _cached_size_ = size;
  9616. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  9617. }
  9618. const ::google::protobuf::Descriptor* EnumOptions::descriptor() {
  9619. protobuf_AssignDescriptorsOnce();
  9620. return EnumOptions_descriptor_;
  9621. }
  9622. const EnumOptions& EnumOptions::default_instance() {
  9623. if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  9624. return *default_instance_;
  9625. }
  9626. EnumOptions* EnumOptions::default_instance_ = NULL;
  9627. EnumOptions* EnumOptions::New(::google::protobuf::Arena* arena) const {
  9628. EnumOptions* n = new EnumOptions;
  9629. if (arena != NULL) {
  9630. arena->Own(n);
  9631. }
  9632. return n;
  9633. }
  9634. void EnumOptions::Clear() {
  9635. _extensions_.Clear();
  9636. #define ZR_HELPER_(f) reinterpret_cast<char*>(\
  9637. &reinterpret_cast<EnumOptions*>(16)->f)
  9638. #define ZR_(first, last) do {\
  9639. ::memset(&first, 0,\
  9640. ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\
  9641. } while (0)
  9642. ZR_(allow_alias_, deprecated_);
  9643. #undef ZR_HELPER_
  9644. #undef ZR_
  9645. uninterpreted_option_.Clear();
  9646. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  9647. if (_internal_metadata_.have_unknown_fields()) {
  9648. mutable_unknown_fields()->Clear();
  9649. }
  9650. }
  9651. bool EnumOptions::MergePartialFromCodedStream(
  9652. ::google::protobuf::io::CodedInputStream* input) {
  9653. #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
  9654. ::google::protobuf::uint32 tag;
  9655. // @@protoc_insertion_point(parse_start:google.protobuf.EnumOptions)
  9656. for (;;) {
  9657. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383);
  9658. tag = p.first;
  9659. if (!p.second) goto handle_unusual;
  9660. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  9661. // optional bool allow_alias = 2;
  9662. case 2: {
  9663. if (tag == 16) {
  9664. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  9665. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL_X>(
  9666. input, &allow_alias_)));
  9667. set_has_allow_alias();
  9668. } else {
  9669. goto handle_unusual;
  9670. }
  9671. if (input->ExpectTag(24)) goto parse_deprecated;
  9672. break;
  9673. }
  9674. // optional bool deprecated = 3 [default = false];
  9675. case 3: {
  9676. if (tag == 24) {
  9677. parse_deprecated:
  9678. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  9679. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL_X>(
  9680. input, &deprecated_)));
  9681. set_has_deprecated();
  9682. } else {
  9683. goto handle_unusual;
  9684. }
  9685. if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
  9686. break;
  9687. }
  9688. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  9689. case 999: {
  9690. if (tag == 7994) {
  9691. parse_uninterpreted_option:
  9692. DO_(input->IncrementRecursionDepth());
  9693. parse_loop_uninterpreted_option:
  9694. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
  9695. input, add_uninterpreted_option()));
  9696. } else {
  9697. goto handle_unusual;
  9698. }
  9699. if (input->ExpectTag(7994)) goto parse_loop_uninterpreted_option;
  9700. input->UnsafeDecrementRecursionDepth();
  9701. if (input->ExpectAtEnd()) goto success;
  9702. break;
  9703. }
  9704. default: {
  9705. handle_unusual:
  9706. if (tag == 0 ||
  9707. ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  9708. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  9709. goto success;
  9710. }
  9711. if ((8000u <= tag)) {
  9712. DO_(_extensions_.ParseField(tag, input, default_instance_,
  9713. mutable_unknown_fields()));
  9714. continue;
  9715. }
  9716. DO_(::google::protobuf::internal::WireFormat::SkipField(
  9717. input, tag, mutable_unknown_fields()));
  9718. break;
  9719. }
  9720. }
  9721. }
  9722. success:
  9723. // @@protoc_insertion_point(parse_success:google.protobuf.EnumOptions)
  9724. return true;
  9725. failure:
  9726. // @@protoc_insertion_point(parse_failure:google.protobuf.EnumOptions)
  9727. return false;
  9728. #undef DO_
  9729. }
  9730. void EnumOptions::SerializeWithCachedSizes(
  9731. ::google::protobuf::io::CodedOutputStream* output) const {
  9732. // @@protoc_insertion_point(serialize_start:google.protobuf.EnumOptions)
  9733. // optional bool allow_alias = 2;
  9734. if (has_allow_alias()) {
  9735. ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->allow_alias(), output);
  9736. }
  9737. // optional bool deprecated = 3 [default = false];
  9738. if (has_deprecated()) {
  9739. ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->deprecated(), output);
  9740. }
  9741. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  9742. for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) {
  9743. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  9744. 999, this->uninterpreted_option(i), output);
  9745. }
  9746. // Extension range [1000, 536870912)
  9747. _extensions_.SerializeWithCachedSizes(
  9748. 1000, 536870912, output);
  9749. if (_internal_metadata_.have_unknown_fields()) {
  9750. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  9751. unknown_fields(), output);
  9752. }
  9753. // @@protoc_insertion_point(serialize_end:google.protobuf.EnumOptions)
  9754. }
  9755. ::google::protobuf::uint8* EnumOptions::SerializeWithCachedSizesToArray(
  9756. ::google::protobuf::uint8* target) const {
  9757. // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumOptions)
  9758. // optional bool allow_alias = 2;
  9759. if (has_allow_alias()) {
  9760. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->allow_alias(), target);
  9761. }
  9762. // optional bool deprecated = 3 [default = false];
  9763. if (has_deprecated()) {
  9764. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->deprecated(), target);
  9765. }
  9766. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  9767. for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) {
  9768. target = ::google::protobuf::internal::WireFormatLite::
  9769. WriteMessageNoVirtualToArray(
  9770. 999, this->uninterpreted_option(i), target);
  9771. }
  9772. // Extension range [1000, 536870912)
  9773. target = _extensions_.SerializeWithCachedSizesToArray(
  9774. 1000, 536870912, target);
  9775. if (_internal_metadata_.have_unknown_fields()) {
  9776. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  9777. unknown_fields(), target);
  9778. }
  9779. // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumOptions)
  9780. return target;
  9781. }
  9782. int EnumOptions::ByteSize() const {
  9783. int total_size = 0;
  9784. if (_has_bits_[0 / 32] & 3u) {
  9785. // optional bool allow_alias = 2;
  9786. if (has_allow_alias()) {
  9787. total_size += 1 + 1;
  9788. }
  9789. // optional bool deprecated = 3 [default = false];
  9790. if (has_deprecated()) {
  9791. total_size += 1 + 1;
  9792. }
  9793. }
  9794. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  9795. total_size += 2 * this->uninterpreted_option_size();
  9796. for (int i = 0; i < this->uninterpreted_option_size(); i++) {
  9797. total_size +=
  9798. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  9799. this->uninterpreted_option(i));
  9800. }
  9801. total_size += _extensions_.ByteSize();
  9802. if (_internal_metadata_.have_unknown_fields()) {
  9803. total_size +=
  9804. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  9805. unknown_fields());
  9806. }
  9807. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  9808. _cached_size_ = total_size;
  9809. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  9810. return total_size;
  9811. }
  9812. void EnumOptions::MergeFrom(const ::google::protobuf::Message& from) {
  9813. if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
  9814. const EnumOptions* source =
  9815. ::google::protobuf::internal::DynamicCastToGenerated<const EnumOptions>(
  9816. &from);
  9817. if (source == NULL) {
  9818. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  9819. } else {
  9820. MergeFrom(*source);
  9821. }
  9822. }
  9823. void EnumOptions::MergeFrom(const EnumOptions& from) {
  9824. if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
  9825. uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
  9826. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  9827. if (from.has_allow_alias()) {
  9828. set_allow_alias(from.allow_alias());
  9829. }
  9830. if (from.has_deprecated()) {
  9831. set_deprecated(from.deprecated());
  9832. }
  9833. }
  9834. _extensions_.MergeFrom(from._extensions_);
  9835. if (from._internal_metadata_.have_unknown_fields()) {
  9836. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  9837. }
  9838. }
  9839. void EnumOptions::CopyFrom(const ::google::protobuf::Message& from) {
  9840. if (&from == this) return;
  9841. Clear();
  9842. MergeFrom(from);
  9843. }
  9844. void EnumOptions::CopyFrom(const EnumOptions& from) {
  9845. if (&from == this) return;
  9846. Clear();
  9847. MergeFrom(from);
  9848. }
  9849. bool EnumOptions::IsInitialized() const {
  9850. if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false;
  9851. if (!_extensions_.IsInitialized()) return false; return true;
  9852. }
  9853. void EnumOptions::Swap(EnumOptions* other) {
  9854. if (other == this) return;
  9855. InternalSwap(other);
  9856. }
  9857. void EnumOptions::InternalSwap(EnumOptions* other) {
  9858. std::swap(allow_alias_, other->allow_alias_);
  9859. std::swap(deprecated_, other->deprecated_);
  9860. uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_);
  9861. std::swap(_has_bits_[0], other->_has_bits_[0]);
  9862. _internal_metadata_.Swap(&other->_internal_metadata_);
  9863. std::swap(_cached_size_, other->_cached_size_);
  9864. _extensions_.Swap(&other->_extensions_);
  9865. }
  9866. ::google::protobuf::Metadata EnumOptions::GetMetadata() const {
  9867. protobuf_AssignDescriptorsOnce();
  9868. ::google::protobuf::Metadata metadata;
  9869. metadata.descriptor = EnumOptions_descriptor_;
  9870. metadata.reflection = EnumOptions_reflection_;
  9871. return metadata;
  9872. }
  9873. #if PROTOBUF_INLINE_NOT_IN_HEADERS
  9874. // EnumOptions
  9875. // optional bool allow_alias = 2;
  9876. bool EnumOptions::has_allow_alias() const {
  9877. return (_has_bits_[0] & 0x00000001u) != 0;
  9878. }
  9879. void EnumOptions::set_has_allow_alias() {
  9880. _has_bits_[0] |= 0x00000001u;
  9881. }
  9882. void EnumOptions::clear_has_allow_alias() {
  9883. _has_bits_[0] &= ~0x00000001u;
  9884. }
  9885. void EnumOptions::clear_allow_alias() {
  9886. allow_alias_ = false;
  9887. clear_has_allow_alias();
  9888. }
  9889. bool EnumOptions::allow_alias() const {
  9890. // @@protoc_insertion_point(field_get:google.protobuf.EnumOptions.allow_alias)
  9891. return allow_alias_;
  9892. }
  9893. void EnumOptions::set_allow_alias(bool value) {
  9894. set_has_allow_alias();
  9895. allow_alias_ = value;
  9896. // @@protoc_insertion_point(field_set:google.protobuf.EnumOptions.allow_alias)
  9897. }
  9898. // optional bool deprecated = 3 [default = false];
  9899. bool EnumOptions::has_deprecated() const {
  9900. return (_has_bits_[0] & 0x00000002u) != 0;
  9901. }
  9902. void EnumOptions::set_has_deprecated() {
  9903. _has_bits_[0] |= 0x00000002u;
  9904. }
  9905. void EnumOptions::clear_has_deprecated() {
  9906. _has_bits_[0] &= ~0x00000002u;
  9907. }
  9908. void EnumOptions::clear_deprecated() {
  9909. deprecated_ = false;
  9910. clear_has_deprecated();
  9911. }
  9912. bool EnumOptions::deprecated() const {
  9913. // @@protoc_insertion_point(field_get:google.protobuf.EnumOptions.deprecated)
  9914. return deprecated_;
  9915. }
  9916. void EnumOptions::set_deprecated(bool value) {
  9917. set_has_deprecated();
  9918. deprecated_ = value;
  9919. // @@protoc_insertion_point(field_set:google.protobuf.EnumOptions.deprecated)
  9920. }
  9921. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  9922. int EnumOptions::uninterpreted_option_size() const {
  9923. return uninterpreted_option_.size();
  9924. }
  9925. void EnumOptions::clear_uninterpreted_option() {
  9926. uninterpreted_option_.Clear();
  9927. }
  9928. const ::google::protobuf::UninterpretedOption& EnumOptions::uninterpreted_option(int index) const {
  9929. // @@protoc_insertion_point(field_get:google.protobuf.EnumOptions.uninterpreted_option)
  9930. return uninterpreted_option_.Get(index);
  9931. }
  9932. ::google::protobuf::UninterpretedOption* EnumOptions::mutable_uninterpreted_option(int index) {
  9933. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumOptions.uninterpreted_option)
  9934. return uninterpreted_option_.Mutable(index);
  9935. }
  9936. ::google::protobuf::UninterpretedOption* EnumOptions::add_uninterpreted_option() {
  9937. // @@protoc_insertion_point(field_add:google.protobuf.EnumOptions.uninterpreted_option)
  9938. return uninterpreted_option_.Add();
  9939. }
  9940. ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
  9941. EnumOptions::mutable_uninterpreted_option() {
  9942. // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumOptions.uninterpreted_option)
  9943. return &uninterpreted_option_;
  9944. }
  9945. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
  9946. EnumOptions::uninterpreted_option() const {
  9947. // @@protoc_insertion_point(field_list:google.protobuf.EnumOptions.uninterpreted_option)
  9948. return uninterpreted_option_;
  9949. }
  9950. #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
  9951. // ===================================================================
  9952. #ifndef _MSC_VER
  9953. const int EnumValueOptions::kDeprecatedFieldNumber;
  9954. const int EnumValueOptions::kUninterpretedOptionFieldNumber;
  9955. #endif // !_MSC_VER
  9956. EnumValueOptions::EnumValueOptions()
  9957. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  9958. SharedCtor();
  9959. // @@protoc_insertion_point(constructor:google.protobuf.EnumValueOptions)
  9960. }
  9961. void EnumValueOptions::InitAsDefaultInstance() {
  9962. }
  9963. EnumValueOptions::EnumValueOptions(const EnumValueOptions& from)
  9964. : ::google::protobuf::Message(),
  9965. _internal_metadata_(NULL) {
  9966. SharedCtor();
  9967. MergeFrom(from);
  9968. // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumValueOptions)
  9969. }
  9970. void EnumValueOptions::SharedCtor() {
  9971. _cached_size_ = 0;
  9972. deprecated_ = false;
  9973. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  9974. }
  9975. EnumValueOptions::~EnumValueOptions() {
  9976. // @@protoc_insertion_point(destructor:google.protobuf.EnumValueOptions)
  9977. SharedDtor();
  9978. }
  9979. void EnumValueOptions::SharedDtor() {
  9980. if (this != default_instance_) {
  9981. }
  9982. }
  9983. void EnumValueOptions::SetCachedSize(int size) const {
  9984. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  9985. _cached_size_ = size;
  9986. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  9987. }
  9988. const ::google::protobuf::Descriptor* EnumValueOptions::descriptor() {
  9989. protobuf_AssignDescriptorsOnce();
  9990. return EnumValueOptions_descriptor_;
  9991. }
  9992. const EnumValueOptions& EnumValueOptions::default_instance() {
  9993. if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  9994. return *default_instance_;
  9995. }
  9996. EnumValueOptions* EnumValueOptions::default_instance_ = NULL;
  9997. EnumValueOptions* EnumValueOptions::New(::google::protobuf::Arena* arena) const {
  9998. EnumValueOptions* n = new EnumValueOptions;
  9999. if (arena != NULL) {
  10000. arena->Own(n);
  10001. }
  10002. return n;
  10003. }
  10004. void EnumValueOptions::Clear() {
  10005. _extensions_.Clear();
  10006. deprecated_ = false;
  10007. uninterpreted_option_.Clear();
  10008. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  10009. if (_internal_metadata_.have_unknown_fields()) {
  10010. mutable_unknown_fields()->Clear();
  10011. }
  10012. }
  10013. bool EnumValueOptions::MergePartialFromCodedStream(
  10014. ::google::protobuf::io::CodedInputStream* input) {
  10015. #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
  10016. ::google::protobuf::uint32 tag;
  10017. // @@protoc_insertion_point(parse_start:google.protobuf.EnumValueOptions)
  10018. for (;;) {
  10019. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383);
  10020. tag = p.first;
  10021. if (!p.second) goto handle_unusual;
  10022. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  10023. // optional bool deprecated = 1 [default = false];
  10024. case 1: {
  10025. if (tag == 8) {
  10026. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  10027. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL_X>(
  10028. input, &deprecated_)));
  10029. set_has_deprecated();
  10030. } else {
  10031. goto handle_unusual;
  10032. }
  10033. if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
  10034. break;
  10035. }
  10036. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  10037. case 999: {
  10038. if (tag == 7994) {
  10039. parse_uninterpreted_option:
  10040. DO_(input->IncrementRecursionDepth());
  10041. parse_loop_uninterpreted_option:
  10042. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
  10043. input, add_uninterpreted_option()));
  10044. } else {
  10045. goto handle_unusual;
  10046. }
  10047. if (input->ExpectTag(7994)) goto parse_loop_uninterpreted_option;
  10048. input->UnsafeDecrementRecursionDepth();
  10049. if (input->ExpectAtEnd()) goto success;
  10050. break;
  10051. }
  10052. default: {
  10053. handle_unusual:
  10054. if (tag == 0 ||
  10055. ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  10056. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  10057. goto success;
  10058. }
  10059. if ((8000u <= tag)) {
  10060. DO_(_extensions_.ParseField(tag, input, default_instance_,
  10061. mutable_unknown_fields()));
  10062. continue;
  10063. }
  10064. DO_(::google::protobuf::internal::WireFormat::SkipField(
  10065. input, tag, mutable_unknown_fields()));
  10066. break;
  10067. }
  10068. }
  10069. }
  10070. success:
  10071. // @@protoc_insertion_point(parse_success:google.protobuf.EnumValueOptions)
  10072. return true;
  10073. failure:
  10074. // @@protoc_insertion_point(parse_failure:google.protobuf.EnumValueOptions)
  10075. return false;
  10076. #undef DO_
  10077. }
  10078. void EnumValueOptions::SerializeWithCachedSizes(
  10079. ::google::protobuf::io::CodedOutputStream* output) const {
  10080. // @@protoc_insertion_point(serialize_start:google.protobuf.EnumValueOptions)
  10081. // optional bool deprecated = 1 [default = false];
  10082. if (has_deprecated()) {
  10083. ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->deprecated(), output);
  10084. }
  10085. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  10086. for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) {
  10087. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  10088. 999, this->uninterpreted_option(i), output);
  10089. }
  10090. // Extension range [1000, 536870912)
  10091. _extensions_.SerializeWithCachedSizes(
  10092. 1000, 536870912, output);
  10093. if (_internal_metadata_.have_unknown_fields()) {
  10094. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  10095. unknown_fields(), output);
  10096. }
  10097. // @@protoc_insertion_point(serialize_end:google.protobuf.EnumValueOptions)
  10098. }
  10099. ::google::protobuf::uint8* EnumValueOptions::SerializeWithCachedSizesToArray(
  10100. ::google::protobuf::uint8* target) const {
  10101. // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumValueOptions)
  10102. // optional bool deprecated = 1 [default = false];
  10103. if (has_deprecated()) {
  10104. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->deprecated(), target);
  10105. }
  10106. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  10107. for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) {
  10108. target = ::google::protobuf::internal::WireFormatLite::
  10109. WriteMessageNoVirtualToArray(
  10110. 999, this->uninterpreted_option(i), target);
  10111. }
  10112. // Extension range [1000, 536870912)
  10113. target = _extensions_.SerializeWithCachedSizesToArray(
  10114. 1000, 536870912, target);
  10115. if (_internal_metadata_.have_unknown_fields()) {
  10116. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  10117. unknown_fields(), target);
  10118. }
  10119. // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumValueOptions)
  10120. return target;
  10121. }
  10122. int EnumValueOptions::ByteSize() const {
  10123. int total_size = 0;
  10124. // optional bool deprecated = 1 [default = false];
  10125. if (has_deprecated()) {
  10126. total_size += 1 + 1;
  10127. }
  10128. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  10129. total_size += 2 * this->uninterpreted_option_size();
  10130. for (int i = 0; i < this->uninterpreted_option_size(); i++) {
  10131. total_size +=
  10132. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  10133. this->uninterpreted_option(i));
  10134. }
  10135. total_size += _extensions_.ByteSize();
  10136. if (_internal_metadata_.have_unknown_fields()) {
  10137. total_size +=
  10138. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  10139. unknown_fields());
  10140. }
  10141. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  10142. _cached_size_ = total_size;
  10143. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  10144. return total_size;
  10145. }
  10146. void EnumValueOptions::MergeFrom(const ::google::protobuf::Message& from) {
  10147. if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
  10148. const EnumValueOptions* source =
  10149. ::google::protobuf::internal::DynamicCastToGenerated<const EnumValueOptions>(
  10150. &from);
  10151. if (source == NULL) {
  10152. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  10153. } else {
  10154. MergeFrom(*source);
  10155. }
  10156. }
  10157. void EnumValueOptions::MergeFrom(const EnumValueOptions& from) {
  10158. if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
  10159. uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
  10160. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  10161. if (from.has_deprecated()) {
  10162. set_deprecated(from.deprecated());
  10163. }
  10164. }
  10165. _extensions_.MergeFrom(from._extensions_);
  10166. if (from._internal_metadata_.have_unknown_fields()) {
  10167. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  10168. }
  10169. }
  10170. void EnumValueOptions::CopyFrom(const ::google::protobuf::Message& from) {
  10171. if (&from == this) return;
  10172. Clear();
  10173. MergeFrom(from);
  10174. }
  10175. void EnumValueOptions::CopyFrom(const EnumValueOptions& from) {
  10176. if (&from == this) return;
  10177. Clear();
  10178. MergeFrom(from);
  10179. }
  10180. bool EnumValueOptions::IsInitialized() const {
  10181. if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false;
  10182. if (!_extensions_.IsInitialized()) return false; return true;
  10183. }
  10184. void EnumValueOptions::Swap(EnumValueOptions* other) {
  10185. if (other == this) return;
  10186. InternalSwap(other);
  10187. }
  10188. void EnumValueOptions::InternalSwap(EnumValueOptions* other) {
  10189. std::swap(deprecated_, other->deprecated_);
  10190. uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_);
  10191. std::swap(_has_bits_[0], other->_has_bits_[0]);
  10192. _internal_metadata_.Swap(&other->_internal_metadata_);
  10193. std::swap(_cached_size_, other->_cached_size_);
  10194. _extensions_.Swap(&other->_extensions_);
  10195. }
  10196. ::google::protobuf::Metadata EnumValueOptions::GetMetadata() const {
  10197. protobuf_AssignDescriptorsOnce();
  10198. ::google::protobuf::Metadata metadata;
  10199. metadata.descriptor = EnumValueOptions_descriptor_;
  10200. metadata.reflection = EnumValueOptions_reflection_;
  10201. return metadata;
  10202. }
  10203. #if PROTOBUF_INLINE_NOT_IN_HEADERS
  10204. // EnumValueOptions
  10205. // optional bool deprecated = 1 [default = false];
  10206. bool EnumValueOptions::has_deprecated() const {
  10207. return (_has_bits_[0] & 0x00000001u) != 0;
  10208. }
  10209. void EnumValueOptions::set_has_deprecated() {
  10210. _has_bits_[0] |= 0x00000001u;
  10211. }
  10212. void EnumValueOptions::clear_has_deprecated() {
  10213. _has_bits_[0] &= ~0x00000001u;
  10214. }
  10215. void EnumValueOptions::clear_deprecated() {
  10216. deprecated_ = false;
  10217. clear_has_deprecated();
  10218. }
  10219. bool EnumValueOptions::deprecated() const {
  10220. // @@protoc_insertion_point(field_get:google.protobuf.EnumValueOptions.deprecated)
  10221. return deprecated_;
  10222. }
  10223. void EnumValueOptions::set_deprecated(bool value) {
  10224. set_has_deprecated();
  10225. deprecated_ = value;
  10226. // @@protoc_insertion_point(field_set:google.protobuf.EnumValueOptions.deprecated)
  10227. }
  10228. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  10229. int EnumValueOptions::uninterpreted_option_size() const {
  10230. return uninterpreted_option_.size();
  10231. }
  10232. void EnumValueOptions::clear_uninterpreted_option() {
  10233. uninterpreted_option_.Clear();
  10234. }
  10235. const ::google::protobuf::UninterpretedOption& EnumValueOptions::uninterpreted_option(int index) const {
  10236. // @@protoc_insertion_point(field_get:google.protobuf.EnumValueOptions.uninterpreted_option)
  10237. return uninterpreted_option_.Get(index);
  10238. }
  10239. ::google::protobuf::UninterpretedOption* EnumValueOptions::mutable_uninterpreted_option(int index) {
  10240. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValueOptions.uninterpreted_option)
  10241. return uninterpreted_option_.Mutable(index);
  10242. }
  10243. ::google::protobuf::UninterpretedOption* EnumValueOptions::add_uninterpreted_option() {
  10244. // @@protoc_insertion_point(field_add:google.protobuf.EnumValueOptions.uninterpreted_option)
  10245. return uninterpreted_option_.Add();
  10246. }
  10247. ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
  10248. EnumValueOptions::mutable_uninterpreted_option() {
  10249. // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumValueOptions.uninterpreted_option)
  10250. return &uninterpreted_option_;
  10251. }
  10252. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
  10253. EnumValueOptions::uninterpreted_option() const {
  10254. // @@protoc_insertion_point(field_list:google.protobuf.EnumValueOptions.uninterpreted_option)
  10255. return uninterpreted_option_;
  10256. }
  10257. #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
  10258. // ===================================================================
  10259. #ifndef _MSC_VER
  10260. const int ServiceOptions::kDeprecatedFieldNumber;
  10261. const int ServiceOptions::kUninterpretedOptionFieldNumber;
  10262. #endif // !_MSC_VER
  10263. ServiceOptions::ServiceOptions()
  10264. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  10265. SharedCtor();
  10266. // @@protoc_insertion_point(constructor:google.protobuf.ServiceOptions)
  10267. }
  10268. void ServiceOptions::InitAsDefaultInstance() {
  10269. }
  10270. ServiceOptions::ServiceOptions(const ServiceOptions& from)
  10271. : ::google::protobuf::Message(),
  10272. _internal_metadata_(NULL) {
  10273. SharedCtor();
  10274. MergeFrom(from);
  10275. // @@protoc_insertion_point(copy_constructor:google.protobuf.ServiceOptions)
  10276. }
  10277. void ServiceOptions::SharedCtor() {
  10278. _cached_size_ = 0;
  10279. deprecated_ = false;
  10280. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  10281. }
  10282. ServiceOptions::~ServiceOptions() {
  10283. // @@protoc_insertion_point(destructor:google.protobuf.ServiceOptions)
  10284. SharedDtor();
  10285. }
  10286. void ServiceOptions::SharedDtor() {
  10287. if (this != default_instance_) {
  10288. }
  10289. }
  10290. void ServiceOptions::SetCachedSize(int size) const {
  10291. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  10292. _cached_size_ = size;
  10293. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  10294. }
  10295. const ::google::protobuf::Descriptor* ServiceOptions::descriptor() {
  10296. protobuf_AssignDescriptorsOnce();
  10297. return ServiceOptions_descriptor_;
  10298. }
  10299. const ServiceOptions& ServiceOptions::default_instance() {
  10300. if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  10301. return *default_instance_;
  10302. }
  10303. ServiceOptions* ServiceOptions::default_instance_ = NULL;
  10304. ServiceOptions* ServiceOptions::New(::google::protobuf::Arena* arena) const {
  10305. ServiceOptions* n = new ServiceOptions;
  10306. if (arena != NULL) {
  10307. arena->Own(n);
  10308. }
  10309. return n;
  10310. }
  10311. void ServiceOptions::Clear() {
  10312. _extensions_.Clear();
  10313. deprecated_ = false;
  10314. uninterpreted_option_.Clear();
  10315. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  10316. if (_internal_metadata_.have_unknown_fields()) {
  10317. mutable_unknown_fields()->Clear();
  10318. }
  10319. }
  10320. bool ServiceOptions::MergePartialFromCodedStream(
  10321. ::google::protobuf::io::CodedInputStream* input) {
  10322. #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
  10323. ::google::protobuf::uint32 tag;
  10324. // @@protoc_insertion_point(parse_start:google.protobuf.ServiceOptions)
  10325. for (;;) {
  10326. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383);
  10327. tag = p.first;
  10328. if (!p.second) goto handle_unusual;
  10329. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  10330. // optional bool deprecated = 33 [default = false];
  10331. case 33: {
  10332. if (tag == 264) {
  10333. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  10334. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL_X>(
  10335. input, &deprecated_)));
  10336. set_has_deprecated();
  10337. } else {
  10338. goto handle_unusual;
  10339. }
  10340. if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
  10341. break;
  10342. }
  10343. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  10344. case 999: {
  10345. if (tag == 7994) {
  10346. parse_uninterpreted_option:
  10347. DO_(input->IncrementRecursionDepth());
  10348. parse_loop_uninterpreted_option:
  10349. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
  10350. input, add_uninterpreted_option()));
  10351. } else {
  10352. goto handle_unusual;
  10353. }
  10354. if (input->ExpectTag(7994)) goto parse_loop_uninterpreted_option;
  10355. input->UnsafeDecrementRecursionDepth();
  10356. if (input->ExpectAtEnd()) goto success;
  10357. break;
  10358. }
  10359. default: {
  10360. handle_unusual:
  10361. if (tag == 0 ||
  10362. ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  10363. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  10364. goto success;
  10365. }
  10366. if ((8000u <= tag)) {
  10367. DO_(_extensions_.ParseField(tag, input, default_instance_,
  10368. mutable_unknown_fields()));
  10369. continue;
  10370. }
  10371. DO_(::google::protobuf::internal::WireFormat::SkipField(
  10372. input, tag, mutable_unknown_fields()));
  10373. break;
  10374. }
  10375. }
  10376. }
  10377. success:
  10378. // @@protoc_insertion_point(parse_success:google.protobuf.ServiceOptions)
  10379. return true;
  10380. failure:
  10381. // @@protoc_insertion_point(parse_failure:google.protobuf.ServiceOptions)
  10382. return false;
  10383. #undef DO_
  10384. }
  10385. void ServiceOptions::SerializeWithCachedSizes(
  10386. ::google::protobuf::io::CodedOutputStream* output) const {
  10387. // @@protoc_insertion_point(serialize_start:google.protobuf.ServiceOptions)
  10388. // optional bool deprecated = 33 [default = false];
  10389. if (has_deprecated()) {
  10390. ::google::protobuf::internal::WireFormatLite::WriteBool(33, this->deprecated(), output);
  10391. }
  10392. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  10393. for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) {
  10394. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  10395. 999, this->uninterpreted_option(i), output);
  10396. }
  10397. // Extension range [1000, 536870912)
  10398. _extensions_.SerializeWithCachedSizes(
  10399. 1000, 536870912, output);
  10400. if (_internal_metadata_.have_unknown_fields()) {
  10401. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  10402. unknown_fields(), output);
  10403. }
  10404. // @@protoc_insertion_point(serialize_end:google.protobuf.ServiceOptions)
  10405. }
  10406. ::google::protobuf::uint8* ServiceOptions::SerializeWithCachedSizesToArray(
  10407. ::google::protobuf::uint8* target) const {
  10408. // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.ServiceOptions)
  10409. // optional bool deprecated = 33 [default = false];
  10410. if (has_deprecated()) {
  10411. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(33, this->deprecated(), target);
  10412. }
  10413. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  10414. for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) {
  10415. target = ::google::protobuf::internal::WireFormatLite::
  10416. WriteMessageNoVirtualToArray(
  10417. 999, this->uninterpreted_option(i), target);
  10418. }
  10419. // Extension range [1000, 536870912)
  10420. target = _extensions_.SerializeWithCachedSizesToArray(
  10421. 1000, 536870912, target);
  10422. if (_internal_metadata_.have_unknown_fields()) {
  10423. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  10424. unknown_fields(), target);
  10425. }
  10426. // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.ServiceOptions)
  10427. return target;
  10428. }
  10429. int ServiceOptions::ByteSize() const {
  10430. int total_size = 0;
  10431. // optional bool deprecated = 33 [default = false];
  10432. if (has_deprecated()) {
  10433. total_size += 2 + 1;
  10434. }
  10435. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  10436. total_size += 2 * this->uninterpreted_option_size();
  10437. for (int i = 0; i < this->uninterpreted_option_size(); i++) {
  10438. total_size +=
  10439. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  10440. this->uninterpreted_option(i));
  10441. }
  10442. total_size += _extensions_.ByteSize();
  10443. if (_internal_metadata_.have_unknown_fields()) {
  10444. total_size +=
  10445. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  10446. unknown_fields());
  10447. }
  10448. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  10449. _cached_size_ = total_size;
  10450. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  10451. return total_size;
  10452. }
  10453. void ServiceOptions::MergeFrom(const ::google::protobuf::Message& from) {
  10454. if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
  10455. const ServiceOptions* source =
  10456. ::google::protobuf::internal::DynamicCastToGenerated<const ServiceOptions>(
  10457. &from);
  10458. if (source == NULL) {
  10459. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  10460. } else {
  10461. MergeFrom(*source);
  10462. }
  10463. }
  10464. void ServiceOptions::MergeFrom(const ServiceOptions& from) {
  10465. if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
  10466. uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
  10467. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  10468. if (from.has_deprecated()) {
  10469. set_deprecated(from.deprecated());
  10470. }
  10471. }
  10472. _extensions_.MergeFrom(from._extensions_);
  10473. if (from._internal_metadata_.have_unknown_fields()) {
  10474. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  10475. }
  10476. }
  10477. void ServiceOptions::CopyFrom(const ::google::protobuf::Message& from) {
  10478. if (&from == this) return;
  10479. Clear();
  10480. MergeFrom(from);
  10481. }
  10482. void ServiceOptions::CopyFrom(const ServiceOptions& from) {
  10483. if (&from == this) return;
  10484. Clear();
  10485. MergeFrom(from);
  10486. }
  10487. bool ServiceOptions::IsInitialized() const {
  10488. if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false;
  10489. if (!_extensions_.IsInitialized()) return false; return true;
  10490. }
  10491. void ServiceOptions::Swap(ServiceOptions* other) {
  10492. if (other == this) return;
  10493. InternalSwap(other);
  10494. }
  10495. void ServiceOptions::InternalSwap(ServiceOptions* other) {
  10496. std::swap(deprecated_, other->deprecated_);
  10497. uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_);
  10498. std::swap(_has_bits_[0], other->_has_bits_[0]);
  10499. _internal_metadata_.Swap(&other->_internal_metadata_);
  10500. std::swap(_cached_size_, other->_cached_size_);
  10501. _extensions_.Swap(&other->_extensions_);
  10502. }
  10503. ::google::protobuf::Metadata ServiceOptions::GetMetadata() const {
  10504. protobuf_AssignDescriptorsOnce();
  10505. ::google::protobuf::Metadata metadata;
  10506. metadata.descriptor = ServiceOptions_descriptor_;
  10507. metadata.reflection = ServiceOptions_reflection_;
  10508. return metadata;
  10509. }
  10510. #if PROTOBUF_INLINE_NOT_IN_HEADERS
  10511. // ServiceOptions
  10512. // optional bool deprecated = 33 [default = false];
  10513. bool ServiceOptions::has_deprecated() const {
  10514. return (_has_bits_[0] & 0x00000001u) != 0;
  10515. }
  10516. void ServiceOptions::set_has_deprecated() {
  10517. _has_bits_[0] |= 0x00000001u;
  10518. }
  10519. void ServiceOptions::clear_has_deprecated() {
  10520. _has_bits_[0] &= ~0x00000001u;
  10521. }
  10522. void ServiceOptions::clear_deprecated() {
  10523. deprecated_ = false;
  10524. clear_has_deprecated();
  10525. }
  10526. bool ServiceOptions::deprecated() const {
  10527. // @@protoc_insertion_point(field_get:google.protobuf.ServiceOptions.deprecated)
  10528. return deprecated_;
  10529. }
  10530. void ServiceOptions::set_deprecated(bool value) {
  10531. set_has_deprecated();
  10532. deprecated_ = value;
  10533. // @@protoc_insertion_point(field_set:google.protobuf.ServiceOptions.deprecated)
  10534. }
  10535. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  10536. int ServiceOptions::uninterpreted_option_size() const {
  10537. return uninterpreted_option_.size();
  10538. }
  10539. void ServiceOptions::clear_uninterpreted_option() {
  10540. uninterpreted_option_.Clear();
  10541. }
  10542. const ::google::protobuf::UninterpretedOption& ServiceOptions::uninterpreted_option(int index) const {
  10543. // @@protoc_insertion_point(field_get:google.protobuf.ServiceOptions.uninterpreted_option)
  10544. return uninterpreted_option_.Get(index);
  10545. }
  10546. ::google::protobuf::UninterpretedOption* ServiceOptions::mutable_uninterpreted_option(int index) {
  10547. // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceOptions.uninterpreted_option)
  10548. return uninterpreted_option_.Mutable(index);
  10549. }
  10550. ::google::protobuf::UninterpretedOption* ServiceOptions::add_uninterpreted_option() {
  10551. // @@protoc_insertion_point(field_add:google.protobuf.ServiceOptions.uninterpreted_option)
  10552. return uninterpreted_option_.Add();
  10553. }
  10554. ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
  10555. ServiceOptions::mutable_uninterpreted_option() {
  10556. // @@protoc_insertion_point(field_mutable_list:google.protobuf.ServiceOptions.uninterpreted_option)
  10557. return &uninterpreted_option_;
  10558. }
  10559. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
  10560. ServiceOptions::uninterpreted_option() const {
  10561. // @@protoc_insertion_point(field_list:google.protobuf.ServiceOptions.uninterpreted_option)
  10562. return uninterpreted_option_;
  10563. }
  10564. #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
  10565. // ===================================================================
  10566. #ifndef _MSC_VER
  10567. const int MethodOptions::kDeprecatedFieldNumber;
  10568. const int MethodOptions::kUninterpretedOptionFieldNumber;
  10569. #endif // !_MSC_VER
  10570. MethodOptions::MethodOptions()
  10571. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  10572. SharedCtor();
  10573. // @@protoc_insertion_point(constructor:google.protobuf.MethodOptions)
  10574. }
  10575. void MethodOptions::InitAsDefaultInstance() {
  10576. }
  10577. MethodOptions::MethodOptions(const MethodOptions& from)
  10578. : ::google::protobuf::Message(),
  10579. _internal_metadata_(NULL) {
  10580. SharedCtor();
  10581. MergeFrom(from);
  10582. // @@protoc_insertion_point(copy_constructor:google.protobuf.MethodOptions)
  10583. }
  10584. void MethodOptions::SharedCtor() {
  10585. _cached_size_ = 0;
  10586. deprecated_ = false;
  10587. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  10588. }
  10589. MethodOptions::~MethodOptions() {
  10590. // @@protoc_insertion_point(destructor:google.protobuf.MethodOptions)
  10591. SharedDtor();
  10592. }
  10593. void MethodOptions::SharedDtor() {
  10594. if (this != default_instance_) {
  10595. }
  10596. }
  10597. void MethodOptions::SetCachedSize(int size) const {
  10598. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  10599. _cached_size_ = size;
  10600. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  10601. }
  10602. const ::google::protobuf::Descriptor* MethodOptions::descriptor() {
  10603. protobuf_AssignDescriptorsOnce();
  10604. return MethodOptions_descriptor_;
  10605. }
  10606. const MethodOptions& MethodOptions::default_instance() {
  10607. if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  10608. return *default_instance_;
  10609. }
  10610. MethodOptions* MethodOptions::default_instance_ = NULL;
  10611. MethodOptions* MethodOptions::New(::google::protobuf::Arena* arena) const {
  10612. MethodOptions* n = new MethodOptions;
  10613. if (arena != NULL) {
  10614. arena->Own(n);
  10615. }
  10616. return n;
  10617. }
  10618. void MethodOptions::Clear() {
  10619. _extensions_.Clear();
  10620. deprecated_ = false;
  10621. uninterpreted_option_.Clear();
  10622. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  10623. if (_internal_metadata_.have_unknown_fields()) {
  10624. mutable_unknown_fields()->Clear();
  10625. }
  10626. }
  10627. bool MethodOptions::MergePartialFromCodedStream(
  10628. ::google::protobuf::io::CodedInputStream* input) {
  10629. #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
  10630. ::google::protobuf::uint32 tag;
  10631. // @@protoc_insertion_point(parse_start:google.protobuf.MethodOptions)
  10632. for (;;) {
  10633. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383);
  10634. tag = p.first;
  10635. if (!p.second) goto handle_unusual;
  10636. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  10637. // optional bool deprecated = 33 [default = false];
  10638. case 33: {
  10639. if (tag == 264) {
  10640. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  10641. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL_X>(
  10642. input, &deprecated_)));
  10643. set_has_deprecated();
  10644. } else {
  10645. goto handle_unusual;
  10646. }
  10647. if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
  10648. break;
  10649. }
  10650. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  10651. case 999: {
  10652. if (tag == 7994) {
  10653. parse_uninterpreted_option:
  10654. DO_(input->IncrementRecursionDepth());
  10655. parse_loop_uninterpreted_option:
  10656. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
  10657. input, add_uninterpreted_option()));
  10658. } else {
  10659. goto handle_unusual;
  10660. }
  10661. if (input->ExpectTag(7994)) goto parse_loop_uninterpreted_option;
  10662. input->UnsafeDecrementRecursionDepth();
  10663. if (input->ExpectAtEnd()) goto success;
  10664. break;
  10665. }
  10666. default: {
  10667. handle_unusual:
  10668. if (tag == 0 ||
  10669. ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  10670. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  10671. goto success;
  10672. }
  10673. if ((8000u <= tag)) {
  10674. DO_(_extensions_.ParseField(tag, input, default_instance_,
  10675. mutable_unknown_fields()));
  10676. continue;
  10677. }
  10678. DO_(::google::protobuf::internal::WireFormat::SkipField(
  10679. input, tag, mutable_unknown_fields()));
  10680. break;
  10681. }
  10682. }
  10683. }
  10684. success:
  10685. // @@protoc_insertion_point(parse_success:google.protobuf.MethodOptions)
  10686. return true;
  10687. failure:
  10688. // @@protoc_insertion_point(parse_failure:google.protobuf.MethodOptions)
  10689. return false;
  10690. #undef DO_
  10691. }
  10692. void MethodOptions::SerializeWithCachedSizes(
  10693. ::google::protobuf::io::CodedOutputStream* output) const {
  10694. // @@protoc_insertion_point(serialize_start:google.protobuf.MethodOptions)
  10695. // optional bool deprecated = 33 [default = false];
  10696. if (has_deprecated()) {
  10697. ::google::protobuf::internal::WireFormatLite::WriteBool(33, this->deprecated(), output);
  10698. }
  10699. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  10700. for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) {
  10701. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  10702. 999, this->uninterpreted_option(i), output);
  10703. }
  10704. // Extension range [1000, 536870912)
  10705. _extensions_.SerializeWithCachedSizes(
  10706. 1000, 536870912, output);
  10707. if (_internal_metadata_.have_unknown_fields()) {
  10708. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  10709. unknown_fields(), output);
  10710. }
  10711. // @@protoc_insertion_point(serialize_end:google.protobuf.MethodOptions)
  10712. }
  10713. ::google::protobuf::uint8* MethodOptions::SerializeWithCachedSizesToArray(
  10714. ::google::protobuf::uint8* target) const {
  10715. // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.MethodOptions)
  10716. // optional bool deprecated = 33 [default = false];
  10717. if (has_deprecated()) {
  10718. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(33, this->deprecated(), target);
  10719. }
  10720. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  10721. for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) {
  10722. target = ::google::protobuf::internal::WireFormatLite::
  10723. WriteMessageNoVirtualToArray(
  10724. 999, this->uninterpreted_option(i), target);
  10725. }
  10726. // Extension range [1000, 536870912)
  10727. target = _extensions_.SerializeWithCachedSizesToArray(
  10728. 1000, 536870912, target);
  10729. if (_internal_metadata_.have_unknown_fields()) {
  10730. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  10731. unknown_fields(), target);
  10732. }
  10733. // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.MethodOptions)
  10734. return target;
  10735. }
  10736. int MethodOptions::ByteSize() const {
  10737. int total_size = 0;
  10738. // optional bool deprecated = 33 [default = false];
  10739. if (has_deprecated()) {
  10740. total_size += 2 + 1;
  10741. }
  10742. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  10743. total_size += 2 * this->uninterpreted_option_size();
  10744. for (int i = 0; i < this->uninterpreted_option_size(); i++) {
  10745. total_size +=
  10746. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  10747. this->uninterpreted_option(i));
  10748. }
  10749. total_size += _extensions_.ByteSize();
  10750. if (_internal_metadata_.have_unknown_fields()) {
  10751. total_size +=
  10752. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  10753. unknown_fields());
  10754. }
  10755. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  10756. _cached_size_ = total_size;
  10757. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  10758. return total_size;
  10759. }
  10760. void MethodOptions::MergeFrom(const ::google::protobuf::Message& from) {
  10761. if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
  10762. const MethodOptions* source =
  10763. ::google::protobuf::internal::DynamicCastToGenerated<const MethodOptions>(
  10764. &from);
  10765. if (source == NULL) {
  10766. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  10767. } else {
  10768. MergeFrom(*source);
  10769. }
  10770. }
  10771. void MethodOptions::MergeFrom(const MethodOptions& from) {
  10772. if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
  10773. uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
  10774. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  10775. if (from.has_deprecated()) {
  10776. set_deprecated(from.deprecated());
  10777. }
  10778. }
  10779. _extensions_.MergeFrom(from._extensions_);
  10780. if (from._internal_metadata_.have_unknown_fields()) {
  10781. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  10782. }
  10783. }
  10784. void MethodOptions::CopyFrom(const ::google::protobuf::Message& from) {
  10785. if (&from == this) return;
  10786. Clear();
  10787. MergeFrom(from);
  10788. }
  10789. void MethodOptions::CopyFrom(const MethodOptions& from) {
  10790. if (&from == this) return;
  10791. Clear();
  10792. MergeFrom(from);
  10793. }
  10794. bool MethodOptions::IsInitialized() const {
  10795. if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false;
  10796. if (!_extensions_.IsInitialized()) return false; return true;
  10797. }
  10798. void MethodOptions::Swap(MethodOptions* other) {
  10799. if (other == this) return;
  10800. InternalSwap(other);
  10801. }
  10802. void MethodOptions::InternalSwap(MethodOptions* other) {
  10803. std::swap(deprecated_, other->deprecated_);
  10804. uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_);
  10805. std::swap(_has_bits_[0], other->_has_bits_[0]);
  10806. _internal_metadata_.Swap(&other->_internal_metadata_);
  10807. std::swap(_cached_size_, other->_cached_size_);
  10808. _extensions_.Swap(&other->_extensions_);
  10809. }
  10810. ::google::protobuf::Metadata MethodOptions::GetMetadata() const {
  10811. protobuf_AssignDescriptorsOnce();
  10812. ::google::protobuf::Metadata metadata;
  10813. metadata.descriptor = MethodOptions_descriptor_;
  10814. metadata.reflection = MethodOptions_reflection_;
  10815. return metadata;
  10816. }
  10817. #if PROTOBUF_INLINE_NOT_IN_HEADERS
  10818. // MethodOptions
  10819. // optional bool deprecated = 33 [default = false];
  10820. bool MethodOptions::has_deprecated() const {
  10821. return (_has_bits_[0] & 0x00000001u) != 0;
  10822. }
  10823. void MethodOptions::set_has_deprecated() {
  10824. _has_bits_[0] |= 0x00000001u;
  10825. }
  10826. void MethodOptions::clear_has_deprecated() {
  10827. _has_bits_[0] &= ~0x00000001u;
  10828. }
  10829. void MethodOptions::clear_deprecated() {
  10830. deprecated_ = false;
  10831. clear_has_deprecated();
  10832. }
  10833. bool MethodOptions::deprecated() const {
  10834. // @@protoc_insertion_point(field_get:google.protobuf.MethodOptions.deprecated)
  10835. return deprecated_;
  10836. }
  10837. void MethodOptions::set_deprecated(bool value) {
  10838. set_has_deprecated();
  10839. deprecated_ = value;
  10840. // @@protoc_insertion_point(field_set:google.protobuf.MethodOptions.deprecated)
  10841. }
  10842. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  10843. int MethodOptions::uninterpreted_option_size() const {
  10844. return uninterpreted_option_.size();
  10845. }
  10846. void MethodOptions::clear_uninterpreted_option() {
  10847. uninterpreted_option_.Clear();
  10848. }
  10849. const ::google::protobuf::UninterpretedOption& MethodOptions::uninterpreted_option(int index) const {
  10850. // @@protoc_insertion_point(field_get:google.protobuf.MethodOptions.uninterpreted_option)
  10851. return uninterpreted_option_.Get(index);
  10852. }
  10853. ::google::protobuf::UninterpretedOption* MethodOptions::mutable_uninterpreted_option(int index) {
  10854. // @@protoc_insertion_point(field_mutable:google.protobuf.MethodOptions.uninterpreted_option)
  10855. return uninterpreted_option_.Mutable(index);
  10856. }
  10857. ::google::protobuf::UninterpretedOption* MethodOptions::add_uninterpreted_option() {
  10858. // @@protoc_insertion_point(field_add:google.protobuf.MethodOptions.uninterpreted_option)
  10859. return uninterpreted_option_.Add();
  10860. }
  10861. ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
  10862. MethodOptions::mutable_uninterpreted_option() {
  10863. // @@protoc_insertion_point(field_mutable_list:google.protobuf.MethodOptions.uninterpreted_option)
  10864. return &uninterpreted_option_;
  10865. }
  10866. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
  10867. MethodOptions::uninterpreted_option() const {
  10868. // @@protoc_insertion_point(field_list:google.protobuf.MethodOptions.uninterpreted_option)
  10869. return uninterpreted_option_;
  10870. }
  10871. #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
  10872. // ===================================================================
  10873. #ifndef _MSC_VER
  10874. const int UninterpretedOption_NamePart::kNamePartFieldNumber;
  10875. const int UninterpretedOption_NamePart::kIsExtensionFieldNumber;
  10876. #endif // !_MSC_VER
  10877. UninterpretedOption_NamePart::UninterpretedOption_NamePart()
  10878. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  10879. SharedCtor();
  10880. // @@protoc_insertion_point(constructor:google.protobuf.UninterpretedOption.NamePart)
  10881. }
  10882. void UninterpretedOption_NamePart::InitAsDefaultInstance() {
  10883. }
  10884. UninterpretedOption_NamePart::UninterpretedOption_NamePart(const UninterpretedOption_NamePart& from)
  10885. : ::google::protobuf::Message(),
  10886. _internal_metadata_(NULL) {
  10887. SharedCtor();
  10888. MergeFrom(from);
  10889. // @@protoc_insertion_point(copy_constructor:google.protobuf.UninterpretedOption.NamePart)
  10890. }
  10891. void UninterpretedOption_NamePart::SharedCtor() {
  10892. ::google::protobuf::internal::GetEmptyString();
  10893. _cached_size_ = 0;
  10894. name_part_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  10895. is_extension_ = false;
  10896. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  10897. }
  10898. UninterpretedOption_NamePart::~UninterpretedOption_NamePart() {
  10899. // @@protoc_insertion_point(destructor:google.protobuf.UninterpretedOption.NamePart)
  10900. SharedDtor();
  10901. }
  10902. void UninterpretedOption_NamePart::SharedDtor() {
  10903. name_part_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  10904. if (this != default_instance_) {
  10905. }
  10906. }
  10907. void UninterpretedOption_NamePart::SetCachedSize(int size) const {
  10908. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  10909. _cached_size_ = size;
  10910. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  10911. }
  10912. const ::google::protobuf::Descriptor* UninterpretedOption_NamePart::descriptor() {
  10913. protobuf_AssignDescriptorsOnce();
  10914. return UninterpretedOption_NamePart_descriptor_;
  10915. }
  10916. const UninterpretedOption_NamePart& UninterpretedOption_NamePart::default_instance() {
  10917. if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  10918. return *default_instance_;
  10919. }
  10920. UninterpretedOption_NamePart* UninterpretedOption_NamePart::default_instance_ = NULL;
  10921. UninterpretedOption_NamePart* UninterpretedOption_NamePart::New(::google::protobuf::Arena* arena) const {
  10922. UninterpretedOption_NamePart* n = new UninterpretedOption_NamePart;
  10923. if (arena != NULL) {
  10924. arena->Own(n);
  10925. }
  10926. return n;
  10927. }
  10928. void UninterpretedOption_NamePart::Clear() {
  10929. if (_has_bits_[0 / 32] & 3u) {
  10930. if (has_name_part()) {
  10931. name_part_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  10932. }
  10933. is_extension_ = false;
  10934. }
  10935. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  10936. if (_internal_metadata_.have_unknown_fields()) {
  10937. mutable_unknown_fields()->Clear();
  10938. }
  10939. }
  10940. bool UninterpretedOption_NamePart::MergePartialFromCodedStream(
  10941. ::google::protobuf::io::CodedInputStream* input) {
  10942. #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
  10943. ::google::protobuf::uint32 tag;
  10944. // @@protoc_insertion_point(parse_start:google.protobuf.UninterpretedOption.NamePart)
  10945. for (;;) {
  10946. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
  10947. tag = p.first;
  10948. if (!p.second) goto handle_unusual;
  10949. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  10950. // required string name_part = 1;
  10951. case 1: {
  10952. if (tag == 10) {
  10953. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  10954. input, this->mutable_name_part()));
  10955. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  10956. this->name_part().data(), this->name_part().length(),
  10957. ::google::protobuf::internal::WireFormat::PARSE,
  10958. "google.protobuf.UninterpretedOption.NamePart.name_part");
  10959. } else {
  10960. goto handle_unusual;
  10961. }
  10962. if (input->ExpectTag(16)) goto parse_is_extension;
  10963. break;
  10964. }
  10965. // required bool is_extension = 2;
  10966. case 2: {
  10967. if (tag == 16) {
  10968. parse_is_extension:
  10969. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  10970. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL_X>(
  10971. input, &is_extension_)));
  10972. set_has_is_extension();
  10973. } else {
  10974. goto handle_unusual;
  10975. }
  10976. if (input->ExpectAtEnd()) goto success;
  10977. break;
  10978. }
  10979. default: {
  10980. handle_unusual:
  10981. if (tag == 0 ||
  10982. ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  10983. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  10984. goto success;
  10985. }
  10986. DO_(::google::protobuf::internal::WireFormat::SkipField(
  10987. input, tag, mutable_unknown_fields()));
  10988. break;
  10989. }
  10990. }
  10991. }
  10992. success:
  10993. // @@protoc_insertion_point(parse_success:google.protobuf.UninterpretedOption.NamePart)
  10994. return true;
  10995. failure:
  10996. // @@protoc_insertion_point(parse_failure:google.protobuf.UninterpretedOption.NamePart)
  10997. return false;
  10998. #undef DO_
  10999. }
  11000. void UninterpretedOption_NamePart::SerializeWithCachedSizes(
  11001. ::google::protobuf::io::CodedOutputStream* output) const {
  11002. // @@protoc_insertion_point(serialize_start:google.protobuf.UninterpretedOption.NamePart)
  11003. // required string name_part = 1;
  11004. if (has_name_part()) {
  11005. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  11006. this->name_part().data(), this->name_part().length(),
  11007. ::google::protobuf::internal::WireFormat::SERIALIZE,
  11008. "google.protobuf.UninterpretedOption.NamePart.name_part");
  11009. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  11010. 1, this->name_part(), output);
  11011. }
  11012. // required bool is_extension = 2;
  11013. if (has_is_extension()) {
  11014. ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->is_extension(), output);
  11015. }
  11016. if (_internal_metadata_.have_unknown_fields()) {
  11017. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  11018. unknown_fields(), output);
  11019. }
  11020. // @@protoc_insertion_point(serialize_end:google.protobuf.UninterpretedOption.NamePart)
  11021. }
  11022. ::google::protobuf::uint8* UninterpretedOption_NamePart::SerializeWithCachedSizesToArray(
  11023. ::google::protobuf::uint8* target) const {
  11024. // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.UninterpretedOption.NamePart)
  11025. // required string name_part = 1;
  11026. if (has_name_part()) {
  11027. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  11028. this->name_part().data(), this->name_part().length(),
  11029. ::google::protobuf::internal::WireFormat::SERIALIZE,
  11030. "google.protobuf.UninterpretedOption.NamePart.name_part");
  11031. target =
  11032. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  11033. 1, this->name_part(), target);
  11034. }
  11035. // required bool is_extension = 2;
  11036. if (has_is_extension()) {
  11037. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->is_extension(), target);
  11038. }
  11039. if (_internal_metadata_.have_unknown_fields()) {
  11040. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  11041. unknown_fields(), target);
  11042. }
  11043. // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.UninterpretedOption.NamePart)
  11044. return target;
  11045. }
  11046. int UninterpretedOption_NamePart::RequiredFieldsByteSizeFallback() const {
  11047. int total_size = 0;
  11048. if (has_name_part()) {
  11049. // required string name_part = 1;
  11050. total_size += 1 +
  11051. ::google::protobuf::internal::WireFormatLite::StringSize(
  11052. this->name_part());
  11053. }
  11054. if (has_is_extension()) {
  11055. // required bool is_extension = 2;
  11056. total_size += 1 + 1;
  11057. }
  11058. return total_size;
  11059. }
  11060. int UninterpretedOption_NamePart::ByteSize() const {
  11061. int total_size = 0;
  11062. if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present.
  11063. // required string name_part = 1;
  11064. total_size += 1 +
  11065. ::google::protobuf::internal::WireFormatLite::StringSize(
  11066. this->name_part());
  11067. // required bool is_extension = 2;
  11068. total_size += 1 + 1;
  11069. } else {
  11070. total_size += RequiredFieldsByteSizeFallback();
  11071. }
  11072. if (_internal_metadata_.have_unknown_fields()) {
  11073. total_size +=
  11074. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  11075. unknown_fields());
  11076. }
  11077. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  11078. _cached_size_ = total_size;
  11079. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  11080. return total_size;
  11081. }
  11082. void UninterpretedOption_NamePart::MergeFrom(const ::google::protobuf::Message& from) {
  11083. if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
  11084. const UninterpretedOption_NamePart* source =
  11085. ::google::protobuf::internal::DynamicCastToGenerated<const UninterpretedOption_NamePart>(
  11086. &from);
  11087. if (source == NULL) {
  11088. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  11089. } else {
  11090. MergeFrom(*source);
  11091. }
  11092. }
  11093. void UninterpretedOption_NamePart::MergeFrom(const UninterpretedOption_NamePart& from) {
  11094. if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
  11095. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  11096. if (from.has_name_part()) {
  11097. set_has_name_part();
  11098. name_part_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_part_);
  11099. }
  11100. if (from.has_is_extension()) {
  11101. set_is_extension(from.is_extension());
  11102. }
  11103. }
  11104. if (from._internal_metadata_.have_unknown_fields()) {
  11105. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  11106. }
  11107. }
  11108. void UninterpretedOption_NamePart::CopyFrom(const ::google::protobuf::Message& from) {
  11109. if (&from == this) return;
  11110. Clear();
  11111. MergeFrom(from);
  11112. }
  11113. void UninterpretedOption_NamePart::CopyFrom(const UninterpretedOption_NamePart& from) {
  11114. if (&from == this) return;
  11115. Clear();
  11116. MergeFrom(from);
  11117. }
  11118. bool UninterpretedOption_NamePart::IsInitialized() const {
  11119. if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
  11120. return true;
  11121. }
  11122. void UninterpretedOption_NamePart::Swap(UninterpretedOption_NamePart* other) {
  11123. if (other == this) return;
  11124. InternalSwap(other);
  11125. }
  11126. void UninterpretedOption_NamePart::InternalSwap(UninterpretedOption_NamePart* other) {
  11127. name_part_.Swap(&other->name_part_);
  11128. std::swap(is_extension_, other->is_extension_);
  11129. std::swap(_has_bits_[0], other->_has_bits_[0]);
  11130. _internal_metadata_.Swap(&other->_internal_metadata_);
  11131. std::swap(_cached_size_, other->_cached_size_);
  11132. }
  11133. ::google::protobuf::Metadata UninterpretedOption_NamePart::GetMetadata() const {
  11134. protobuf_AssignDescriptorsOnce();
  11135. ::google::protobuf::Metadata metadata;
  11136. metadata.descriptor = UninterpretedOption_NamePart_descriptor_;
  11137. metadata.reflection = UninterpretedOption_NamePart_reflection_;
  11138. return metadata;
  11139. }
  11140. // -------------------------------------------------------------------
  11141. #ifndef _MSC_VER
  11142. const int UninterpretedOption::kNameFieldNumber;
  11143. const int UninterpretedOption::kIdentifierValueFieldNumber;
  11144. const int UninterpretedOption::kPositiveIntValueFieldNumber;
  11145. const int UninterpretedOption::kNegativeIntValueFieldNumber;
  11146. const int UninterpretedOption::kDoubleValueFieldNumber;
  11147. const int UninterpretedOption::kStringValueFieldNumber;
  11148. const int UninterpretedOption::kAggregateValueFieldNumber;
  11149. #endif // !_MSC_VER
  11150. UninterpretedOption::UninterpretedOption()
  11151. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  11152. SharedCtor();
  11153. // @@protoc_insertion_point(constructor:google.protobuf.UninterpretedOption)
  11154. }
  11155. void UninterpretedOption::InitAsDefaultInstance() {
  11156. }
  11157. UninterpretedOption::UninterpretedOption(const UninterpretedOption& from)
  11158. : ::google::protobuf::Message(),
  11159. _internal_metadata_(NULL) {
  11160. SharedCtor();
  11161. MergeFrom(from);
  11162. // @@protoc_insertion_point(copy_constructor:google.protobuf.UninterpretedOption)
  11163. }
  11164. void UninterpretedOption::SharedCtor() {
  11165. ::google::protobuf::internal::GetEmptyString();
  11166. _cached_size_ = 0;
  11167. identifier_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  11168. positive_int_value_ = GOOGLE_ULONGLONG(0);
  11169. negative_int_value_ = GOOGLE_LONGLONG(0);
  11170. double_value_ = 0;
  11171. string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  11172. aggregate_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  11173. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  11174. }
  11175. UninterpretedOption::~UninterpretedOption() {
  11176. // @@protoc_insertion_point(destructor:google.protobuf.UninterpretedOption)
  11177. SharedDtor();
  11178. }
  11179. void UninterpretedOption::SharedDtor() {
  11180. identifier_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  11181. string_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  11182. aggregate_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  11183. if (this != default_instance_) {
  11184. }
  11185. }
  11186. void UninterpretedOption::SetCachedSize(int size) const {
  11187. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  11188. _cached_size_ = size;
  11189. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  11190. }
  11191. const ::google::protobuf::Descriptor* UninterpretedOption::descriptor() {
  11192. protobuf_AssignDescriptorsOnce();
  11193. return UninterpretedOption_descriptor_;
  11194. }
  11195. const UninterpretedOption& UninterpretedOption::default_instance() {
  11196. if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  11197. return *default_instance_;
  11198. }
  11199. UninterpretedOption* UninterpretedOption::default_instance_ = NULL;
  11200. UninterpretedOption* UninterpretedOption::New(::google::protobuf::Arena* arena) const {
  11201. UninterpretedOption* n = new UninterpretedOption;
  11202. if (arena != NULL) {
  11203. arena->Own(n);
  11204. }
  11205. return n;
  11206. }
  11207. void UninterpretedOption::Clear() {
  11208. #define ZR_HELPER_(f) reinterpret_cast<char*>(\
  11209. &reinterpret_cast<UninterpretedOption*>(16)->f)
  11210. #define ZR_(first, last) do {\
  11211. ::memset(&first, 0,\
  11212. ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\
  11213. } while (0)
  11214. if (_has_bits_[0 / 32] & 126u) {
  11215. ZR_(positive_int_value_, double_value_);
  11216. if (has_identifier_value()) {
  11217. identifier_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  11218. }
  11219. if (has_string_value()) {
  11220. string_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  11221. }
  11222. if (has_aggregate_value()) {
  11223. aggregate_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  11224. }
  11225. }
  11226. #undef ZR_HELPER_
  11227. #undef ZR_
  11228. name_.Clear();
  11229. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  11230. if (_internal_metadata_.have_unknown_fields()) {
  11231. mutable_unknown_fields()->Clear();
  11232. }
  11233. }
  11234. bool UninterpretedOption::MergePartialFromCodedStream(
  11235. ::google::protobuf::io::CodedInputStream* input) {
  11236. #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
  11237. ::google::protobuf::uint32 tag;
  11238. // @@protoc_insertion_point(parse_start:google.protobuf.UninterpretedOption)
  11239. for (;;) {
  11240. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
  11241. tag = p.first;
  11242. if (!p.second) goto handle_unusual;
  11243. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  11244. // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
  11245. case 2: {
  11246. if (tag == 18) {
  11247. DO_(input->IncrementRecursionDepth());
  11248. parse_loop_name:
  11249. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
  11250. input, add_name()));
  11251. } else {
  11252. goto handle_unusual;
  11253. }
  11254. if (input->ExpectTag(18)) goto parse_loop_name;
  11255. input->UnsafeDecrementRecursionDepth();
  11256. if (input->ExpectTag(26)) goto parse_identifier_value;
  11257. break;
  11258. }
  11259. // optional string identifier_value = 3;
  11260. case 3: {
  11261. if (tag == 26) {
  11262. parse_identifier_value:
  11263. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  11264. input, this->mutable_identifier_value()));
  11265. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  11266. this->identifier_value().data(), this->identifier_value().length(),
  11267. ::google::protobuf::internal::WireFormat::PARSE,
  11268. "google.protobuf.UninterpretedOption.identifier_value");
  11269. } else {
  11270. goto handle_unusual;
  11271. }
  11272. if (input->ExpectTag(32)) goto parse_positive_int_value;
  11273. break;
  11274. }
  11275. // optional uint64 positive_int_value = 4;
  11276. case 4: {
  11277. if (tag == 32) {
  11278. parse_positive_int_value:
  11279. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  11280. ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
  11281. input, &positive_int_value_)));
  11282. set_has_positive_int_value();
  11283. } else {
  11284. goto handle_unusual;
  11285. }
  11286. if (input->ExpectTag(40)) goto parse_negative_int_value;
  11287. break;
  11288. }
  11289. // optional int64 negative_int_value = 5;
  11290. case 5: {
  11291. if (tag == 40) {
  11292. parse_negative_int_value:
  11293. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  11294. ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
  11295. input, &negative_int_value_)));
  11296. set_has_negative_int_value();
  11297. } else {
  11298. goto handle_unusual;
  11299. }
  11300. if (input->ExpectTag(49)) goto parse_double_value;
  11301. break;
  11302. }
  11303. // optional double double_value = 6;
  11304. case 6: {
  11305. if (tag == 49) {
  11306. parse_double_value:
  11307. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  11308. double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
  11309. input, &double_value_)));
  11310. set_has_double_value();
  11311. } else {
  11312. goto handle_unusual;
  11313. }
  11314. if (input->ExpectTag(58)) goto parse_string_value;
  11315. break;
  11316. }
  11317. // optional bytes string_value = 7;
  11318. case 7: {
  11319. if (tag == 58) {
  11320. parse_string_value:
  11321. DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
  11322. input, this->mutable_string_value()));
  11323. } else {
  11324. goto handle_unusual;
  11325. }
  11326. if (input->ExpectTag(66)) goto parse_aggregate_value;
  11327. break;
  11328. }
  11329. // optional string aggregate_value = 8;
  11330. case 8: {
  11331. if (tag == 66) {
  11332. parse_aggregate_value:
  11333. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  11334. input, this->mutable_aggregate_value()));
  11335. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  11336. this->aggregate_value().data(), this->aggregate_value().length(),
  11337. ::google::protobuf::internal::WireFormat::PARSE,
  11338. "google.protobuf.UninterpretedOption.aggregate_value");
  11339. } else {
  11340. goto handle_unusual;
  11341. }
  11342. if (input->ExpectAtEnd()) goto success;
  11343. break;
  11344. }
  11345. default: {
  11346. handle_unusual:
  11347. if (tag == 0 ||
  11348. ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  11349. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  11350. goto success;
  11351. }
  11352. DO_(::google::protobuf::internal::WireFormat::SkipField(
  11353. input, tag, mutable_unknown_fields()));
  11354. break;
  11355. }
  11356. }
  11357. }
  11358. success:
  11359. // @@protoc_insertion_point(parse_success:google.protobuf.UninterpretedOption)
  11360. return true;
  11361. failure:
  11362. // @@protoc_insertion_point(parse_failure:google.protobuf.UninterpretedOption)
  11363. return false;
  11364. #undef DO_
  11365. }
  11366. void UninterpretedOption::SerializeWithCachedSizes(
  11367. ::google::protobuf::io::CodedOutputStream* output) const {
  11368. // @@protoc_insertion_point(serialize_start:google.protobuf.UninterpretedOption)
  11369. // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
  11370. for (unsigned int i = 0, n = this->name_size(); i < n; i++) {
  11371. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  11372. 2, this->name(i), output);
  11373. }
  11374. // optional string identifier_value = 3;
  11375. if (has_identifier_value()) {
  11376. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  11377. this->identifier_value().data(), this->identifier_value().length(),
  11378. ::google::protobuf::internal::WireFormat::SERIALIZE,
  11379. "google.protobuf.UninterpretedOption.identifier_value");
  11380. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  11381. 3, this->identifier_value(), output);
  11382. }
  11383. // optional uint64 positive_int_value = 4;
  11384. if (has_positive_int_value()) {
  11385. ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->positive_int_value(), output);
  11386. }
  11387. // optional int64 negative_int_value = 5;
  11388. if (has_negative_int_value()) {
  11389. ::google::protobuf::internal::WireFormatLite::WriteInt64(5, this->negative_int_value(), output);
  11390. }
  11391. // optional double double_value = 6;
  11392. if (has_double_value()) {
  11393. ::google::protobuf::internal::WireFormatLite::WriteDouble(6, this->double_value(), output);
  11394. }
  11395. // optional bytes string_value = 7;
  11396. if (has_string_value()) {
  11397. ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
  11398. 7, this->string_value(), output);
  11399. }
  11400. // optional string aggregate_value = 8;
  11401. if (has_aggregate_value()) {
  11402. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  11403. this->aggregate_value().data(), this->aggregate_value().length(),
  11404. ::google::protobuf::internal::WireFormat::SERIALIZE,
  11405. "google.protobuf.UninterpretedOption.aggregate_value");
  11406. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  11407. 8, this->aggregate_value(), output);
  11408. }
  11409. if (_internal_metadata_.have_unknown_fields()) {
  11410. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  11411. unknown_fields(), output);
  11412. }
  11413. // @@protoc_insertion_point(serialize_end:google.protobuf.UninterpretedOption)
  11414. }
  11415. ::google::protobuf::uint8* UninterpretedOption::SerializeWithCachedSizesToArray(
  11416. ::google::protobuf::uint8* target) const {
  11417. // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.UninterpretedOption)
  11418. // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
  11419. for (unsigned int i = 0, n = this->name_size(); i < n; i++) {
  11420. target = ::google::protobuf::internal::WireFormatLite::
  11421. WriteMessageNoVirtualToArray(
  11422. 2, this->name(i), target);
  11423. }
  11424. // optional string identifier_value = 3;
  11425. if (has_identifier_value()) {
  11426. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  11427. this->identifier_value().data(), this->identifier_value().length(),
  11428. ::google::protobuf::internal::WireFormat::SERIALIZE,
  11429. "google.protobuf.UninterpretedOption.identifier_value");
  11430. target =
  11431. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  11432. 3, this->identifier_value(), target);
  11433. }
  11434. // optional uint64 positive_int_value = 4;
  11435. if (has_positive_int_value()) {
  11436. target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->positive_int_value(), target);
  11437. }
  11438. // optional int64 negative_int_value = 5;
  11439. if (has_negative_int_value()) {
  11440. target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(5, this->negative_int_value(), target);
  11441. }
  11442. // optional double double_value = 6;
  11443. if (has_double_value()) {
  11444. target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(6, this->double_value(), target);
  11445. }
  11446. // optional bytes string_value = 7;
  11447. if (has_string_value()) {
  11448. target =
  11449. ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
  11450. 7, this->string_value(), target);
  11451. }
  11452. // optional string aggregate_value = 8;
  11453. if (has_aggregate_value()) {
  11454. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  11455. this->aggregate_value().data(), this->aggregate_value().length(),
  11456. ::google::protobuf::internal::WireFormat::SERIALIZE,
  11457. "google.protobuf.UninterpretedOption.aggregate_value");
  11458. target =
  11459. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  11460. 8, this->aggregate_value(), target);
  11461. }
  11462. if (_internal_metadata_.have_unknown_fields()) {
  11463. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  11464. unknown_fields(), target);
  11465. }
  11466. // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.UninterpretedOption)
  11467. return target;
  11468. }
  11469. int UninterpretedOption::ByteSize() const {
  11470. int total_size = 0;
  11471. if (_has_bits_[1 / 32] & 126u) {
  11472. // optional string identifier_value = 3;
  11473. if (has_identifier_value()) {
  11474. total_size += 1 +
  11475. ::google::protobuf::internal::WireFormatLite::StringSize(
  11476. this->identifier_value());
  11477. }
  11478. // optional uint64 positive_int_value = 4;
  11479. if (has_positive_int_value()) {
  11480. total_size += 1 +
  11481. ::google::protobuf::internal::WireFormatLite::UInt64Size(
  11482. this->positive_int_value());
  11483. }
  11484. // optional int64 negative_int_value = 5;
  11485. if (has_negative_int_value()) {
  11486. total_size += 1 +
  11487. ::google::protobuf::internal::WireFormatLite::Int64Size(
  11488. this->negative_int_value());
  11489. }
  11490. // optional double double_value = 6;
  11491. if (has_double_value()) {
  11492. total_size += 1 + 8;
  11493. }
  11494. // optional bytes string_value = 7;
  11495. if (has_string_value()) {
  11496. total_size += 1 +
  11497. ::google::protobuf::internal::WireFormatLite::BytesSize(
  11498. this->string_value());
  11499. }
  11500. // optional string aggregate_value = 8;
  11501. if (has_aggregate_value()) {
  11502. total_size += 1 +
  11503. ::google::protobuf::internal::WireFormatLite::StringSize(
  11504. this->aggregate_value());
  11505. }
  11506. }
  11507. // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
  11508. total_size += 1 * this->name_size();
  11509. for (int i = 0; i < this->name_size(); i++) {
  11510. total_size +=
  11511. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  11512. this->name(i));
  11513. }
  11514. if (_internal_metadata_.have_unknown_fields()) {
  11515. total_size +=
  11516. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  11517. unknown_fields());
  11518. }
  11519. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  11520. _cached_size_ = total_size;
  11521. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  11522. return total_size;
  11523. }
  11524. void UninterpretedOption::MergeFrom(const ::google::protobuf::Message& from) {
  11525. if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
  11526. const UninterpretedOption* source =
  11527. ::google::protobuf::internal::DynamicCastToGenerated<const UninterpretedOption>(
  11528. &from);
  11529. if (source == NULL) {
  11530. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  11531. } else {
  11532. MergeFrom(*source);
  11533. }
  11534. }
  11535. void UninterpretedOption::MergeFrom(const UninterpretedOption& from) {
  11536. if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
  11537. name_.MergeFrom(from.name_);
  11538. if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) {
  11539. if (from.has_identifier_value()) {
  11540. set_has_identifier_value();
  11541. identifier_value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.identifier_value_);
  11542. }
  11543. if (from.has_positive_int_value()) {
  11544. set_positive_int_value(from.positive_int_value());
  11545. }
  11546. if (from.has_negative_int_value()) {
  11547. set_negative_int_value(from.negative_int_value());
  11548. }
  11549. if (from.has_double_value()) {
  11550. set_double_value(from.double_value());
  11551. }
  11552. if (from.has_string_value()) {
  11553. set_has_string_value();
  11554. string_value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.string_value_);
  11555. }
  11556. if (from.has_aggregate_value()) {
  11557. set_has_aggregate_value();
  11558. aggregate_value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.aggregate_value_);
  11559. }
  11560. }
  11561. if (from._internal_metadata_.have_unknown_fields()) {
  11562. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  11563. }
  11564. }
  11565. void UninterpretedOption::CopyFrom(const ::google::protobuf::Message& from) {
  11566. if (&from == this) return;
  11567. Clear();
  11568. MergeFrom(from);
  11569. }
  11570. void UninterpretedOption::CopyFrom(const UninterpretedOption& from) {
  11571. if (&from == this) return;
  11572. Clear();
  11573. MergeFrom(from);
  11574. }
  11575. bool UninterpretedOption::IsInitialized() const {
  11576. if (!::google::protobuf::internal::AllAreInitialized(this->name())) return false;
  11577. return true;
  11578. }
  11579. void UninterpretedOption::Swap(UninterpretedOption* other) {
  11580. if (other == this) return;
  11581. InternalSwap(other);
  11582. }
  11583. void UninterpretedOption::InternalSwap(UninterpretedOption* other) {
  11584. name_.UnsafeArenaSwap(&other->name_);
  11585. identifier_value_.Swap(&other->identifier_value_);
  11586. std::swap(positive_int_value_, other->positive_int_value_);
  11587. std::swap(negative_int_value_, other->negative_int_value_);
  11588. std::swap(double_value_, other->double_value_);
  11589. string_value_.Swap(&other->string_value_);
  11590. aggregate_value_.Swap(&other->aggregate_value_);
  11591. std::swap(_has_bits_[0], other->_has_bits_[0]);
  11592. _internal_metadata_.Swap(&other->_internal_metadata_);
  11593. std::swap(_cached_size_, other->_cached_size_);
  11594. }
  11595. ::google::protobuf::Metadata UninterpretedOption::GetMetadata() const {
  11596. protobuf_AssignDescriptorsOnce();
  11597. ::google::protobuf::Metadata metadata;
  11598. metadata.descriptor = UninterpretedOption_descriptor_;
  11599. metadata.reflection = UninterpretedOption_reflection_;
  11600. return metadata;
  11601. }
  11602. #if PROTOBUF_INLINE_NOT_IN_HEADERS
  11603. // UninterpretedOption_NamePart
  11604. // required string name_part = 1;
  11605. bool UninterpretedOption_NamePart::has_name_part() const {
  11606. return (_has_bits_[0] & 0x00000001u) != 0;
  11607. }
  11608. void UninterpretedOption_NamePart::set_has_name_part() {
  11609. _has_bits_[0] |= 0x00000001u;
  11610. }
  11611. void UninterpretedOption_NamePart::clear_has_name_part() {
  11612. _has_bits_[0] &= ~0x00000001u;
  11613. }
  11614. void UninterpretedOption_NamePart::clear_name_part() {
  11615. name_part_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  11616. clear_has_name_part();
  11617. }
  11618. const ::std::string& UninterpretedOption_NamePart::name_part() const {
  11619. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.NamePart.name_part)
  11620. return name_part_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  11621. }
  11622. void UninterpretedOption_NamePart::set_name_part(const ::std::string& value) {
  11623. set_has_name_part();
  11624. name_part_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  11625. // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.NamePart.name_part)
  11626. }
  11627. void UninterpretedOption_NamePart::set_name_part(const char* value) {
  11628. set_has_name_part();
  11629. name_part_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  11630. // @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption.NamePart.name_part)
  11631. }
  11632. void UninterpretedOption_NamePart::set_name_part(const char* value, size_t size) {
  11633. set_has_name_part();
  11634. name_part_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  11635. ::std::string(reinterpret_cast<const char*>(value), size));
  11636. // @@protoc_insertion_point(field_set_pointer:google.protobuf.UninterpretedOption.NamePart.name_part)
  11637. }
  11638. ::std::string* UninterpretedOption_NamePart::mutable_name_part() {
  11639. set_has_name_part();
  11640. // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.NamePart.name_part)
  11641. return name_part_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  11642. }
  11643. ::std::string* UninterpretedOption_NamePart::release_name_part() {
  11644. clear_has_name_part();
  11645. return name_part_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  11646. }
  11647. void UninterpretedOption_NamePart::set_allocated_name_part(::std::string* name_part) {
  11648. if (name_part != NULL) {
  11649. set_has_name_part();
  11650. } else {
  11651. clear_has_name_part();
  11652. }
  11653. name_part_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name_part);
  11654. // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedOption.NamePart.name_part)
  11655. }
  11656. // required bool is_extension = 2;
  11657. bool UninterpretedOption_NamePart::has_is_extension() const {
  11658. return (_has_bits_[0] & 0x00000002u) != 0;
  11659. }
  11660. void UninterpretedOption_NamePart::set_has_is_extension() {
  11661. _has_bits_[0] |= 0x00000002u;
  11662. }
  11663. void UninterpretedOption_NamePart::clear_has_is_extension() {
  11664. _has_bits_[0] &= ~0x00000002u;
  11665. }
  11666. void UninterpretedOption_NamePart::clear_is_extension() {
  11667. is_extension_ = false;
  11668. clear_has_is_extension();
  11669. }
  11670. bool UninterpretedOption_NamePart::is_extension() const {
  11671. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.NamePart.is_extension)
  11672. return is_extension_;
  11673. }
  11674. void UninterpretedOption_NamePart::set_is_extension(bool value) {
  11675. set_has_is_extension();
  11676. is_extension_ = value;
  11677. // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.NamePart.is_extension)
  11678. }
  11679. // -------------------------------------------------------------------
  11680. // UninterpretedOption
  11681. // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
  11682. int UninterpretedOption::name_size() const {
  11683. return name_.size();
  11684. }
  11685. void UninterpretedOption::clear_name() {
  11686. name_.Clear();
  11687. }
  11688. const ::google::protobuf::UninterpretedOption_NamePart& UninterpretedOption::name(int index) const {
  11689. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.name)
  11690. return name_.Get(index);
  11691. }
  11692. ::google::protobuf::UninterpretedOption_NamePart* UninterpretedOption::mutable_name(int index) {
  11693. // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.name)
  11694. return name_.Mutable(index);
  11695. }
  11696. ::google::protobuf::UninterpretedOption_NamePart* UninterpretedOption::add_name() {
  11697. // @@protoc_insertion_point(field_add:google.protobuf.UninterpretedOption.name)
  11698. return name_.Add();
  11699. }
  11700. ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption_NamePart >*
  11701. UninterpretedOption::mutable_name() {
  11702. // @@protoc_insertion_point(field_mutable_list:google.protobuf.UninterpretedOption.name)
  11703. return &name_;
  11704. }
  11705. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption_NamePart >&
  11706. UninterpretedOption::name() const {
  11707. // @@protoc_insertion_point(field_list:google.protobuf.UninterpretedOption.name)
  11708. return name_;
  11709. }
  11710. // optional string identifier_value = 3;
  11711. bool UninterpretedOption::has_identifier_value() const {
  11712. return (_has_bits_[0] & 0x00000002u) != 0;
  11713. }
  11714. void UninterpretedOption::set_has_identifier_value() {
  11715. _has_bits_[0] |= 0x00000002u;
  11716. }
  11717. void UninterpretedOption::clear_has_identifier_value() {
  11718. _has_bits_[0] &= ~0x00000002u;
  11719. }
  11720. void UninterpretedOption::clear_identifier_value() {
  11721. identifier_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  11722. clear_has_identifier_value();
  11723. }
  11724. const ::std::string& UninterpretedOption::identifier_value() const {
  11725. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.identifier_value)
  11726. return identifier_value_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  11727. }
  11728. void UninterpretedOption::set_identifier_value(const ::std::string& value) {
  11729. set_has_identifier_value();
  11730. identifier_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  11731. // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.identifier_value)
  11732. }
  11733. void UninterpretedOption::set_identifier_value(const char* value) {
  11734. set_has_identifier_value();
  11735. identifier_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  11736. // @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption.identifier_value)
  11737. }
  11738. void UninterpretedOption::set_identifier_value(const char* value, size_t size) {
  11739. set_has_identifier_value();
  11740. identifier_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  11741. ::std::string(reinterpret_cast<const char*>(value), size));
  11742. // @@protoc_insertion_point(field_set_pointer:google.protobuf.UninterpretedOption.identifier_value)
  11743. }
  11744. ::std::string* UninterpretedOption::mutable_identifier_value() {
  11745. set_has_identifier_value();
  11746. // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.identifier_value)
  11747. return identifier_value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  11748. }
  11749. ::std::string* UninterpretedOption::release_identifier_value() {
  11750. clear_has_identifier_value();
  11751. return identifier_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  11752. }
  11753. void UninterpretedOption::set_allocated_identifier_value(::std::string* identifier_value) {
  11754. if (identifier_value != NULL) {
  11755. set_has_identifier_value();
  11756. } else {
  11757. clear_has_identifier_value();
  11758. }
  11759. identifier_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), identifier_value);
  11760. // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedOption.identifier_value)
  11761. }
  11762. // optional uint64 positive_int_value = 4;
  11763. bool UninterpretedOption::has_positive_int_value() const {
  11764. return (_has_bits_[0] & 0x00000004u) != 0;
  11765. }
  11766. void UninterpretedOption::set_has_positive_int_value() {
  11767. _has_bits_[0] |= 0x00000004u;
  11768. }
  11769. void UninterpretedOption::clear_has_positive_int_value() {
  11770. _has_bits_[0] &= ~0x00000004u;
  11771. }
  11772. void UninterpretedOption::clear_positive_int_value() {
  11773. positive_int_value_ = GOOGLE_ULONGLONG(0);
  11774. clear_has_positive_int_value();
  11775. }
  11776. ::google::protobuf::uint64 UninterpretedOption::positive_int_value() const {
  11777. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.positive_int_value)
  11778. return positive_int_value_;
  11779. }
  11780. void UninterpretedOption::set_positive_int_value(::google::protobuf::uint64 value) {
  11781. set_has_positive_int_value();
  11782. positive_int_value_ = value;
  11783. // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.positive_int_value)
  11784. }
  11785. // optional int64 negative_int_value = 5;
  11786. bool UninterpretedOption::has_negative_int_value() const {
  11787. return (_has_bits_[0] & 0x00000008u) != 0;
  11788. }
  11789. void UninterpretedOption::set_has_negative_int_value() {
  11790. _has_bits_[0] |= 0x00000008u;
  11791. }
  11792. void UninterpretedOption::clear_has_negative_int_value() {
  11793. _has_bits_[0] &= ~0x00000008u;
  11794. }
  11795. void UninterpretedOption::clear_negative_int_value() {
  11796. negative_int_value_ = GOOGLE_LONGLONG(0);
  11797. clear_has_negative_int_value();
  11798. }
  11799. ::google::protobuf::int64 UninterpretedOption::negative_int_value() const {
  11800. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.negative_int_value)
  11801. return negative_int_value_;
  11802. }
  11803. void UninterpretedOption::set_negative_int_value(::google::protobuf::int64 value) {
  11804. set_has_negative_int_value();
  11805. negative_int_value_ = value;
  11806. // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.negative_int_value)
  11807. }
  11808. // optional double double_value = 6;
  11809. bool UninterpretedOption::has_double_value() const {
  11810. return (_has_bits_[0] & 0x00000010u) != 0;
  11811. }
  11812. void UninterpretedOption::set_has_double_value() {
  11813. _has_bits_[0] |= 0x00000010u;
  11814. }
  11815. void UninterpretedOption::clear_has_double_value() {
  11816. _has_bits_[0] &= ~0x00000010u;
  11817. }
  11818. void UninterpretedOption::clear_double_value() {
  11819. double_value_ = 0;
  11820. clear_has_double_value();
  11821. }
  11822. double UninterpretedOption::double_value() const {
  11823. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.double_value)
  11824. return double_value_;
  11825. }
  11826. void UninterpretedOption::set_double_value(double value) {
  11827. set_has_double_value();
  11828. double_value_ = value;
  11829. // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.double_value)
  11830. }
  11831. // optional bytes string_value = 7;
  11832. bool UninterpretedOption::has_string_value() const {
  11833. return (_has_bits_[0] & 0x00000020u) != 0;
  11834. }
  11835. void UninterpretedOption::set_has_string_value() {
  11836. _has_bits_[0] |= 0x00000020u;
  11837. }
  11838. void UninterpretedOption::clear_has_string_value() {
  11839. _has_bits_[0] &= ~0x00000020u;
  11840. }
  11841. void UninterpretedOption::clear_string_value() {
  11842. string_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  11843. clear_has_string_value();
  11844. }
  11845. const ::std::string& UninterpretedOption::string_value() const {
  11846. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.string_value)
  11847. return string_value_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  11848. }
  11849. void UninterpretedOption::set_string_value(const ::std::string& value) {
  11850. set_has_string_value();
  11851. string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  11852. // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.string_value)
  11853. }
  11854. void UninterpretedOption::set_string_value(const char* value) {
  11855. set_has_string_value();
  11856. string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  11857. // @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption.string_value)
  11858. }
  11859. void UninterpretedOption::set_string_value(const void* value, size_t size) {
  11860. set_has_string_value();
  11861. string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  11862. ::std::string(reinterpret_cast<const char*>(value), size));
  11863. // @@protoc_insertion_point(field_set_pointer:google.protobuf.UninterpretedOption.string_value)
  11864. }
  11865. ::std::string* UninterpretedOption::mutable_string_value() {
  11866. set_has_string_value();
  11867. // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.string_value)
  11868. return string_value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  11869. }
  11870. ::std::string* UninterpretedOption::release_string_value() {
  11871. clear_has_string_value();
  11872. return string_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  11873. }
  11874. void UninterpretedOption::set_allocated_string_value(::std::string* string_value) {
  11875. if (string_value != NULL) {
  11876. set_has_string_value();
  11877. } else {
  11878. clear_has_string_value();
  11879. }
  11880. string_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), string_value);
  11881. // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedOption.string_value)
  11882. }
  11883. // optional string aggregate_value = 8;
  11884. bool UninterpretedOption::has_aggregate_value() const {
  11885. return (_has_bits_[0] & 0x00000040u) != 0;
  11886. }
  11887. void UninterpretedOption::set_has_aggregate_value() {
  11888. _has_bits_[0] |= 0x00000040u;
  11889. }
  11890. void UninterpretedOption::clear_has_aggregate_value() {
  11891. _has_bits_[0] &= ~0x00000040u;
  11892. }
  11893. void UninterpretedOption::clear_aggregate_value() {
  11894. aggregate_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  11895. clear_has_aggregate_value();
  11896. }
  11897. const ::std::string& UninterpretedOption::aggregate_value() const {
  11898. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.aggregate_value)
  11899. return aggregate_value_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  11900. }
  11901. void UninterpretedOption::set_aggregate_value(const ::std::string& value) {
  11902. set_has_aggregate_value();
  11903. aggregate_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  11904. // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.aggregate_value)
  11905. }
  11906. void UninterpretedOption::set_aggregate_value(const char* value) {
  11907. set_has_aggregate_value();
  11908. aggregate_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  11909. // @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption.aggregate_value)
  11910. }
  11911. void UninterpretedOption::set_aggregate_value(const char* value, size_t size) {
  11912. set_has_aggregate_value();
  11913. aggregate_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  11914. ::std::string(reinterpret_cast<const char*>(value), size));
  11915. // @@protoc_insertion_point(field_set_pointer:google.protobuf.UninterpretedOption.aggregate_value)
  11916. }
  11917. ::std::string* UninterpretedOption::mutable_aggregate_value() {
  11918. set_has_aggregate_value();
  11919. // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.aggregate_value)
  11920. return aggregate_value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  11921. }
  11922. ::std::string* UninterpretedOption::release_aggregate_value() {
  11923. clear_has_aggregate_value();
  11924. return aggregate_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  11925. }
  11926. void UninterpretedOption::set_allocated_aggregate_value(::std::string* aggregate_value) {
  11927. if (aggregate_value != NULL) {
  11928. set_has_aggregate_value();
  11929. } else {
  11930. clear_has_aggregate_value();
  11931. }
  11932. aggregate_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), aggregate_value);
  11933. // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedOption.aggregate_value)
  11934. }
  11935. #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
  11936. // ===================================================================
  11937. #ifndef _MSC_VER
  11938. const int SourceCodeInfo_Location::kPathFieldNumber;
  11939. const int SourceCodeInfo_Location::kSpanFieldNumber;
  11940. const int SourceCodeInfo_Location::kLeadingCommentsFieldNumber;
  11941. const int SourceCodeInfo_Location::kTrailingCommentsFieldNumber;
  11942. const int SourceCodeInfo_Location::kLeadingDetachedCommentsFieldNumber;
  11943. #endif // !_MSC_VER
  11944. SourceCodeInfo_Location::SourceCodeInfo_Location()
  11945. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  11946. SharedCtor();
  11947. // @@protoc_insertion_point(constructor:google.protobuf.SourceCodeInfo.Location)
  11948. }
  11949. void SourceCodeInfo_Location::InitAsDefaultInstance() {
  11950. }
  11951. SourceCodeInfo_Location::SourceCodeInfo_Location(const SourceCodeInfo_Location& from)
  11952. : ::google::protobuf::Message(),
  11953. _internal_metadata_(NULL) {
  11954. SharedCtor();
  11955. MergeFrom(from);
  11956. // @@protoc_insertion_point(copy_constructor:google.protobuf.SourceCodeInfo.Location)
  11957. }
  11958. void SourceCodeInfo_Location::SharedCtor() {
  11959. ::google::protobuf::internal::GetEmptyString();
  11960. _cached_size_ = 0;
  11961. leading_comments_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  11962. trailing_comments_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  11963. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  11964. }
  11965. SourceCodeInfo_Location::~SourceCodeInfo_Location() {
  11966. // @@protoc_insertion_point(destructor:google.protobuf.SourceCodeInfo.Location)
  11967. SharedDtor();
  11968. }
  11969. void SourceCodeInfo_Location::SharedDtor() {
  11970. leading_comments_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  11971. trailing_comments_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  11972. if (this != default_instance_) {
  11973. }
  11974. }
  11975. void SourceCodeInfo_Location::SetCachedSize(int size) const {
  11976. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  11977. _cached_size_ = size;
  11978. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  11979. }
  11980. const ::google::protobuf::Descriptor* SourceCodeInfo_Location::descriptor() {
  11981. protobuf_AssignDescriptorsOnce();
  11982. return SourceCodeInfo_Location_descriptor_;
  11983. }
  11984. const SourceCodeInfo_Location& SourceCodeInfo_Location::default_instance() {
  11985. if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  11986. return *default_instance_;
  11987. }
  11988. SourceCodeInfo_Location* SourceCodeInfo_Location::default_instance_ = NULL;
  11989. SourceCodeInfo_Location* SourceCodeInfo_Location::New(::google::protobuf::Arena* arena) const {
  11990. SourceCodeInfo_Location* n = new SourceCodeInfo_Location;
  11991. if (arena != NULL) {
  11992. arena->Own(n);
  11993. }
  11994. return n;
  11995. }
  11996. void SourceCodeInfo_Location::Clear() {
  11997. if (_has_bits_[0 / 32] & 12u) {
  11998. if (has_leading_comments()) {
  11999. leading_comments_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  12000. }
  12001. if (has_trailing_comments()) {
  12002. trailing_comments_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  12003. }
  12004. }
  12005. path_.Clear();
  12006. span_.Clear();
  12007. leading_detached_comments_.Clear();
  12008. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  12009. if (_internal_metadata_.have_unknown_fields()) {
  12010. mutable_unknown_fields()->Clear();
  12011. }
  12012. }
  12013. bool SourceCodeInfo_Location::MergePartialFromCodedStream(
  12014. ::google::protobuf::io::CodedInputStream* input) {
  12015. #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
  12016. ::google::protobuf::uint32 tag;
  12017. // @@protoc_insertion_point(parse_start:google.protobuf.SourceCodeInfo.Location)
  12018. for (;;) {
  12019. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
  12020. tag = p.first;
  12021. if (!p.second) goto handle_unusual;
  12022. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  12023. // repeated int32 path = 1 [packed = true];
  12024. case 1: {
  12025. if (tag == 10) {
  12026. DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
  12027. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  12028. input, this->mutable_path())));
  12029. } else if (tag == 8) {
  12030. DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
  12031. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  12032. 1, 10, input, this->mutable_path())));
  12033. } else {
  12034. goto handle_unusual;
  12035. }
  12036. if (input->ExpectTag(18)) goto parse_span;
  12037. break;
  12038. }
  12039. // repeated int32 span = 2 [packed = true];
  12040. case 2: {
  12041. if (tag == 18) {
  12042. parse_span:
  12043. DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
  12044. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  12045. input, this->mutable_span())));
  12046. } else if (tag == 16) {
  12047. DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
  12048. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  12049. 1, 18, input, this->mutable_span())));
  12050. } else {
  12051. goto handle_unusual;
  12052. }
  12053. if (input->ExpectTag(26)) goto parse_leading_comments;
  12054. break;
  12055. }
  12056. // optional string leading_comments = 3;
  12057. case 3: {
  12058. if (tag == 26) {
  12059. parse_leading_comments:
  12060. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  12061. input, this->mutable_leading_comments()));
  12062. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  12063. this->leading_comments().data(), this->leading_comments().length(),
  12064. ::google::protobuf::internal::WireFormat::PARSE,
  12065. "google.protobuf.SourceCodeInfo.Location.leading_comments");
  12066. } else {
  12067. goto handle_unusual;
  12068. }
  12069. if (input->ExpectTag(34)) goto parse_trailing_comments;
  12070. break;
  12071. }
  12072. // optional string trailing_comments = 4;
  12073. case 4: {
  12074. if (tag == 34) {
  12075. parse_trailing_comments:
  12076. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  12077. input, this->mutable_trailing_comments()));
  12078. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  12079. this->trailing_comments().data(), this->trailing_comments().length(),
  12080. ::google::protobuf::internal::WireFormat::PARSE,
  12081. "google.protobuf.SourceCodeInfo.Location.trailing_comments");
  12082. } else {
  12083. goto handle_unusual;
  12084. }
  12085. if (input->ExpectTag(50)) goto parse_leading_detached_comments;
  12086. break;
  12087. }
  12088. // repeated string leading_detached_comments = 6;
  12089. case 6: {
  12090. if (tag == 50) {
  12091. parse_leading_detached_comments:
  12092. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  12093. input, this->add_leading_detached_comments()));
  12094. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  12095. this->leading_detached_comments(this->leading_detached_comments_size() - 1).data(),
  12096. this->leading_detached_comments(this->leading_detached_comments_size() - 1).length(),
  12097. ::google::protobuf::internal::WireFormat::PARSE,
  12098. "google.protobuf.SourceCodeInfo.Location.leading_detached_comments");
  12099. } else {
  12100. goto handle_unusual;
  12101. }
  12102. if (input->ExpectTag(50)) goto parse_leading_detached_comments;
  12103. if (input->ExpectAtEnd()) goto success;
  12104. break;
  12105. }
  12106. default: {
  12107. handle_unusual:
  12108. if (tag == 0 ||
  12109. ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  12110. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  12111. goto success;
  12112. }
  12113. DO_(::google::protobuf::internal::WireFormat::SkipField(
  12114. input, tag, mutable_unknown_fields()));
  12115. break;
  12116. }
  12117. }
  12118. }
  12119. success:
  12120. // @@protoc_insertion_point(parse_success:google.protobuf.SourceCodeInfo.Location)
  12121. return true;
  12122. failure:
  12123. // @@protoc_insertion_point(parse_failure:google.protobuf.SourceCodeInfo.Location)
  12124. return false;
  12125. #undef DO_
  12126. }
  12127. void SourceCodeInfo_Location::SerializeWithCachedSizes(
  12128. ::google::protobuf::io::CodedOutputStream* output) const {
  12129. // @@protoc_insertion_point(serialize_start:google.protobuf.SourceCodeInfo.Location)
  12130. // repeated int32 path = 1 [packed = true];
  12131. if (this->path_size() > 0) {
  12132. ::google::protobuf::internal::WireFormatLite::WriteTag(1, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
  12133. output->WriteVarint32(_path_cached_byte_size_);
  12134. }
  12135. for (int i = 0; i < this->path_size(); i++) {
  12136. ::google::protobuf::internal::WireFormatLite::WriteInt32NoTag(
  12137. this->path(i), output);
  12138. }
  12139. // repeated int32 span = 2 [packed = true];
  12140. if (this->span_size() > 0) {
  12141. ::google::protobuf::internal::WireFormatLite::WriteTag(2, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
  12142. output->WriteVarint32(_span_cached_byte_size_);
  12143. }
  12144. for (int i = 0; i < this->span_size(); i++) {
  12145. ::google::protobuf::internal::WireFormatLite::WriteInt32NoTag(
  12146. this->span(i), output);
  12147. }
  12148. // optional string leading_comments = 3;
  12149. if (has_leading_comments()) {
  12150. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  12151. this->leading_comments().data(), this->leading_comments().length(),
  12152. ::google::protobuf::internal::WireFormat::SERIALIZE,
  12153. "google.protobuf.SourceCodeInfo.Location.leading_comments");
  12154. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  12155. 3, this->leading_comments(), output);
  12156. }
  12157. // optional string trailing_comments = 4;
  12158. if (has_trailing_comments()) {
  12159. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  12160. this->trailing_comments().data(), this->trailing_comments().length(),
  12161. ::google::protobuf::internal::WireFormat::SERIALIZE,
  12162. "google.protobuf.SourceCodeInfo.Location.trailing_comments");
  12163. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  12164. 4, this->trailing_comments(), output);
  12165. }
  12166. // repeated string leading_detached_comments = 6;
  12167. for (int i = 0; i < this->leading_detached_comments_size(); i++) {
  12168. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  12169. this->leading_detached_comments(i).data(), this->leading_detached_comments(i).length(),
  12170. ::google::protobuf::internal::WireFormat::SERIALIZE,
  12171. "google.protobuf.SourceCodeInfo.Location.leading_detached_comments");
  12172. ::google::protobuf::internal::WireFormatLite::WriteString(
  12173. 6, this->leading_detached_comments(i), output);
  12174. }
  12175. if (_internal_metadata_.have_unknown_fields()) {
  12176. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  12177. unknown_fields(), output);
  12178. }
  12179. // @@protoc_insertion_point(serialize_end:google.protobuf.SourceCodeInfo.Location)
  12180. }
  12181. ::google::protobuf::uint8* SourceCodeInfo_Location::SerializeWithCachedSizesToArray(
  12182. ::google::protobuf::uint8* target) const {
  12183. // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.SourceCodeInfo.Location)
  12184. // repeated int32 path = 1 [packed = true];
  12185. if (this->path_size() > 0) {
  12186. target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
  12187. 1,
  12188. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
  12189. target);
  12190. target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
  12191. _path_cached_byte_size_, target);
  12192. }
  12193. for (int i = 0; i < this->path_size(); i++) {
  12194. target = ::google::protobuf::internal::WireFormatLite::
  12195. WriteInt32NoTagToArray(this->path(i), target);
  12196. }
  12197. // repeated int32 span = 2 [packed = true];
  12198. if (this->span_size() > 0) {
  12199. target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
  12200. 2,
  12201. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
  12202. target);
  12203. target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
  12204. _span_cached_byte_size_, target);
  12205. }
  12206. for (int i = 0; i < this->span_size(); i++) {
  12207. target = ::google::protobuf::internal::WireFormatLite::
  12208. WriteInt32NoTagToArray(this->span(i), target);
  12209. }
  12210. // optional string leading_comments = 3;
  12211. if (has_leading_comments()) {
  12212. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  12213. this->leading_comments().data(), this->leading_comments().length(),
  12214. ::google::protobuf::internal::WireFormat::SERIALIZE,
  12215. "google.protobuf.SourceCodeInfo.Location.leading_comments");
  12216. target =
  12217. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  12218. 3, this->leading_comments(), target);
  12219. }
  12220. // optional string trailing_comments = 4;
  12221. if (has_trailing_comments()) {
  12222. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  12223. this->trailing_comments().data(), this->trailing_comments().length(),
  12224. ::google::protobuf::internal::WireFormat::SERIALIZE,
  12225. "google.protobuf.SourceCodeInfo.Location.trailing_comments");
  12226. target =
  12227. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  12228. 4, this->trailing_comments(), target);
  12229. }
  12230. // repeated string leading_detached_comments = 6;
  12231. for (int i = 0; i < this->leading_detached_comments_size(); i++) {
  12232. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  12233. this->leading_detached_comments(i).data(), this->leading_detached_comments(i).length(),
  12234. ::google::protobuf::internal::WireFormat::SERIALIZE,
  12235. "google.protobuf.SourceCodeInfo.Location.leading_detached_comments");
  12236. target = ::google::protobuf::internal::WireFormatLite::
  12237. WriteStringToArray(6, this->leading_detached_comments(i), target);
  12238. }
  12239. if (_internal_metadata_.have_unknown_fields()) {
  12240. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  12241. unknown_fields(), target);
  12242. }
  12243. // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.SourceCodeInfo.Location)
  12244. return target;
  12245. }
  12246. int SourceCodeInfo_Location::ByteSize() const {
  12247. int total_size = 0;
  12248. if (_has_bits_[2 / 32] & 12u) {
  12249. // optional string leading_comments = 3;
  12250. if (has_leading_comments()) {
  12251. total_size += 1 +
  12252. ::google::protobuf::internal::WireFormatLite::StringSize(
  12253. this->leading_comments());
  12254. }
  12255. // optional string trailing_comments = 4;
  12256. if (has_trailing_comments()) {
  12257. total_size += 1 +
  12258. ::google::protobuf::internal::WireFormatLite::StringSize(
  12259. this->trailing_comments());
  12260. }
  12261. }
  12262. // repeated int32 path = 1 [packed = true];
  12263. {
  12264. int data_size = 0;
  12265. for (int i = 0; i < this->path_size(); i++) {
  12266. data_size += ::google::protobuf::internal::WireFormatLite::
  12267. Int32Size(this->path(i));
  12268. }
  12269. if (data_size > 0) {
  12270. total_size += 1 +
  12271. ::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
  12272. }
  12273. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  12274. _path_cached_byte_size_ = data_size;
  12275. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  12276. total_size += data_size;
  12277. }
  12278. // repeated int32 span = 2 [packed = true];
  12279. {
  12280. int data_size = 0;
  12281. for (int i = 0; i < this->span_size(); i++) {
  12282. data_size += ::google::protobuf::internal::WireFormatLite::
  12283. Int32Size(this->span(i));
  12284. }
  12285. if (data_size > 0) {
  12286. total_size += 1 +
  12287. ::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
  12288. }
  12289. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  12290. _span_cached_byte_size_ = data_size;
  12291. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  12292. total_size += data_size;
  12293. }
  12294. // repeated string leading_detached_comments = 6;
  12295. total_size += 1 * this->leading_detached_comments_size();
  12296. for (int i = 0; i < this->leading_detached_comments_size(); i++) {
  12297. total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
  12298. this->leading_detached_comments(i));
  12299. }
  12300. if (_internal_metadata_.have_unknown_fields()) {
  12301. total_size +=
  12302. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  12303. unknown_fields());
  12304. }
  12305. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  12306. _cached_size_ = total_size;
  12307. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  12308. return total_size;
  12309. }
  12310. void SourceCodeInfo_Location::MergeFrom(const ::google::protobuf::Message& from) {
  12311. if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
  12312. const SourceCodeInfo_Location* source =
  12313. ::google::protobuf::internal::DynamicCastToGenerated<const SourceCodeInfo_Location>(
  12314. &from);
  12315. if (source == NULL) {
  12316. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  12317. } else {
  12318. MergeFrom(*source);
  12319. }
  12320. }
  12321. void SourceCodeInfo_Location::MergeFrom(const SourceCodeInfo_Location& from) {
  12322. if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
  12323. path_.MergeFrom(from.path_);
  12324. span_.MergeFrom(from.span_);
  12325. leading_detached_comments_.MergeFrom(from.leading_detached_comments_);
  12326. if (from._has_bits_[2 / 32] & (0xffu << (2 % 32))) {
  12327. if (from.has_leading_comments()) {
  12328. set_has_leading_comments();
  12329. leading_comments_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.leading_comments_);
  12330. }
  12331. if (from.has_trailing_comments()) {
  12332. set_has_trailing_comments();
  12333. trailing_comments_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.trailing_comments_);
  12334. }
  12335. }
  12336. if (from._internal_metadata_.have_unknown_fields()) {
  12337. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  12338. }
  12339. }
  12340. void SourceCodeInfo_Location::CopyFrom(const ::google::protobuf::Message& from) {
  12341. if (&from == this) return;
  12342. Clear();
  12343. MergeFrom(from);
  12344. }
  12345. void SourceCodeInfo_Location::CopyFrom(const SourceCodeInfo_Location& from) {
  12346. if (&from == this) return;
  12347. Clear();
  12348. MergeFrom(from);
  12349. }
  12350. bool SourceCodeInfo_Location::IsInitialized() const {
  12351. return true;
  12352. }
  12353. void SourceCodeInfo_Location::Swap(SourceCodeInfo_Location* other) {
  12354. if (other == this) return;
  12355. InternalSwap(other);
  12356. }
  12357. void SourceCodeInfo_Location::InternalSwap(SourceCodeInfo_Location* other) {
  12358. path_.UnsafeArenaSwap(&other->path_);
  12359. span_.UnsafeArenaSwap(&other->span_);
  12360. leading_comments_.Swap(&other->leading_comments_);
  12361. trailing_comments_.Swap(&other->trailing_comments_);
  12362. leading_detached_comments_.UnsafeArenaSwap(&other->leading_detached_comments_);
  12363. std::swap(_has_bits_[0], other->_has_bits_[0]);
  12364. _internal_metadata_.Swap(&other->_internal_metadata_);
  12365. std::swap(_cached_size_, other->_cached_size_);
  12366. }
  12367. ::google::protobuf::Metadata SourceCodeInfo_Location::GetMetadata() const {
  12368. protobuf_AssignDescriptorsOnce();
  12369. ::google::protobuf::Metadata metadata;
  12370. metadata.descriptor = SourceCodeInfo_Location_descriptor_;
  12371. metadata.reflection = SourceCodeInfo_Location_reflection_;
  12372. return metadata;
  12373. }
  12374. // -------------------------------------------------------------------
  12375. #ifndef _MSC_VER
  12376. const int SourceCodeInfo::kLocationFieldNumber;
  12377. #endif // !_MSC_VER
  12378. SourceCodeInfo::SourceCodeInfo()
  12379. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  12380. SharedCtor();
  12381. // @@protoc_insertion_point(constructor:google.protobuf.SourceCodeInfo)
  12382. }
  12383. void SourceCodeInfo::InitAsDefaultInstance() {
  12384. }
  12385. SourceCodeInfo::SourceCodeInfo(const SourceCodeInfo& from)
  12386. : ::google::protobuf::Message(),
  12387. _internal_metadata_(NULL) {
  12388. SharedCtor();
  12389. MergeFrom(from);
  12390. // @@protoc_insertion_point(copy_constructor:google.protobuf.SourceCodeInfo)
  12391. }
  12392. void SourceCodeInfo::SharedCtor() {
  12393. _cached_size_ = 0;
  12394. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  12395. }
  12396. SourceCodeInfo::~SourceCodeInfo() {
  12397. // @@protoc_insertion_point(destructor:google.protobuf.SourceCodeInfo)
  12398. SharedDtor();
  12399. }
  12400. void SourceCodeInfo::SharedDtor() {
  12401. if (this != default_instance_) {
  12402. }
  12403. }
  12404. void SourceCodeInfo::SetCachedSize(int size) const {
  12405. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  12406. _cached_size_ = size;
  12407. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  12408. }
  12409. const ::google::protobuf::Descriptor* SourceCodeInfo::descriptor() {
  12410. protobuf_AssignDescriptorsOnce();
  12411. return SourceCodeInfo_descriptor_;
  12412. }
  12413. const SourceCodeInfo& SourceCodeInfo::default_instance() {
  12414. if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  12415. return *default_instance_;
  12416. }
  12417. SourceCodeInfo* SourceCodeInfo::default_instance_ = NULL;
  12418. SourceCodeInfo* SourceCodeInfo::New(::google::protobuf::Arena* arena) const {
  12419. SourceCodeInfo* n = new SourceCodeInfo;
  12420. if (arena != NULL) {
  12421. arena->Own(n);
  12422. }
  12423. return n;
  12424. }
  12425. void SourceCodeInfo::Clear() {
  12426. location_.Clear();
  12427. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  12428. if (_internal_metadata_.have_unknown_fields()) {
  12429. mutable_unknown_fields()->Clear();
  12430. }
  12431. }
  12432. bool SourceCodeInfo::MergePartialFromCodedStream(
  12433. ::google::protobuf::io::CodedInputStream* input) {
  12434. #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
  12435. ::google::protobuf::uint32 tag;
  12436. // @@protoc_insertion_point(parse_start:google.protobuf.SourceCodeInfo)
  12437. for (;;) {
  12438. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
  12439. tag = p.first;
  12440. if (!p.second) goto handle_unusual;
  12441. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  12442. // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
  12443. case 1: {
  12444. if (tag == 10) {
  12445. DO_(input->IncrementRecursionDepth());
  12446. parse_loop_location:
  12447. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
  12448. input, add_location()));
  12449. } else {
  12450. goto handle_unusual;
  12451. }
  12452. if (input->ExpectTag(10)) goto parse_loop_location;
  12453. input->UnsafeDecrementRecursionDepth();
  12454. if (input->ExpectAtEnd()) goto success;
  12455. break;
  12456. }
  12457. default: {
  12458. handle_unusual:
  12459. if (tag == 0 ||
  12460. ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  12461. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  12462. goto success;
  12463. }
  12464. DO_(::google::protobuf::internal::WireFormat::SkipField(
  12465. input, tag, mutable_unknown_fields()));
  12466. break;
  12467. }
  12468. }
  12469. }
  12470. success:
  12471. // @@protoc_insertion_point(parse_success:google.protobuf.SourceCodeInfo)
  12472. return true;
  12473. failure:
  12474. // @@protoc_insertion_point(parse_failure:google.protobuf.SourceCodeInfo)
  12475. return false;
  12476. #undef DO_
  12477. }
  12478. void SourceCodeInfo::SerializeWithCachedSizes(
  12479. ::google::protobuf::io::CodedOutputStream* output) const {
  12480. // @@protoc_insertion_point(serialize_start:google.protobuf.SourceCodeInfo)
  12481. // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
  12482. for (unsigned int i = 0, n = this->location_size(); i < n; i++) {
  12483. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  12484. 1, this->location(i), output);
  12485. }
  12486. if (_internal_metadata_.have_unknown_fields()) {
  12487. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  12488. unknown_fields(), output);
  12489. }
  12490. // @@protoc_insertion_point(serialize_end:google.protobuf.SourceCodeInfo)
  12491. }
  12492. ::google::protobuf::uint8* SourceCodeInfo::SerializeWithCachedSizesToArray(
  12493. ::google::protobuf::uint8* target) const {
  12494. // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.SourceCodeInfo)
  12495. // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
  12496. for (unsigned int i = 0, n = this->location_size(); i < n; i++) {
  12497. target = ::google::protobuf::internal::WireFormatLite::
  12498. WriteMessageNoVirtualToArray(
  12499. 1, this->location(i), target);
  12500. }
  12501. if (_internal_metadata_.have_unknown_fields()) {
  12502. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  12503. unknown_fields(), target);
  12504. }
  12505. // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.SourceCodeInfo)
  12506. return target;
  12507. }
  12508. int SourceCodeInfo::ByteSize() const {
  12509. int total_size = 0;
  12510. // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
  12511. total_size += 1 * this->location_size();
  12512. for (int i = 0; i < this->location_size(); i++) {
  12513. total_size +=
  12514. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  12515. this->location(i));
  12516. }
  12517. if (_internal_metadata_.have_unknown_fields()) {
  12518. total_size +=
  12519. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  12520. unknown_fields());
  12521. }
  12522. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  12523. _cached_size_ = total_size;
  12524. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  12525. return total_size;
  12526. }
  12527. void SourceCodeInfo::MergeFrom(const ::google::protobuf::Message& from) {
  12528. if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
  12529. const SourceCodeInfo* source =
  12530. ::google::protobuf::internal::DynamicCastToGenerated<const SourceCodeInfo>(
  12531. &from);
  12532. if (source == NULL) {
  12533. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  12534. } else {
  12535. MergeFrom(*source);
  12536. }
  12537. }
  12538. void SourceCodeInfo::MergeFrom(const SourceCodeInfo& from) {
  12539. if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
  12540. location_.MergeFrom(from.location_);
  12541. if (from._internal_metadata_.have_unknown_fields()) {
  12542. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  12543. }
  12544. }
  12545. void SourceCodeInfo::CopyFrom(const ::google::protobuf::Message& from) {
  12546. if (&from == this) return;
  12547. Clear();
  12548. MergeFrom(from);
  12549. }
  12550. void SourceCodeInfo::CopyFrom(const SourceCodeInfo& from) {
  12551. if (&from == this) return;
  12552. Clear();
  12553. MergeFrom(from);
  12554. }
  12555. bool SourceCodeInfo::IsInitialized() const {
  12556. return true;
  12557. }
  12558. void SourceCodeInfo::Swap(SourceCodeInfo* other) {
  12559. if (other == this) return;
  12560. InternalSwap(other);
  12561. }
  12562. void SourceCodeInfo::InternalSwap(SourceCodeInfo* other) {
  12563. location_.UnsafeArenaSwap(&other->location_);
  12564. std::swap(_has_bits_[0], other->_has_bits_[0]);
  12565. _internal_metadata_.Swap(&other->_internal_metadata_);
  12566. std::swap(_cached_size_, other->_cached_size_);
  12567. }
  12568. ::google::protobuf::Metadata SourceCodeInfo::GetMetadata() const {
  12569. protobuf_AssignDescriptorsOnce();
  12570. ::google::protobuf::Metadata metadata;
  12571. metadata.descriptor = SourceCodeInfo_descriptor_;
  12572. metadata.reflection = SourceCodeInfo_reflection_;
  12573. return metadata;
  12574. }
  12575. #if PROTOBUF_INLINE_NOT_IN_HEADERS
  12576. // SourceCodeInfo_Location
  12577. // repeated int32 path = 1 [packed = true];
  12578. int SourceCodeInfo_Location::path_size() const {
  12579. return path_.size();
  12580. }
  12581. void SourceCodeInfo_Location::clear_path() {
  12582. path_.Clear();
  12583. }
  12584. ::google::protobuf::int32 SourceCodeInfo_Location::path(int index) const {
  12585. // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.path)
  12586. return path_.Get(index);
  12587. }
  12588. void SourceCodeInfo_Location::set_path(int index, ::google::protobuf::int32 value) {
  12589. path_.Set(index, value);
  12590. // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.path)
  12591. }
  12592. void SourceCodeInfo_Location::add_path(::google::protobuf::int32 value) {
  12593. path_.Add(value);
  12594. // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location.path)
  12595. }
  12596. const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  12597. SourceCodeInfo_Location::path() const {
  12598. // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.Location.path)
  12599. return path_;
  12600. }
  12601. ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  12602. SourceCodeInfo_Location::mutable_path() {
  12603. // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo.Location.path)
  12604. return &path_;
  12605. }
  12606. // repeated int32 span = 2 [packed = true];
  12607. int SourceCodeInfo_Location::span_size() const {
  12608. return span_.size();
  12609. }
  12610. void SourceCodeInfo_Location::clear_span() {
  12611. span_.Clear();
  12612. }
  12613. ::google::protobuf::int32 SourceCodeInfo_Location::span(int index) const {
  12614. // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.span)
  12615. return span_.Get(index);
  12616. }
  12617. void SourceCodeInfo_Location::set_span(int index, ::google::protobuf::int32 value) {
  12618. span_.Set(index, value);
  12619. // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.span)
  12620. }
  12621. void SourceCodeInfo_Location::add_span(::google::protobuf::int32 value) {
  12622. span_.Add(value);
  12623. // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location.span)
  12624. }
  12625. const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  12626. SourceCodeInfo_Location::span() const {
  12627. // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.Location.span)
  12628. return span_;
  12629. }
  12630. ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  12631. SourceCodeInfo_Location::mutable_span() {
  12632. // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo.Location.span)
  12633. return &span_;
  12634. }
  12635. // optional string leading_comments = 3;
  12636. bool SourceCodeInfo_Location::has_leading_comments() const {
  12637. return (_has_bits_[0] & 0x00000004u) != 0;
  12638. }
  12639. void SourceCodeInfo_Location::set_has_leading_comments() {
  12640. _has_bits_[0] |= 0x00000004u;
  12641. }
  12642. void SourceCodeInfo_Location::clear_has_leading_comments() {
  12643. _has_bits_[0] &= ~0x00000004u;
  12644. }
  12645. void SourceCodeInfo_Location::clear_leading_comments() {
  12646. leading_comments_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  12647. clear_has_leading_comments();
  12648. }
  12649. const ::std::string& SourceCodeInfo_Location::leading_comments() const {
  12650. // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.leading_comments)
  12651. return leading_comments_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  12652. }
  12653. void SourceCodeInfo_Location::set_leading_comments(const ::std::string& value) {
  12654. set_has_leading_comments();
  12655. leading_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  12656. // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.leading_comments)
  12657. }
  12658. void SourceCodeInfo_Location::set_leading_comments(const char* value) {
  12659. set_has_leading_comments();
  12660. leading_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  12661. // @@protoc_insertion_point(field_set_char:google.protobuf.SourceCodeInfo.Location.leading_comments)
  12662. }
  12663. void SourceCodeInfo_Location::set_leading_comments(const char* value, size_t size) {
  12664. set_has_leading_comments();
  12665. leading_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  12666. ::std::string(reinterpret_cast<const char*>(value), size));
  12667. // @@protoc_insertion_point(field_set_pointer:google.protobuf.SourceCodeInfo.Location.leading_comments)
  12668. }
  12669. ::std::string* SourceCodeInfo_Location::mutable_leading_comments() {
  12670. set_has_leading_comments();
  12671. // @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.Location.leading_comments)
  12672. return leading_comments_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  12673. }
  12674. ::std::string* SourceCodeInfo_Location::release_leading_comments() {
  12675. clear_has_leading_comments();
  12676. return leading_comments_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  12677. }
  12678. void SourceCodeInfo_Location::set_allocated_leading_comments(::std::string* leading_comments) {
  12679. if (leading_comments != NULL) {
  12680. set_has_leading_comments();
  12681. } else {
  12682. clear_has_leading_comments();
  12683. }
  12684. leading_comments_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), leading_comments);
  12685. // @@protoc_insertion_point(field_set_allocated:google.protobuf.SourceCodeInfo.Location.leading_comments)
  12686. }
  12687. // optional string trailing_comments = 4;
  12688. bool SourceCodeInfo_Location::has_trailing_comments() const {
  12689. return (_has_bits_[0] & 0x00000008u) != 0;
  12690. }
  12691. void SourceCodeInfo_Location::set_has_trailing_comments() {
  12692. _has_bits_[0] |= 0x00000008u;
  12693. }
  12694. void SourceCodeInfo_Location::clear_has_trailing_comments() {
  12695. _has_bits_[0] &= ~0x00000008u;
  12696. }
  12697. void SourceCodeInfo_Location::clear_trailing_comments() {
  12698. trailing_comments_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  12699. clear_has_trailing_comments();
  12700. }
  12701. const ::std::string& SourceCodeInfo_Location::trailing_comments() const {
  12702. // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.trailing_comments)
  12703. return trailing_comments_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  12704. }
  12705. void SourceCodeInfo_Location::set_trailing_comments(const ::std::string& value) {
  12706. set_has_trailing_comments();
  12707. trailing_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  12708. // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.trailing_comments)
  12709. }
  12710. void SourceCodeInfo_Location::set_trailing_comments(const char* value) {
  12711. set_has_trailing_comments();
  12712. trailing_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  12713. // @@protoc_insertion_point(field_set_char:google.protobuf.SourceCodeInfo.Location.trailing_comments)
  12714. }
  12715. void SourceCodeInfo_Location::set_trailing_comments(const char* value, size_t size) {
  12716. set_has_trailing_comments();
  12717. trailing_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  12718. ::std::string(reinterpret_cast<const char*>(value), size));
  12719. // @@protoc_insertion_point(field_set_pointer:google.protobuf.SourceCodeInfo.Location.trailing_comments)
  12720. }
  12721. ::std::string* SourceCodeInfo_Location::mutable_trailing_comments() {
  12722. set_has_trailing_comments();
  12723. // @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.Location.trailing_comments)
  12724. return trailing_comments_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  12725. }
  12726. ::std::string* SourceCodeInfo_Location::release_trailing_comments() {
  12727. clear_has_trailing_comments();
  12728. return trailing_comments_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  12729. }
  12730. void SourceCodeInfo_Location::set_allocated_trailing_comments(::std::string* trailing_comments) {
  12731. if (trailing_comments != NULL) {
  12732. set_has_trailing_comments();
  12733. } else {
  12734. clear_has_trailing_comments();
  12735. }
  12736. trailing_comments_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), trailing_comments);
  12737. // @@protoc_insertion_point(field_set_allocated:google.protobuf.SourceCodeInfo.Location.trailing_comments)
  12738. }
  12739. // repeated string leading_detached_comments = 6;
  12740. int SourceCodeInfo_Location::leading_detached_comments_size() const {
  12741. return leading_detached_comments_.size();
  12742. }
  12743. void SourceCodeInfo_Location::clear_leading_detached_comments() {
  12744. leading_detached_comments_.Clear();
  12745. }
  12746. const ::std::string& SourceCodeInfo_Location::leading_detached_comments(int index) const {
  12747. // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  12748. return leading_detached_comments_.Get(index);
  12749. }
  12750. ::std::string* SourceCodeInfo_Location::mutable_leading_detached_comments(int index) {
  12751. // @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  12752. return leading_detached_comments_.Mutable(index);
  12753. }
  12754. void SourceCodeInfo_Location::set_leading_detached_comments(int index, const ::std::string& value) {
  12755. // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  12756. leading_detached_comments_.Mutable(index)->assign(value);
  12757. }
  12758. void SourceCodeInfo_Location::set_leading_detached_comments(int index, const char* value) {
  12759. leading_detached_comments_.Mutable(index)->assign(value);
  12760. // @@protoc_insertion_point(field_set_char:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  12761. }
  12762. void SourceCodeInfo_Location::set_leading_detached_comments(int index, const char* value, size_t size) {
  12763. leading_detached_comments_.Mutable(index)->assign(
  12764. reinterpret_cast<const char*>(value), size);
  12765. // @@protoc_insertion_point(field_set_pointer:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  12766. }
  12767. ::std::string* SourceCodeInfo_Location::add_leading_detached_comments() {
  12768. return leading_detached_comments_.Add();
  12769. }
  12770. void SourceCodeInfo_Location::add_leading_detached_comments(const ::std::string& value) {
  12771. leading_detached_comments_.Add()->assign(value);
  12772. // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  12773. }
  12774. void SourceCodeInfo_Location::add_leading_detached_comments(const char* value) {
  12775. leading_detached_comments_.Add()->assign(value);
  12776. // @@protoc_insertion_point(field_add_char:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  12777. }
  12778. void SourceCodeInfo_Location::add_leading_detached_comments(const char* value, size_t size) {
  12779. leading_detached_comments_.Add()->assign(reinterpret_cast<const char*>(value), size);
  12780. // @@protoc_insertion_point(field_add_pointer:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  12781. }
  12782. const ::google::protobuf::RepeatedPtrField< ::std::string>&
  12783. SourceCodeInfo_Location::leading_detached_comments() const {
  12784. // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  12785. return leading_detached_comments_;
  12786. }
  12787. ::google::protobuf::RepeatedPtrField< ::std::string>*
  12788. SourceCodeInfo_Location::mutable_leading_detached_comments() {
  12789. // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  12790. return &leading_detached_comments_;
  12791. }
  12792. // -------------------------------------------------------------------
  12793. // SourceCodeInfo
  12794. // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
  12795. int SourceCodeInfo::location_size() const {
  12796. return location_.size();
  12797. }
  12798. void SourceCodeInfo::clear_location() {
  12799. location_.Clear();
  12800. }
  12801. const ::google::protobuf::SourceCodeInfo_Location& SourceCodeInfo::location(int index) const {
  12802. // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.location)
  12803. return location_.Get(index);
  12804. }
  12805. ::google::protobuf::SourceCodeInfo_Location* SourceCodeInfo::mutable_location(int index) {
  12806. // @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.location)
  12807. return location_.Mutable(index);
  12808. }
  12809. ::google::protobuf::SourceCodeInfo_Location* SourceCodeInfo::add_location() {
  12810. // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.location)
  12811. return location_.Add();
  12812. }
  12813. ::google::protobuf::RepeatedPtrField< ::google::protobuf::SourceCodeInfo_Location >*
  12814. SourceCodeInfo::mutable_location() {
  12815. // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo.location)
  12816. return &location_;
  12817. }
  12818. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::SourceCodeInfo_Location >&
  12819. SourceCodeInfo::location() const {
  12820. // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.location)
  12821. return location_;
  12822. }
  12823. #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
  12824. // @@protoc_insertion_point(namespace_scope)
  12825. } // namespace protobuf
  12826. } // namespace google
  12827. // @@protoc_insertion_point(global_scope)