descriptor.pb.cc 551 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: google/protobuf/descriptor.proto
  3. #include <google/protobuf/descriptor.pb.h>
  4. #include <algorithm>
  5. #include <google/protobuf/stubs/common.h>
  6. #include <google/protobuf/stubs/port.h>
  7. #include <google/protobuf/io/coded_stream.h>
  8. #include <google/protobuf/wire_format_lite_inl.h>
  9. #include <google/protobuf/descriptor.h>
  10. #include <google/protobuf/generated_message_reflection.h>
  11. #include <google/protobuf/reflection_ops.h>
  12. #include <google/protobuf/wire_format.h>
  13. // This is a temporary google only hack
  14. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  15. #include "third_party/protobuf/version.h"
  16. #endif
  17. // @@protoc_insertion_point(includes)
  18. namespace protobuf_google_2fprotobuf_2fdescriptor_2eproto {
  19. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fdescriptor_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_DescriptorProto_ReservedRange;
  20. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fdescriptor_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_EnumDescriptorProto_EnumReservedRange;
  21. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fdescriptor_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_GeneratedCodeInfo_Annotation;
  22. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fdescriptor_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_SourceCodeInfo_Location;
  23. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fdescriptor_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_UninterpretedOption_NamePart;
  24. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fdescriptor_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_DescriptorProto_ExtensionRange;
  25. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fdescriptor_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_EnumOptions;
  26. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fdescriptor_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_EnumValueDescriptorProto;
  27. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fdescriptor_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_EnumValueOptions;
  28. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fdescriptor_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ExtensionRangeOptions;
  29. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fdescriptor_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_FieldDescriptorProto;
  30. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fdescriptor_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_FieldOptions;
  31. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fdescriptor_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_FileOptions;
  32. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fdescriptor_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_MessageOptions;
  33. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fdescriptor_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_MethodDescriptorProto;
  34. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fdescriptor_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_MethodOptions;
  35. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fdescriptor_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_OneofDescriptorProto;
  36. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fdescriptor_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_OneofOptions;
  37. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fdescriptor_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ServiceOptions;
  38. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fdescriptor_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_SourceCodeInfo;
  39. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fdescriptor_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_UninterpretedOption;
  40. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fdescriptor_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_ServiceDescriptorProto;
  41. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fdescriptor_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_EnumDescriptorProto;
  42. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fdescriptor_2eproto ::google::protobuf::internal::SCCInfo<6> scc_info_DescriptorProto;
  43. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fdescriptor_2eproto ::google::protobuf::internal::SCCInfo<6> scc_info_FileDescriptorProto;
  44. } // namespace protobuf_google_2fprotobuf_2fdescriptor_2eproto
  45. namespace google {
  46. namespace protobuf {
  47. class FileDescriptorSetDefaultTypeInternal {
  48. public:
  49. ::google::protobuf::internal::ExplicitlyConstructed<FileDescriptorSet>
  50. _instance;
  51. } _FileDescriptorSet_default_instance_;
  52. class FileDescriptorProtoDefaultTypeInternal {
  53. public:
  54. ::google::protobuf::internal::ExplicitlyConstructed<FileDescriptorProto>
  55. _instance;
  56. } _FileDescriptorProto_default_instance_;
  57. class DescriptorProto_ExtensionRangeDefaultTypeInternal {
  58. public:
  59. ::google::protobuf::internal::ExplicitlyConstructed<DescriptorProto_ExtensionRange>
  60. _instance;
  61. } _DescriptorProto_ExtensionRange_default_instance_;
  62. class DescriptorProto_ReservedRangeDefaultTypeInternal {
  63. public:
  64. ::google::protobuf::internal::ExplicitlyConstructed<DescriptorProto_ReservedRange>
  65. _instance;
  66. } _DescriptorProto_ReservedRange_default_instance_;
  67. class DescriptorProtoDefaultTypeInternal {
  68. public:
  69. ::google::protobuf::internal::ExplicitlyConstructed<DescriptorProto>
  70. _instance;
  71. } _DescriptorProto_default_instance_;
  72. class ExtensionRangeOptionsDefaultTypeInternal {
  73. public:
  74. ::google::protobuf::internal::ExplicitlyConstructed<ExtensionRangeOptions>
  75. _instance;
  76. } _ExtensionRangeOptions_default_instance_;
  77. class FieldDescriptorProtoDefaultTypeInternal {
  78. public:
  79. ::google::protobuf::internal::ExplicitlyConstructed<FieldDescriptorProto>
  80. _instance;
  81. } _FieldDescriptorProto_default_instance_;
  82. class OneofDescriptorProtoDefaultTypeInternal {
  83. public:
  84. ::google::protobuf::internal::ExplicitlyConstructed<OneofDescriptorProto>
  85. _instance;
  86. } _OneofDescriptorProto_default_instance_;
  87. class EnumDescriptorProto_EnumReservedRangeDefaultTypeInternal {
  88. public:
  89. ::google::protobuf::internal::ExplicitlyConstructed<EnumDescriptorProto_EnumReservedRange>
  90. _instance;
  91. } _EnumDescriptorProto_EnumReservedRange_default_instance_;
  92. class EnumDescriptorProtoDefaultTypeInternal {
  93. public:
  94. ::google::protobuf::internal::ExplicitlyConstructed<EnumDescriptorProto>
  95. _instance;
  96. } _EnumDescriptorProto_default_instance_;
  97. class EnumValueDescriptorProtoDefaultTypeInternal {
  98. public:
  99. ::google::protobuf::internal::ExplicitlyConstructed<EnumValueDescriptorProto>
  100. _instance;
  101. } _EnumValueDescriptorProto_default_instance_;
  102. class ServiceDescriptorProtoDefaultTypeInternal {
  103. public:
  104. ::google::protobuf::internal::ExplicitlyConstructed<ServiceDescriptorProto>
  105. _instance;
  106. } _ServiceDescriptorProto_default_instance_;
  107. class MethodDescriptorProtoDefaultTypeInternal {
  108. public:
  109. ::google::protobuf::internal::ExplicitlyConstructed<MethodDescriptorProto>
  110. _instance;
  111. } _MethodDescriptorProto_default_instance_;
  112. class FileOptionsDefaultTypeInternal {
  113. public:
  114. ::google::protobuf::internal::ExplicitlyConstructed<FileOptions>
  115. _instance;
  116. } _FileOptions_default_instance_;
  117. class MessageOptionsDefaultTypeInternal {
  118. public:
  119. ::google::protobuf::internal::ExplicitlyConstructed<MessageOptions>
  120. _instance;
  121. } _MessageOptions_default_instance_;
  122. class FieldOptionsDefaultTypeInternal {
  123. public:
  124. ::google::protobuf::internal::ExplicitlyConstructed<FieldOptions>
  125. _instance;
  126. } _FieldOptions_default_instance_;
  127. class OneofOptionsDefaultTypeInternal {
  128. public:
  129. ::google::protobuf::internal::ExplicitlyConstructed<OneofOptions>
  130. _instance;
  131. } _OneofOptions_default_instance_;
  132. class EnumOptionsDefaultTypeInternal {
  133. public:
  134. ::google::protobuf::internal::ExplicitlyConstructed<EnumOptions>
  135. _instance;
  136. } _EnumOptions_default_instance_;
  137. class EnumValueOptionsDefaultTypeInternal {
  138. public:
  139. ::google::protobuf::internal::ExplicitlyConstructed<EnumValueOptions>
  140. _instance;
  141. } _EnumValueOptions_default_instance_;
  142. class ServiceOptionsDefaultTypeInternal {
  143. public:
  144. ::google::protobuf::internal::ExplicitlyConstructed<ServiceOptions>
  145. _instance;
  146. } _ServiceOptions_default_instance_;
  147. class MethodOptionsDefaultTypeInternal {
  148. public:
  149. ::google::protobuf::internal::ExplicitlyConstructed<MethodOptions>
  150. _instance;
  151. } _MethodOptions_default_instance_;
  152. class UninterpretedOption_NamePartDefaultTypeInternal {
  153. public:
  154. ::google::protobuf::internal::ExplicitlyConstructed<UninterpretedOption_NamePart>
  155. _instance;
  156. } _UninterpretedOption_NamePart_default_instance_;
  157. class UninterpretedOptionDefaultTypeInternal {
  158. public:
  159. ::google::protobuf::internal::ExplicitlyConstructed<UninterpretedOption>
  160. _instance;
  161. } _UninterpretedOption_default_instance_;
  162. class SourceCodeInfo_LocationDefaultTypeInternal {
  163. public:
  164. ::google::protobuf::internal::ExplicitlyConstructed<SourceCodeInfo_Location>
  165. _instance;
  166. } _SourceCodeInfo_Location_default_instance_;
  167. class SourceCodeInfoDefaultTypeInternal {
  168. public:
  169. ::google::protobuf::internal::ExplicitlyConstructed<SourceCodeInfo>
  170. _instance;
  171. } _SourceCodeInfo_default_instance_;
  172. class GeneratedCodeInfo_AnnotationDefaultTypeInternal {
  173. public:
  174. ::google::protobuf::internal::ExplicitlyConstructed<GeneratedCodeInfo_Annotation>
  175. _instance;
  176. } _GeneratedCodeInfo_Annotation_default_instance_;
  177. class GeneratedCodeInfoDefaultTypeInternal {
  178. public:
  179. ::google::protobuf::internal::ExplicitlyConstructed<GeneratedCodeInfo>
  180. _instance;
  181. } _GeneratedCodeInfo_default_instance_;
  182. } // namespace protobuf
  183. } // namespace google
  184. namespace protobuf_google_2fprotobuf_2fdescriptor_2eproto {
  185. static void InitDefaultsFileDescriptorSet() {
  186. GOOGLE_PROTOBUF_VERIFY_VERSION;
  187. {
  188. void* ptr = &::google::protobuf::_FileDescriptorSet_default_instance_;
  189. new (ptr) ::google::protobuf::FileDescriptorSet();
  190. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  191. }
  192. ::google::protobuf::FileDescriptorSet::InitAsDefaultInstance();
  193. }
  194. LIBPROTOBUF_EXPORT ::google::protobuf::internal::SCCInfo<1> scc_info_FileDescriptorSet =
  195. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsFileDescriptorSet}, {
  196. &protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_FileDescriptorProto.base,}};
  197. static void InitDefaultsFileDescriptorProto() {
  198. GOOGLE_PROTOBUF_VERIFY_VERSION;
  199. {
  200. void* ptr = &::google::protobuf::_FileDescriptorProto_default_instance_;
  201. new (ptr) ::google::protobuf::FileDescriptorProto();
  202. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  203. }
  204. ::google::protobuf::FileDescriptorProto::InitAsDefaultInstance();
  205. }
  206. LIBPROTOBUF_EXPORT ::google::protobuf::internal::SCCInfo<6> scc_info_FileDescriptorProto =
  207. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 6, InitDefaultsFileDescriptorProto}, {
  208. &protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_DescriptorProto.base,
  209. &protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_EnumDescriptorProto.base,
  210. &protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_ServiceDescriptorProto.base,
  211. &protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_FieldDescriptorProto.base,
  212. &protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_FileOptions.base,
  213. &protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_SourceCodeInfo.base,}};
  214. static void InitDefaultsDescriptorProto_ExtensionRange() {
  215. GOOGLE_PROTOBUF_VERIFY_VERSION;
  216. {
  217. void* ptr = &::google::protobuf::_DescriptorProto_ExtensionRange_default_instance_;
  218. new (ptr) ::google::protobuf::DescriptorProto_ExtensionRange();
  219. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  220. }
  221. ::google::protobuf::DescriptorProto_ExtensionRange::InitAsDefaultInstance();
  222. }
  223. LIBPROTOBUF_EXPORT ::google::protobuf::internal::SCCInfo<1> scc_info_DescriptorProto_ExtensionRange =
  224. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsDescriptorProto_ExtensionRange}, {
  225. &protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_ExtensionRangeOptions.base,}};
  226. static void InitDefaultsDescriptorProto_ReservedRange() {
  227. GOOGLE_PROTOBUF_VERIFY_VERSION;
  228. {
  229. void* ptr = &::google::protobuf::_DescriptorProto_ReservedRange_default_instance_;
  230. new (ptr) ::google::protobuf::DescriptorProto_ReservedRange();
  231. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  232. }
  233. ::google::protobuf::DescriptorProto_ReservedRange::InitAsDefaultInstance();
  234. }
  235. LIBPROTOBUF_EXPORT ::google::protobuf::internal::SCCInfo<0> scc_info_DescriptorProto_ReservedRange =
  236. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsDescriptorProto_ReservedRange}, {}};
  237. static void InitDefaultsDescriptorProto() {
  238. GOOGLE_PROTOBUF_VERIFY_VERSION;
  239. {
  240. void* ptr = &::google::protobuf::_DescriptorProto_default_instance_;
  241. new (ptr) ::google::protobuf::DescriptorProto();
  242. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  243. }
  244. ::google::protobuf::DescriptorProto::InitAsDefaultInstance();
  245. }
  246. LIBPROTOBUF_EXPORT ::google::protobuf::internal::SCCInfo<6> scc_info_DescriptorProto =
  247. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 6, InitDefaultsDescriptorProto}, {
  248. &protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_FieldDescriptorProto.base,
  249. &protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_EnumDescriptorProto.base,
  250. &protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_DescriptorProto_ExtensionRange.base,
  251. &protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_OneofDescriptorProto.base,
  252. &protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_MessageOptions.base,
  253. &protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_DescriptorProto_ReservedRange.base,}};
  254. static void InitDefaultsExtensionRangeOptions() {
  255. GOOGLE_PROTOBUF_VERIFY_VERSION;
  256. {
  257. void* ptr = &::google::protobuf::_ExtensionRangeOptions_default_instance_;
  258. new (ptr) ::google::protobuf::ExtensionRangeOptions();
  259. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  260. }
  261. ::google::protobuf::ExtensionRangeOptions::InitAsDefaultInstance();
  262. }
  263. LIBPROTOBUF_EXPORT ::google::protobuf::internal::SCCInfo<1> scc_info_ExtensionRangeOptions =
  264. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsExtensionRangeOptions}, {
  265. &protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_UninterpretedOption.base,}};
  266. static void InitDefaultsFieldDescriptorProto() {
  267. GOOGLE_PROTOBUF_VERIFY_VERSION;
  268. {
  269. void* ptr = &::google::protobuf::_FieldDescriptorProto_default_instance_;
  270. new (ptr) ::google::protobuf::FieldDescriptorProto();
  271. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  272. }
  273. ::google::protobuf::FieldDescriptorProto::InitAsDefaultInstance();
  274. }
  275. LIBPROTOBUF_EXPORT ::google::protobuf::internal::SCCInfo<1> scc_info_FieldDescriptorProto =
  276. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsFieldDescriptorProto}, {
  277. &protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_FieldOptions.base,}};
  278. static void InitDefaultsOneofDescriptorProto() {
  279. GOOGLE_PROTOBUF_VERIFY_VERSION;
  280. {
  281. void* ptr = &::google::protobuf::_OneofDescriptorProto_default_instance_;
  282. new (ptr) ::google::protobuf::OneofDescriptorProto();
  283. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  284. }
  285. ::google::protobuf::OneofDescriptorProto::InitAsDefaultInstance();
  286. }
  287. LIBPROTOBUF_EXPORT ::google::protobuf::internal::SCCInfo<1> scc_info_OneofDescriptorProto =
  288. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsOneofDescriptorProto}, {
  289. &protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_OneofOptions.base,}};
  290. static void InitDefaultsEnumDescriptorProto_EnumReservedRange() {
  291. GOOGLE_PROTOBUF_VERIFY_VERSION;
  292. {
  293. void* ptr = &::google::protobuf::_EnumDescriptorProto_EnumReservedRange_default_instance_;
  294. new (ptr) ::google::protobuf::EnumDescriptorProto_EnumReservedRange();
  295. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  296. }
  297. ::google::protobuf::EnumDescriptorProto_EnumReservedRange::InitAsDefaultInstance();
  298. }
  299. LIBPROTOBUF_EXPORT ::google::protobuf::internal::SCCInfo<0> scc_info_EnumDescriptorProto_EnumReservedRange =
  300. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsEnumDescriptorProto_EnumReservedRange}, {}};
  301. static void InitDefaultsEnumDescriptorProto() {
  302. GOOGLE_PROTOBUF_VERIFY_VERSION;
  303. {
  304. void* ptr = &::google::protobuf::_EnumDescriptorProto_default_instance_;
  305. new (ptr) ::google::protobuf::EnumDescriptorProto();
  306. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  307. }
  308. ::google::protobuf::EnumDescriptorProto::InitAsDefaultInstance();
  309. }
  310. LIBPROTOBUF_EXPORT ::google::protobuf::internal::SCCInfo<3> scc_info_EnumDescriptorProto =
  311. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsEnumDescriptorProto}, {
  312. &protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_EnumValueDescriptorProto.base,
  313. &protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_EnumOptions.base,
  314. &protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_EnumDescriptorProto_EnumReservedRange.base,}};
  315. static void InitDefaultsEnumValueDescriptorProto() {
  316. GOOGLE_PROTOBUF_VERIFY_VERSION;
  317. {
  318. void* ptr = &::google::protobuf::_EnumValueDescriptorProto_default_instance_;
  319. new (ptr) ::google::protobuf::EnumValueDescriptorProto();
  320. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  321. }
  322. ::google::protobuf::EnumValueDescriptorProto::InitAsDefaultInstance();
  323. }
  324. LIBPROTOBUF_EXPORT ::google::protobuf::internal::SCCInfo<1> scc_info_EnumValueDescriptorProto =
  325. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsEnumValueDescriptorProto}, {
  326. &protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_EnumValueOptions.base,}};
  327. static void InitDefaultsServiceDescriptorProto() {
  328. GOOGLE_PROTOBUF_VERIFY_VERSION;
  329. {
  330. void* ptr = &::google::protobuf::_ServiceDescriptorProto_default_instance_;
  331. new (ptr) ::google::protobuf::ServiceDescriptorProto();
  332. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  333. }
  334. ::google::protobuf::ServiceDescriptorProto::InitAsDefaultInstance();
  335. }
  336. LIBPROTOBUF_EXPORT ::google::protobuf::internal::SCCInfo<2> scc_info_ServiceDescriptorProto =
  337. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsServiceDescriptorProto}, {
  338. &protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_MethodDescriptorProto.base,
  339. &protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_ServiceOptions.base,}};
  340. static void InitDefaultsMethodDescriptorProto() {
  341. GOOGLE_PROTOBUF_VERIFY_VERSION;
  342. {
  343. void* ptr = &::google::protobuf::_MethodDescriptorProto_default_instance_;
  344. new (ptr) ::google::protobuf::MethodDescriptorProto();
  345. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  346. }
  347. ::google::protobuf::MethodDescriptorProto::InitAsDefaultInstance();
  348. }
  349. LIBPROTOBUF_EXPORT ::google::protobuf::internal::SCCInfo<1> scc_info_MethodDescriptorProto =
  350. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsMethodDescriptorProto}, {
  351. &protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_MethodOptions.base,}};
  352. static void InitDefaultsFileOptions() {
  353. GOOGLE_PROTOBUF_VERIFY_VERSION;
  354. {
  355. void* ptr = &::google::protobuf::_FileOptions_default_instance_;
  356. new (ptr) ::google::protobuf::FileOptions();
  357. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  358. }
  359. ::google::protobuf::FileOptions::InitAsDefaultInstance();
  360. }
  361. LIBPROTOBUF_EXPORT ::google::protobuf::internal::SCCInfo<1> scc_info_FileOptions =
  362. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsFileOptions}, {
  363. &protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_UninterpretedOption.base,}};
  364. static void InitDefaultsMessageOptions() {
  365. GOOGLE_PROTOBUF_VERIFY_VERSION;
  366. {
  367. void* ptr = &::google::protobuf::_MessageOptions_default_instance_;
  368. new (ptr) ::google::protobuf::MessageOptions();
  369. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  370. }
  371. ::google::protobuf::MessageOptions::InitAsDefaultInstance();
  372. }
  373. LIBPROTOBUF_EXPORT ::google::protobuf::internal::SCCInfo<1> scc_info_MessageOptions =
  374. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsMessageOptions}, {
  375. &protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_UninterpretedOption.base,}};
  376. static void InitDefaultsFieldOptions() {
  377. GOOGLE_PROTOBUF_VERIFY_VERSION;
  378. {
  379. void* ptr = &::google::protobuf::_FieldOptions_default_instance_;
  380. new (ptr) ::google::protobuf::FieldOptions();
  381. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  382. }
  383. ::google::protobuf::FieldOptions::InitAsDefaultInstance();
  384. }
  385. LIBPROTOBUF_EXPORT ::google::protobuf::internal::SCCInfo<1> scc_info_FieldOptions =
  386. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsFieldOptions}, {
  387. &protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_UninterpretedOption.base,}};
  388. static void InitDefaultsOneofOptions() {
  389. GOOGLE_PROTOBUF_VERIFY_VERSION;
  390. {
  391. void* ptr = &::google::protobuf::_OneofOptions_default_instance_;
  392. new (ptr) ::google::protobuf::OneofOptions();
  393. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  394. }
  395. ::google::protobuf::OneofOptions::InitAsDefaultInstance();
  396. }
  397. LIBPROTOBUF_EXPORT ::google::protobuf::internal::SCCInfo<1> scc_info_OneofOptions =
  398. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsOneofOptions}, {
  399. &protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_UninterpretedOption.base,}};
  400. static void InitDefaultsEnumOptions() {
  401. GOOGLE_PROTOBUF_VERIFY_VERSION;
  402. {
  403. void* ptr = &::google::protobuf::_EnumOptions_default_instance_;
  404. new (ptr) ::google::protobuf::EnumOptions();
  405. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  406. }
  407. ::google::protobuf::EnumOptions::InitAsDefaultInstance();
  408. }
  409. LIBPROTOBUF_EXPORT ::google::protobuf::internal::SCCInfo<1> scc_info_EnumOptions =
  410. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsEnumOptions}, {
  411. &protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_UninterpretedOption.base,}};
  412. static void InitDefaultsEnumValueOptions() {
  413. GOOGLE_PROTOBUF_VERIFY_VERSION;
  414. {
  415. void* ptr = &::google::protobuf::_EnumValueOptions_default_instance_;
  416. new (ptr) ::google::protobuf::EnumValueOptions();
  417. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  418. }
  419. ::google::protobuf::EnumValueOptions::InitAsDefaultInstance();
  420. }
  421. LIBPROTOBUF_EXPORT ::google::protobuf::internal::SCCInfo<1> scc_info_EnumValueOptions =
  422. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsEnumValueOptions}, {
  423. &protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_UninterpretedOption.base,}};
  424. static void InitDefaultsServiceOptions() {
  425. GOOGLE_PROTOBUF_VERIFY_VERSION;
  426. {
  427. void* ptr = &::google::protobuf::_ServiceOptions_default_instance_;
  428. new (ptr) ::google::protobuf::ServiceOptions();
  429. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  430. }
  431. ::google::protobuf::ServiceOptions::InitAsDefaultInstance();
  432. }
  433. LIBPROTOBUF_EXPORT ::google::protobuf::internal::SCCInfo<1> scc_info_ServiceOptions =
  434. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsServiceOptions}, {
  435. &protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_UninterpretedOption.base,}};
  436. static void InitDefaultsMethodOptions() {
  437. GOOGLE_PROTOBUF_VERIFY_VERSION;
  438. {
  439. void* ptr = &::google::protobuf::_MethodOptions_default_instance_;
  440. new (ptr) ::google::protobuf::MethodOptions();
  441. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  442. }
  443. ::google::protobuf::MethodOptions::InitAsDefaultInstance();
  444. }
  445. LIBPROTOBUF_EXPORT ::google::protobuf::internal::SCCInfo<1> scc_info_MethodOptions =
  446. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsMethodOptions}, {
  447. &protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_UninterpretedOption.base,}};
  448. static void InitDefaultsUninterpretedOption_NamePart() {
  449. GOOGLE_PROTOBUF_VERIFY_VERSION;
  450. {
  451. void* ptr = &::google::protobuf::_UninterpretedOption_NamePart_default_instance_;
  452. new (ptr) ::google::protobuf::UninterpretedOption_NamePart();
  453. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  454. }
  455. ::google::protobuf::UninterpretedOption_NamePart::InitAsDefaultInstance();
  456. }
  457. LIBPROTOBUF_EXPORT ::google::protobuf::internal::SCCInfo<0> scc_info_UninterpretedOption_NamePart =
  458. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsUninterpretedOption_NamePart}, {}};
  459. static void InitDefaultsUninterpretedOption() {
  460. GOOGLE_PROTOBUF_VERIFY_VERSION;
  461. {
  462. void* ptr = &::google::protobuf::_UninterpretedOption_default_instance_;
  463. new (ptr) ::google::protobuf::UninterpretedOption();
  464. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  465. }
  466. ::google::protobuf::UninterpretedOption::InitAsDefaultInstance();
  467. }
  468. LIBPROTOBUF_EXPORT ::google::protobuf::internal::SCCInfo<1> scc_info_UninterpretedOption =
  469. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsUninterpretedOption}, {
  470. &protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_UninterpretedOption_NamePart.base,}};
  471. static void InitDefaultsSourceCodeInfo_Location() {
  472. GOOGLE_PROTOBUF_VERIFY_VERSION;
  473. {
  474. void* ptr = &::google::protobuf::_SourceCodeInfo_Location_default_instance_;
  475. new (ptr) ::google::protobuf::SourceCodeInfo_Location();
  476. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  477. }
  478. ::google::protobuf::SourceCodeInfo_Location::InitAsDefaultInstance();
  479. }
  480. LIBPROTOBUF_EXPORT ::google::protobuf::internal::SCCInfo<0> scc_info_SourceCodeInfo_Location =
  481. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSourceCodeInfo_Location}, {}};
  482. static void InitDefaultsSourceCodeInfo() {
  483. GOOGLE_PROTOBUF_VERIFY_VERSION;
  484. {
  485. void* ptr = &::google::protobuf::_SourceCodeInfo_default_instance_;
  486. new (ptr) ::google::protobuf::SourceCodeInfo();
  487. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  488. }
  489. ::google::protobuf::SourceCodeInfo::InitAsDefaultInstance();
  490. }
  491. LIBPROTOBUF_EXPORT ::google::protobuf::internal::SCCInfo<1> scc_info_SourceCodeInfo =
  492. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsSourceCodeInfo}, {
  493. &protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_SourceCodeInfo_Location.base,}};
  494. static void InitDefaultsGeneratedCodeInfo_Annotation() {
  495. GOOGLE_PROTOBUF_VERIFY_VERSION;
  496. {
  497. void* ptr = &::google::protobuf::_GeneratedCodeInfo_Annotation_default_instance_;
  498. new (ptr) ::google::protobuf::GeneratedCodeInfo_Annotation();
  499. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  500. }
  501. ::google::protobuf::GeneratedCodeInfo_Annotation::InitAsDefaultInstance();
  502. }
  503. LIBPROTOBUF_EXPORT ::google::protobuf::internal::SCCInfo<0> scc_info_GeneratedCodeInfo_Annotation =
  504. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGeneratedCodeInfo_Annotation}, {}};
  505. static void InitDefaultsGeneratedCodeInfo() {
  506. GOOGLE_PROTOBUF_VERIFY_VERSION;
  507. {
  508. void* ptr = &::google::protobuf::_GeneratedCodeInfo_default_instance_;
  509. new (ptr) ::google::protobuf::GeneratedCodeInfo();
  510. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  511. }
  512. ::google::protobuf::GeneratedCodeInfo::InitAsDefaultInstance();
  513. }
  514. LIBPROTOBUF_EXPORT ::google::protobuf::internal::SCCInfo<1> scc_info_GeneratedCodeInfo =
  515. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsGeneratedCodeInfo}, {
  516. &protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_GeneratedCodeInfo_Annotation.base,}};
  517. void InitDefaults() {
  518. ::google::protobuf::internal::InitSCC(&scc_info_FileDescriptorSet.base);
  519. ::google::protobuf::internal::InitSCC(&scc_info_FileDescriptorProto.base);
  520. ::google::protobuf::internal::InitSCC(&scc_info_DescriptorProto_ExtensionRange.base);
  521. ::google::protobuf::internal::InitSCC(&scc_info_DescriptorProto_ReservedRange.base);
  522. ::google::protobuf::internal::InitSCC(&scc_info_DescriptorProto.base);
  523. ::google::protobuf::internal::InitSCC(&scc_info_ExtensionRangeOptions.base);
  524. ::google::protobuf::internal::InitSCC(&scc_info_FieldDescriptorProto.base);
  525. ::google::protobuf::internal::InitSCC(&scc_info_OneofDescriptorProto.base);
  526. ::google::protobuf::internal::InitSCC(&scc_info_EnumDescriptorProto_EnumReservedRange.base);
  527. ::google::protobuf::internal::InitSCC(&scc_info_EnumDescriptorProto.base);
  528. ::google::protobuf::internal::InitSCC(&scc_info_EnumValueDescriptorProto.base);
  529. ::google::protobuf::internal::InitSCC(&scc_info_ServiceDescriptorProto.base);
  530. ::google::protobuf::internal::InitSCC(&scc_info_MethodDescriptorProto.base);
  531. ::google::protobuf::internal::InitSCC(&scc_info_FileOptions.base);
  532. ::google::protobuf::internal::InitSCC(&scc_info_MessageOptions.base);
  533. ::google::protobuf::internal::InitSCC(&scc_info_FieldOptions.base);
  534. ::google::protobuf::internal::InitSCC(&scc_info_OneofOptions.base);
  535. ::google::protobuf::internal::InitSCC(&scc_info_EnumOptions.base);
  536. ::google::protobuf::internal::InitSCC(&scc_info_EnumValueOptions.base);
  537. ::google::protobuf::internal::InitSCC(&scc_info_ServiceOptions.base);
  538. ::google::protobuf::internal::InitSCC(&scc_info_MethodOptions.base);
  539. ::google::protobuf::internal::InitSCC(&scc_info_UninterpretedOption_NamePart.base);
  540. ::google::protobuf::internal::InitSCC(&scc_info_UninterpretedOption.base);
  541. ::google::protobuf::internal::InitSCC(&scc_info_SourceCodeInfo_Location.base);
  542. ::google::protobuf::internal::InitSCC(&scc_info_SourceCodeInfo.base);
  543. ::google::protobuf::internal::InitSCC(&scc_info_GeneratedCodeInfo_Annotation.base);
  544. ::google::protobuf::internal::InitSCC(&scc_info_GeneratedCodeInfo.base);
  545. }
  546. ::google::protobuf::Metadata file_level_metadata[27];
  547. const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[6];
  548. const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  549. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FileDescriptorSet, _has_bits_),
  550. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FileDescriptorSet, _internal_metadata_),
  551. ~0u, // no _extensions_
  552. ~0u, // no _oneof_case_
  553. ~0u, // no _weak_field_map_
  554. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FileDescriptorSet, file_),
  555. ~0u,
  556. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FileDescriptorProto, _has_bits_),
  557. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FileDescriptorProto, _internal_metadata_),
  558. ~0u, // no _extensions_
  559. ~0u, // no _oneof_case_
  560. ~0u, // no _weak_field_map_
  561. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FileDescriptorProto, name_),
  562. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FileDescriptorProto, package_),
  563. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FileDescriptorProto, dependency_),
  564. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FileDescriptorProto, public_dependency_),
  565. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FileDescriptorProto, weak_dependency_),
  566. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FileDescriptorProto, message_type_),
  567. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FileDescriptorProto, enum_type_),
  568. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FileDescriptorProto, service_),
  569. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FileDescriptorProto, extension_),
  570. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FileDescriptorProto, options_),
  571. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FileDescriptorProto, source_code_info_),
  572. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FileDescriptorProto, syntax_),
  573. 0,
  574. 1,
  575. ~0u,
  576. ~0u,
  577. ~0u,
  578. ~0u,
  579. ~0u,
  580. ~0u,
  581. ~0u,
  582. 3,
  583. 4,
  584. 2,
  585. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::DescriptorProto_ExtensionRange, _has_bits_),
  586. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::DescriptorProto_ExtensionRange, _internal_metadata_),
  587. ~0u, // no _extensions_
  588. ~0u, // no _oneof_case_
  589. ~0u, // no _weak_field_map_
  590. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::DescriptorProto_ExtensionRange, start_),
  591. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::DescriptorProto_ExtensionRange, end_),
  592. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::DescriptorProto_ExtensionRange, options_),
  593. 1,
  594. 2,
  595. 0,
  596. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::DescriptorProto_ReservedRange, _has_bits_),
  597. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::DescriptorProto_ReservedRange, _internal_metadata_),
  598. ~0u, // no _extensions_
  599. ~0u, // no _oneof_case_
  600. ~0u, // no _weak_field_map_
  601. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::DescriptorProto_ReservedRange, start_),
  602. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::DescriptorProto_ReservedRange, end_),
  603. 0,
  604. 1,
  605. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::DescriptorProto, _has_bits_),
  606. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::DescriptorProto, _internal_metadata_),
  607. ~0u, // no _extensions_
  608. ~0u, // no _oneof_case_
  609. ~0u, // no _weak_field_map_
  610. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::DescriptorProto, name_),
  611. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::DescriptorProto, field_),
  612. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::DescriptorProto, extension_),
  613. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::DescriptorProto, nested_type_),
  614. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::DescriptorProto, enum_type_),
  615. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::DescriptorProto, extension_range_),
  616. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::DescriptorProto, oneof_decl_),
  617. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::DescriptorProto, options_),
  618. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::DescriptorProto, reserved_range_),
  619. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::DescriptorProto, reserved_name_),
  620. 0,
  621. ~0u,
  622. ~0u,
  623. ~0u,
  624. ~0u,
  625. ~0u,
  626. ~0u,
  627. 1,
  628. ~0u,
  629. ~0u,
  630. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::ExtensionRangeOptions, _has_bits_),
  631. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::ExtensionRangeOptions, _internal_metadata_),
  632. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::ExtensionRangeOptions, _extensions_),
  633. ~0u, // no _oneof_case_
  634. ~0u, // no _weak_field_map_
  635. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::ExtensionRangeOptions, uninterpreted_option_),
  636. ~0u,
  637. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FieldDescriptorProto, _has_bits_),
  638. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FieldDescriptorProto, _internal_metadata_),
  639. ~0u, // no _extensions_
  640. ~0u, // no _oneof_case_
  641. ~0u, // no _weak_field_map_
  642. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FieldDescriptorProto, name_),
  643. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FieldDescriptorProto, number_),
  644. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FieldDescriptorProto, label_),
  645. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FieldDescriptorProto, type_),
  646. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FieldDescriptorProto, type_name_),
  647. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FieldDescriptorProto, extendee_),
  648. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FieldDescriptorProto, default_value_),
  649. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FieldDescriptorProto, oneof_index_),
  650. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FieldDescriptorProto, json_name_),
  651. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FieldDescriptorProto, options_),
  652. 0,
  653. 6,
  654. 8,
  655. 9,
  656. 2,
  657. 1,
  658. 3,
  659. 7,
  660. 4,
  661. 5,
  662. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::OneofDescriptorProto, _has_bits_),
  663. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::OneofDescriptorProto, _internal_metadata_),
  664. ~0u, // no _extensions_
  665. ~0u, // no _oneof_case_
  666. ~0u, // no _weak_field_map_
  667. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::OneofDescriptorProto, name_),
  668. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::OneofDescriptorProto, options_),
  669. 0,
  670. 1,
  671. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::EnumDescriptorProto_EnumReservedRange, _has_bits_),
  672. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::EnumDescriptorProto_EnumReservedRange, _internal_metadata_),
  673. ~0u, // no _extensions_
  674. ~0u, // no _oneof_case_
  675. ~0u, // no _weak_field_map_
  676. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::EnumDescriptorProto_EnumReservedRange, start_),
  677. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::EnumDescriptorProto_EnumReservedRange, end_),
  678. 0,
  679. 1,
  680. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::EnumDescriptorProto, _has_bits_),
  681. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::EnumDescriptorProto, _internal_metadata_),
  682. ~0u, // no _extensions_
  683. ~0u, // no _oneof_case_
  684. ~0u, // no _weak_field_map_
  685. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::EnumDescriptorProto, name_),
  686. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::EnumDescriptorProto, value_),
  687. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::EnumDescriptorProto, options_),
  688. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::EnumDescriptorProto, reserved_range_),
  689. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::EnumDescriptorProto, reserved_name_),
  690. 0,
  691. ~0u,
  692. 1,
  693. ~0u,
  694. ~0u,
  695. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::EnumValueDescriptorProto, _has_bits_),
  696. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::EnumValueDescriptorProto, _internal_metadata_),
  697. ~0u, // no _extensions_
  698. ~0u, // no _oneof_case_
  699. ~0u, // no _weak_field_map_
  700. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::EnumValueDescriptorProto, name_),
  701. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::EnumValueDescriptorProto, number_),
  702. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::EnumValueDescriptorProto, options_),
  703. 0,
  704. 2,
  705. 1,
  706. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::ServiceDescriptorProto, _has_bits_),
  707. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::ServiceDescriptorProto, _internal_metadata_),
  708. ~0u, // no _extensions_
  709. ~0u, // no _oneof_case_
  710. ~0u, // no _weak_field_map_
  711. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::ServiceDescriptorProto, name_),
  712. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::ServiceDescriptorProto, method_),
  713. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::ServiceDescriptorProto, options_),
  714. 0,
  715. ~0u,
  716. 1,
  717. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::MethodDescriptorProto, _has_bits_),
  718. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::MethodDescriptorProto, _internal_metadata_),
  719. ~0u, // no _extensions_
  720. ~0u, // no _oneof_case_
  721. ~0u, // no _weak_field_map_
  722. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::MethodDescriptorProto, name_),
  723. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::MethodDescriptorProto, input_type_),
  724. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::MethodDescriptorProto, output_type_),
  725. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::MethodDescriptorProto, options_),
  726. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::MethodDescriptorProto, client_streaming_),
  727. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::MethodDescriptorProto, server_streaming_),
  728. 0,
  729. 1,
  730. 2,
  731. 3,
  732. 4,
  733. 5,
  734. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FileOptions, _has_bits_),
  735. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FileOptions, _internal_metadata_),
  736. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FileOptions, _extensions_),
  737. ~0u, // no _oneof_case_
  738. ~0u, // no _weak_field_map_
  739. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FileOptions, java_package_),
  740. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FileOptions, java_outer_classname_),
  741. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FileOptions, java_multiple_files_),
  742. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FileOptions, java_generate_equals_and_hash_),
  743. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FileOptions, java_string_check_utf8_),
  744. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FileOptions, optimize_for_),
  745. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FileOptions, go_package_),
  746. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FileOptions, cc_generic_services_),
  747. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FileOptions, java_generic_services_),
  748. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FileOptions, py_generic_services_),
  749. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FileOptions, php_generic_services_),
  750. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FileOptions, deprecated_),
  751. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FileOptions, cc_enable_arenas_),
  752. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FileOptions, objc_class_prefix_),
  753. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FileOptions, csharp_namespace_),
  754. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FileOptions, swift_prefix_),
  755. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FileOptions, php_class_prefix_),
  756. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FileOptions, php_namespace_),
  757. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FileOptions, php_metadata_namespace_),
  758. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FileOptions, ruby_package_),
  759. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FileOptions, uninterpreted_option_),
  760. 0,
  761. 1,
  762. 10,
  763. 11,
  764. 12,
  765. 19,
  766. 2,
  767. 13,
  768. 14,
  769. 15,
  770. 16,
  771. 17,
  772. 18,
  773. 3,
  774. 4,
  775. 5,
  776. 6,
  777. 7,
  778. 8,
  779. 9,
  780. ~0u,
  781. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::MessageOptions, _has_bits_),
  782. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::MessageOptions, _internal_metadata_),
  783. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::MessageOptions, _extensions_),
  784. ~0u, // no _oneof_case_
  785. ~0u, // no _weak_field_map_
  786. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::MessageOptions, message_set_wire_format_),
  787. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::MessageOptions, no_standard_descriptor_accessor_),
  788. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::MessageOptions, deprecated_),
  789. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::MessageOptions, map_entry_),
  790. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::MessageOptions, uninterpreted_option_),
  791. 0,
  792. 1,
  793. 2,
  794. 3,
  795. ~0u,
  796. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FieldOptions, _has_bits_),
  797. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FieldOptions, _internal_metadata_),
  798. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FieldOptions, _extensions_),
  799. ~0u, // no _oneof_case_
  800. ~0u, // no _weak_field_map_
  801. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FieldOptions, ctype_),
  802. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FieldOptions, packed_),
  803. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FieldOptions, jstype_),
  804. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FieldOptions, lazy_),
  805. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FieldOptions, deprecated_),
  806. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FieldOptions, weak_),
  807. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FieldOptions, uninterpreted_option_),
  808. 0,
  809. 1,
  810. 5,
  811. 2,
  812. 3,
  813. 4,
  814. ~0u,
  815. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::OneofOptions, _has_bits_),
  816. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::OneofOptions, _internal_metadata_),
  817. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::OneofOptions, _extensions_),
  818. ~0u, // no _oneof_case_
  819. ~0u, // no _weak_field_map_
  820. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::OneofOptions, uninterpreted_option_),
  821. ~0u,
  822. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::EnumOptions, _has_bits_),
  823. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::EnumOptions, _internal_metadata_),
  824. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::EnumOptions, _extensions_),
  825. ~0u, // no _oneof_case_
  826. ~0u, // no _weak_field_map_
  827. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::EnumOptions, allow_alias_),
  828. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::EnumOptions, deprecated_),
  829. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::EnumOptions, uninterpreted_option_),
  830. 0,
  831. 1,
  832. ~0u,
  833. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::EnumValueOptions, _has_bits_),
  834. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::EnumValueOptions, _internal_metadata_),
  835. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::EnumValueOptions, _extensions_),
  836. ~0u, // no _oneof_case_
  837. ~0u, // no _weak_field_map_
  838. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::EnumValueOptions, deprecated_),
  839. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::EnumValueOptions, uninterpreted_option_),
  840. 0,
  841. ~0u,
  842. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::ServiceOptions, _has_bits_),
  843. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::ServiceOptions, _internal_metadata_),
  844. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::ServiceOptions, _extensions_),
  845. ~0u, // no _oneof_case_
  846. ~0u, // no _weak_field_map_
  847. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::ServiceOptions, deprecated_),
  848. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::ServiceOptions, uninterpreted_option_),
  849. 0,
  850. ~0u,
  851. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::MethodOptions, _has_bits_),
  852. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::MethodOptions, _internal_metadata_),
  853. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::MethodOptions, _extensions_),
  854. ~0u, // no _oneof_case_
  855. ~0u, // no _weak_field_map_
  856. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::MethodOptions, deprecated_),
  857. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::MethodOptions, idempotency_level_),
  858. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::MethodOptions, uninterpreted_option_),
  859. 0,
  860. 1,
  861. ~0u,
  862. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::UninterpretedOption_NamePart, _has_bits_),
  863. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::UninterpretedOption_NamePart, _internal_metadata_),
  864. ~0u, // no _extensions_
  865. ~0u, // no _oneof_case_
  866. ~0u, // no _weak_field_map_
  867. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::UninterpretedOption_NamePart, name_part_),
  868. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::UninterpretedOption_NamePart, is_extension_),
  869. 0,
  870. 1,
  871. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::UninterpretedOption, _has_bits_),
  872. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::UninterpretedOption, _internal_metadata_),
  873. ~0u, // no _extensions_
  874. ~0u, // no _oneof_case_
  875. ~0u, // no _weak_field_map_
  876. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::UninterpretedOption, name_),
  877. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::UninterpretedOption, identifier_value_),
  878. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::UninterpretedOption, positive_int_value_),
  879. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::UninterpretedOption, negative_int_value_),
  880. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::UninterpretedOption, double_value_),
  881. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::UninterpretedOption, string_value_),
  882. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::UninterpretedOption, aggregate_value_),
  883. ~0u,
  884. 0,
  885. 3,
  886. 4,
  887. 5,
  888. 1,
  889. 2,
  890. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::SourceCodeInfo_Location, _has_bits_),
  891. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::SourceCodeInfo_Location, _internal_metadata_),
  892. ~0u, // no _extensions_
  893. ~0u, // no _oneof_case_
  894. ~0u, // no _weak_field_map_
  895. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::SourceCodeInfo_Location, path_),
  896. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::SourceCodeInfo_Location, span_),
  897. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::SourceCodeInfo_Location, leading_comments_),
  898. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::SourceCodeInfo_Location, trailing_comments_),
  899. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::SourceCodeInfo_Location, leading_detached_comments_),
  900. ~0u,
  901. ~0u,
  902. 0,
  903. 1,
  904. ~0u,
  905. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::SourceCodeInfo, _has_bits_),
  906. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::SourceCodeInfo, _internal_metadata_),
  907. ~0u, // no _extensions_
  908. ~0u, // no _oneof_case_
  909. ~0u, // no _weak_field_map_
  910. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::SourceCodeInfo, location_),
  911. ~0u,
  912. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::GeneratedCodeInfo_Annotation, _has_bits_),
  913. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::GeneratedCodeInfo_Annotation, _internal_metadata_),
  914. ~0u, // no _extensions_
  915. ~0u, // no _oneof_case_
  916. ~0u, // no _weak_field_map_
  917. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::GeneratedCodeInfo_Annotation, path_),
  918. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::GeneratedCodeInfo_Annotation, source_file_),
  919. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::GeneratedCodeInfo_Annotation, begin_),
  920. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::GeneratedCodeInfo_Annotation, end_),
  921. ~0u,
  922. 0,
  923. 1,
  924. 2,
  925. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::GeneratedCodeInfo, _has_bits_),
  926. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::GeneratedCodeInfo, _internal_metadata_),
  927. ~0u, // no _extensions_
  928. ~0u, // no _oneof_case_
  929. ~0u, // no _weak_field_map_
  930. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::GeneratedCodeInfo, annotation_),
  931. ~0u,
  932. };
  933. static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  934. { 0, 6, sizeof(::google::protobuf::FileDescriptorSet)},
  935. { 7, 24, sizeof(::google::protobuf::FileDescriptorProto)},
  936. { 36, 44, sizeof(::google::protobuf::DescriptorProto_ExtensionRange)},
  937. { 47, 54, sizeof(::google::protobuf::DescriptorProto_ReservedRange)},
  938. { 56, 71, sizeof(::google::protobuf::DescriptorProto)},
  939. { 81, 87, sizeof(::google::protobuf::ExtensionRangeOptions)},
  940. { 88, 103, sizeof(::google::protobuf::FieldDescriptorProto)},
  941. { 113, 120, sizeof(::google::protobuf::OneofDescriptorProto)},
  942. { 122, 129, sizeof(::google::protobuf::EnumDescriptorProto_EnumReservedRange)},
  943. { 131, 141, sizeof(::google::protobuf::EnumDescriptorProto)},
  944. { 146, 154, sizeof(::google::protobuf::EnumValueDescriptorProto)},
  945. { 157, 165, sizeof(::google::protobuf::ServiceDescriptorProto)},
  946. { 168, 179, sizeof(::google::protobuf::MethodDescriptorProto)},
  947. { 185, 211, sizeof(::google::protobuf::FileOptions)},
  948. { 232, 242, sizeof(::google::protobuf::MessageOptions)},
  949. { 247, 259, sizeof(::google::protobuf::FieldOptions)},
  950. { 266, 272, sizeof(::google::protobuf::OneofOptions)},
  951. { 273, 281, sizeof(::google::protobuf::EnumOptions)},
  952. { 284, 291, sizeof(::google::protobuf::EnumValueOptions)},
  953. { 293, 300, sizeof(::google::protobuf::ServiceOptions)},
  954. { 302, 310, sizeof(::google::protobuf::MethodOptions)},
  955. { 313, 320, sizeof(::google::protobuf::UninterpretedOption_NamePart)},
  956. { 322, 334, sizeof(::google::protobuf::UninterpretedOption)},
  957. { 341, 351, sizeof(::google::protobuf::SourceCodeInfo_Location)},
  958. { 356, 362, sizeof(::google::protobuf::SourceCodeInfo)},
  959. { 363, 372, sizeof(::google::protobuf::GeneratedCodeInfo_Annotation)},
  960. { 376, 382, sizeof(::google::protobuf::GeneratedCodeInfo)},
  961. };
  962. static ::google::protobuf::Message const * const file_default_instances[] = {
  963. reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::_FileDescriptorSet_default_instance_),
  964. reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::_FileDescriptorProto_default_instance_),
  965. reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::_DescriptorProto_ExtensionRange_default_instance_),
  966. reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::_DescriptorProto_ReservedRange_default_instance_),
  967. reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::_DescriptorProto_default_instance_),
  968. reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::_ExtensionRangeOptions_default_instance_),
  969. reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::_FieldDescriptorProto_default_instance_),
  970. reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::_OneofDescriptorProto_default_instance_),
  971. reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::_EnumDescriptorProto_EnumReservedRange_default_instance_),
  972. reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::_EnumDescriptorProto_default_instance_),
  973. reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::_EnumValueDescriptorProto_default_instance_),
  974. reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::_ServiceDescriptorProto_default_instance_),
  975. reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::_MethodDescriptorProto_default_instance_),
  976. reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::_FileOptions_default_instance_),
  977. reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::_MessageOptions_default_instance_),
  978. reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::_FieldOptions_default_instance_),
  979. reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::_OneofOptions_default_instance_),
  980. reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::_EnumOptions_default_instance_),
  981. reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::_EnumValueOptions_default_instance_),
  982. reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::_ServiceOptions_default_instance_),
  983. reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::_MethodOptions_default_instance_),
  984. reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::_UninterpretedOption_NamePart_default_instance_),
  985. reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::_UninterpretedOption_default_instance_),
  986. reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::_SourceCodeInfo_Location_default_instance_),
  987. reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::_SourceCodeInfo_default_instance_),
  988. reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::_GeneratedCodeInfo_Annotation_default_instance_),
  989. reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::_GeneratedCodeInfo_default_instance_),
  990. };
  991. void protobuf_AssignDescriptors() {
  992. AddDescriptors();
  993. AssignDescriptors(
  994. "google/protobuf/descriptor.proto", schemas, file_default_instances, TableStruct::offsets,
  995. file_level_metadata, file_level_enum_descriptors, NULL);
  996. }
  997. void protobuf_AssignDescriptorsOnce() {
  998. static ::google::protobuf::internal::once_flag once;
  999. ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
  1000. }
  1001. void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
  1002. void protobuf_RegisterTypes(const ::std::string&) {
  1003. protobuf_AssignDescriptorsOnce();
  1004. ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 27);
  1005. }
  1006. void AddDescriptorsImpl() {
  1007. InitDefaults();
  1008. static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  1009. "\n google/protobuf/descriptor.proto\022\017goog"
  1010. "le.protobuf\"G\n\021FileDescriptorSet\0222\n\004file"
  1011. "\030\001 \003(\0132$.google.protobuf.FileDescriptorP"
  1012. "roto\"\333\003\n\023FileDescriptorProto\022\014\n\004name\030\001 \001"
  1013. "(\t\022\017\n\007package\030\002 \001(\t\022\022\n\ndependency\030\003 \003(\t\022"
  1014. "\031\n\021public_dependency\030\n \003(\005\022\027\n\017weak_depen"
  1015. "dency\030\013 \003(\005\0226\n\014message_type\030\004 \003(\0132 .goog"
  1016. "le.protobuf.DescriptorProto\0227\n\tenum_type"
  1017. "\030\005 \003(\0132$.google.protobuf.EnumDescriptorP"
  1018. "roto\0228\n\007service\030\006 \003(\0132\'.google.protobuf."
  1019. "ServiceDescriptorProto\0228\n\textension\030\007 \003("
  1020. "\0132%.google.protobuf.FieldDescriptorProto"
  1021. "\022-\n\007options\030\010 \001(\0132\034.google.protobuf.File"
  1022. "Options\0229\n\020source_code_info\030\t \001(\0132\037.goog"
  1023. "le.protobuf.SourceCodeInfo\022\016\n\006syntax\030\014 \001"
  1024. "(\t\"\251\005\n\017DescriptorProto\022\014\n\004name\030\001 \001(\t\0224\n\005"
  1025. "field\030\002 \003(\0132%.google.protobuf.FieldDescr"
  1026. "iptorProto\0228\n\textension\030\006 \003(\0132%.google.p"
  1027. "rotobuf.FieldDescriptorProto\0225\n\013nested_t"
  1028. "ype\030\003 \003(\0132 .google.protobuf.DescriptorPr"
  1029. "oto\0227\n\tenum_type\030\004 \003(\0132$.google.protobuf"
  1030. ".EnumDescriptorProto\022H\n\017extension_range\030"
  1031. "\005 \003(\0132/.google.protobuf.DescriptorProto."
  1032. "ExtensionRange\0229\n\noneof_decl\030\010 \003(\0132%.goo"
  1033. "gle.protobuf.OneofDescriptorProto\0220\n\007opt"
  1034. "ions\030\007 \001(\0132\037.google.protobuf.MessageOpti"
  1035. "ons\022F\n\016reserved_range\030\t \003(\0132..google.pro"
  1036. "tobuf.DescriptorProto.ReservedRange\022\025\n\rr"
  1037. "eserved_name\030\n \003(\t\032e\n\016ExtensionRange\022\r\n\005"
  1038. "start\030\001 \001(\005\022\013\n\003end\030\002 \001(\005\0227\n\007options\030\003 \001("
  1039. "\0132&.google.protobuf.ExtensionRangeOption"
  1040. "s\032+\n\rReservedRange\022\r\n\005start\030\001 \001(\005\022\013\n\003end"
  1041. "\030\002 \001(\005\"g\n\025ExtensionRangeOptions\022C\n\024unint"
  1042. "erpreted_option\030\347\007 \003(\0132$.google.protobuf"
  1043. ".UninterpretedOption*\t\010\350\007\020\200\200\200\200\002\"\274\005\n\024Fiel"
  1044. "dDescriptorProto\022\014\n\004name\030\001 \001(\t\022\016\n\006number"
  1045. "\030\003 \001(\005\022:\n\005label\030\004 \001(\0162+.google.protobuf."
  1046. "FieldDescriptorProto.Label\0228\n\004type\030\005 \001(\016"
  1047. "2*.google.protobuf.FieldDescriptorProto."
  1048. "Type\022\021\n\ttype_name\030\006 \001(\t\022\020\n\010extendee\030\002 \001("
  1049. "\t\022\025\n\rdefault_value\030\007 \001(\t\022\023\n\013oneof_index\030"
  1050. "\t \001(\005\022\021\n\tjson_name\030\n \001(\t\022.\n\007options\030\010 \001("
  1051. "\0132\035.google.protobuf.FieldOptions\"\266\002\n\004Typ"
  1052. "e\022\017\n\013TYPE_DOUBLE\020\001\022\016\n\nTYPE_FLOAT\020\002\022\016\n\nTY"
  1053. "PE_INT64\020\003\022\017\n\013TYPE_UINT64\020\004\022\016\n\nTYPE_INT3"
  1054. "2\020\005\022\020\n\014TYPE_FIXED64\020\006\022\020\n\014TYPE_FIXED32\020\007\022"
  1055. "\r\n\tTYPE_BOOL\020\010\022\017\n\013TYPE_STRING\020\t\022\016\n\nTYPE_"
  1056. "GROUP\020\n\022\020\n\014TYPE_MESSAGE\020\013\022\016\n\nTYPE_BYTES\020"
  1057. "\014\022\017\n\013TYPE_UINT32\020\r\022\r\n\tTYPE_ENUM\020\016\022\021\n\rTYP"
  1058. "E_SFIXED32\020\017\022\021\n\rTYPE_SFIXED64\020\020\022\017\n\013TYPE_"
  1059. "SINT32\020\021\022\017\n\013TYPE_SINT64\020\022\"C\n\005Label\022\022\n\016LA"
  1060. "BEL_OPTIONAL\020\001\022\022\n\016LABEL_REQUIRED\020\002\022\022\n\016LA"
  1061. "BEL_REPEATED\020\003\"T\n\024OneofDescriptorProto\022\014"
  1062. "\n\004name\030\001 \001(\t\022.\n\007options\030\002 \001(\0132\035.google.p"
  1063. "rotobuf.OneofOptions\"\244\002\n\023EnumDescriptorP"
  1064. "roto\022\014\n\004name\030\001 \001(\t\0228\n\005value\030\002 \003(\0132).goog"
  1065. "le.protobuf.EnumValueDescriptorProto\022-\n\007"
  1066. "options\030\003 \001(\0132\034.google.protobuf.EnumOpti"
  1067. "ons\022N\n\016reserved_range\030\004 \003(\01326.google.pro"
  1068. "tobuf.EnumDescriptorProto.EnumReservedRa"
  1069. "nge\022\025\n\rreserved_name\030\005 \003(\t\032/\n\021EnumReserv"
  1070. "edRange\022\r\n\005start\030\001 \001(\005\022\013\n\003end\030\002 \001(\005\"l\n\030E"
  1071. "numValueDescriptorProto\022\014\n\004name\030\001 \001(\t\022\016\n"
  1072. "\006number\030\002 \001(\005\0222\n\007options\030\003 \001(\0132!.google."
  1073. "protobuf.EnumValueOptions\"\220\001\n\026ServiceDes"
  1074. "criptorProto\022\014\n\004name\030\001 \001(\t\0226\n\006method\030\002 \003"
  1075. "(\0132&.google.protobuf.MethodDescriptorPro"
  1076. "to\0220\n\007options\030\003 \001(\0132\037.google.protobuf.Se"
  1077. "rviceOptions\"\301\001\n\025MethodDescriptorProto\022\014"
  1078. "\n\004name\030\001 \001(\t\022\022\n\ninput_type\030\002 \001(\t\022\023\n\013outp"
  1079. "ut_type\030\003 \001(\t\022/\n\007options\030\004 \001(\0132\036.google."
  1080. "protobuf.MethodOptions\022\037\n\020client_streami"
  1081. "ng\030\005 \001(\010:\005false\022\037\n\020server_streaming\030\006 \001("
  1082. "\010:\005false\"\246\006\n\013FileOptions\022\024\n\014java_package"
  1083. "\030\001 \001(\t\022\034\n\024java_outer_classname\030\010 \001(\t\022\"\n\023"
  1084. "java_multiple_files\030\n \001(\010:\005false\022)\n\035java"
  1085. "_generate_equals_and_hash\030\024 \001(\010B\002\030\001\022%\n\026j"
  1086. "ava_string_check_utf8\030\033 \001(\010:\005false\022F\n\014op"
  1087. "timize_for\030\t \001(\0162).google.protobuf.FileO"
  1088. "ptions.OptimizeMode:\005SPEED\022\022\n\ngo_package"
  1089. "\030\013 \001(\t\022\"\n\023cc_generic_services\030\020 \001(\010:\005fal"
  1090. "se\022$\n\025java_generic_services\030\021 \001(\010:\005false"
  1091. "\022\"\n\023py_generic_services\030\022 \001(\010:\005false\022#\n\024"
  1092. "php_generic_services\030* \001(\010:\005false\022\031\n\ndep"
  1093. "recated\030\027 \001(\010:\005false\022\037\n\020cc_enable_arenas"
  1094. "\030\037 \001(\010:\005false\022\031\n\021objc_class_prefix\030$ \001(\t"
  1095. "\022\030\n\020csharp_namespace\030% \001(\t\022\024\n\014swift_pref"
  1096. "ix\030\' \001(\t\022\030\n\020php_class_prefix\030( \001(\t\022\025\n\rph"
  1097. "p_namespace\030) \001(\t\022\036\n\026php_metadata_namesp"
  1098. "ace\030, \001(\t\022\024\n\014ruby_package\030- \001(\t\022C\n\024unint"
  1099. "erpreted_option\030\347\007 \003(\0132$.google.protobuf"
  1100. ".UninterpretedOption\":\n\014OptimizeMode\022\t\n\005"
  1101. "SPEED\020\001\022\r\n\tCODE_SIZE\020\002\022\020\n\014LITE_RUNTIME\020\003"
  1102. "*\t\010\350\007\020\200\200\200\200\002J\004\010&\020\'\"\362\001\n\016MessageOptions\022&\n\027"
  1103. "message_set_wire_format\030\001 \001(\010:\005false\022.\n\037"
  1104. "no_standard_descriptor_accessor\030\002 \001(\010:\005f"
  1105. "alse\022\031\n\ndeprecated\030\003 \001(\010:\005false\022\021\n\tmap_e"
  1106. "ntry\030\007 \001(\010\022C\n\024uninterpreted_option\030\347\007 \003("
  1107. "\0132$.google.protobuf.UninterpretedOption*"
  1108. "\t\010\350\007\020\200\200\200\200\002J\004\010\010\020\tJ\004\010\t\020\n\"\236\003\n\014FieldOptions\022"
  1109. ":\n\005ctype\030\001 \001(\0162#.google.protobuf.FieldOp"
  1110. "tions.CType:\006STRING\022\016\n\006packed\030\002 \001(\010\022\?\n\006j"
  1111. "stype\030\006 \001(\0162$.google.protobuf.FieldOptio"
  1112. "ns.JSType:\tJS_NORMAL\022\023\n\004lazy\030\005 \001(\010:\005fals"
  1113. "e\022\031\n\ndeprecated\030\003 \001(\010:\005false\022\023\n\004weak\030\n \001"
  1114. "(\010:\005false\022C\n\024uninterpreted_option\030\347\007 \003(\013"
  1115. "2$.google.protobuf.UninterpretedOption\"/"
  1116. "\n\005CType\022\n\n\006STRING\020\000\022\010\n\004CORD\020\001\022\020\n\014STRING_"
  1117. "PIECE\020\002\"5\n\006JSType\022\r\n\tJS_NORMAL\020\000\022\r\n\tJS_S"
  1118. "TRING\020\001\022\r\n\tJS_NUMBER\020\002*\t\010\350\007\020\200\200\200\200\002J\004\010\004\020\005\""
  1119. "^\n\014OneofOptions\022C\n\024uninterpreted_option\030"
  1120. "\347\007 \003(\0132$.google.protobuf.UninterpretedOp"
  1121. "tion*\t\010\350\007\020\200\200\200\200\002\"\223\001\n\013EnumOptions\022\023\n\013allow"
  1122. "_alias\030\002 \001(\010\022\031\n\ndeprecated\030\003 \001(\010:\005false\022"
  1123. "C\n\024uninterpreted_option\030\347\007 \003(\0132$.google."
  1124. "protobuf.UninterpretedOption*\t\010\350\007\020\200\200\200\200\002J"
  1125. "\004\010\005\020\006\"}\n\020EnumValueOptions\022\031\n\ndeprecated\030"
  1126. "\001 \001(\010:\005false\022C\n\024uninterpreted_option\030\347\007 "
  1127. "\003(\0132$.google.protobuf.UninterpretedOptio"
  1128. "n*\t\010\350\007\020\200\200\200\200\002\"{\n\016ServiceOptions\022\031\n\ndeprec"
  1129. "ated\030! \001(\010:\005false\022C\n\024uninterpreted_optio"
  1130. "n\030\347\007 \003(\0132$.google.protobuf.Uninterpreted"
  1131. "Option*\t\010\350\007\020\200\200\200\200\002\"\255\002\n\rMethodOptions\022\031\n\nd"
  1132. "eprecated\030! \001(\010:\005false\022_\n\021idempotency_le"
  1133. "vel\030\" \001(\0162/.google.protobuf.MethodOption"
  1134. "s.IdempotencyLevel:\023IDEMPOTENCY_UNKNOWN\022"
  1135. "C\n\024uninterpreted_option\030\347\007 \003(\0132$.google."
  1136. "protobuf.UninterpretedOption\"P\n\020Idempote"
  1137. "ncyLevel\022\027\n\023IDEMPOTENCY_UNKNOWN\020\000\022\023\n\017NO_"
  1138. "SIDE_EFFECTS\020\001\022\016\n\nIDEMPOTENT\020\002*\t\010\350\007\020\200\200\200\200"
  1139. "\002\"\236\002\n\023UninterpretedOption\022;\n\004name\030\002 \003(\0132"
  1140. "-.google.protobuf.UninterpretedOption.Na"
  1141. "mePart\022\030\n\020identifier_value\030\003 \001(\t\022\032\n\022posi"
  1142. "tive_int_value\030\004 \001(\004\022\032\n\022negative_int_val"
  1143. "ue\030\005 \001(\003\022\024\n\014double_value\030\006 \001(\001\022\024\n\014string"
  1144. "_value\030\007 \001(\014\022\027\n\017aggregate_value\030\010 \001(\t\0323\n"
  1145. "\010NamePart\022\021\n\tname_part\030\001 \002(\t\022\024\n\014is_exten"
  1146. "sion\030\002 \002(\010\"\325\001\n\016SourceCodeInfo\022:\n\010locatio"
  1147. "n\030\001 \003(\0132(.google.protobuf.SourceCodeInfo"
  1148. ".Location\032\206\001\n\010Location\022\020\n\004path\030\001 \003(\005B\002\020\001"
  1149. "\022\020\n\004span\030\002 \003(\005B\002\020\001\022\030\n\020leading_comments\030\003"
  1150. " \001(\t\022\031\n\021trailing_comments\030\004 \001(\t\022!\n\031leadi"
  1151. "ng_detached_comments\030\006 \003(\t\"\247\001\n\021Generated"
  1152. "CodeInfo\022A\n\nannotation\030\001 \003(\0132-.google.pr"
  1153. "otobuf.GeneratedCodeInfo.Annotation\032O\n\nA"
  1154. "nnotation\022\020\n\004path\030\001 \003(\005B\002\020\001\022\023\n\013source_fi"
  1155. "le\030\002 \001(\t\022\r\n\005begin\030\003 \001(\005\022\013\n\003end\030\004 \001(\005B\217\001\n"
  1156. "\023com.google.protobufB\020DescriptorProtosH\001"
  1157. "Z>github.com/golang/protobuf/protoc-gen-"
  1158. "go/descriptor;descriptor\370\001\001\242\002\003GPB\252\002\032Goog"
  1159. "le.Protobuf.Reflection"
  1160. };
  1161. ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
  1162. descriptor, 6022);
  1163. ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
  1164. "google/protobuf/descriptor.proto", &protobuf_RegisterTypes);
  1165. }
  1166. void AddDescriptors() {
  1167. static ::google::protobuf::internal::once_flag once;
  1168. ::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
  1169. }
  1170. // Force AddDescriptors() to be called at dynamic initialization time.
  1171. struct StaticDescriptorInitializer {
  1172. StaticDescriptorInitializer() {
  1173. AddDescriptors();
  1174. }
  1175. } static_descriptor_initializer;
  1176. } // namespace protobuf_google_2fprotobuf_2fdescriptor_2eproto
  1177. namespace google {
  1178. namespace protobuf {
  1179. const ::google::protobuf::EnumDescriptor* FieldDescriptorProto_Type_descriptor() {
  1180. protobuf_google_2fprotobuf_2fdescriptor_2eproto::protobuf_AssignDescriptorsOnce();
  1181. return protobuf_google_2fprotobuf_2fdescriptor_2eproto::file_level_enum_descriptors[0];
  1182. }
  1183. bool FieldDescriptorProto_Type_IsValid(int value) {
  1184. switch (value) {
  1185. case 1:
  1186. case 2:
  1187. case 3:
  1188. case 4:
  1189. case 5:
  1190. case 6:
  1191. case 7:
  1192. case 8:
  1193. case 9:
  1194. case 10:
  1195. case 11:
  1196. case 12:
  1197. case 13:
  1198. case 14:
  1199. case 15:
  1200. case 16:
  1201. case 17:
  1202. case 18:
  1203. return true;
  1204. default:
  1205. return false;
  1206. }
  1207. }
  1208. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1209. const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_DOUBLE;
  1210. const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_FLOAT;
  1211. const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_INT64;
  1212. const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_UINT64;
  1213. const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_INT32;
  1214. const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_FIXED64;
  1215. const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_FIXED32;
  1216. const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_BOOL;
  1217. const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_STRING;
  1218. const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_GROUP;
  1219. const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_MESSAGE;
  1220. const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_BYTES;
  1221. const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_UINT32;
  1222. const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_ENUM;
  1223. const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_SFIXED32;
  1224. const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_SFIXED64;
  1225. const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_SINT32;
  1226. const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_SINT64;
  1227. const FieldDescriptorProto_Type FieldDescriptorProto::Type_MIN;
  1228. const FieldDescriptorProto_Type FieldDescriptorProto::Type_MAX;
  1229. const int FieldDescriptorProto::Type_ARRAYSIZE;
  1230. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1231. const ::google::protobuf::EnumDescriptor* FieldDescriptorProto_Label_descriptor() {
  1232. protobuf_google_2fprotobuf_2fdescriptor_2eproto::protobuf_AssignDescriptorsOnce();
  1233. return protobuf_google_2fprotobuf_2fdescriptor_2eproto::file_level_enum_descriptors[1];
  1234. }
  1235. bool FieldDescriptorProto_Label_IsValid(int value) {
  1236. switch (value) {
  1237. case 1:
  1238. case 2:
  1239. case 3:
  1240. return true;
  1241. default:
  1242. return false;
  1243. }
  1244. }
  1245. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1246. const FieldDescriptorProto_Label FieldDescriptorProto::LABEL_OPTIONAL;
  1247. const FieldDescriptorProto_Label FieldDescriptorProto::LABEL_REQUIRED;
  1248. const FieldDescriptorProto_Label FieldDescriptorProto::LABEL_REPEATED;
  1249. const FieldDescriptorProto_Label FieldDescriptorProto::Label_MIN;
  1250. const FieldDescriptorProto_Label FieldDescriptorProto::Label_MAX;
  1251. const int FieldDescriptorProto::Label_ARRAYSIZE;
  1252. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1253. const ::google::protobuf::EnumDescriptor* FileOptions_OptimizeMode_descriptor() {
  1254. protobuf_google_2fprotobuf_2fdescriptor_2eproto::protobuf_AssignDescriptorsOnce();
  1255. return protobuf_google_2fprotobuf_2fdescriptor_2eproto::file_level_enum_descriptors[2];
  1256. }
  1257. bool FileOptions_OptimizeMode_IsValid(int value) {
  1258. switch (value) {
  1259. case 1:
  1260. case 2:
  1261. case 3:
  1262. return true;
  1263. default:
  1264. return false;
  1265. }
  1266. }
  1267. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1268. const FileOptions_OptimizeMode FileOptions::SPEED;
  1269. const FileOptions_OptimizeMode FileOptions::CODE_SIZE;
  1270. const FileOptions_OptimizeMode FileOptions::LITE_RUNTIME;
  1271. const FileOptions_OptimizeMode FileOptions::OptimizeMode_MIN;
  1272. const FileOptions_OptimizeMode FileOptions::OptimizeMode_MAX;
  1273. const int FileOptions::OptimizeMode_ARRAYSIZE;
  1274. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1275. const ::google::protobuf::EnumDescriptor* FieldOptions_CType_descriptor() {
  1276. protobuf_google_2fprotobuf_2fdescriptor_2eproto::protobuf_AssignDescriptorsOnce();
  1277. return protobuf_google_2fprotobuf_2fdescriptor_2eproto::file_level_enum_descriptors[3];
  1278. }
  1279. bool FieldOptions_CType_IsValid(int value) {
  1280. switch (value) {
  1281. case 0:
  1282. case 1:
  1283. case 2:
  1284. return true;
  1285. default:
  1286. return false;
  1287. }
  1288. }
  1289. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1290. const FieldOptions_CType FieldOptions::STRING;
  1291. const FieldOptions_CType FieldOptions::CORD;
  1292. const FieldOptions_CType FieldOptions::STRING_PIECE;
  1293. const FieldOptions_CType FieldOptions::CType_MIN;
  1294. const FieldOptions_CType FieldOptions::CType_MAX;
  1295. const int FieldOptions::CType_ARRAYSIZE;
  1296. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1297. const ::google::protobuf::EnumDescriptor* FieldOptions_JSType_descriptor() {
  1298. protobuf_google_2fprotobuf_2fdescriptor_2eproto::protobuf_AssignDescriptorsOnce();
  1299. return protobuf_google_2fprotobuf_2fdescriptor_2eproto::file_level_enum_descriptors[4];
  1300. }
  1301. bool FieldOptions_JSType_IsValid(int value) {
  1302. switch (value) {
  1303. case 0:
  1304. case 1:
  1305. case 2:
  1306. return true;
  1307. default:
  1308. return false;
  1309. }
  1310. }
  1311. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1312. const FieldOptions_JSType FieldOptions::JS_NORMAL;
  1313. const FieldOptions_JSType FieldOptions::JS_STRING;
  1314. const FieldOptions_JSType FieldOptions::JS_NUMBER;
  1315. const FieldOptions_JSType FieldOptions::JSType_MIN;
  1316. const FieldOptions_JSType FieldOptions::JSType_MAX;
  1317. const int FieldOptions::JSType_ARRAYSIZE;
  1318. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1319. const ::google::protobuf::EnumDescriptor* MethodOptions_IdempotencyLevel_descriptor() {
  1320. protobuf_google_2fprotobuf_2fdescriptor_2eproto::protobuf_AssignDescriptorsOnce();
  1321. return protobuf_google_2fprotobuf_2fdescriptor_2eproto::file_level_enum_descriptors[5];
  1322. }
  1323. bool MethodOptions_IdempotencyLevel_IsValid(int value) {
  1324. switch (value) {
  1325. case 0:
  1326. case 1:
  1327. case 2:
  1328. return true;
  1329. default:
  1330. return false;
  1331. }
  1332. }
  1333. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1334. const MethodOptions_IdempotencyLevel MethodOptions::IDEMPOTENCY_UNKNOWN;
  1335. const MethodOptions_IdempotencyLevel MethodOptions::NO_SIDE_EFFECTS;
  1336. const MethodOptions_IdempotencyLevel MethodOptions::IDEMPOTENT;
  1337. const MethodOptions_IdempotencyLevel MethodOptions::IdempotencyLevel_MIN;
  1338. const MethodOptions_IdempotencyLevel MethodOptions::IdempotencyLevel_MAX;
  1339. const int MethodOptions::IdempotencyLevel_ARRAYSIZE;
  1340. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1341. // ===================================================================
  1342. void FileDescriptorSet::InitAsDefaultInstance() {
  1343. }
  1344. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1345. const int FileDescriptorSet::kFileFieldNumber;
  1346. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1347. FileDescriptorSet::FileDescriptorSet()
  1348. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1349. ::google::protobuf::internal::InitSCC(
  1350. &protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_FileDescriptorSet.base);
  1351. SharedCtor();
  1352. // @@protoc_insertion_point(constructor:google.protobuf.FileDescriptorSet)
  1353. }
  1354. FileDescriptorSet::FileDescriptorSet(::google::protobuf::Arena* arena)
  1355. : ::google::protobuf::Message(),
  1356. _internal_metadata_(arena),
  1357. file_(arena) {
  1358. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_FileDescriptorSet.base);
  1359. SharedCtor();
  1360. RegisterArenaDtor(arena);
  1361. // @@protoc_insertion_point(arena_constructor:google.protobuf.FileDescriptorSet)
  1362. }
  1363. FileDescriptorSet::FileDescriptorSet(const FileDescriptorSet& from)
  1364. : ::google::protobuf::Message(),
  1365. _internal_metadata_(NULL),
  1366. _has_bits_(from._has_bits_),
  1367. file_(from.file_) {
  1368. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1369. // @@protoc_insertion_point(copy_constructor:google.protobuf.FileDescriptorSet)
  1370. }
  1371. void FileDescriptorSet::SharedCtor() {
  1372. }
  1373. FileDescriptorSet::~FileDescriptorSet() {
  1374. // @@protoc_insertion_point(destructor:google.protobuf.FileDescriptorSet)
  1375. SharedDtor();
  1376. }
  1377. void FileDescriptorSet::SharedDtor() {
  1378. GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
  1379. }
  1380. void FileDescriptorSet::ArenaDtor(void* object) {
  1381. FileDescriptorSet* _this = reinterpret_cast< FileDescriptorSet* >(object);
  1382. (void)_this;
  1383. }
  1384. void FileDescriptorSet::RegisterArenaDtor(::google::protobuf::Arena* arena) {
  1385. }
  1386. void FileDescriptorSet::SetCachedSize(int size) const {
  1387. _cached_size_.Set(size);
  1388. }
  1389. const ::google::protobuf::Descriptor* FileDescriptorSet::descriptor() {
  1390. ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::protobuf_AssignDescriptorsOnce();
  1391. return ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  1392. }
  1393. const FileDescriptorSet& FileDescriptorSet::default_instance() {
  1394. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_FileDescriptorSet.base);
  1395. return *internal_default_instance();
  1396. }
  1397. void FileDescriptorSet::Clear() {
  1398. // @@protoc_insertion_point(message_clear_start:google.protobuf.FileDescriptorSet)
  1399. ::google::protobuf::uint32 cached_has_bits = 0;
  1400. // Prevent compiler warnings about cached_has_bits being unused
  1401. (void) cached_has_bits;
  1402. file_.Clear();
  1403. _has_bits_.Clear();
  1404. _internal_metadata_.Clear();
  1405. }
  1406. bool FileDescriptorSet::MergePartialFromCodedStream(
  1407. ::google::protobuf::io::CodedInputStream* input) {
  1408. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  1409. ::google::protobuf::uint32 tag;
  1410. // @@protoc_insertion_point(parse_start:google.protobuf.FileDescriptorSet)
  1411. for (;;) {
  1412. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  1413. tag = p.first;
  1414. if (!p.second) goto handle_unusual;
  1415. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1416. // repeated .google.protobuf.FileDescriptorProto file = 1;
  1417. case 1: {
  1418. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1419. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  1420. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1421. input, add_file()));
  1422. } else {
  1423. goto handle_unusual;
  1424. }
  1425. break;
  1426. }
  1427. default: {
  1428. handle_unusual:
  1429. if (tag == 0) {
  1430. goto success;
  1431. }
  1432. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1433. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1434. break;
  1435. }
  1436. }
  1437. }
  1438. success:
  1439. // @@protoc_insertion_point(parse_success:google.protobuf.FileDescriptorSet)
  1440. return true;
  1441. failure:
  1442. // @@protoc_insertion_point(parse_failure:google.protobuf.FileDescriptorSet)
  1443. return false;
  1444. #undef DO_
  1445. }
  1446. void FileDescriptorSet::SerializeWithCachedSizes(
  1447. ::google::protobuf::io::CodedOutputStream* output) const {
  1448. // @@protoc_insertion_point(serialize_start:google.protobuf.FileDescriptorSet)
  1449. ::google::protobuf::uint32 cached_has_bits = 0;
  1450. (void) cached_has_bits;
  1451. // repeated .google.protobuf.FileDescriptorProto file = 1;
  1452. for (unsigned int i = 0,
  1453. n = static_cast<unsigned int>(this->file_size()); i < n; i++) {
  1454. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1455. 1,
  1456. this->file(static_cast<int>(i)),
  1457. output);
  1458. }
  1459. if (_internal_metadata_.have_unknown_fields()) {
  1460. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1461. _internal_metadata_.unknown_fields(), output);
  1462. }
  1463. // @@protoc_insertion_point(serialize_end:google.protobuf.FileDescriptorSet)
  1464. }
  1465. ::google::protobuf::uint8* FileDescriptorSet::InternalSerializeWithCachedSizesToArray(
  1466. bool deterministic, ::google::protobuf::uint8* target) const {
  1467. (void)deterministic; // Unused
  1468. // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FileDescriptorSet)
  1469. ::google::protobuf::uint32 cached_has_bits = 0;
  1470. (void) cached_has_bits;
  1471. // repeated .google.protobuf.FileDescriptorProto file = 1;
  1472. for (unsigned int i = 0,
  1473. n = static_cast<unsigned int>(this->file_size()); i < n; i++) {
  1474. target = ::google::protobuf::internal::WireFormatLite::
  1475. InternalWriteMessageToArray(
  1476. 1, this->file(static_cast<int>(i)), deterministic, target);
  1477. }
  1478. if (_internal_metadata_.have_unknown_fields()) {
  1479. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1480. _internal_metadata_.unknown_fields(), target);
  1481. }
  1482. // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FileDescriptorSet)
  1483. return target;
  1484. }
  1485. size_t FileDescriptorSet::ByteSizeLong() const {
  1486. // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FileDescriptorSet)
  1487. size_t total_size = 0;
  1488. if (_internal_metadata_.have_unknown_fields()) {
  1489. total_size +=
  1490. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1491. _internal_metadata_.unknown_fields());
  1492. }
  1493. // repeated .google.protobuf.FileDescriptorProto file = 1;
  1494. {
  1495. unsigned int count = static_cast<unsigned int>(this->file_size());
  1496. total_size += 1UL * count;
  1497. for (unsigned int i = 0; i < count; i++) {
  1498. total_size +=
  1499. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1500. this->file(static_cast<int>(i)));
  1501. }
  1502. }
  1503. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1504. SetCachedSize(cached_size);
  1505. return total_size;
  1506. }
  1507. void FileDescriptorSet::MergeFrom(const ::google::protobuf::Message& from) {
  1508. // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.FileDescriptorSet)
  1509. GOOGLE_DCHECK_NE(&from, this);
  1510. const FileDescriptorSet* source =
  1511. ::google::protobuf::internal::DynamicCastToGenerated<const FileDescriptorSet>(
  1512. &from);
  1513. if (source == NULL) {
  1514. // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.FileDescriptorSet)
  1515. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1516. } else {
  1517. // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.FileDescriptorSet)
  1518. MergeFrom(*source);
  1519. }
  1520. }
  1521. void FileDescriptorSet::MergeFrom(const FileDescriptorSet& from) {
  1522. // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.FileDescriptorSet)
  1523. GOOGLE_DCHECK_NE(&from, this);
  1524. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1525. ::google::protobuf::uint32 cached_has_bits = 0;
  1526. (void) cached_has_bits;
  1527. file_.MergeFrom(from.file_);
  1528. }
  1529. void FileDescriptorSet::CopyFrom(const ::google::protobuf::Message& from) {
  1530. // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.FileDescriptorSet)
  1531. if (&from == this) return;
  1532. Clear();
  1533. MergeFrom(from);
  1534. }
  1535. void FileDescriptorSet::CopyFrom(const FileDescriptorSet& from) {
  1536. // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.FileDescriptorSet)
  1537. if (&from == this) return;
  1538. Clear();
  1539. MergeFrom(from);
  1540. }
  1541. bool FileDescriptorSet::IsInitialized() const {
  1542. if (!::google::protobuf::internal::AllAreInitialized(this->file())) return false;
  1543. return true;
  1544. }
  1545. void FileDescriptorSet::Swap(FileDescriptorSet* other) {
  1546. if (other == this) return;
  1547. if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
  1548. InternalSwap(other);
  1549. } else {
  1550. FileDescriptorSet* temp = New(GetArenaNoVirtual());
  1551. temp->MergeFrom(*other);
  1552. other->CopyFrom(*this);
  1553. InternalSwap(temp);
  1554. if (GetArenaNoVirtual() == NULL) {
  1555. delete temp;
  1556. }
  1557. }
  1558. }
  1559. void FileDescriptorSet::UnsafeArenaSwap(FileDescriptorSet* other) {
  1560. if (other == this) return;
  1561. GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
  1562. InternalSwap(other);
  1563. }
  1564. void FileDescriptorSet::InternalSwap(FileDescriptorSet* other) {
  1565. using std::swap;
  1566. CastToBase(&file_)->InternalSwap(CastToBase(&other->file_));
  1567. swap(_has_bits_[0], other->_has_bits_[0]);
  1568. _internal_metadata_.Swap(&other->_internal_metadata_);
  1569. }
  1570. ::google::protobuf::Metadata FileDescriptorSet::GetMetadata() const {
  1571. protobuf_google_2fprotobuf_2fdescriptor_2eproto::protobuf_AssignDescriptorsOnce();
  1572. return ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::file_level_metadata[kIndexInFileMessages];
  1573. }
  1574. // ===================================================================
  1575. void FileDescriptorProto::InitAsDefaultInstance() {
  1576. ::google::protobuf::_FileDescriptorProto_default_instance_._instance.get_mutable()->options_ = const_cast< ::google::protobuf::FileOptions*>(
  1577. ::google::protobuf::FileOptions::internal_default_instance());
  1578. ::google::protobuf::_FileDescriptorProto_default_instance_._instance.get_mutable()->source_code_info_ = const_cast< ::google::protobuf::SourceCodeInfo*>(
  1579. ::google::protobuf::SourceCodeInfo::internal_default_instance());
  1580. }
  1581. void FileDescriptorProto::unsafe_arena_set_allocated_options(
  1582. ::google::protobuf::FileOptions* options) {
  1583. if (GetArenaNoVirtual() == NULL) {
  1584. delete options_;
  1585. }
  1586. options_ = options;
  1587. if (options) {
  1588. set_has_options();
  1589. } else {
  1590. clear_has_options();
  1591. }
  1592. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FileDescriptorProto.options)
  1593. }
  1594. void FileDescriptorProto::unsafe_arena_set_allocated_source_code_info(
  1595. ::google::protobuf::SourceCodeInfo* source_code_info) {
  1596. if (GetArenaNoVirtual() == NULL) {
  1597. delete source_code_info_;
  1598. }
  1599. source_code_info_ = source_code_info;
  1600. if (source_code_info) {
  1601. set_has_source_code_info();
  1602. } else {
  1603. clear_has_source_code_info();
  1604. }
  1605. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FileDescriptorProto.source_code_info)
  1606. }
  1607. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1608. const int FileDescriptorProto::kNameFieldNumber;
  1609. const int FileDescriptorProto::kPackageFieldNumber;
  1610. const int FileDescriptorProto::kDependencyFieldNumber;
  1611. const int FileDescriptorProto::kPublicDependencyFieldNumber;
  1612. const int FileDescriptorProto::kWeakDependencyFieldNumber;
  1613. const int FileDescriptorProto::kMessageTypeFieldNumber;
  1614. const int FileDescriptorProto::kEnumTypeFieldNumber;
  1615. const int FileDescriptorProto::kServiceFieldNumber;
  1616. const int FileDescriptorProto::kExtensionFieldNumber;
  1617. const int FileDescriptorProto::kOptionsFieldNumber;
  1618. const int FileDescriptorProto::kSourceCodeInfoFieldNumber;
  1619. const int FileDescriptorProto::kSyntaxFieldNumber;
  1620. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1621. FileDescriptorProto::FileDescriptorProto()
  1622. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1623. ::google::protobuf::internal::InitSCC(
  1624. &protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_FileDescriptorProto.base);
  1625. SharedCtor();
  1626. // @@protoc_insertion_point(constructor:google.protobuf.FileDescriptorProto)
  1627. }
  1628. FileDescriptorProto::FileDescriptorProto(::google::protobuf::Arena* arena)
  1629. : ::google::protobuf::Message(),
  1630. _internal_metadata_(arena),
  1631. dependency_(arena),
  1632. message_type_(arena),
  1633. enum_type_(arena),
  1634. service_(arena),
  1635. extension_(arena),
  1636. public_dependency_(arena),
  1637. weak_dependency_(arena) {
  1638. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_FileDescriptorProto.base);
  1639. SharedCtor();
  1640. RegisterArenaDtor(arena);
  1641. // @@protoc_insertion_point(arena_constructor:google.protobuf.FileDescriptorProto)
  1642. }
  1643. FileDescriptorProto::FileDescriptorProto(const FileDescriptorProto& from)
  1644. : ::google::protobuf::Message(),
  1645. _internal_metadata_(NULL),
  1646. _has_bits_(from._has_bits_),
  1647. dependency_(from.dependency_),
  1648. message_type_(from.message_type_),
  1649. enum_type_(from.enum_type_),
  1650. service_(from.service_),
  1651. extension_(from.extension_),
  1652. public_dependency_(from.public_dependency_),
  1653. weak_dependency_(from.weak_dependency_) {
  1654. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1655. name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1656. if (from.has_name()) {
  1657. name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name(),
  1658. GetArenaNoVirtual());
  1659. }
  1660. package_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1661. if (from.has_package()) {
  1662. package_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.package(),
  1663. GetArenaNoVirtual());
  1664. }
  1665. syntax_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1666. if (from.has_syntax()) {
  1667. syntax_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.syntax(),
  1668. GetArenaNoVirtual());
  1669. }
  1670. if (from.has_options()) {
  1671. options_ = new ::google::protobuf::FileOptions(*from.options_);
  1672. } else {
  1673. options_ = NULL;
  1674. }
  1675. if (from.has_source_code_info()) {
  1676. source_code_info_ = new ::google::protobuf::SourceCodeInfo(*from.source_code_info_);
  1677. } else {
  1678. source_code_info_ = NULL;
  1679. }
  1680. // @@protoc_insertion_point(copy_constructor:google.protobuf.FileDescriptorProto)
  1681. }
  1682. void FileDescriptorProto::SharedCtor() {
  1683. name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1684. package_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1685. syntax_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1686. ::memset(&options_, 0, static_cast<size_t>(
  1687. reinterpret_cast<char*>(&source_code_info_) -
  1688. reinterpret_cast<char*>(&options_)) + sizeof(source_code_info_));
  1689. }
  1690. FileDescriptorProto::~FileDescriptorProto() {
  1691. // @@protoc_insertion_point(destructor:google.protobuf.FileDescriptorProto)
  1692. SharedDtor();
  1693. }
  1694. void FileDescriptorProto::SharedDtor() {
  1695. GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
  1696. name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1697. package_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1698. syntax_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1699. if (this != internal_default_instance()) delete options_;
  1700. if (this != internal_default_instance()) delete source_code_info_;
  1701. }
  1702. void FileDescriptorProto::ArenaDtor(void* object) {
  1703. FileDescriptorProto* _this = reinterpret_cast< FileDescriptorProto* >(object);
  1704. (void)_this;
  1705. }
  1706. void FileDescriptorProto::RegisterArenaDtor(::google::protobuf::Arena* arena) {
  1707. }
  1708. void FileDescriptorProto::SetCachedSize(int size) const {
  1709. _cached_size_.Set(size);
  1710. }
  1711. const ::google::protobuf::Descriptor* FileDescriptorProto::descriptor() {
  1712. ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::protobuf_AssignDescriptorsOnce();
  1713. return ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  1714. }
  1715. const FileDescriptorProto& FileDescriptorProto::default_instance() {
  1716. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_FileDescriptorProto.base);
  1717. return *internal_default_instance();
  1718. }
  1719. void FileDescriptorProto::Clear() {
  1720. // @@protoc_insertion_point(message_clear_start:google.protobuf.FileDescriptorProto)
  1721. ::google::protobuf::uint32 cached_has_bits = 0;
  1722. // Prevent compiler warnings about cached_has_bits being unused
  1723. (void) cached_has_bits;
  1724. dependency_.Clear();
  1725. message_type_.Clear();
  1726. enum_type_.Clear();
  1727. service_.Clear();
  1728. extension_.Clear();
  1729. public_dependency_.Clear();
  1730. weak_dependency_.Clear();
  1731. cached_has_bits = _has_bits_[0];
  1732. if (cached_has_bits & 31u) {
  1733. if (cached_has_bits & 0x00000001u) {
  1734. name_.ClearNonDefaultToEmpty();
  1735. }
  1736. if (cached_has_bits & 0x00000002u) {
  1737. package_.ClearNonDefaultToEmpty();
  1738. }
  1739. if (cached_has_bits & 0x00000004u) {
  1740. syntax_.ClearNonDefaultToEmpty();
  1741. }
  1742. if (cached_has_bits & 0x00000008u) {
  1743. GOOGLE_DCHECK(options_ != NULL);
  1744. options_->Clear();
  1745. }
  1746. if (cached_has_bits & 0x00000010u) {
  1747. GOOGLE_DCHECK(source_code_info_ != NULL);
  1748. source_code_info_->Clear();
  1749. }
  1750. }
  1751. _has_bits_.Clear();
  1752. _internal_metadata_.Clear();
  1753. }
  1754. bool FileDescriptorProto::MergePartialFromCodedStream(
  1755. ::google::protobuf::io::CodedInputStream* input) {
  1756. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  1757. ::google::protobuf::uint32 tag;
  1758. // @@protoc_insertion_point(parse_start:google.protobuf.FileDescriptorProto)
  1759. for (;;) {
  1760. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  1761. tag = p.first;
  1762. if (!p.second) goto handle_unusual;
  1763. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1764. // optional string name = 1;
  1765. case 1: {
  1766. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1767. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  1768. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  1769. input, this->mutable_name()));
  1770. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1771. this->name().data(), static_cast<int>(this->name().length()),
  1772. ::google::protobuf::internal::WireFormat::PARSE,
  1773. "google.protobuf.FileDescriptorProto.name");
  1774. } else {
  1775. goto handle_unusual;
  1776. }
  1777. break;
  1778. }
  1779. // optional string package = 2;
  1780. case 2: {
  1781. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1782. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  1783. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  1784. input, this->mutable_package()));
  1785. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1786. this->package().data(), static_cast<int>(this->package().length()),
  1787. ::google::protobuf::internal::WireFormat::PARSE,
  1788. "google.protobuf.FileDescriptorProto.package");
  1789. } else {
  1790. goto handle_unusual;
  1791. }
  1792. break;
  1793. }
  1794. // repeated string dependency = 3;
  1795. case 3: {
  1796. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1797. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  1798. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  1799. input, this->add_dependency()));
  1800. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1801. this->dependency(this->dependency_size() - 1).data(),
  1802. static_cast<int>(this->dependency(this->dependency_size() - 1).length()),
  1803. ::google::protobuf::internal::WireFormat::PARSE,
  1804. "google.protobuf.FileDescriptorProto.dependency");
  1805. } else {
  1806. goto handle_unusual;
  1807. }
  1808. break;
  1809. }
  1810. // repeated .google.protobuf.DescriptorProto message_type = 4;
  1811. case 4: {
  1812. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1813. static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
  1814. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1815. input, add_message_type()));
  1816. } else {
  1817. goto handle_unusual;
  1818. }
  1819. break;
  1820. }
  1821. // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
  1822. case 5: {
  1823. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1824. static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
  1825. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1826. input, add_enum_type()));
  1827. } else {
  1828. goto handle_unusual;
  1829. }
  1830. break;
  1831. }
  1832. // repeated .google.protobuf.ServiceDescriptorProto service = 6;
  1833. case 6: {
  1834. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1835. static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
  1836. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1837. input, add_service()));
  1838. } else {
  1839. goto handle_unusual;
  1840. }
  1841. break;
  1842. }
  1843. // repeated .google.protobuf.FieldDescriptorProto extension = 7;
  1844. case 7: {
  1845. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1846. static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
  1847. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1848. input, add_extension()));
  1849. } else {
  1850. goto handle_unusual;
  1851. }
  1852. break;
  1853. }
  1854. // optional .google.protobuf.FileOptions options = 8;
  1855. case 8: {
  1856. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1857. static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
  1858. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1859. input, mutable_options()));
  1860. } else {
  1861. goto handle_unusual;
  1862. }
  1863. break;
  1864. }
  1865. // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
  1866. case 9: {
  1867. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1868. static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) {
  1869. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1870. input, mutable_source_code_info()));
  1871. } else {
  1872. goto handle_unusual;
  1873. }
  1874. break;
  1875. }
  1876. // repeated int32 public_dependency = 10;
  1877. case 10: {
  1878. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1879. static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) {
  1880. DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
  1881. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1882. 1, 80u, input, this->mutable_public_dependency())));
  1883. } else if (
  1884. static_cast< ::google::protobuf::uint8>(tag) ==
  1885. static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) {
  1886. DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
  1887. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1888. input, this->mutable_public_dependency())));
  1889. } else {
  1890. goto handle_unusual;
  1891. }
  1892. break;
  1893. }
  1894. // repeated int32 weak_dependency = 11;
  1895. case 11: {
  1896. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1897. static_cast< ::google::protobuf::uint8>(88u /* 88 & 0xFF */)) {
  1898. DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
  1899. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1900. 1, 88u, input, this->mutable_weak_dependency())));
  1901. } else if (
  1902. static_cast< ::google::protobuf::uint8>(tag) ==
  1903. static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) {
  1904. DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
  1905. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1906. input, this->mutable_weak_dependency())));
  1907. } else {
  1908. goto handle_unusual;
  1909. }
  1910. break;
  1911. }
  1912. // optional string syntax = 12;
  1913. case 12: {
  1914. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1915. static_cast< ::google::protobuf::uint8>(98u /* 98 & 0xFF */)) {
  1916. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  1917. input, this->mutable_syntax()));
  1918. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1919. this->syntax().data(), static_cast<int>(this->syntax().length()),
  1920. ::google::protobuf::internal::WireFormat::PARSE,
  1921. "google.protobuf.FileDescriptorProto.syntax");
  1922. } else {
  1923. goto handle_unusual;
  1924. }
  1925. break;
  1926. }
  1927. default: {
  1928. handle_unusual:
  1929. if (tag == 0) {
  1930. goto success;
  1931. }
  1932. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1933. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1934. break;
  1935. }
  1936. }
  1937. }
  1938. success:
  1939. // @@protoc_insertion_point(parse_success:google.protobuf.FileDescriptorProto)
  1940. return true;
  1941. failure:
  1942. // @@protoc_insertion_point(parse_failure:google.protobuf.FileDescriptorProto)
  1943. return false;
  1944. #undef DO_
  1945. }
  1946. void FileDescriptorProto::SerializeWithCachedSizes(
  1947. ::google::protobuf::io::CodedOutputStream* output) const {
  1948. // @@protoc_insertion_point(serialize_start:google.protobuf.FileDescriptorProto)
  1949. ::google::protobuf::uint32 cached_has_bits = 0;
  1950. (void) cached_has_bits;
  1951. cached_has_bits = _has_bits_[0];
  1952. // optional string name = 1;
  1953. if (cached_has_bits & 0x00000001u) {
  1954. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1955. this->name().data(), static_cast<int>(this->name().length()),
  1956. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1957. "google.protobuf.FileDescriptorProto.name");
  1958. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  1959. 1, this->name(), output);
  1960. }
  1961. // optional string package = 2;
  1962. if (cached_has_bits & 0x00000002u) {
  1963. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1964. this->package().data(), static_cast<int>(this->package().length()),
  1965. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1966. "google.protobuf.FileDescriptorProto.package");
  1967. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  1968. 2, this->package(), output);
  1969. }
  1970. // repeated string dependency = 3;
  1971. for (int i = 0, n = this->dependency_size(); i < n; i++) {
  1972. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1973. this->dependency(i).data(), static_cast<int>(this->dependency(i).length()),
  1974. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1975. "google.protobuf.FileDescriptorProto.dependency");
  1976. ::google::protobuf::internal::WireFormatLite::WriteString(
  1977. 3, this->dependency(i), output);
  1978. }
  1979. // repeated .google.protobuf.DescriptorProto message_type = 4;
  1980. for (unsigned int i = 0,
  1981. n = static_cast<unsigned int>(this->message_type_size()); i < n; i++) {
  1982. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1983. 4,
  1984. this->message_type(static_cast<int>(i)),
  1985. output);
  1986. }
  1987. // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
  1988. for (unsigned int i = 0,
  1989. n = static_cast<unsigned int>(this->enum_type_size()); i < n; i++) {
  1990. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1991. 5,
  1992. this->enum_type(static_cast<int>(i)),
  1993. output);
  1994. }
  1995. // repeated .google.protobuf.ServiceDescriptorProto service = 6;
  1996. for (unsigned int i = 0,
  1997. n = static_cast<unsigned int>(this->service_size()); i < n; i++) {
  1998. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1999. 6,
  2000. this->service(static_cast<int>(i)),
  2001. output);
  2002. }
  2003. // repeated .google.protobuf.FieldDescriptorProto extension = 7;
  2004. for (unsigned int i = 0,
  2005. n = static_cast<unsigned int>(this->extension_size()); i < n; i++) {
  2006. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2007. 7,
  2008. this->extension(static_cast<int>(i)),
  2009. output);
  2010. }
  2011. // optional .google.protobuf.FileOptions options = 8;
  2012. if (cached_has_bits & 0x00000008u) {
  2013. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2014. 8, this->_internal_options(), output);
  2015. }
  2016. // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
  2017. if (cached_has_bits & 0x00000010u) {
  2018. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2019. 9, this->_internal_source_code_info(), output);
  2020. }
  2021. // repeated int32 public_dependency = 10;
  2022. for (int i = 0, n = this->public_dependency_size(); i < n; i++) {
  2023. ::google::protobuf::internal::WireFormatLite::WriteInt32(
  2024. 10, this->public_dependency(i), output);
  2025. }
  2026. // repeated int32 weak_dependency = 11;
  2027. for (int i = 0, n = this->weak_dependency_size(); i < n; i++) {
  2028. ::google::protobuf::internal::WireFormatLite::WriteInt32(
  2029. 11, this->weak_dependency(i), output);
  2030. }
  2031. // optional string syntax = 12;
  2032. if (cached_has_bits & 0x00000004u) {
  2033. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2034. this->syntax().data(), static_cast<int>(this->syntax().length()),
  2035. ::google::protobuf::internal::WireFormat::SERIALIZE,
  2036. "google.protobuf.FileDescriptorProto.syntax");
  2037. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  2038. 12, this->syntax(), output);
  2039. }
  2040. if (_internal_metadata_.have_unknown_fields()) {
  2041. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2042. _internal_metadata_.unknown_fields(), output);
  2043. }
  2044. // @@protoc_insertion_point(serialize_end:google.protobuf.FileDescriptorProto)
  2045. }
  2046. ::google::protobuf::uint8* FileDescriptorProto::InternalSerializeWithCachedSizesToArray(
  2047. bool deterministic, ::google::protobuf::uint8* target) const {
  2048. (void)deterministic; // Unused
  2049. // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FileDescriptorProto)
  2050. ::google::protobuf::uint32 cached_has_bits = 0;
  2051. (void) cached_has_bits;
  2052. cached_has_bits = _has_bits_[0];
  2053. // optional string name = 1;
  2054. if (cached_has_bits & 0x00000001u) {
  2055. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2056. this->name().data(), static_cast<int>(this->name().length()),
  2057. ::google::protobuf::internal::WireFormat::SERIALIZE,
  2058. "google.protobuf.FileDescriptorProto.name");
  2059. target =
  2060. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  2061. 1, this->name(), target);
  2062. }
  2063. // optional string package = 2;
  2064. if (cached_has_bits & 0x00000002u) {
  2065. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2066. this->package().data(), static_cast<int>(this->package().length()),
  2067. ::google::protobuf::internal::WireFormat::SERIALIZE,
  2068. "google.protobuf.FileDescriptorProto.package");
  2069. target =
  2070. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  2071. 2, this->package(), target);
  2072. }
  2073. // repeated string dependency = 3;
  2074. for (int i = 0, n = this->dependency_size(); i < n; i++) {
  2075. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2076. this->dependency(i).data(), static_cast<int>(this->dependency(i).length()),
  2077. ::google::protobuf::internal::WireFormat::SERIALIZE,
  2078. "google.protobuf.FileDescriptorProto.dependency");
  2079. target = ::google::protobuf::internal::WireFormatLite::
  2080. WriteStringToArray(3, this->dependency(i), target);
  2081. }
  2082. // repeated .google.protobuf.DescriptorProto message_type = 4;
  2083. for (unsigned int i = 0,
  2084. n = static_cast<unsigned int>(this->message_type_size()); i < n; i++) {
  2085. target = ::google::protobuf::internal::WireFormatLite::
  2086. InternalWriteMessageToArray(
  2087. 4, this->message_type(static_cast<int>(i)), deterministic, target);
  2088. }
  2089. // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
  2090. for (unsigned int i = 0,
  2091. n = static_cast<unsigned int>(this->enum_type_size()); i < n; i++) {
  2092. target = ::google::protobuf::internal::WireFormatLite::
  2093. InternalWriteMessageToArray(
  2094. 5, this->enum_type(static_cast<int>(i)), deterministic, target);
  2095. }
  2096. // repeated .google.protobuf.ServiceDescriptorProto service = 6;
  2097. for (unsigned int i = 0,
  2098. n = static_cast<unsigned int>(this->service_size()); i < n; i++) {
  2099. target = ::google::protobuf::internal::WireFormatLite::
  2100. InternalWriteMessageToArray(
  2101. 6, this->service(static_cast<int>(i)), deterministic, target);
  2102. }
  2103. // repeated .google.protobuf.FieldDescriptorProto extension = 7;
  2104. for (unsigned int i = 0,
  2105. n = static_cast<unsigned int>(this->extension_size()); i < n; i++) {
  2106. target = ::google::protobuf::internal::WireFormatLite::
  2107. InternalWriteMessageToArray(
  2108. 7, this->extension(static_cast<int>(i)), deterministic, target);
  2109. }
  2110. // optional .google.protobuf.FileOptions options = 8;
  2111. if (cached_has_bits & 0x00000008u) {
  2112. target = ::google::protobuf::internal::WireFormatLite::
  2113. InternalWriteMessageToArray(
  2114. 8, this->_internal_options(), deterministic, target);
  2115. }
  2116. // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
  2117. if (cached_has_bits & 0x00000010u) {
  2118. target = ::google::protobuf::internal::WireFormatLite::
  2119. InternalWriteMessageToArray(
  2120. 9, this->_internal_source_code_info(), deterministic, target);
  2121. }
  2122. // repeated int32 public_dependency = 10;
  2123. target = ::google::protobuf::internal::WireFormatLite::
  2124. WriteInt32ToArray(10, this->public_dependency_, target);
  2125. // repeated int32 weak_dependency = 11;
  2126. target = ::google::protobuf::internal::WireFormatLite::
  2127. WriteInt32ToArray(11, this->weak_dependency_, target);
  2128. // optional string syntax = 12;
  2129. if (cached_has_bits & 0x00000004u) {
  2130. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2131. this->syntax().data(), static_cast<int>(this->syntax().length()),
  2132. ::google::protobuf::internal::WireFormat::SERIALIZE,
  2133. "google.protobuf.FileDescriptorProto.syntax");
  2134. target =
  2135. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  2136. 12, this->syntax(), target);
  2137. }
  2138. if (_internal_metadata_.have_unknown_fields()) {
  2139. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2140. _internal_metadata_.unknown_fields(), target);
  2141. }
  2142. // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FileDescriptorProto)
  2143. return target;
  2144. }
  2145. size_t FileDescriptorProto::ByteSizeLong() const {
  2146. // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FileDescriptorProto)
  2147. size_t total_size = 0;
  2148. if (_internal_metadata_.have_unknown_fields()) {
  2149. total_size +=
  2150. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  2151. _internal_metadata_.unknown_fields());
  2152. }
  2153. // repeated string dependency = 3;
  2154. total_size += 1 *
  2155. ::google::protobuf::internal::FromIntSize(this->dependency_size());
  2156. for (int i = 0, n = this->dependency_size(); i < n; i++) {
  2157. total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
  2158. this->dependency(i));
  2159. }
  2160. // repeated .google.protobuf.DescriptorProto message_type = 4;
  2161. {
  2162. unsigned int count = static_cast<unsigned int>(this->message_type_size());
  2163. total_size += 1UL * count;
  2164. for (unsigned int i = 0; i < count; i++) {
  2165. total_size +=
  2166. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2167. this->message_type(static_cast<int>(i)));
  2168. }
  2169. }
  2170. // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
  2171. {
  2172. unsigned int count = static_cast<unsigned int>(this->enum_type_size());
  2173. total_size += 1UL * count;
  2174. for (unsigned int i = 0; i < count; i++) {
  2175. total_size +=
  2176. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2177. this->enum_type(static_cast<int>(i)));
  2178. }
  2179. }
  2180. // repeated .google.protobuf.ServiceDescriptorProto service = 6;
  2181. {
  2182. unsigned int count = static_cast<unsigned int>(this->service_size());
  2183. total_size += 1UL * count;
  2184. for (unsigned int i = 0; i < count; i++) {
  2185. total_size +=
  2186. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2187. this->service(static_cast<int>(i)));
  2188. }
  2189. }
  2190. // repeated .google.protobuf.FieldDescriptorProto extension = 7;
  2191. {
  2192. unsigned int count = static_cast<unsigned int>(this->extension_size());
  2193. total_size += 1UL * count;
  2194. for (unsigned int i = 0; i < count; i++) {
  2195. total_size +=
  2196. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2197. this->extension(static_cast<int>(i)));
  2198. }
  2199. }
  2200. // repeated int32 public_dependency = 10;
  2201. {
  2202. size_t data_size = ::google::protobuf::internal::WireFormatLite::
  2203. Int32Size(this->public_dependency_);
  2204. total_size += 1 *
  2205. ::google::protobuf::internal::FromIntSize(this->public_dependency_size());
  2206. total_size += data_size;
  2207. }
  2208. // repeated int32 weak_dependency = 11;
  2209. {
  2210. size_t data_size = ::google::protobuf::internal::WireFormatLite::
  2211. Int32Size(this->weak_dependency_);
  2212. total_size += 1 *
  2213. ::google::protobuf::internal::FromIntSize(this->weak_dependency_size());
  2214. total_size += data_size;
  2215. }
  2216. if (_has_bits_[0 / 32] & 31u) {
  2217. // optional string name = 1;
  2218. if (has_name()) {
  2219. total_size += 1 +
  2220. ::google::protobuf::internal::WireFormatLite::StringSize(
  2221. this->name());
  2222. }
  2223. // optional string package = 2;
  2224. if (has_package()) {
  2225. total_size += 1 +
  2226. ::google::protobuf::internal::WireFormatLite::StringSize(
  2227. this->package());
  2228. }
  2229. // optional string syntax = 12;
  2230. if (has_syntax()) {
  2231. total_size += 1 +
  2232. ::google::protobuf::internal::WireFormatLite::StringSize(
  2233. this->syntax());
  2234. }
  2235. // optional .google.protobuf.FileOptions options = 8;
  2236. if (has_options()) {
  2237. total_size += 1 +
  2238. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2239. *options_);
  2240. }
  2241. // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
  2242. if (has_source_code_info()) {
  2243. total_size += 1 +
  2244. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2245. *source_code_info_);
  2246. }
  2247. }
  2248. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  2249. SetCachedSize(cached_size);
  2250. return total_size;
  2251. }
  2252. void FileDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
  2253. // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.FileDescriptorProto)
  2254. GOOGLE_DCHECK_NE(&from, this);
  2255. const FileDescriptorProto* source =
  2256. ::google::protobuf::internal::DynamicCastToGenerated<const FileDescriptorProto>(
  2257. &from);
  2258. if (source == NULL) {
  2259. // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.FileDescriptorProto)
  2260. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  2261. } else {
  2262. // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.FileDescriptorProto)
  2263. MergeFrom(*source);
  2264. }
  2265. }
  2266. void FileDescriptorProto::MergeFrom(const FileDescriptorProto& from) {
  2267. // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.FileDescriptorProto)
  2268. GOOGLE_DCHECK_NE(&from, this);
  2269. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2270. ::google::protobuf::uint32 cached_has_bits = 0;
  2271. (void) cached_has_bits;
  2272. dependency_.MergeFrom(from.dependency_);
  2273. message_type_.MergeFrom(from.message_type_);
  2274. enum_type_.MergeFrom(from.enum_type_);
  2275. service_.MergeFrom(from.service_);
  2276. extension_.MergeFrom(from.extension_);
  2277. public_dependency_.MergeFrom(from.public_dependency_);
  2278. weak_dependency_.MergeFrom(from.weak_dependency_);
  2279. cached_has_bits = from._has_bits_[0];
  2280. if (cached_has_bits & 31u) {
  2281. if (cached_has_bits & 0x00000001u) {
  2282. set_name(from.name());
  2283. }
  2284. if (cached_has_bits & 0x00000002u) {
  2285. set_package(from.package());
  2286. }
  2287. if (cached_has_bits & 0x00000004u) {
  2288. set_syntax(from.syntax());
  2289. }
  2290. if (cached_has_bits & 0x00000008u) {
  2291. mutable_options()->::google::protobuf::FileOptions::MergeFrom(from.options());
  2292. }
  2293. if (cached_has_bits & 0x00000010u) {
  2294. mutable_source_code_info()->::google::protobuf::SourceCodeInfo::MergeFrom(from.source_code_info());
  2295. }
  2296. }
  2297. }
  2298. void FileDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
  2299. // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.FileDescriptorProto)
  2300. if (&from == this) return;
  2301. Clear();
  2302. MergeFrom(from);
  2303. }
  2304. void FileDescriptorProto::CopyFrom(const FileDescriptorProto& from) {
  2305. // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.FileDescriptorProto)
  2306. if (&from == this) return;
  2307. Clear();
  2308. MergeFrom(from);
  2309. }
  2310. bool FileDescriptorProto::IsInitialized() const {
  2311. if (!::google::protobuf::internal::AllAreInitialized(this->message_type())) return false;
  2312. if (!::google::protobuf::internal::AllAreInitialized(this->enum_type())) return false;
  2313. if (!::google::protobuf::internal::AllAreInitialized(this->service())) return false;
  2314. if (!::google::protobuf::internal::AllAreInitialized(this->extension())) return false;
  2315. if (has_options()) {
  2316. if (!this->options_->IsInitialized()) return false;
  2317. }
  2318. return true;
  2319. }
  2320. void FileDescriptorProto::Swap(FileDescriptorProto* other) {
  2321. if (other == this) return;
  2322. if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
  2323. InternalSwap(other);
  2324. } else {
  2325. FileDescriptorProto* temp = New(GetArenaNoVirtual());
  2326. temp->MergeFrom(*other);
  2327. other->CopyFrom(*this);
  2328. InternalSwap(temp);
  2329. if (GetArenaNoVirtual() == NULL) {
  2330. delete temp;
  2331. }
  2332. }
  2333. }
  2334. void FileDescriptorProto::UnsafeArenaSwap(FileDescriptorProto* other) {
  2335. if (other == this) return;
  2336. GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
  2337. InternalSwap(other);
  2338. }
  2339. void FileDescriptorProto::InternalSwap(FileDescriptorProto* other) {
  2340. using std::swap;
  2341. dependency_.InternalSwap(CastToBase(&other->dependency_));
  2342. CastToBase(&message_type_)->InternalSwap(CastToBase(&other->message_type_));
  2343. CastToBase(&enum_type_)->InternalSwap(CastToBase(&other->enum_type_));
  2344. CastToBase(&service_)->InternalSwap(CastToBase(&other->service_));
  2345. CastToBase(&extension_)->InternalSwap(CastToBase(&other->extension_));
  2346. public_dependency_.InternalSwap(&other->public_dependency_);
  2347. weak_dependency_.InternalSwap(&other->weak_dependency_);
  2348. name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  2349. GetArenaNoVirtual());
  2350. package_.Swap(&other->package_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  2351. GetArenaNoVirtual());
  2352. syntax_.Swap(&other->syntax_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  2353. GetArenaNoVirtual());
  2354. swap(options_, other->options_);
  2355. swap(source_code_info_, other->source_code_info_);
  2356. swap(_has_bits_[0], other->_has_bits_[0]);
  2357. _internal_metadata_.Swap(&other->_internal_metadata_);
  2358. }
  2359. ::google::protobuf::Metadata FileDescriptorProto::GetMetadata() const {
  2360. protobuf_google_2fprotobuf_2fdescriptor_2eproto::protobuf_AssignDescriptorsOnce();
  2361. return ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::file_level_metadata[kIndexInFileMessages];
  2362. }
  2363. // ===================================================================
  2364. void DescriptorProto_ExtensionRange::InitAsDefaultInstance() {
  2365. ::google::protobuf::_DescriptorProto_ExtensionRange_default_instance_._instance.get_mutable()->options_ = const_cast< ::google::protobuf::ExtensionRangeOptions*>(
  2366. ::google::protobuf::ExtensionRangeOptions::internal_default_instance());
  2367. }
  2368. void DescriptorProto_ExtensionRange::unsafe_arena_set_allocated_options(
  2369. ::google::protobuf::ExtensionRangeOptions* options) {
  2370. if (GetArenaNoVirtual() == NULL) {
  2371. delete options_;
  2372. }
  2373. options_ = options;
  2374. if (options) {
  2375. set_has_options();
  2376. } else {
  2377. clear_has_options();
  2378. }
  2379. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.DescriptorProto.ExtensionRange.options)
  2380. }
  2381. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  2382. const int DescriptorProto_ExtensionRange::kStartFieldNumber;
  2383. const int DescriptorProto_ExtensionRange::kEndFieldNumber;
  2384. const int DescriptorProto_ExtensionRange::kOptionsFieldNumber;
  2385. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  2386. DescriptorProto_ExtensionRange::DescriptorProto_ExtensionRange()
  2387. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  2388. ::google::protobuf::internal::InitSCC(
  2389. &protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_DescriptorProto_ExtensionRange.base);
  2390. SharedCtor();
  2391. // @@protoc_insertion_point(constructor:google.protobuf.DescriptorProto.ExtensionRange)
  2392. }
  2393. DescriptorProto_ExtensionRange::DescriptorProto_ExtensionRange(::google::protobuf::Arena* arena)
  2394. : ::google::protobuf::Message(),
  2395. _internal_metadata_(arena) {
  2396. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_DescriptorProto_ExtensionRange.base);
  2397. SharedCtor();
  2398. RegisterArenaDtor(arena);
  2399. // @@protoc_insertion_point(arena_constructor:google.protobuf.DescriptorProto.ExtensionRange)
  2400. }
  2401. DescriptorProto_ExtensionRange::DescriptorProto_ExtensionRange(const DescriptorProto_ExtensionRange& from)
  2402. : ::google::protobuf::Message(),
  2403. _internal_metadata_(NULL),
  2404. _has_bits_(from._has_bits_) {
  2405. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2406. if (from.has_options()) {
  2407. options_ = new ::google::protobuf::ExtensionRangeOptions(*from.options_);
  2408. } else {
  2409. options_ = NULL;
  2410. }
  2411. ::memcpy(&start_, &from.start_,
  2412. static_cast<size_t>(reinterpret_cast<char*>(&end_) -
  2413. reinterpret_cast<char*>(&start_)) + sizeof(end_));
  2414. // @@protoc_insertion_point(copy_constructor:google.protobuf.DescriptorProto.ExtensionRange)
  2415. }
  2416. void DescriptorProto_ExtensionRange::SharedCtor() {
  2417. ::memset(&options_, 0, static_cast<size_t>(
  2418. reinterpret_cast<char*>(&end_) -
  2419. reinterpret_cast<char*>(&options_)) + sizeof(end_));
  2420. }
  2421. DescriptorProto_ExtensionRange::~DescriptorProto_ExtensionRange() {
  2422. // @@protoc_insertion_point(destructor:google.protobuf.DescriptorProto.ExtensionRange)
  2423. SharedDtor();
  2424. }
  2425. void DescriptorProto_ExtensionRange::SharedDtor() {
  2426. GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
  2427. if (this != internal_default_instance()) delete options_;
  2428. }
  2429. void DescriptorProto_ExtensionRange::ArenaDtor(void* object) {
  2430. DescriptorProto_ExtensionRange* _this = reinterpret_cast< DescriptorProto_ExtensionRange* >(object);
  2431. (void)_this;
  2432. }
  2433. void DescriptorProto_ExtensionRange::RegisterArenaDtor(::google::protobuf::Arena* arena) {
  2434. }
  2435. void DescriptorProto_ExtensionRange::SetCachedSize(int size) const {
  2436. _cached_size_.Set(size);
  2437. }
  2438. const ::google::protobuf::Descriptor* DescriptorProto_ExtensionRange::descriptor() {
  2439. ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::protobuf_AssignDescriptorsOnce();
  2440. return ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  2441. }
  2442. const DescriptorProto_ExtensionRange& DescriptorProto_ExtensionRange::default_instance() {
  2443. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_DescriptorProto_ExtensionRange.base);
  2444. return *internal_default_instance();
  2445. }
  2446. void DescriptorProto_ExtensionRange::Clear() {
  2447. // @@protoc_insertion_point(message_clear_start:google.protobuf.DescriptorProto.ExtensionRange)
  2448. ::google::protobuf::uint32 cached_has_bits = 0;
  2449. // Prevent compiler warnings about cached_has_bits being unused
  2450. (void) cached_has_bits;
  2451. cached_has_bits = _has_bits_[0];
  2452. if (cached_has_bits & 0x00000001u) {
  2453. GOOGLE_DCHECK(options_ != NULL);
  2454. options_->Clear();
  2455. }
  2456. if (cached_has_bits & 6u) {
  2457. ::memset(&start_, 0, static_cast<size_t>(
  2458. reinterpret_cast<char*>(&end_) -
  2459. reinterpret_cast<char*>(&start_)) + sizeof(end_));
  2460. }
  2461. _has_bits_.Clear();
  2462. _internal_metadata_.Clear();
  2463. }
  2464. bool DescriptorProto_ExtensionRange::MergePartialFromCodedStream(
  2465. ::google::protobuf::io::CodedInputStream* input) {
  2466. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  2467. ::google::protobuf::uint32 tag;
  2468. // @@protoc_insertion_point(parse_start:google.protobuf.DescriptorProto.ExtensionRange)
  2469. for (;;) {
  2470. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  2471. tag = p.first;
  2472. if (!p.second) goto handle_unusual;
  2473. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2474. // optional int32 start = 1;
  2475. case 1: {
  2476. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2477. static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
  2478. set_has_start();
  2479. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2480. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2481. input, &start_)));
  2482. } else {
  2483. goto handle_unusual;
  2484. }
  2485. break;
  2486. }
  2487. // optional int32 end = 2;
  2488. case 2: {
  2489. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2490. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  2491. set_has_end();
  2492. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2493. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2494. input, &end_)));
  2495. } else {
  2496. goto handle_unusual;
  2497. }
  2498. break;
  2499. }
  2500. // optional .google.protobuf.ExtensionRangeOptions options = 3;
  2501. case 3: {
  2502. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2503. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  2504. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  2505. input, mutable_options()));
  2506. } else {
  2507. goto handle_unusual;
  2508. }
  2509. break;
  2510. }
  2511. default: {
  2512. handle_unusual:
  2513. if (tag == 0) {
  2514. goto success;
  2515. }
  2516. DO_(::google::protobuf::internal::WireFormat::SkipField(
  2517. input, tag, _internal_metadata_.mutable_unknown_fields()));
  2518. break;
  2519. }
  2520. }
  2521. }
  2522. success:
  2523. // @@protoc_insertion_point(parse_success:google.protobuf.DescriptorProto.ExtensionRange)
  2524. return true;
  2525. failure:
  2526. // @@protoc_insertion_point(parse_failure:google.protobuf.DescriptorProto.ExtensionRange)
  2527. return false;
  2528. #undef DO_
  2529. }
  2530. void DescriptorProto_ExtensionRange::SerializeWithCachedSizes(
  2531. ::google::protobuf::io::CodedOutputStream* output) const {
  2532. // @@protoc_insertion_point(serialize_start:google.protobuf.DescriptorProto.ExtensionRange)
  2533. ::google::protobuf::uint32 cached_has_bits = 0;
  2534. (void) cached_has_bits;
  2535. cached_has_bits = _has_bits_[0];
  2536. // optional int32 start = 1;
  2537. if (cached_has_bits & 0x00000002u) {
  2538. ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->start(), output);
  2539. }
  2540. // optional int32 end = 2;
  2541. if (cached_has_bits & 0x00000004u) {
  2542. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->end(), output);
  2543. }
  2544. // optional .google.protobuf.ExtensionRangeOptions options = 3;
  2545. if (cached_has_bits & 0x00000001u) {
  2546. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2547. 3, this->_internal_options(), output);
  2548. }
  2549. if (_internal_metadata_.have_unknown_fields()) {
  2550. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2551. _internal_metadata_.unknown_fields(), output);
  2552. }
  2553. // @@protoc_insertion_point(serialize_end:google.protobuf.DescriptorProto.ExtensionRange)
  2554. }
  2555. ::google::protobuf::uint8* DescriptorProto_ExtensionRange::InternalSerializeWithCachedSizesToArray(
  2556. bool deterministic, ::google::protobuf::uint8* target) const {
  2557. (void)deterministic; // Unused
  2558. // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.DescriptorProto.ExtensionRange)
  2559. ::google::protobuf::uint32 cached_has_bits = 0;
  2560. (void) cached_has_bits;
  2561. cached_has_bits = _has_bits_[0];
  2562. // optional int32 start = 1;
  2563. if (cached_has_bits & 0x00000002u) {
  2564. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->start(), target);
  2565. }
  2566. // optional int32 end = 2;
  2567. if (cached_has_bits & 0x00000004u) {
  2568. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->end(), target);
  2569. }
  2570. // optional .google.protobuf.ExtensionRangeOptions options = 3;
  2571. if (cached_has_bits & 0x00000001u) {
  2572. target = ::google::protobuf::internal::WireFormatLite::
  2573. InternalWriteMessageToArray(
  2574. 3, this->_internal_options(), deterministic, target);
  2575. }
  2576. if (_internal_metadata_.have_unknown_fields()) {
  2577. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2578. _internal_metadata_.unknown_fields(), target);
  2579. }
  2580. // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.DescriptorProto.ExtensionRange)
  2581. return target;
  2582. }
  2583. size_t DescriptorProto_ExtensionRange::ByteSizeLong() const {
  2584. // @@protoc_insertion_point(message_byte_size_start:google.protobuf.DescriptorProto.ExtensionRange)
  2585. size_t total_size = 0;
  2586. if (_internal_metadata_.have_unknown_fields()) {
  2587. total_size +=
  2588. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  2589. _internal_metadata_.unknown_fields());
  2590. }
  2591. if (_has_bits_[0 / 32] & 7u) {
  2592. // optional .google.protobuf.ExtensionRangeOptions options = 3;
  2593. if (has_options()) {
  2594. total_size += 1 +
  2595. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2596. *options_);
  2597. }
  2598. // optional int32 start = 1;
  2599. if (has_start()) {
  2600. total_size += 1 +
  2601. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2602. this->start());
  2603. }
  2604. // optional int32 end = 2;
  2605. if (has_end()) {
  2606. total_size += 1 +
  2607. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2608. this->end());
  2609. }
  2610. }
  2611. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  2612. SetCachedSize(cached_size);
  2613. return total_size;
  2614. }
  2615. void DescriptorProto_ExtensionRange::MergeFrom(const ::google::protobuf::Message& from) {
  2616. // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.DescriptorProto.ExtensionRange)
  2617. GOOGLE_DCHECK_NE(&from, this);
  2618. const DescriptorProto_ExtensionRange* source =
  2619. ::google::protobuf::internal::DynamicCastToGenerated<const DescriptorProto_ExtensionRange>(
  2620. &from);
  2621. if (source == NULL) {
  2622. // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.DescriptorProto.ExtensionRange)
  2623. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  2624. } else {
  2625. // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.DescriptorProto.ExtensionRange)
  2626. MergeFrom(*source);
  2627. }
  2628. }
  2629. void DescriptorProto_ExtensionRange::MergeFrom(const DescriptorProto_ExtensionRange& from) {
  2630. // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.DescriptorProto.ExtensionRange)
  2631. GOOGLE_DCHECK_NE(&from, this);
  2632. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2633. ::google::protobuf::uint32 cached_has_bits = 0;
  2634. (void) cached_has_bits;
  2635. cached_has_bits = from._has_bits_[0];
  2636. if (cached_has_bits & 7u) {
  2637. if (cached_has_bits & 0x00000001u) {
  2638. mutable_options()->::google::protobuf::ExtensionRangeOptions::MergeFrom(from.options());
  2639. }
  2640. if (cached_has_bits & 0x00000002u) {
  2641. start_ = from.start_;
  2642. }
  2643. if (cached_has_bits & 0x00000004u) {
  2644. end_ = from.end_;
  2645. }
  2646. _has_bits_[0] |= cached_has_bits;
  2647. }
  2648. }
  2649. void DescriptorProto_ExtensionRange::CopyFrom(const ::google::protobuf::Message& from) {
  2650. // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.DescriptorProto.ExtensionRange)
  2651. if (&from == this) return;
  2652. Clear();
  2653. MergeFrom(from);
  2654. }
  2655. void DescriptorProto_ExtensionRange::CopyFrom(const DescriptorProto_ExtensionRange& from) {
  2656. // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.DescriptorProto.ExtensionRange)
  2657. if (&from == this) return;
  2658. Clear();
  2659. MergeFrom(from);
  2660. }
  2661. bool DescriptorProto_ExtensionRange::IsInitialized() const {
  2662. if (has_options()) {
  2663. if (!this->options_->IsInitialized()) return false;
  2664. }
  2665. return true;
  2666. }
  2667. void DescriptorProto_ExtensionRange::Swap(DescriptorProto_ExtensionRange* other) {
  2668. if (other == this) return;
  2669. if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
  2670. InternalSwap(other);
  2671. } else {
  2672. DescriptorProto_ExtensionRange* temp = New(GetArenaNoVirtual());
  2673. temp->MergeFrom(*other);
  2674. other->CopyFrom(*this);
  2675. InternalSwap(temp);
  2676. if (GetArenaNoVirtual() == NULL) {
  2677. delete temp;
  2678. }
  2679. }
  2680. }
  2681. void DescriptorProto_ExtensionRange::UnsafeArenaSwap(DescriptorProto_ExtensionRange* other) {
  2682. if (other == this) return;
  2683. GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
  2684. InternalSwap(other);
  2685. }
  2686. void DescriptorProto_ExtensionRange::InternalSwap(DescriptorProto_ExtensionRange* other) {
  2687. using std::swap;
  2688. swap(options_, other->options_);
  2689. swap(start_, other->start_);
  2690. swap(end_, other->end_);
  2691. swap(_has_bits_[0], other->_has_bits_[0]);
  2692. _internal_metadata_.Swap(&other->_internal_metadata_);
  2693. }
  2694. ::google::protobuf::Metadata DescriptorProto_ExtensionRange::GetMetadata() const {
  2695. protobuf_google_2fprotobuf_2fdescriptor_2eproto::protobuf_AssignDescriptorsOnce();
  2696. return ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::file_level_metadata[kIndexInFileMessages];
  2697. }
  2698. // ===================================================================
  2699. void DescriptorProto_ReservedRange::InitAsDefaultInstance() {
  2700. }
  2701. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  2702. const int DescriptorProto_ReservedRange::kStartFieldNumber;
  2703. const int DescriptorProto_ReservedRange::kEndFieldNumber;
  2704. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  2705. DescriptorProto_ReservedRange::DescriptorProto_ReservedRange()
  2706. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  2707. ::google::protobuf::internal::InitSCC(
  2708. &protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_DescriptorProto_ReservedRange.base);
  2709. SharedCtor();
  2710. // @@protoc_insertion_point(constructor:google.protobuf.DescriptorProto.ReservedRange)
  2711. }
  2712. DescriptorProto_ReservedRange::DescriptorProto_ReservedRange(::google::protobuf::Arena* arena)
  2713. : ::google::protobuf::Message(),
  2714. _internal_metadata_(arena) {
  2715. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_DescriptorProto_ReservedRange.base);
  2716. SharedCtor();
  2717. RegisterArenaDtor(arena);
  2718. // @@protoc_insertion_point(arena_constructor:google.protobuf.DescriptorProto.ReservedRange)
  2719. }
  2720. DescriptorProto_ReservedRange::DescriptorProto_ReservedRange(const DescriptorProto_ReservedRange& from)
  2721. : ::google::protobuf::Message(),
  2722. _internal_metadata_(NULL),
  2723. _has_bits_(from._has_bits_) {
  2724. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2725. ::memcpy(&start_, &from.start_,
  2726. static_cast<size_t>(reinterpret_cast<char*>(&end_) -
  2727. reinterpret_cast<char*>(&start_)) + sizeof(end_));
  2728. // @@protoc_insertion_point(copy_constructor:google.protobuf.DescriptorProto.ReservedRange)
  2729. }
  2730. void DescriptorProto_ReservedRange::SharedCtor() {
  2731. ::memset(&start_, 0, static_cast<size_t>(
  2732. reinterpret_cast<char*>(&end_) -
  2733. reinterpret_cast<char*>(&start_)) + sizeof(end_));
  2734. }
  2735. DescriptorProto_ReservedRange::~DescriptorProto_ReservedRange() {
  2736. // @@protoc_insertion_point(destructor:google.protobuf.DescriptorProto.ReservedRange)
  2737. SharedDtor();
  2738. }
  2739. void DescriptorProto_ReservedRange::SharedDtor() {
  2740. GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
  2741. }
  2742. void DescriptorProto_ReservedRange::ArenaDtor(void* object) {
  2743. DescriptorProto_ReservedRange* _this = reinterpret_cast< DescriptorProto_ReservedRange* >(object);
  2744. (void)_this;
  2745. }
  2746. void DescriptorProto_ReservedRange::RegisterArenaDtor(::google::protobuf::Arena* arena) {
  2747. }
  2748. void DescriptorProto_ReservedRange::SetCachedSize(int size) const {
  2749. _cached_size_.Set(size);
  2750. }
  2751. const ::google::protobuf::Descriptor* DescriptorProto_ReservedRange::descriptor() {
  2752. ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::protobuf_AssignDescriptorsOnce();
  2753. return ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  2754. }
  2755. const DescriptorProto_ReservedRange& DescriptorProto_ReservedRange::default_instance() {
  2756. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_DescriptorProto_ReservedRange.base);
  2757. return *internal_default_instance();
  2758. }
  2759. void DescriptorProto_ReservedRange::Clear() {
  2760. // @@protoc_insertion_point(message_clear_start:google.protobuf.DescriptorProto.ReservedRange)
  2761. ::google::protobuf::uint32 cached_has_bits = 0;
  2762. // Prevent compiler warnings about cached_has_bits being unused
  2763. (void) cached_has_bits;
  2764. cached_has_bits = _has_bits_[0];
  2765. if (cached_has_bits & 3u) {
  2766. ::memset(&start_, 0, static_cast<size_t>(
  2767. reinterpret_cast<char*>(&end_) -
  2768. reinterpret_cast<char*>(&start_)) + sizeof(end_));
  2769. }
  2770. _has_bits_.Clear();
  2771. _internal_metadata_.Clear();
  2772. }
  2773. bool DescriptorProto_ReservedRange::MergePartialFromCodedStream(
  2774. ::google::protobuf::io::CodedInputStream* input) {
  2775. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  2776. ::google::protobuf::uint32 tag;
  2777. // @@protoc_insertion_point(parse_start:google.protobuf.DescriptorProto.ReservedRange)
  2778. for (;;) {
  2779. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  2780. tag = p.first;
  2781. if (!p.second) goto handle_unusual;
  2782. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2783. // optional int32 start = 1;
  2784. case 1: {
  2785. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2786. static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
  2787. set_has_start();
  2788. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2789. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2790. input, &start_)));
  2791. } else {
  2792. goto handle_unusual;
  2793. }
  2794. break;
  2795. }
  2796. // optional int32 end = 2;
  2797. case 2: {
  2798. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2799. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  2800. set_has_end();
  2801. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2802. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2803. input, &end_)));
  2804. } else {
  2805. goto handle_unusual;
  2806. }
  2807. break;
  2808. }
  2809. default: {
  2810. handle_unusual:
  2811. if (tag == 0) {
  2812. goto success;
  2813. }
  2814. DO_(::google::protobuf::internal::WireFormat::SkipField(
  2815. input, tag, _internal_metadata_.mutable_unknown_fields()));
  2816. break;
  2817. }
  2818. }
  2819. }
  2820. success:
  2821. // @@protoc_insertion_point(parse_success:google.protobuf.DescriptorProto.ReservedRange)
  2822. return true;
  2823. failure:
  2824. // @@protoc_insertion_point(parse_failure:google.protobuf.DescriptorProto.ReservedRange)
  2825. return false;
  2826. #undef DO_
  2827. }
  2828. void DescriptorProto_ReservedRange::SerializeWithCachedSizes(
  2829. ::google::protobuf::io::CodedOutputStream* output) const {
  2830. // @@protoc_insertion_point(serialize_start:google.protobuf.DescriptorProto.ReservedRange)
  2831. ::google::protobuf::uint32 cached_has_bits = 0;
  2832. (void) cached_has_bits;
  2833. cached_has_bits = _has_bits_[0];
  2834. // optional int32 start = 1;
  2835. if (cached_has_bits & 0x00000001u) {
  2836. ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->start(), output);
  2837. }
  2838. // optional int32 end = 2;
  2839. if (cached_has_bits & 0x00000002u) {
  2840. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->end(), output);
  2841. }
  2842. if (_internal_metadata_.have_unknown_fields()) {
  2843. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2844. _internal_metadata_.unknown_fields(), output);
  2845. }
  2846. // @@protoc_insertion_point(serialize_end:google.protobuf.DescriptorProto.ReservedRange)
  2847. }
  2848. ::google::protobuf::uint8* DescriptorProto_ReservedRange::InternalSerializeWithCachedSizesToArray(
  2849. bool deterministic, ::google::protobuf::uint8* target) const {
  2850. (void)deterministic; // Unused
  2851. // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.DescriptorProto.ReservedRange)
  2852. ::google::protobuf::uint32 cached_has_bits = 0;
  2853. (void) cached_has_bits;
  2854. cached_has_bits = _has_bits_[0];
  2855. // optional int32 start = 1;
  2856. if (cached_has_bits & 0x00000001u) {
  2857. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->start(), target);
  2858. }
  2859. // optional int32 end = 2;
  2860. if (cached_has_bits & 0x00000002u) {
  2861. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->end(), target);
  2862. }
  2863. if (_internal_metadata_.have_unknown_fields()) {
  2864. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2865. _internal_metadata_.unknown_fields(), target);
  2866. }
  2867. // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.DescriptorProto.ReservedRange)
  2868. return target;
  2869. }
  2870. size_t DescriptorProto_ReservedRange::ByteSizeLong() const {
  2871. // @@protoc_insertion_point(message_byte_size_start:google.protobuf.DescriptorProto.ReservedRange)
  2872. size_t total_size = 0;
  2873. if (_internal_metadata_.have_unknown_fields()) {
  2874. total_size +=
  2875. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  2876. _internal_metadata_.unknown_fields());
  2877. }
  2878. if (_has_bits_[0 / 32] & 3u) {
  2879. // optional int32 start = 1;
  2880. if (has_start()) {
  2881. total_size += 1 +
  2882. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2883. this->start());
  2884. }
  2885. // optional int32 end = 2;
  2886. if (has_end()) {
  2887. total_size += 1 +
  2888. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2889. this->end());
  2890. }
  2891. }
  2892. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  2893. SetCachedSize(cached_size);
  2894. return total_size;
  2895. }
  2896. void DescriptorProto_ReservedRange::MergeFrom(const ::google::protobuf::Message& from) {
  2897. // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.DescriptorProto.ReservedRange)
  2898. GOOGLE_DCHECK_NE(&from, this);
  2899. const DescriptorProto_ReservedRange* source =
  2900. ::google::protobuf::internal::DynamicCastToGenerated<const DescriptorProto_ReservedRange>(
  2901. &from);
  2902. if (source == NULL) {
  2903. // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.DescriptorProto.ReservedRange)
  2904. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  2905. } else {
  2906. // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.DescriptorProto.ReservedRange)
  2907. MergeFrom(*source);
  2908. }
  2909. }
  2910. void DescriptorProto_ReservedRange::MergeFrom(const DescriptorProto_ReservedRange& from) {
  2911. // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.DescriptorProto.ReservedRange)
  2912. GOOGLE_DCHECK_NE(&from, this);
  2913. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2914. ::google::protobuf::uint32 cached_has_bits = 0;
  2915. (void) cached_has_bits;
  2916. cached_has_bits = from._has_bits_[0];
  2917. if (cached_has_bits & 3u) {
  2918. if (cached_has_bits & 0x00000001u) {
  2919. start_ = from.start_;
  2920. }
  2921. if (cached_has_bits & 0x00000002u) {
  2922. end_ = from.end_;
  2923. }
  2924. _has_bits_[0] |= cached_has_bits;
  2925. }
  2926. }
  2927. void DescriptorProto_ReservedRange::CopyFrom(const ::google::protobuf::Message& from) {
  2928. // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.DescriptorProto.ReservedRange)
  2929. if (&from == this) return;
  2930. Clear();
  2931. MergeFrom(from);
  2932. }
  2933. void DescriptorProto_ReservedRange::CopyFrom(const DescriptorProto_ReservedRange& from) {
  2934. // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.DescriptorProto.ReservedRange)
  2935. if (&from == this) return;
  2936. Clear();
  2937. MergeFrom(from);
  2938. }
  2939. bool DescriptorProto_ReservedRange::IsInitialized() const {
  2940. return true;
  2941. }
  2942. void DescriptorProto_ReservedRange::Swap(DescriptorProto_ReservedRange* other) {
  2943. if (other == this) return;
  2944. if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
  2945. InternalSwap(other);
  2946. } else {
  2947. DescriptorProto_ReservedRange* temp = New(GetArenaNoVirtual());
  2948. temp->MergeFrom(*other);
  2949. other->CopyFrom(*this);
  2950. InternalSwap(temp);
  2951. if (GetArenaNoVirtual() == NULL) {
  2952. delete temp;
  2953. }
  2954. }
  2955. }
  2956. void DescriptorProto_ReservedRange::UnsafeArenaSwap(DescriptorProto_ReservedRange* other) {
  2957. if (other == this) return;
  2958. GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
  2959. InternalSwap(other);
  2960. }
  2961. void DescriptorProto_ReservedRange::InternalSwap(DescriptorProto_ReservedRange* other) {
  2962. using std::swap;
  2963. swap(start_, other->start_);
  2964. swap(end_, other->end_);
  2965. swap(_has_bits_[0], other->_has_bits_[0]);
  2966. _internal_metadata_.Swap(&other->_internal_metadata_);
  2967. }
  2968. ::google::protobuf::Metadata DescriptorProto_ReservedRange::GetMetadata() const {
  2969. protobuf_google_2fprotobuf_2fdescriptor_2eproto::protobuf_AssignDescriptorsOnce();
  2970. return ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::file_level_metadata[kIndexInFileMessages];
  2971. }
  2972. // ===================================================================
  2973. void DescriptorProto::InitAsDefaultInstance() {
  2974. ::google::protobuf::_DescriptorProto_default_instance_._instance.get_mutable()->options_ = const_cast< ::google::protobuf::MessageOptions*>(
  2975. ::google::protobuf::MessageOptions::internal_default_instance());
  2976. }
  2977. void DescriptorProto::unsafe_arena_set_allocated_options(
  2978. ::google::protobuf::MessageOptions* options) {
  2979. if (GetArenaNoVirtual() == NULL) {
  2980. delete options_;
  2981. }
  2982. options_ = options;
  2983. if (options) {
  2984. set_has_options();
  2985. } else {
  2986. clear_has_options();
  2987. }
  2988. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.DescriptorProto.options)
  2989. }
  2990. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  2991. const int DescriptorProto::kNameFieldNumber;
  2992. const int DescriptorProto::kFieldFieldNumber;
  2993. const int DescriptorProto::kExtensionFieldNumber;
  2994. const int DescriptorProto::kNestedTypeFieldNumber;
  2995. const int DescriptorProto::kEnumTypeFieldNumber;
  2996. const int DescriptorProto::kExtensionRangeFieldNumber;
  2997. const int DescriptorProto::kOneofDeclFieldNumber;
  2998. const int DescriptorProto::kOptionsFieldNumber;
  2999. const int DescriptorProto::kReservedRangeFieldNumber;
  3000. const int DescriptorProto::kReservedNameFieldNumber;
  3001. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  3002. DescriptorProto::DescriptorProto()
  3003. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  3004. ::google::protobuf::internal::InitSCC(
  3005. &protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_DescriptorProto.base);
  3006. SharedCtor();
  3007. // @@protoc_insertion_point(constructor:google.protobuf.DescriptorProto)
  3008. }
  3009. DescriptorProto::DescriptorProto(::google::protobuf::Arena* arena)
  3010. : ::google::protobuf::Message(),
  3011. _internal_metadata_(arena),
  3012. field_(arena),
  3013. nested_type_(arena),
  3014. enum_type_(arena),
  3015. extension_range_(arena),
  3016. extension_(arena),
  3017. oneof_decl_(arena),
  3018. reserved_range_(arena),
  3019. reserved_name_(arena) {
  3020. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_DescriptorProto.base);
  3021. SharedCtor();
  3022. RegisterArenaDtor(arena);
  3023. // @@protoc_insertion_point(arena_constructor:google.protobuf.DescriptorProto)
  3024. }
  3025. DescriptorProto::DescriptorProto(const DescriptorProto& from)
  3026. : ::google::protobuf::Message(),
  3027. _internal_metadata_(NULL),
  3028. _has_bits_(from._has_bits_),
  3029. field_(from.field_),
  3030. nested_type_(from.nested_type_),
  3031. enum_type_(from.enum_type_),
  3032. extension_range_(from.extension_range_),
  3033. extension_(from.extension_),
  3034. oneof_decl_(from.oneof_decl_),
  3035. reserved_range_(from.reserved_range_),
  3036. reserved_name_(from.reserved_name_) {
  3037. _internal_metadata_.MergeFrom(from._internal_metadata_);
  3038. name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3039. if (from.has_name()) {
  3040. name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name(),
  3041. GetArenaNoVirtual());
  3042. }
  3043. if (from.has_options()) {
  3044. options_ = new ::google::protobuf::MessageOptions(*from.options_);
  3045. } else {
  3046. options_ = NULL;
  3047. }
  3048. // @@protoc_insertion_point(copy_constructor:google.protobuf.DescriptorProto)
  3049. }
  3050. void DescriptorProto::SharedCtor() {
  3051. name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3052. options_ = NULL;
  3053. }
  3054. DescriptorProto::~DescriptorProto() {
  3055. // @@protoc_insertion_point(destructor:google.protobuf.DescriptorProto)
  3056. SharedDtor();
  3057. }
  3058. void DescriptorProto::SharedDtor() {
  3059. GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
  3060. name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3061. if (this != internal_default_instance()) delete options_;
  3062. }
  3063. void DescriptorProto::ArenaDtor(void* object) {
  3064. DescriptorProto* _this = reinterpret_cast< DescriptorProto* >(object);
  3065. (void)_this;
  3066. }
  3067. void DescriptorProto::RegisterArenaDtor(::google::protobuf::Arena* arena) {
  3068. }
  3069. void DescriptorProto::SetCachedSize(int size) const {
  3070. _cached_size_.Set(size);
  3071. }
  3072. const ::google::protobuf::Descriptor* DescriptorProto::descriptor() {
  3073. ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::protobuf_AssignDescriptorsOnce();
  3074. return ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  3075. }
  3076. const DescriptorProto& DescriptorProto::default_instance() {
  3077. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_DescriptorProto.base);
  3078. return *internal_default_instance();
  3079. }
  3080. void DescriptorProto::Clear() {
  3081. // @@protoc_insertion_point(message_clear_start:google.protobuf.DescriptorProto)
  3082. ::google::protobuf::uint32 cached_has_bits = 0;
  3083. // Prevent compiler warnings about cached_has_bits being unused
  3084. (void) cached_has_bits;
  3085. field_.Clear();
  3086. nested_type_.Clear();
  3087. enum_type_.Clear();
  3088. extension_range_.Clear();
  3089. extension_.Clear();
  3090. oneof_decl_.Clear();
  3091. reserved_range_.Clear();
  3092. reserved_name_.Clear();
  3093. cached_has_bits = _has_bits_[0];
  3094. if (cached_has_bits & 3u) {
  3095. if (cached_has_bits & 0x00000001u) {
  3096. name_.ClearNonDefaultToEmpty();
  3097. }
  3098. if (cached_has_bits & 0x00000002u) {
  3099. GOOGLE_DCHECK(options_ != NULL);
  3100. options_->Clear();
  3101. }
  3102. }
  3103. _has_bits_.Clear();
  3104. _internal_metadata_.Clear();
  3105. }
  3106. bool DescriptorProto::MergePartialFromCodedStream(
  3107. ::google::protobuf::io::CodedInputStream* input) {
  3108. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  3109. ::google::protobuf::uint32 tag;
  3110. // @@protoc_insertion_point(parse_start:google.protobuf.DescriptorProto)
  3111. for (;;) {
  3112. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  3113. tag = p.first;
  3114. if (!p.second) goto handle_unusual;
  3115. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  3116. // optional string name = 1;
  3117. case 1: {
  3118. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3119. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  3120. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  3121. input, this->mutable_name()));
  3122. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  3123. this->name().data(), static_cast<int>(this->name().length()),
  3124. ::google::protobuf::internal::WireFormat::PARSE,
  3125. "google.protobuf.DescriptorProto.name");
  3126. } else {
  3127. goto handle_unusual;
  3128. }
  3129. break;
  3130. }
  3131. // repeated .google.protobuf.FieldDescriptorProto field = 2;
  3132. case 2: {
  3133. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3134. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  3135. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  3136. input, add_field()));
  3137. } else {
  3138. goto handle_unusual;
  3139. }
  3140. break;
  3141. }
  3142. // repeated .google.protobuf.DescriptorProto nested_type = 3;
  3143. case 3: {
  3144. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3145. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  3146. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  3147. input, add_nested_type()));
  3148. } else {
  3149. goto handle_unusual;
  3150. }
  3151. break;
  3152. }
  3153. // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
  3154. case 4: {
  3155. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3156. static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
  3157. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  3158. input, add_enum_type()));
  3159. } else {
  3160. goto handle_unusual;
  3161. }
  3162. break;
  3163. }
  3164. // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
  3165. case 5: {
  3166. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3167. static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
  3168. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  3169. input, add_extension_range()));
  3170. } else {
  3171. goto handle_unusual;
  3172. }
  3173. break;
  3174. }
  3175. // repeated .google.protobuf.FieldDescriptorProto extension = 6;
  3176. case 6: {
  3177. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3178. static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
  3179. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  3180. input, add_extension()));
  3181. } else {
  3182. goto handle_unusual;
  3183. }
  3184. break;
  3185. }
  3186. // optional .google.protobuf.MessageOptions options = 7;
  3187. case 7: {
  3188. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3189. static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
  3190. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  3191. input, mutable_options()));
  3192. } else {
  3193. goto handle_unusual;
  3194. }
  3195. break;
  3196. }
  3197. // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
  3198. case 8: {
  3199. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3200. static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
  3201. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  3202. input, add_oneof_decl()));
  3203. } else {
  3204. goto handle_unusual;
  3205. }
  3206. break;
  3207. }
  3208. // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
  3209. case 9: {
  3210. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3211. static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) {
  3212. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  3213. input, add_reserved_range()));
  3214. } else {
  3215. goto handle_unusual;
  3216. }
  3217. break;
  3218. }
  3219. // repeated string reserved_name = 10;
  3220. case 10: {
  3221. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3222. static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) {
  3223. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  3224. input, this->add_reserved_name()));
  3225. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  3226. this->reserved_name(this->reserved_name_size() - 1).data(),
  3227. static_cast<int>(this->reserved_name(this->reserved_name_size() - 1).length()),
  3228. ::google::protobuf::internal::WireFormat::PARSE,
  3229. "google.protobuf.DescriptorProto.reserved_name");
  3230. } else {
  3231. goto handle_unusual;
  3232. }
  3233. break;
  3234. }
  3235. default: {
  3236. handle_unusual:
  3237. if (tag == 0) {
  3238. goto success;
  3239. }
  3240. DO_(::google::protobuf::internal::WireFormat::SkipField(
  3241. input, tag, _internal_metadata_.mutable_unknown_fields()));
  3242. break;
  3243. }
  3244. }
  3245. }
  3246. success:
  3247. // @@protoc_insertion_point(parse_success:google.protobuf.DescriptorProto)
  3248. return true;
  3249. failure:
  3250. // @@protoc_insertion_point(parse_failure:google.protobuf.DescriptorProto)
  3251. return false;
  3252. #undef DO_
  3253. }
  3254. void DescriptorProto::SerializeWithCachedSizes(
  3255. ::google::protobuf::io::CodedOutputStream* output) const {
  3256. // @@protoc_insertion_point(serialize_start:google.protobuf.DescriptorProto)
  3257. ::google::protobuf::uint32 cached_has_bits = 0;
  3258. (void) cached_has_bits;
  3259. cached_has_bits = _has_bits_[0];
  3260. // optional string name = 1;
  3261. if (cached_has_bits & 0x00000001u) {
  3262. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  3263. this->name().data(), static_cast<int>(this->name().length()),
  3264. ::google::protobuf::internal::WireFormat::SERIALIZE,
  3265. "google.protobuf.DescriptorProto.name");
  3266. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  3267. 1, this->name(), output);
  3268. }
  3269. // repeated .google.protobuf.FieldDescriptorProto field = 2;
  3270. for (unsigned int i = 0,
  3271. n = static_cast<unsigned int>(this->field_size()); i < n; i++) {
  3272. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  3273. 2,
  3274. this->field(static_cast<int>(i)),
  3275. output);
  3276. }
  3277. // repeated .google.protobuf.DescriptorProto nested_type = 3;
  3278. for (unsigned int i = 0,
  3279. n = static_cast<unsigned int>(this->nested_type_size()); i < n; i++) {
  3280. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  3281. 3,
  3282. this->nested_type(static_cast<int>(i)),
  3283. output);
  3284. }
  3285. // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
  3286. for (unsigned int i = 0,
  3287. n = static_cast<unsigned int>(this->enum_type_size()); i < n; i++) {
  3288. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  3289. 4,
  3290. this->enum_type(static_cast<int>(i)),
  3291. output);
  3292. }
  3293. // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
  3294. for (unsigned int i = 0,
  3295. n = static_cast<unsigned int>(this->extension_range_size()); i < n; i++) {
  3296. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  3297. 5,
  3298. this->extension_range(static_cast<int>(i)),
  3299. output);
  3300. }
  3301. // repeated .google.protobuf.FieldDescriptorProto extension = 6;
  3302. for (unsigned int i = 0,
  3303. n = static_cast<unsigned int>(this->extension_size()); i < n; i++) {
  3304. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  3305. 6,
  3306. this->extension(static_cast<int>(i)),
  3307. output);
  3308. }
  3309. // optional .google.protobuf.MessageOptions options = 7;
  3310. if (cached_has_bits & 0x00000002u) {
  3311. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  3312. 7, this->_internal_options(), output);
  3313. }
  3314. // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
  3315. for (unsigned int i = 0,
  3316. n = static_cast<unsigned int>(this->oneof_decl_size()); i < n; i++) {
  3317. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  3318. 8,
  3319. this->oneof_decl(static_cast<int>(i)),
  3320. output);
  3321. }
  3322. // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
  3323. for (unsigned int i = 0,
  3324. n = static_cast<unsigned int>(this->reserved_range_size()); i < n; i++) {
  3325. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  3326. 9,
  3327. this->reserved_range(static_cast<int>(i)),
  3328. output);
  3329. }
  3330. // repeated string reserved_name = 10;
  3331. for (int i = 0, n = this->reserved_name_size(); i < n; i++) {
  3332. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  3333. this->reserved_name(i).data(), static_cast<int>(this->reserved_name(i).length()),
  3334. ::google::protobuf::internal::WireFormat::SERIALIZE,
  3335. "google.protobuf.DescriptorProto.reserved_name");
  3336. ::google::protobuf::internal::WireFormatLite::WriteString(
  3337. 10, this->reserved_name(i), output);
  3338. }
  3339. if (_internal_metadata_.have_unknown_fields()) {
  3340. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  3341. _internal_metadata_.unknown_fields(), output);
  3342. }
  3343. // @@protoc_insertion_point(serialize_end:google.protobuf.DescriptorProto)
  3344. }
  3345. ::google::protobuf::uint8* DescriptorProto::InternalSerializeWithCachedSizesToArray(
  3346. bool deterministic, ::google::protobuf::uint8* target) const {
  3347. (void)deterministic; // Unused
  3348. // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.DescriptorProto)
  3349. ::google::protobuf::uint32 cached_has_bits = 0;
  3350. (void) cached_has_bits;
  3351. cached_has_bits = _has_bits_[0];
  3352. // optional string name = 1;
  3353. if (cached_has_bits & 0x00000001u) {
  3354. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  3355. this->name().data(), static_cast<int>(this->name().length()),
  3356. ::google::protobuf::internal::WireFormat::SERIALIZE,
  3357. "google.protobuf.DescriptorProto.name");
  3358. target =
  3359. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  3360. 1, this->name(), target);
  3361. }
  3362. // repeated .google.protobuf.FieldDescriptorProto field = 2;
  3363. for (unsigned int i = 0,
  3364. n = static_cast<unsigned int>(this->field_size()); i < n; i++) {
  3365. target = ::google::protobuf::internal::WireFormatLite::
  3366. InternalWriteMessageToArray(
  3367. 2, this->field(static_cast<int>(i)), deterministic, target);
  3368. }
  3369. // repeated .google.protobuf.DescriptorProto nested_type = 3;
  3370. for (unsigned int i = 0,
  3371. n = static_cast<unsigned int>(this->nested_type_size()); i < n; i++) {
  3372. target = ::google::protobuf::internal::WireFormatLite::
  3373. InternalWriteMessageToArray(
  3374. 3, this->nested_type(static_cast<int>(i)), deterministic, target);
  3375. }
  3376. // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
  3377. for (unsigned int i = 0,
  3378. n = static_cast<unsigned int>(this->enum_type_size()); i < n; i++) {
  3379. target = ::google::protobuf::internal::WireFormatLite::
  3380. InternalWriteMessageToArray(
  3381. 4, this->enum_type(static_cast<int>(i)), deterministic, target);
  3382. }
  3383. // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
  3384. for (unsigned int i = 0,
  3385. n = static_cast<unsigned int>(this->extension_range_size()); i < n; i++) {
  3386. target = ::google::protobuf::internal::WireFormatLite::
  3387. InternalWriteMessageToArray(
  3388. 5, this->extension_range(static_cast<int>(i)), deterministic, target);
  3389. }
  3390. // repeated .google.protobuf.FieldDescriptorProto extension = 6;
  3391. for (unsigned int i = 0,
  3392. n = static_cast<unsigned int>(this->extension_size()); i < n; i++) {
  3393. target = ::google::protobuf::internal::WireFormatLite::
  3394. InternalWriteMessageToArray(
  3395. 6, this->extension(static_cast<int>(i)), deterministic, target);
  3396. }
  3397. // optional .google.protobuf.MessageOptions options = 7;
  3398. if (cached_has_bits & 0x00000002u) {
  3399. target = ::google::protobuf::internal::WireFormatLite::
  3400. InternalWriteMessageToArray(
  3401. 7, this->_internal_options(), deterministic, target);
  3402. }
  3403. // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
  3404. for (unsigned int i = 0,
  3405. n = static_cast<unsigned int>(this->oneof_decl_size()); i < n; i++) {
  3406. target = ::google::protobuf::internal::WireFormatLite::
  3407. InternalWriteMessageToArray(
  3408. 8, this->oneof_decl(static_cast<int>(i)), deterministic, target);
  3409. }
  3410. // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
  3411. for (unsigned int i = 0,
  3412. n = static_cast<unsigned int>(this->reserved_range_size()); i < n; i++) {
  3413. target = ::google::protobuf::internal::WireFormatLite::
  3414. InternalWriteMessageToArray(
  3415. 9, this->reserved_range(static_cast<int>(i)), deterministic, target);
  3416. }
  3417. // repeated string reserved_name = 10;
  3418. for (int i = 0, n = this->reserved_name_size(); i < n; i++) {
  3419. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  3420. this->reserved_name(i).data(), static_cast<int>(this->reserved_name(i).length()),
  3421. ::google::protobuf::internal::WireFormat::SERIALIZE,
  3422. "google.protobuf.DescriptorProto.reserved_name");
  3423. target = ::google::protobuf::internal::WireFormatLite::
  3424. WriteStringToArray(10, this->reserved_name(i), target);
  3425. }
  3426. if (_internal_metadata_.have_unknown_fields()) {
  3427. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  3428. _internal_metadata_.unknown_fields(), target);
  3429. }
  3430. // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.DescriptorProto)
  3431. return target;
  3432. }
  3433. size_t DescriptorProto::ByteSizeLong() const {
  3434. // @@protoc_insertion_point(message_byte_size_start:google.protobuf.DescriptorProto)
  3435. size_t total_size = 0;
  3436. if (_internal_metadata_.have_unknown_fields()) {
  3437. total_size +=
  3438. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  3439. _internal_metadata_.unknown_fields());
  3440. }
  3441. // repeated .google.protobuf.FieldDescriptorProto field = 2;
  3442. {
  3443. unsigned int count = static_cast<unsigned int>(this->field_size());
  3444. total_size += 1UL * count;
  3445. for (unsigned int i = 0; i < count; i++) {
  3446. total_size +=
  3447. ::google::protobuf::internal::WireFormatLite::MessageSize(
  3448. this->field(static_cast<int>(i)));
  3449. }
  3450. }
  3451. // repeated .google.protobuf.DescriptorProto nested_type = 3;
  3452. {
  3453. unsigned int count = static_cast<unsigned int>(this->nested_type_size());
  3454. total_size += 1UL * count;
  3455. for (unsigned int i = 0; i < count; i++) {
  3456. total_size +=
  3457. ::google::protobuf::internal::WireFormatLite::MessageSize(
  3458. this->nested_type(static_cast<int>(i)));
  3459. }
  3460. }
  3461. // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
  3462. {
  3463. unsigned int count = static_cast<unsigned int>(this->enum_type_size());
  3464. total_size += 1UL * count;
  3465. for (unsigned int i = 0; i < count; i++) {
  3466. total_size +=
  3467. ::google::protobuf::internal::WireFormatLite::MessageSize(
  3468. this->enum_type(static_cast<int>(i)));
  3469. }
  3470. }
  3471. // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
  3472. {
  3473. unsigned int count = static_cast<unsigned int>(this->extension_range_size());
  3474. total_size += 1UL * count;
  3475. for (unsigned int i = 0; i < count; i++) {
  3476. total_size +=
  3477. ::google::protobuf::internal::WireFormatLite::MessageSize(
  3478. this->extension_range(static_cast<int>(i)));
  3479. }
  3480. }
  3481. // repeated .google.protobuf.FieldDescriptorProto extension = 6;
  3482. {
  3483. unsigned int count = static_cast<unsigned int>(this->extension_size());
  3484. total_size += 1UL * count;
  3485. for (unsigned int i = 0; i < count; i++) {
  3486. total_size +=
  3487. ::google::protobuf::internal::WireFormatLite::MessageSize(
  3488. this->extension(static_cast<int>(i)));
  3489. }
  3490. }
  3491. // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
  3492. {
  3493. unsigned int count = static_cast<unsigned int>(this->oneof_decl_size());
  3494. total_size += 1UL * count;
  3495. for (unsigned int i = 0; i < count; i++) {
  3496. total_size +=
  3497. ::google::protobuf::internal::WireFormatLite::MessageSize(
  3498. this->oneof_decl(static_cast<int>(i)));
  3499. }
  3500. }
  3501. // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
  3502. {
  3503. unsigned int count = static_cast<unsigned int>(this->reserved_range_size());
  3504. total_size += 1UL * count;
  3505. for (unsigned int i = 0; i < count; i++) {
  3506. total_size +=
  3507. ::google::protobuf::internal::WireFormatLite::MessageSize(
  3508. this->reserved_range(static_cast<int>(i)));
  3509. }
  3510. }
  3511. // repeated string reserved_name = 10;
  3512. total_size += 1 *
  3513. ::google::protobuf::internal::FromIntSize(this->reserved_name_size());
  3514. for (int i = 0, n = this->reserved_name_size(); i < n; i++) {
  3515. total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
  3516. this->reserved_name(i));
  3517. }
  3518. if (_has_bits_[0 / 32] & 3u) {
  3519. // optional string name = 1;
  3520. if (has_name()) {
  3521. total_size += 1 +
  3522. ::google::protobuf::internal::WireFormatLite::StringSize(
  3523. this->name());
  3524. }
  3525. // optional .google.protobuf.MessageOptions options = 7;
  3526. if (has_options()) {
  3527. total_size += 1 +
  3528. ::google::protobuf::internal::WireFormatLite::MessageSize(
  3529. *options_);
  3530. }
  3531. }
  3532. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  3533. SetCachedSize(cached_size);
  3534. return total_size;
  3535. }
  3536. void DescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
  3537. // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.DescriptorProto)
  3538. GOOGLE_DCHECK_NE(&from, this);
  3539. const DescriptorProto* source =
  3540. ::google::protobuf::internal::DynamicCastToGenerated<const DescriptorProto>(
  3541. &from);
  3542. if (source == NULL) {
  3543. // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.DescriptorProto)
  3544. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  3545. } else {
  3546. // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.DescriptorProto)
  3547. MergeFrom(*source);
  3548. }
  3549. }
  3550. void DescriptorProto::MergeFrom(const DescriptorProto& from) {
  3551. // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.DescriptorProto)
  3552. GOOGLE_DCHECK_NE(&from, this);
  3553. _internal_metadata_.MergeFrom(from._internal_metadata_);
  3554. ::google::protobuf::uint32 cached_has_bits = 0;
  3555. (void) cached_has_bits;
  3556. field_.MergeFrom(from.field_);
  3557. nested_type_.MergeFrom(from.nested_type_);
  3558. enum_type_.MergeFrom(from.enum_type_);
  3559. extension_range_.MergeFrom(from.extension_range_);
  3560. extension_.MergeFrom(from.extension_);
  3561. oneof_decl_.MergeFrom(from.oneof_decl_);
  3562. reserved_range_.MergeFrom(from.reserved_range_);
  3563. reserved_name_.MergeFrom(from.reserved_name_);
  3564. cached_has_bits = from._has_bits_[0];
  3565. if (cached_has_bits & 3u) {
  3566. if (cached_has_bits & 0x00000001u) {
  3567. set_name(from.name());
  3568. }
  3569. if (cached_has_bits & 0x00000002u) {
  3570. mutable_options()->::google::protobuf::MessageOptions::MergeFrom(from.options());
  3571. }
  3572. }
  3573. }
  3574. void DescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
  3575. // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.DescriptorProto)
  3576. if (&from == this) return;
  3577. Clear();
  3578. MergeFrom(from);
  3579. }
  3580. void DescriptorProto::CopyFrom(const DescriptorProto& from) {
  3581. // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.DescriptorProto)
  3582. if (&from == this) return;
  3583. Clear();
  3584. MergeFrom(from);
  3585. }
  3586. bool DescriptorProto::IsInitialized() const {
  3587. if (!::google::protobuf::internal::AllAreInitialized(this->field())) return false;
  3588. if (!::google::protobuf::internal::AllAreInitialized(this->nested_type())) return false;
  3589. if (!::google::protobuf::internal::AllAreInitialized(this->enum_type())) return false;
  3590. if (!::google::protobuf::internal::AllAreInitialized(this->extension_range())) return false;
  3591. if (!::google::protobuf::internal::AllAreInitialized(this->extension())) return false;
  3592. if (!::google::protobuf::internal::AllAreInitialized(this->oneof_decl())) return false;
  3593. if (has_options()) {
  3594. if (!this->options_->IsInitialized()) return false;
  3595. }
  3596. return true;
  3597. }
  3598. void DescriptorProto::Swap(DescriptorProto* other) {
  3599. if (other == this) return;
  3600. if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
  3601. InternalSwap(other);
  3602. } else {
  3603. DescriptorProto* temp = New(GetArenaNoVirtual());
  3604. temp->MergeFrom(*other);
  3605. other->CopyFrom(*this);
  3606. InternalSwap(temp);
  3607. if (GetArenaNoVirtual() == NULL) {
  3608. delete temp;
  3609. }
  3610. }
  3611. }
  3612. void DescriptorProto::UnsafeArenaSwap(DescriptorProto* other) {
  3613. if (other == this) return;
  3614. GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
  3615. InternalSwap(other);
  3616. }
  3617. void DescriptorProto::InternalSwap(DescriptorProto* other) {
  3618. using std::swap;
  3619. CastToBase(&field_)->InternalSwap(CastToBase(&other->field_));
  3620. CastToBase(&nested_type_)->InternalSwap(CastToBase(&other->nested_type_));
  3621. CastToBase(&enum_type_)->InternalSwap(CastToBase(&other->enum_type_));
  3622. CastToBase(&extension_range_)->InternalSwap(CastToBase(&other->extension_range_));
  3623. CastToBase(&extension_)->InternalSwap(CastToBase(&other->extension_));
  3624. CastToBase(&oneof_decl_)->InternalSwap(CastToBase(&other->oneof_decl_));
  3625. CastToBase(&reserved_range_)->InternalSwap(CastToBase(&other->reserved_range_));
  3626. reserved_name_.InternalSwap(CastToBase(&other->reserved_name_));
  3627. name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  3628. GetArenaNoVirtual());
  3629. swap(options_, other->options_);
  3630. swap(_has_bits_[0], other->_has_bits_[0]);
  3631. _internal_metadata_.Swap(&other->_internal_metadata_);
  3632. }
  3633. ::google::protobuf::Metadata DescriptorProto::GetMetadata() const {
  3634. protobuf_google_2fprotobuf_2fdescriptor_2eproto::protobuf_AssignDescriptorsOnce();
  3635. return ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::file_level_metadata[kIndexInFileMessages];
  3636. }
  3637. // ===================================================================
  3638. void ExtensionRangeOptions::InitAsDefaultInstance() {
  3639. }
  3640. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  3641. const int ExtensionRangeOptions::kUninterpretedOptionFieldNumber;
  3642. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  3643. ExtensionRangeOptions::ExtensionRangeOptions()
  3644. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  3645. ::google::protobuf::internal::InitSCC(
  3646. &protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_ExtensionRangeOptions.base);
  3647. SharedCtor();
  3648. // @@protoc_insertion_point(constructor:google.protobuf.ExtensionRangeOptions)
  3649. }
  3650. ExtensionRangeOptions::ExtensionRangeOptions(::google::protobuf::Arena* arena)
  3651. : ::google::protobuf::Message(),
  3652. _extensions_(arena),
  3653. _internal_metadata_(arena),
  3654. uninterpreted_option_(arena) {
  3655. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_ExtensionRangeOptions.base);
  3656. SharedCtor();
  3657. RegisterArenaDtor(arena);
  3658. // @@protoc_insertion_point(arena_constructor:google.protobuf.ExtensionRangeOptions)
  3659. }
  3660. ExtensionRangeOptions::ExtensionRangeOptions(const ExtensionRangeOptions& from)
  3661. : ::google::protobuf::Message(),
  3662. _internal_metadata_(NULL),
  3663. _has_bits_(from._has_bits_),
  3664. uninterpreted_option_(from.uninterpreted_option_) {
  3665. _internal_metadata_.MergeFrom(from._internal_metadata_);
  3666. _extensions_.MergeFrom(from._extensions_);
  3667. // @@protoc_insertion_point(copy_constructor:google.protobuf.ExtensionRangeOptions)
  3668. }
  3669. void ExtensionRangeOptions::SharedCtor() {
  3670. }
  3671. ExtensionRangeOptions::~ExtensionRangeOptions() {
  3672. // @@protoc_insertion_point(destructor:google.protobuf.ExtensionRangeOptions)
  3673. SharedDtor();
  3674. }
  3675. void ExtensionRangeOptions::SharedDtor() {
  3676. GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
  3677. }
  3678. void ExtensionRangeOptions::ArenaDtor(void* object) {
  3679. ExtensionRangeOptions* _this = reinterpret_cast< ExtensionRangeOptions* >(object);
  3680. (void)_this;
  3681. }
  3682. void ExtensionRangeOptions::RegisterArenaDtor(::google::protobuf::Arena* arena) {
  3683. }
  3684. void ExtensionRangeOptions::SetCachedSize(int size) const {
  3685. _cached_size_.Set(size);
  3686. }
  3687. const ::google::protobuf::Descriptor* ExtensionRangeOptions::descriptor() {
  3688. ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::protobuf_AssignDescriptorsOnce();
  3689. return ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  3690. }
  3691. const ExtensionRangeOptions& ExtensionRangeOptions::default_instance() {
  3692. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_ExtensionRangeOptions.base);
  3693. return *internal_default_instance();
  3694. }
  3695. void ExtensionRangeOptions::Clear() {
  3696. // @@protoc_insertion_point(message_clear_start:google.protobuf.ExtensionRangeOptions)
  3697. ::google::protobuf::uint32 cached_has_bits = 0;
  3698. // Prevent compiler warnings about cached_has_bits being unused
  3699. (void) cached_has_bits;
  3700. _extensions_.Clear();
  3701. uninterpreted_option_.Clear();
  3702. _has_bits_.Clear();
  3703. _internal_metadata_.Clear();
  3704. }
  3705. bool ExtensionRangeOptions::MergePartialFromCodedStream(
  3706. ::google::protobuf::io::CodedInputStream* input) {
  3707. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  3708. ::google::protobuf::uint32 tag;
  3709. // @@protoc_insertion_point(parse_start:google.protobuf.ExtensionRangeOptions)
  3710. for (;;) {
  3711. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
  3712. tag = p.first;
  3713. if (!p.second) goto handle_unusual;
  3714. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  3715. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  3716. case 999: {
  3717. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3718. static_cast< ::google::protobuf::uint8>(58u /* 7994 & 0xFF */)) {
  3719. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  3720. input, add_uninterpreted_option()));
  3721. } else {
  3722. goto handle_unusual;
  3723. }
  3724. break;
  3725. }
  3726. default: {
  3727. handle_unusual:
  3728. if (tag == 0) {
  3729. goto success;
  3730. }
  3731. if ((8000u <= tag)) {
  3732. DO_(_extensions_.ParseField(tag, input,
  3733. internal_default_instance(),
  3734. _internal_metadata_.mutable_unknown_fields()));
  3735. continue;
  3736. }
  3737. DO_(::google::protobuf::internal::WireFormat::SkipField(
  3738. input, tag, _internal_metadata_.mutable_unknown_fields()));
  3739. break;
  3740. }
  3741. }
  3742. }
  3743. success:
  3744. // @@protoc_insertion_point(parse_success:google.protobuf.ExtensionRangeOptions)
  3745. return true;
  3746. failure:
  3747. // @@protoc_insertion_point(parse_failure:google.protobuf.ExtensionRangeOptions)
  3748. return false;
  3749. #undef DO_
  3750. }
  3751. void ExtensionRangeOptions::SerializeWithCachedSizes(
  3752. ::google::protobuf::io::CodedOutputStream* output) const {
  3753. // @@protoc_insertion_point(serialize_start:google.protobuf.ExtensionRangeOptions)
  3754. ::google::protobuf::uint32 cached_has_bits = 0;
  3755. (void) cached_has_bits;
  3756. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  3757. for (unsigned int i = 0,
  3758. n = static_cast<unsigned int>(this->uninterpreted_option_size()); i < n; i++) {
  3759. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  3760. 999,
  3761. this->uninterpreted_option(static_cast<int>(i)),
  3762. output);
  3763. }
  3764. // Extension range [1000, 536870912)
  3765. _extensions_.SerializeWithCachedSizes(
  3766. 1000, 536870912, output);
  3767. if (_internal_metadata_.have_unknown_fields()) {
  3768. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  3769. _internal_metadata_.unknown_fields(), output);
  3770. }
  3771. // @@protoc_insertion_point(serialize_end:google.protobuf.ExtensionRangeOptions)
  3772. }
  3773. ::google::protobuf::uint8* ExtensionRangeOptions::InternalSerializeWithCachedSizesToArray(
  3774. bool deterministic, ::google::protobuf::uint8* target) const {
  3775. (void)deterministic; // Unused
  3776. // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.ExtensionRangeOptions)
  3777. ::google::protobuf::uint32 cached_has_bits = 0;
  3778. (void) cached_has_bits;
  3779. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  3780. for (unsigned int i = 0,
  3781. n = static_cast<unsigned int>(this->uninterpreted_option_size()); i < n; i++) {
  3782. target = ::google::protobuf::internal::WireFormatLite::
  3783. InternalWriteMessageToArray(
  3784. 999, this->uninterpreted_option(static_cast<int>(i)), deterministic, target);
  3785. }
  3786. // Extension range [1000, 536870912)
  3787. target = _extensions_.InternalSerializeWithCachedSizesToArray(
  3788. 1000, 536870912, deterministic, target);
  3789. if (_internal_metadata_.have_unknown_fields()) {
  3790. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  3791. _internal_metadata_.unknown_fields(), target);
  3792. }
  3793. // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.ExtensionRangeOptions)
  3794. return target;
  3795. }
  3796. size_t ExtensionRangeOptions::ByteSizeLong() const {
  3797. // @@protoc_insertion_point(message_byte_size_start:google.protobuf.ExtensionRangeOptions)
  3798. size_t total_size = 0;
  3799. total_size += _extensions_.ByteSize();
  3800. if (_internal_metadata_.have_unknown_fields()) {
  3801. total_size +=
  3802. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  3803. _internal_metadata_.unknown_fields());
  3804. }
  3805. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  3806. {
  3807. unsigned int count = static_cast<unsigned int>(this->uninterpreted_option_size());
  3808. total_size += 2UL * count;
  3809. for (unsigned int i = 0; i < count; i++) {
  3810. total_size +=
  3811. ::google::protobuf::internal::WireFormatLite::MessageSize(
  3812. this->uninterpreted_option(static_cast<int>(i)));
  3813. }
  3814. }
  3815. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  3816. SetCachedSize(cached_size);
  3817. return total_size;
  3818. }
  3819. void ExtensionRangeOptions::MergeFrom(const ::google::protobuf::Message& from) {
  3820. // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.ExtensionRangeOptions)
  3821. GOOGLE_DCHECK_NE(&from, this);
  3822. const ExtensionRangeOptions* source =
  3823. ::google::protobuf::internal::DynamicCastToGenerated<const ExtensionRangeOptions>(
  3824. &from);
  3825. if (source == NULL) {
  3826. // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.ExtensionRangeOptions)
  3827. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  3828. } else {
  3829. // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.ExtensionRangeOptions)
  3830. MergeFrom(*source);
  3831. }
  3832. }
  3833. void ExtensionRangeOptions::MergeFrom(const ExtensionRangeOptions& from) {
  3834. // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.ExtensionRangeOptions)
  3835. GOOGLE_DCHECK_NE(&from, this);
  3836. _extensions_.MergeFrom(from._extensions_);
  3837. _internal_metadata_.MergeFrom(from._internal_metadata_);
  3838. ::google::protobuf::uint32 cached_has_bits = 0;
  3839. (void) cached_has_bits;
  3840. uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
  3841. }
  3842. void ExtensionRangeOptions::CopyFrom(const ::google::protobuf::Message& from) {
  3843. // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.ExtensionRangeOptions)
  3844. if (&from == this) return;
  3845. Clear();
  3846. MergeFrom(from);
  3847. }
  3848. void ExtensionRangeOptions::CopyFrom(const ExtensionRangeOptions& from) {
  3849. // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.ExtensionRangeOptions)
  3850. if (&from == this) return;
  3851. Clear();
  3852. MergeFrom(from);
  3853. }
  3854. bool ExtensionRangeOptions::IsInitialized() const {
  3855. if (!_extensions_.IsInitialized()) {
  3856. return false;
  3857. }
  3858. if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false;
  3859. return true;
  3860. }
  3861. void ExtensionRangeOptions::Swap(ExtensionRangeOptions* other) {
  3862. if (other == this) return;
  3863. if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
  3864. InternalSwap(other);
  3865. } else {
  3866. ExtensionRangeOptions* temp = New(GetArenaNoVirtual());
  3867. temp->MergeFrom(*other);
  3868. other->CopyFrom(*this);
  3869. InternalSwap(temp);
  3870. if (GetArenaNoVirtual() == NULL) {
  3871. delete temp;
  3872. }
  3873. }
  3874. }
  3875. void ExtensionRangeOptions::UnsafeArenaSwap(ExtensionRangeOptions* other) {
  3876. if (other == this) return;
  3877. GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
  3878. InternalSwap(other);
  3879. }
  3880. void ExtensionRangeOptions::InternalSwap(ExtensionRangeOptions* other) {
  3881. using std::swap;
  3882. CastToBase(&uninterpreted_option_)->InternalSwap(CastToBase(&other->uninterpreted_option_));
  3883. swap(_has_bits_[0], other->_has_bits_[0]);
  3884. _internal_metadata_.Swap(&other->_internal_metadata_);
  3885. _extensions_.Swap(&other->_extensions_);
  3886. }
  3887. ::google::protobuf::Metadata ExtensionRangeOptions::GetMetadata() const {
  3888. protobuf_google_2fprotobuf_2fdescriptor_2eproto::protobuf_AssignDescriptorsOnce();
  3889. return ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::file_level_metadata[kIndexInFileMessages];
  3890. }
  3891. // ===================================================================
  3892. void FieldDescriptorProto::InitAsDefaultInstance() {
  3893. ::google::protobuf::_FieldDescriptorProto_default_instance_._instance.get_mutable()->options_ = const_cast< ::google::protobuf::FieldOptions*>(
  3894. ::google::protobuf::FieldOptions::internal_default_instance());
  3895. }
  3896. void FieldDescriptorProto::unsafe_arena_set_allocated_options(
  3897. ::google::protobuf::FieldOptions* options) {
  3898. if (GetArenaNoVirtual() == NULL) {
  3899. delete options_;
  3900. }
  3901. options_ = options;
  3902. if (options) {
  3903. set_has_options();
  3904. } else {
  3905. clear_has_options();
  3906. }
  3907. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FieldDescriptorProto.options)
  3908. }
  3909. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  3910. const int FieldDescriptorProto::kNameFieldNumber;
  3911. const int FieldDescriptorProto::kNumberFieldNumber;
  3912. const int FieldDescriptorProto::kLabelFieldNumber;
  3913. const int FieldDescriptorProto::kTypeFieldNumber;
  3914. const int FieldDescriptorProto::kTypeNameFieldNumber;
  3915. const int FieldDescriptorProto::kExtendeeFieldNumber;
  3916. const int FieldDescriptorProto::kDefaultValueFieldNumber;
  3917. const int FieldDescriptorProto::kOneofIndexFieldNumber;
  3918. const int FieldDescriptorProto::kJsonNameFieldNumber;
  3919. const int FieldDescriptorProto::kOptionsFieldNumber;
  3920. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  3921. FieldDescriptorProto::FieldDescriptorProto()
  3922. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  3923. ::google::protobuf::internal::InitSCC(
  3924. &protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_FieldDescriptorProto.base);
  3925. SharedCtor();
  3926. // @@protoc_insertion_point(constructor:google.protobuf.FieldDescriptorProto)
  3927. }
  3928. FieldDescriptorProto::FieldDescriptorProto(::google::protobuf::Arena* arena)
  3929. : ::google::protobuf::Message(),
  3930. _internal_metadata_(arena) {
  3931. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_FieldDescriptorProto.base);
  3932. SharedCtor();
  3933. RegisterArenaDtor(arena);
  3934. // @@protoc_insertion_point(arena_constructor:google.protobuf.FieldDescriptorProto)
  3935. }
  3936. FieldDescriptorProto::FieldDescriptorProto(const FieldDescriptorProto& from)
  3937. : ::google::protobuf::Message(),
  3938. _internal_metadata_(NULL),
  3939. _has_bits_(from._has_bits_) {
  3940. _internal_metadata_.MergeFrom(from._internal_metadata_);
  3941. name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3942. if (from.has_name()) {
  3943. name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name(),
  3944. GetArenaNoVirtual());
  3945. }
  3946. extendee_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3947. if (from.has_extendee()) {
  3948. extendee_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.extendee(),
  3949. GetArenaNoVirtual());
  3950. }
  3951. type_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3952. if (from.has_type_name()) {
  3953. type_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.type_name(),
  3954. GetArenaNoVirtual());
  3955. }
  3956. default_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3957. if (from.has_default_value()) {
  3958. default_value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.default_value(),
  3959. GetArenaNoVirtual());
  3960. }
  3961. json_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3962. if (from.has_json_name()) {
  3963. json_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.json_name(),
  3964. GetArenaNoVirtual());
  3965. }
  3966. if (from.has_options()) {
  3967. options_ = new ::google::protobuf::FieldOptions(*from.options_);
  3968. } else {
  3969. options_ = NULL;
  3970. }
  3971. ::memcpy(&number_, &from.number_,
  3972. static_cast<size_t>(reinterpret_cast<char*>(&type_) -
  3973. reinterpret_cast<char*>(&number_)) + sizeof(type_));
  3974. // @@protoc_insertion_point(copy_constructor:google.protobuf.FieldDescriptorProto)
  3975. }
  3976. void FieldDescriptorProto::SharedCtor() {
  3977. name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3978. extendee_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3979. type_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3980. default_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3981. json_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3982. ::memset(&options_, 0, static_cast<size_t>(
  3983. reinterpret_cast<char*>(&oneof_index_) -
  3984. reinterpret_cast<char*>(&options_)) + sizeof(oneof_index_));
  3985. label_ = 1;
  3986. type_ = 1;
  3987. }
  3988. FieldDescriptorProto::~FieldDescriptorProto() {
  3989. // @@protoc_insertion_point(destructor:google.protobuf.FieldDescriptorProto)
  3990. SharedDtor();
  3991. }
  3992. void FieldDescriptorProto::SharedDtor() {
  3993. GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
  3994. name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3995. extendee_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3996. type_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3997. default_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3998. json_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3999. if (this != internal_default_instance()) delete options_;
  4000. }
  4001. void FieldDescriptorProto::ArenaDtor(void* object) {
  4002. FieldDescriptorProto* _this = reinterpret_cast< FieldDescriptorProto* >(object);
  4003. (void)_this;
  4004. }
  4005. void FieldDescriptorProto::RegisterArenaDtor(::google::protobuf::Arena* arena) {
  4006. }
  4007. void FieldDescriptorProto::SetCachedSize(int size) const {
  4008. _cached_size_.Set(size);
  4009. }
  4010. const ::google::protobuf::Descriptor* FieldDescriptorProto::descriptor() {
  4011. ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::protobuf_AssignDescriptorsOnce();
  4012. return ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  4013. }
  4014. const FieldDescriptorProto& FieldDescriptorProto::default_instance() {
  4015. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_FieldDescriptorProto.base);
  4016. return *internal_default_instance();
  4017. }
  4018. void FieldDescriptorProto::Clear() {
  4019. // @@protoc_insertion_point(message_clear_start:google.protobuf.FieldDescriptorProto)
  4020. ::google::protobuf::uint32 cached_has_bits = 0;
  4021. // Prevent compiler warnings about cached_has_bits being unused
  4022. (void) cached_has_bits;
  4023. cached_has_bits = _has_bits_[0];
  4024. if (cached_has_bits & 63u) {
  4025. if (cached_has_bits & 0x00000001u) {
  4026. name_.ClearNonDefaultToEmpty();
  4027. }
  4028. if (cached_has_bits & 0x00000002u) {
  4029. extendee_.ClearNonDefaultToEmpty();
  4030. }
  4031. if (cached_has_bits & 0x00000004u) {
  4032. type_name_.ClearNonDefaultToEmpty();
  4033. }
  4034. if (cached_has_bits & 0x00000008u) {
  4035. default_value_.ClearNonDefaultToEmpty();
  4036. }
  4037. if (cached_has_bits & 0x00000010u) {
  4038. json_name_.ClearNonDefaultToEmpty();
  4039. }
  4040. if (cached_has_bits & 0x00000020u) {
  4041. GOOGLE_DCHECK(options_ != NULL);
  4042. options_->Clear();
  4043. }
  4044. }
  4045. if (cached_has_bits & 192u) {
  4046. ::memset(&number_, 0, static_cast<size_t>(
  4047. reinterpret_cast<char*>(&oneof_index_) -
  4048. reinterpret_cast<char*>(&number_)) + sizeof(oneof_index_));
  4049. }
  4050. if (cached_has_bits & 768u) {
  4051. label_ = 1;
  4052. type_ = 1;
  4053. }
  4054. _has_bits_.Clear();
  4055. _internal_metadata_.Clear();
  4056. }
  4057. bool FieldDescriptorProto::MergePartialFromCodedStream(
  4058. ::google::protobuf::io::CodedInputStream* input) {
  4059. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  4060. ::google::protobuf::uint32 tag;
  4061. // @@protoc_insertion_point(parse_start:google.protobuf.FieldDescriptorProto)
  4062. for (;;) {
  4063. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  4064. tag = p.first;
  4065. if (!p.second) goto handle_unusual;
  4066. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  4067. // optional string name = 1;
  4068. case 1: {
  4069. if (static_cast< ::google::protobuf::uint8>(tag) ==
  4070. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  4071. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  4072. input, this->mutable_name()));
  4073. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  4074. this->name().data(), static_cast<int>(this->name().length()),
  4075. ::google::protobuf::internal::WireFormat::PARSE,
  4076. "google.protobuf.FieldDescriptorProto.name");
  4077. } else {
  4078. goto handle_unusual;
  4079. }
  4080. break;
  4081. }
  4082. // optional string extendee = 2;
  4083. case 2: {
  4084. if (static_cast< ::google::protobuf::uint8>(tag) ==
  4085. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  4086. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  4087. input, this->mutable_extendee()));
  4088. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  4089. this->extendee().data(), static_cast<int>(this->extendee().length()),
  4090. ::google::protobuf::internal::WireFormat::PARSE,
  4091. "google.protobuf.FieldDescriptorProto.extendee");
  4092. } else {
  4093. goto handle_unusual;
  4094. }
  4095. break;
  4096. }
  4097. // optional int32 number = 3;
  4098. case 3: {
  4099. if (static_cast< ::google::protobuf::uint8>(tag) ==
  4100. static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
  4101. set_has_number();
  4102. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  4103. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  4104. input, &number_)));
  4105. } else {
  4106. goto handle_unusual;
  4107. }
  4108. break;
  4109. }
  4110. // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
  4111. case 4: {
  4112. if (static_cast< ::google::protobuf::uint8>(tag) ==
  4113. static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
  4114. int value;
  4115. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  4116. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  4117. input, &value)));
  4118. if (::google::protobuf::FieldDescriptorProto_Label_IsValid(value)) {
  4119. set_label(static_cast< ::google::protobuf::FieldDescriptorProto_Label >(value));
  4120. } else {
  4121. mutable_unknown_fields()->AddVarint(
  4122. 4, static_cast< ::google::protobuf::uint64>(value));
  4123. }
  4124. } else {
  4125. goto handle_unusual;
  4126. }
  4127. break;
  4128. }
  4129. // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
  4130. case 5: {
  4131. if (static_cast< ::google::protobuf::uint8>(tag) ==
  4132. static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
  4133. int value;
  4134. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  4135. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  4136. input, &value)));
  4137. if (::google::protobuf::FieldDescriptorProto_Type_IsValid(value)) {
  4138. set_type(static_cast< ::google::protobuf::FieldDescriptorProto_Type >(value));
  4139. } else {
  4140. mutable_unknown_fields()->AddVarint(
  4141. 5, static_cast< ::google::protobuf::uint64>(value));
  4142. }
  4143. } else {
  4144. goto handle_unusual;
  4145. }
  4146. break;
  4147. }
  4148. // optional string type_name = 6;
  4149. case 6: {
  4150. if (static_cast< ::google::protobuf::uint8>(tag) ==
  4151. static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
  4152. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  4153. input, this->mutable_type_name()));
  4154. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  4155. this->type_name().data(), static_cast<int>(this->type_name().length()),
  4156. ::google::protobuf::internal::WireFormat::PARSE,
  4157. "google.protobuf.FieldDescriptorProto.type_name");
  4158. } else {
  4159. goto handle_unusual;
  4160. }
  4161. break;
  4162. }
  4163. // optional string default_value = 7;
  4164. case 7: {
  4165. if (static_cast< ::google::protobuf::uint8>(tag) ==
  4166. static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
  4167. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  4168. input, this->mutable_default_value()));
  4169. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  4170. this->default_value().data(), static_cast<int>(this->default_value().length()),
  4171. ::google::protobuf::internal::WireFormat::PARSE,
  4172. "google.protobuf.FieldDescriptorProto.default_value");
  4173. } else {
  4174. goto handle_unusual;
  4175. }
  4176. break;
  4177. }
  4178. // optional .google.protobuf.FieldOptions options = 8;
  4179. case 8: {
  4180. if (static_cast< ::google::protobuf::uint8>(tag) ==
  4181. static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
  4182. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  4183. input, mutable_options()));
  4184. } else {
  4185. goto handle_unusual;
  4186. }
  4187. break;
  4188. }
  4189. // optional int32 oneof_index = 9;
  4190. case 9: {
  4191. if (static_cast< ::google::protobuf::uint8>(tag) ==
  4192. static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) {
  4193. set_has_oneof_index();
  4194. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  4195. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  4196. input, &oneof_index_)));
  4197. } else {
  4198. goto handle_unusual;
  4199. }
  4200. break;
  4201. }
  4202. // optional string json_name = 10;
  4203. case 10: {
  4204. if (static_cast< ::google::protobuf::uint8>(tag) ==
  4205. static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) {
  4206. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  4207. input, this->mutable_json_name()));
  4208. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  4209. this->json_name().data(), static_cast<int>(this->json_name().length()),
  4210. ::google::protobuf::internal::WireFormat::PARSE,
  4211. "google.protobuf.FieldDescriptorProto.json_name");
  4212. } else {
  4213. goto handle_unusual;
  4214. }
  4215. break;
  4216. }
  4217. default: {
  4218. handle_unusual:
  4219. if (tag == 0) {
  4220. goto success;
  4221. }
  4222. DO_(::google::protobuf::internal::WireFormat::SkipField(
  4223. input, tag, _internal_metadata_.mutable_unknown_fields()));
  4224. break;
  4225. }
  4226. }
  4227. }
  4228. success:
  4229. // @@protoc_insertion_point(parse_success:google.protobuf.FieldDescriptorProto)
  4230. return true;
  4231. failure:
  4232. // @@protoc_insertion_point(parse_failure:google.protobuf.FieldDescriptorProto)
  4233. return false;
  4234. #undef DO_
  4235. }
  4236. void FieldDescriptorProto::SerializeWithCachedSizes(
  4237. ::google::protobuf::io::CodedOutputStream* output) const {
  4238. // @@protoc_insertion_point(serialize_start:google.protobuf.FieldDescriptorProto)
  4239. ::google::protobuf::uint32 cached_has_bits = 0;
  4240. (void) cached_has_bits;
  4241. cached_has_bits = _has_bits_[0];
  4242. // optional string name = 1;
  4243. if (cached_has_bits & 0x00000001u) {
  4244. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  4245. this->name().data(), static_cast<int>(this->name().length()),
  4246. ::google::protobuf::internal::WireFormat::SERIALIZE,
  4247. "google.protobuf.FieldDescriptorProto.name");
  4248. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  4249. 1, this->name(), output);
  4250. }
  4251. // optional string extendee = 2;
  4252. if (cached_has_bits & 0x00000002u) {
  4253. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  4254. this->extendee().data(), static_cast<int>(this->extendee().length()),
  4255. ::google::protobuf::internal::WireFormat::SERIALIZE,
  4256. "google.protobuf.FieldDescriptorProto.extendee");
  4257. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  4258. 2, this->extendee(), output);
  4259. }
  4260. // optional int32 number = 3;
  4261. if (cached_has_bits & 0x00000040u) {
  4262. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->number(), output);
  4263. }
  4264. // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
  4265. if (cached_has_bits & 0x00000100u) {
  4266. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  4267. 4, this->label(), output);
  4268. }
  4269. // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
  4270. if (cached_has_bits & 0x00000200u) {
  4271. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  4272. 5, this->type(), output);
  4273. }
  4274. // optional string type_name = 6;
  4275. if (cached_has_bits & 0x00000004u) {
  4276. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  4277. this->type_name().data(), static_cast<int>(this->type_name().length()),
  4278. ::google::protobuf::internal::WireFormat::SERIALIZE,
  4279. "google.protobuf.FieldDescriptorProto.type_name");
  4280. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  4281. 6, this->type_name(), output);
  4282. }
  4283. // optional string default_value = 7;
  4284. if (cached_has_bits & 0x00000008u) {
  4285. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  4286. this->default_value().data(), static_cast<int>(this->default_value().length()),
  4287. ::google::protobuf::internal::WireFormat::SERIALIZE,
  4288. "google.protobuf.FieldDescriptorProto.default_value");
  4289. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  4290. 7, this->default_value(), output);
  4291. }
  4292. // optional .google.protobuf.FieldOptions options = 8;
  4293. if (cached_has_bits & 0x00000020u) {
  4294. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  4295. 8, this->_internal_options(), output);
  4296. }
  4297. // optional int32 oneof_index = 9;
  4298. if (cached_has_bits & 0x00000080u) {
  4299. ::google::protobuf::internal::WireFormatLite::WriteInt32(9, this->oneof_index(), output);
  4300. }
  4301. // optional string json_name = 10;
  4302. if (cached_has_bits & 0x00000010u) {
  4303. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  4304. this->json_name().data(), static_cast<int>(this->json_name().length()),
  4305. ::google::protobuf::internal::WireFormat::SERIALIZE,
  4306. "google.protobuf.FieldDescriptorProto.json_name");
  4307. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  4308. 10, this->json_name(), output);
  4309. }
  4310. if (_internal_metadata_.have_unknown_fields()) {
  4311. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  4312. _internal_metadata_.unknown_fields(), output);
  4313. }
  4314. // @@protoc_insertion_point(serialize_end:google.protobuf.FieldDescriptorProto)
  4315. }
  4316. ::google::protobuf::uint8* FieldDescriptorProto::InternalSerializeWithCachedSizesToArray(
  4317. bool deterministic, ::google::protobuf::uint8* target) const {
  4318. (void)deterministic; // Unused
  4319. // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FieldDescriptorProto)
  4320. ::google::protobuf::uint32 cached_has_bits = 0;
  4321. (void) cached_has_bits;
  4322. cached_has_bits = _has_bits_[0];
  4323. // optional string name = 1;
  4324. if (cached_has_bits & 0x00000001u) {
  4325. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  4326. this->name().data(), static_cast<int>(this->name().length()),
  4327. ::google::protobuf::internal::WireFormat::SERIALIZE,
  4328. "google.protobuf.FieldDescriptorProto.name");
  4329. target =
  4330. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  4331. 1, this->name(), target);
  4332. }
  4333. // optional string extendee = 2;
  4334. if (cached_has_bits & 0x00000002u) {
  4335. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  4336. this->extendee().data(), static_cast<int>(this->extendee().length()),
  4337. ::google::protobuf::internal::WireFormat::SERIALIZE,
  4338. "google.protobuf.FieldDescriptorProto.extendee");
  4339. target =
  4340. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  4341. 2, this->extendee(), target);
  4342. }
  4343. // optional int32 number = 3;
  4344. if (cached_has_bits & 0x00000040u) {
  4345. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->number(), target);
  4346. }
  4347. // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
  4348. if (cached_has_bits & 0x00000100u) {
  4349. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  4350. 4, this->label(), target);
  4351. }
  4352. // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
  4353. if (cached_has_bits & 0x00000200u) {
  4354. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  4355. 5, this->type(), target);
  4356. }
  4357. // optional string type_name = 6;
  4358. if (cached_has_bits & 0x00000004u) {
  4359. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  4360. this->type_name().data(), static_cast<int>(this->type_name().length()),
  4361. ::google::protobuf::internal::WireFormat::SERIALIZE,
  4362. "google.protobuf.FieldDescriptorProto.type_name");
  4363. target =
  4364. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  4365. 6, this->type_name(), target);
  4366. }
  4367. // optional string default_value = 7;
  4368. if (cached_has_bits & 0x00000008u) {
  4369. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  4370. this->default_value().data(), static_cast<int>(this->default_value().length()),
  4371. ::google::protobuf::internal::WireFormat::SERIALIZE,
  4372. "google.protobuf.FieldDescriptorProto.default_value");
  4373. target =
  4374. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  4375. 7, this->default_value(), target);
  4376. }
  4377. // optional .google.protobuf.FieldOptions options = 8;
  4378. if (cached_has_bits & 0x00000020u) {
  4379. target = ::google::protobuf::internal::WireFormatLite::
  4380. InternalWriteMessageToArray(
  4381. 8, this->_internal_options(), deterministic, target);
  4382. }
  4383. // optional int32 oneof_index = 9;
  4384. if (cached_has_bits & 0x00000080u) {
  4385. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(9, this->oneof_index(), target);
  4386. }
  4387. // optional string json_name = 10;
  4388. if (cached_has_bits & 0x00000010u) {
  4389. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  4390. this->json_name().data(), static_cast<int>(this->json_name().length()),
  4391. ::google::protobuf::internal::WireFormat::SERIALIZE,
  4392. "google.protobuf.FieldDescriptorProto.json_name");
  4393. target =
  4394. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  4395. 10, this->json_name(), target);
  4396. }
  4397. if (_internal_metadata_.have_unknown_fields()) {
  4398. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  4399. _internal_metadata_.unknown_fields(), target);
  4400. }
  4401. // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FieldDescriptorProto)
  4402. return target;
  4403. }
  4404. size_t FieldDescriptorProto::ByteSizeLong() const {
  4405. // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FieldDescriptorProto)
  4406. size_t total_size = 0;
  4407. if (_internal_metadata_.have_unknown_fields()) {
  4408. total_size +=
  4409. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  4410. _internal_metadata_.unknown_fields());
  4411. }
  4412. if (_has_bits_[0 / 32] & 255u) {
  4413. // optional string name = 1;
  4414. if (has_name()) {
  4415. total_size += 1 +
  4416. ::google::protobuf::internal::WireFormatLite::StringSize(
  4417. this->name());
  4418. }
  4419. // optional string extendee = 2;
  4420. if (has_extendee()) {
  4421. total_size += 1 +
  4422. ::google::protobuf::internal::WireFormatLite::StringSize(
  4423. this->extendee());
  4424. }
  4425. // optional string type_name = 6;
  4426. if (has_type_name()) {
  4427. total_size += 1 +
  4428. ::google::protobuf::internal::WireFormatLite::StringSize(
  4429. this->type_name());
  4430. }
  4431. // optional string default_value = 7;
  4432. if (has_default_value()) {
  4433. total_size += 1 +
  4434. ::google::protobuf::internal::WireFormatLite::StringSize(
  4435. this->default_value());
  4436. }
  4437. // optional string json_name = 10;
  4438. if (has_json_name()) {
  4439. total_size += 1 +
  4440. ::google::protobuf::internal::WireFormatLite::StringSize(
  4441. this->json_name());
  4442. }
  4443. // optional .google.protobuf.FieldOptions options = 8;
  4444. if (has_options()) {
  4445. total_size += 1 +
  4446. ::google::protobuf::internal::WireFormatLite::MessageSize(
  4447. *options_);
  4448. }
  4449. // optional int32 number = 3;
  4450. if (has_number()) {
  4451. total_size += 1 +
  4452. ::google::protobuf::internal::WireFormatLite::Int32Size(
  4453. this->number());
  4454. }
  4455. // optional int32 oneof_index = 9;
  4456. if (has_oneof_index()) {
  4457. total_size += 1 +
  4458. ::google::protobuf::internal::WireFormatLite::Int32Size(
  4459. this->oneof_index());
  4460. }
  4461. }
  4462. if (_has_bits_[8 / 32] & 768u) {
  4463. // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
  4464. if (has_label()) {
  4465. total_size += 1 +
  4466. ::google::protobuf::internal::WireFormatLite::EnumSize(this->label());
  4467. }
  4468. // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
  4469. if (has_type()) {
  4470. total_size += 1 +
  4471. ::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
  4472. }
  4473. }
  4474. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  4475. SetCachedSize(cached_size);
  4476. return total_size;
  4477. }
  4478. void FieldDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
  4479. // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.FieldDescriptorProto)
  4480. GOOGLE_DCHECK_NE(&from, this);
  4481. const FieldDescriptorProto* source =
  4482. ::google::protobuf::internal::DynamicCastToGenerated<const FieldDescriptorProto>(
  4483. &from);
  4484. if (source == NULL) {
  4485. // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.FieldDescriptorProto)
  4486. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  4487. } else {
  4488. // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.FieldDescriptorProto)
  4489. MergeFrom(*source);
  4490. }
  4491. }
  4492. void FieldDescriptorProto::MergeFrom(const FieldDescriptorProto& from) {
  4493. // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.FieldDescriptorProto)
  4494. GOOGLE_DCHECK_NE(&from, this);
  4495. _internal_metadata_.MergeFrom(from._internal_metadata_);
  4496. ::google::protobuf::uint32 cached_has_bits = 0;
  4497. (void) cached_has_bits;
  4498. cached_has_bits = from._has_bits_[0];
  4499. if (cached_has_bits & 255u) {
  4500. if (cached_has_bits & 0x00000001u) {
  4501. set_name(from.name());
  4502. }
  4503. if (cached_has_bits & 0x00000002u) {
  4504. set_extendee(from.extendee());
  4505. }
  4506. if (cached_has_bits & 0x00000004u) {
  4507. set_type_name(from.type_name());
  4508. }
  4509. if (cached_has_bits & 0x00000008u) {
  4510. set_default_value(from.default_value());
  4511. }
  4512. if (cached_has_bits & 0x00000010u) {
  4513. set_json_name(from.json_name());
  4514. }
  4515. if (cached_has_bits & 0x00000020u) {
  4516. mutable_options()->::google::protobuf::FieldOptions::MergeFrom(from.options());
  4517. }
  4518. if (cached_has_bits & 0x00000040u) {
  4519. number_ = from.number_;
  4520. }
  4521. if (cached_has_bits & 0x00000080u) {
  4522. oneof_index_ = from.oneof_index_;
  4523. }
  4524. _has_bits_[0] |= cached_has_bits;
  4525. }
  4526. if (cached_has_bits & 768u) {
  4527. if (cached_has_bits & 0x00000100u) {
  4528. label_ = from.label_;
  4529. }
  4530. if (cached_has_bits & 0x00000200u) {
  4531. type_ = from.type_;
  4532. }
  4533. _has_bits_[0] |= cached_has_bits;
  4534. }
  4535. }
  4536. void FieldDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
  4537. // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.FieldDescriptorProto)
  4538. if (&from == this) return;
  4539. Clear();
  4540. MergeFrom(from);
  4541. }
  4542. void FieldDescriptorProto::CopyFrom(const FieldDescriptorProto& from) {
  4543. // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.FieldDescriptorProto)
  4544. if (&from == this) return;
  4545. Clear();
  4546. MergeFrom(from);
  4547. }
  4548. bool FieldDescriptorProto::IsInitialized() const {
  4549. if (has_options()) {
  4550. if (!this->options_->IsInitialized()) return false;
  4551. }
  4552. return true;
  4553. }
  4554. void FieldDescriptorProto::Swap(FieldDescriptorProto* other) {
  4555. if (other == this) return;
  4556. if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
  4557. InternalSwap(other);
  4558. } else {
  4559. FieldDescriptorProto* temp = New(GetArenaNoVirtual());
  4560. temp->MergeFrom(*other);
  4561. other->CopyFrom(*this);
  4562. InternalSwap(temp);
  4563. if (GetArenaNoVirtual() == NULL) {
  4564. delete temp;
  4565. }
  4566. }
  4567. }
  4568. void FieldDescriptorProto::UnsafeArenaSwap(FieldDescriptorProto* other) {
  4569. if (other == this) return;
  4570. GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
  4571. InternalSwap(other);
  4572. }
  4573. void FieldDescriptorProto::InternalSwap(FieldDescriptorProto* other) {
  4574. using std::swap;
  4575. name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  4576. GetArenaNoVirtual());
  4577. extendee_.Swap(&other->extendee_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  4578. GetArenaNoVirtual());
  4579. type_name_.Swap(&other->type_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  4580. GetArenaNoVirtual());
  4581. default_value_.Swap(&other->default_value_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  4582. GetArenaNoVirtual());
  4583. json_name_.Swap(&other->json_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  4584. GetArenaNoVirtual());
  4585. swap(options_, other->options_);
  4586. swap(number_, other->number_);
  4587. swap(oneof_index_, other->oneof_index_);
  4588. swap(label_, other->label_);
  4589. swap(type_, other->type_);
  4590. swap(_has_bits_[0], other->_has_bits_[0]);
  4591. _internal_metadata_.Swap(&other->_internal_metadata_);
  4592. }
  4593. ::google::protobuf::Metadata FieldDescriptorProto::GetMetadata() const {
  4594. protobuf_google_2fprotobuf_2fdescriptor_2eproto::protobuf_AssignDescriptorsOnce();
  4595. return ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::file_level_metadata[kIndexInFileMessages];
  4596. }
  4597. // ===================================================================
  4598. void OneofDescriptorProto::InitAsDefaultInstance() {
  4599. ::google::protobuf::_OneofDescriptorProto_default_instance_._instance.get_mutable()->options_ = const_cast< ::google::protobuf::OneofOptions*>(
  4600. ::google::protobuf::OneofOptions::internal_default_instance());
  4601. }
  4602. void OneofDescriptorProto::unsafe_arena_set_allocated_options(
  4603. ::google::protobuf::OneofOptions* options) {
  4604. if (GetArenaNoVirtual() == NULL) {
  4605. delete options_;
  4606. }
  4607. options_ = options;
  4608. if (options) {
  4609. set_has_options();
  4610. } else {
  4611. clear_has_options();
  4612. }
  4613. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.OneofDescriptorProto.options)
  4614. }
  4615. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  4616. const int OneofDescriptorProto::kNameFieldNumber;
  4617. const int OneofDescriptorProto::kOptionsFieldNumber;
  4618. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  4619. OneofDescriptorProto::OneofDescriptorProto()
  4620. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  4621. ::google::protobuf::internal::InitSCC(
  4622. &protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_OneofDescriptorProto.base);
  4623. SharedCtor();
  4624. // @@protoc_insertion_point(constructor:google.protobuf.OneofDescriptorProto)
  4625. }
  4626. OneofDescriptorProto::OneofDescriptorProto(::google::protobuf::Arena* arena)
  4627. : ::google::protobuf::Message(),
  4628. _internal_metadata_(arena) {
  4629. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_OneofDescriptorProto.base);
  4630. SharedCtor();
  4631. RegisterArenaDtor(arena);
  4632. // @@protoc_insertion_point(arena_constructor:google.protobuf.OneofDescriptorProto)
  4633. }
  4634. OneofDescriptorProto::OneofDescriptorProto(const OneofDescriptorProto& from)
  4635. : ::google::protobuf::Message(),
  4636. _internal_metadata_(NULL),
  4637. _has_bits_(from._has_bits_) {
  4638. _internal_metadata_.MergeFrom(from._internal_metadata_);
  4639. name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4640. if (from.has_name()) {
  4641. name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name(),
  4642. GetArenaNoVirtual());
  4643. }
  4644. if (from.has_options()) {
  4645. options_ = new ::google::protobuf::OneofOptions(*from.options_);
  4646. } else {
  4647. options_ = NULL;
  4648. }
  4649. // @@protoc_insertion_point(copy_constructor:google.protobuf.OneofDescriptorProto)
  4650. }
  4651. void OneofDescriptorProto::SharedCtor() {
  4652. name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4653. options_ = NULL;
  4654. }
  4655. OneofDescriptorProto::~OneofDescriptorProto() {
  4656. // @@protoc_insertion_point(destructor:google.protobuf.OneofDescriptorProto)
  4657. SharedDtor();
  4658. }
  4659. void OneofDescriptorProto::SharedDtor() {
  4660. GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
  4661. name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4662. if (this != internal_default_instance()) delete options_;
  4663. }
  4664. void OneofDescriptorProto::ArenaDtor(void* object) {
  4665. OneofDescriptorProto* _this = reinterpret_cast< OneofDescriptorProto* >(object);
  4666. (void)_this;
  4667. }
  4668. void OneofDescriptorProto::RegisterArenaDtor(::google::protobuf::Arena* arena) {
  4669. }
  4670. void OneofDescriptorProto::SetCachedSize(int size) const {
  4671. _cached_size_.Set(size);
  4672. }
  4673. const ::google::protobuf::Descriptor* OneofDescriptorProto::descriptor() {
  4674. ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::protobuf_AssignDescriptorsOnce();
  4675. return ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  4676. }
  4677. const OneofDescriptorProto& OneofDescriptorProto::default_instance() {
  4678. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_OneofDescriptorProto.base);
  4679. return *internal_default_instance();
  4680. }
  4681. void OneofDescriptorProto::Clear() {
  4682. // @@protoc_insertion_point(message_clear_start:google.protobuf.OneofDescriptorProto)
  4683. ::google::protobuf::uint32 cached_has_bits = 0;
  4684. // Prevent compiler warnings about cached_has_bits being unused
  4685. (void) cached_has_bits;
  4686. cached_has_bits = _has_bits_[0];
  4687. if (cached_has_bits & 3u) {
  4688. if (cached_has_bits & 0x00000001u) {
  4689. name_.ClearNonDefaultToEmpty();
  4690. }
  4691. if (cached_has_bits & 0x00000002u) {
  4692. GOOGLE_DCHECK(options_ != NULL);
  4693. options_->Clear();
  4694. }
  4695. }
  4696. _has_bits_.Clear();
  4697. _internal_metadata_.Clear();
  4698. }
  4699. bool OneofDescriptorProto::MergePartialFromCodedStream(
  4700. ::google::protobuf::io::CodedInputStream* input) {
  4701. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  4702. ::google::protobuf::uint32 tag;
  4703. // @@protoc_insertion_point(parse_start:google.protobuf.OneofDescriptorProto)
  4704. for (;;) {
  4705. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  4706. tag = p.first;
  4707. if (!p.second) goto handle_unusual;
  4708. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  4709. // optional string name = 1;
  4710. case 1: {
  4711. if (static_cast< ::google::protobuf::uint8>(tag) ==
  4712. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  4713. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  4714. input, this->mutable_name()));
  4715. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  4716. this->name().data(), static_cast<int>(this->name().length()),
  4717. ::google::protobuf::internal::WireFormat::PARSE,
  4718. "google.protobuf.OneofDescriptorProto.name");
  4719. } else {
  4720. goto handle_unusual;
  4721. }
  4722. break;
  4723. }
  4724. // optional .google.protobuf.OneofOptions options = 2;
  4725. case 2: {
  4726. if (static_cast< ::google::protobuf::uint8>(tag) ==
  4727. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  4728. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  4729. input, mutable_options()));
  4730. } else {
  4731. goto handle_unusual;
  4732. }
  4733. break;
  4734. }
  4735. default: {
  4736. handle_unusual:
  4737. if (tag == 0) {
  4738. goto success;
  4739. }
  4740. DO_(::google::protobuf::internal::WireFormat::SkipField(
  4741. input, tag, _internal_metadata_.mutable_unknown_fields()));
  4742. break;
  4743. }
  4744. }
  4745. }
  4746. success:
  4747. // @@protoc_insertion_point(parse_success:google.protobuf.OneofDescriptorProto)
  4748. return true;
  4749. failure:
  4750. // @@protoc_insertion_point(parse_failure:google.protobuf.OneofDescriptorProto)
  4751. return false;
  4752. #undef DO_
  4753. }
  4754. void OneofDescriptorProto::SerializeWithCachedSizes(
  4755. ::google::protobuf::io::CodedOutputStream* output) const {
  4756. // @@protoc_insertion_point(serialize_start:google.protobuf.OneofDescriptorProto)
  4757. ::google::protobuf::uint32 cached_has_bits = 0;
  4758. (void) cached_has_bits;
  4759. cached_has_bits = _has_bits_[0];
  4760. // optional string name = 1;
  4761. if (cached_has_bits & 0x00000001u) {
  4762. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  4763. this->name().data(), static_cast<int>(this->name().length()),
  4764. ::google::protobuf::internal::WireFormat::SERIALIZE,
  4765. "google.protobuf.OneofDescriptorProto.name");
  4766. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  4767. 1, this->name(), output);
  4768. }
  4769. // optional .google.protobuf.OneofOptions options = 2;
  4770. if (cached_has_bits & 0x00000002u) {
  4771. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  4772. 2, this->_internal_options(), output);
  4773. }
  4774. if (_internal_metadata_.have_unknown_fields()) {
  4775. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  4776. _internal_metadata_.unknown_fields(), output);
  4777. }
  4778. // @@protoc_insertion_point(serialize_end:google.protobuf.OneofDescriptorProto)
  4779. }
  4780. ::google::protobuf::uint8* OneofDescriptorProto::InternalSerializeWithCachedSizesToArray(
  4781. bool deterministic, ::google::protobuf::uint8* target) const {
  4782. (void)deterministic; // Unused
  4783. // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.OneofDescriptorProto)
  4784. ::google::protobuf::uint32 cached_has_bits = 0;
  4785. (void) cached_has_bits;
  4786. cached_has_bits = _has_bits_[0];
  4787. // optional string name = 1;
  4788. if (cached_has_bits & 0x00000001u) {
  4789. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  4790. this->name().data(), static_cast<int>(this->name().length()),
  4791. ::google::protobuf::internal::WireFormat::SERIALIZE,
  4792. "google.protobuf.OneofDescriptorProto.name");
  4793. target =
  4794. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  4795. 1, this->name(), target);
  4796. }
  4797. // optional .google.protobuf.OneofOptions options = 2;
  4798. if (cached_has_bits & 0x00000002u) {
  4799. target = ::google::protobuf::internal::WireFormatLite::
  4800. InternalWriteMessageToArray(
  4801. 2, this->_internal_options(), deterministic, target);
  4802. }
  4803. if (_internal_metadata_.have_unknown_fields()) {
  4804. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  4805. _internal_metadata_.unknown_fields(), target);
  4806. }
  4807. // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.OneofDescriptorProto)
  4808. return target;
  4809. }
  4810. size_t OneofDescriptorProto::ByteSizeLong() const {
  4811. // @@protoc_insertion_point(message_byte_size_start:google.protobuf.OneofDescriptorProto)
  4812. size_t total_size = 0;
  4813. if (_internal_metadata_.have_unknown_fields()) {
  4814. total_size +=
  4815. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  4816. _internal_metadata_.unknown_fields());
  4817. }
  4818. if (_has_bits_[0 / 32] & 3u) {
  4819. // optional string name = 1;
  4820. if (has_name()) {
  4821. total_size += 1 +
  4822. ::google::protobuf::internal::WireFormatLite::StringSize(
  4823. this->name());
  4824. }
  4825. // optional .google.protobuf.OneofOptions options = 2;
  4826. if (has_options()) {
  4827. total_size += 1 +
  4828. ::google::protobuf::internal::WireFormatLite::MessageSize(
  4829. *options_);
  4830. }
  4831. }
  4832. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  4833. SetCachedSize(cached_size);
  4834. return total_size;
  4835. }
  4836. void OneofDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
  4837. // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.OneofDescriptorProto)
  4838. GOOGLE_DCHECK_NE(&from, this);
  4839. const OneofDescriptorProto* source =
  4840. ::google::protobuf::internal::DynamicCastToGenerated<const OneofDescriptorProto>(
  4841. &from);
  4842. if (source == NULL) {
  4843. // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.OneofDescriptorProto)
  4844. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  4845. } else {
  4846. // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.OneofDescriptorProto)
  4847. MergeFrom(*source);
  4848. }
  4849. }
  4850. void OneofDescriptorProto::MergeFrom(const OneofDescriptorProto& from) {
  4851. // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.OneofDescriptorProto)
  4852. GOOGLE_DCHECK_NE(&from, this);
  4853. _internal_metadata_.MergeFrom(from._internal_metadata_);
  4854. ::google::protobuf::uint32 cached_has_bits = 0;
  4855. (void) cached_has_bits;
  4856. cached_has_bits = from._has_bits_[0];
  4857. if (cached_has_bits & 3u) {
  4858. if (cached_has_bits & 0x00000001u) {
  4859. set_name(from.name());
  4860. }
  4861. if (cached_has_bits & 0x00000002u) {
  4862. mutable_options()->::google::protobuf::OneofOptions::MergeFrom(from.options());
  4863. }
  4864. }
  4865. }
  4866. void OneofDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
  4867. // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.OneofDescriptorProto)
  4868. if (&from == this) return;
  4869. Clear();
  4870. MergeFrom(from);
  4871. }
  4872. void OneofDescriptorProto::CopyFrom(const OneofDescriptorProto& from) {
  4873. // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.OneofDescriptorProto)
  4874. if (&from == this) return;
  4875. Clear();
  4876. MergeFrom(from);
  4877. }
  4878. bool OneofDescriptorProto::IsInitialized() const {
  4879. if (has_options()) {
  4880. if (!this->options_->IsInitialized()) return false;
  4881. }
  4882. return true;
  4883. }
  4884. void OneofDescriptorProto::Swap(OneofDescriptorProto* other) {
  4885. if (other == this) return;
  4886. if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
  4887. InternalSwap(other);
  4888. } else {
  4889. OneofDescriptorProto* temp = New(GetArenaNoVirtual());
  4890. temp->MergeFrom(*other);
  4891. other->CopyFrom(*this);
  4892. InternalSwap(temp);
  4893. if (GetArenaNoVirtual() == NULL) {
  4894. delete temp;
  4895. }
  4896. }
  4897. }
  4898. void OneofDescriptorProto::UnsafeArenaSwap(OneofDescriptorProto* other) {
  4899. if (other == this) return;
  4900. GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
  4901. InternalSwap(other);
  4902. }
  4903. void OneofDescriptorProto::InternalSwap(OneofDescriptorProto* other) {
  4904. using std::swap;
  4905. name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  4906. GetArenaNoVirtual());
  4907. swap(options_, other->options_);
  4908. swap(_has_bits_[0], other->_has_bits_[0]);
  4909. _internal_metadata_.Swap(&other->_internal_metadata_);
  4910. }
  4911. ::google::protobuf::Metadata OneofDescriptorProto::GetMetadata() const {
  4912. protobuf_google_2fprotobuf_2fdescriptor_2eproto::protobuf_AssignDescriptorsOnce();
  4913. return ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::file_level_metadata[kIndexInFileMessages];
  4914. }
  4915. // ===================================================================
  4916. void EnumDescriptorProto_EnumReservedRange::InitAsDefaultInstance() {
  4917. }
  4918. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  4919. const int EnumDescriptorProto_EnumReservedRange::kStartFieldNumber;
  4920. const int EnumDescriptorProto_EnumReservedRange::kEndFieldNumber;
  4921. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  4922. EnumDescriptorProto_EnumReservedRange::EnumDescriptorProto_EnumReservedRange()
  4923. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  4924. ::google::protobuf::internal::InitSCC(
  4925. &protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_EnumDescriptorProto_EnumReservedRange.base);
  4926. SharedCtor();
  4927. // @@protoc_insertion_point(constructor:google.protobuf.EnumDescriptorProto.EnumReservedRange)
  4928. }
  4929. EnumDescriptorProto_EnumReservedRange::EnumDescriptorProto_EnumReservedRange(::google::protobuf::Arena* arena)
  4930. : ::google::protobuf::Message(),
  4931. _internal_metadata_(arena) {
  4932. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_EnumDescriptorProto_EnumReservedRange.base);
  4933. SharedCtor();
  4934. RegisterArenaDtor(arena);
  4935. // @@protoc_insertion_point(arena_constructor:google.protobuf.EnumDescriptorProto.EnumReservedRange)
  4936. }
  4937. EnumDescriptorProto_EnumReservedRange::EnumDescriptorProto_EnumReservedRange(const EnumDescriptorProto_EnumReservedRange& from)
  4938. : ::google::protobuf::Message(),
  4939. _internal_metadata_(NULL),
  4940. _has_bits_(from._has_bits_) {
  4941. _internal_metadata_.MergeFrom(from._internal_metadata_);
  4942. ::memcpy(&start_, &from.start_,
  4943. static_cast<size_t>(reinterpret_cast<char*>(&end_) -
  4944. reinterpret_cast<char*>(&start_)) + sizeof(end_));
  4945. // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumDescriptorProto.EnumReservedRange)
  4946. }
  4947. void EnumDescriptorProto_EnumReservedRange::SharedCtor() {
  4948. ::memset(&start_, 0, static_cast<size_t>(
  4949. reinterpret_cast<char*>(&end_) -
  4950. reinterpret_cast<char*>(&start_)) + sizeof(end_));
  4951. }
  4952. EnumDescriptorProto_EnumReservedRange::~EnumDescriptorProto_EnumReservedRange() {
  4953. // @@protoc_insertion_point(destructor:google.protobuf.EnumDescriptorProto.EnumReservedRange)
  4954. SharedDtor();
  4955. }
  4956. void EnumDescriptorProto_EnumReservedRange::SharedDtor() {
  4957. GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
  4958. }
  4959. void EnumDescriptorProto_EnumReservedRange::ArenaDtor(void* object) {
  4960. EnumDescriptorProto_EnumReservedRange* _this = reinterpret_cast< EnumDescriptorProto_EnumReservedRange* >(object);
  4961. (void)_this;
  4962. }
  4963. void EnumDescriptorProto_EnumReservedRange::RegisterArenaDtor(::google::protobuf::Arena* arena) {
  4964. }
  4965. void EnumDescriptorProto_EnumReservedRange::SetCachedSize(int size) const {
  4966. _cached_size_.Set(size);
  4967. }
  4968. const ::google::protobuf::Descriptor* EnumDescriptorProto_EnumReservedRange::descriptor() {
  4969. ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::protobuf_AssignDescriptorsOnce();
  4970. return ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  4971. }
  4972. const EnumDescriptorProto_EnumReservedRange& EnumDescriptorProto_EnumReservedRange::default_instance() {
  4973. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_EnumDescriptorProto_EnumReservedRange.base);
  4974. return *internal_default_instance();
  4975. }
  4976. void EnumDescriptorProto_EnumReservedRange::Clear() {
  4977. // @@protoc_insertion_point(message_clear_start:google.protobuf.EnumDescriptorProto.EnumReservedRange)
  4978. ::google::protobuf::uint32 cached_has_bits = 0;
  4979. // Prevent compiler warnings about cached_has_bits being unused
  4980. (void) cached_has_bits;
  4981. cached_has_bits = _has_bits_[0];
  4982. if (cached_has_bits & 3u) {
  4983. ::memset(&start_, 0, static_cast<size_t>(
  4984. reinterpret_cast<char*>(&end_) -
  4985. reinterpret_cast<char*>(&start_)) + sizeof(end_));
  4986. }
  4987. _has_bits_.Clear();
  4988. _internal_metadata_.Clear();
  4989. }
  4990. bool EnumDescriptorProto_EnumReservedRange::MergePartialFromCodedStream(
  4991. ::google::protobuf::io::CodedInputStream* input) {
  4992. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  4993. ::google::protobuf::uint32 tag;
  4994. // @@protoc_insertion_point(parse_start:google.protobuf.EnumDescriptorProto.EnumReservedRange)
  4995. for (;;) {
  4996. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  4997. tag = p.first;
  4998. if (!p.second) goto handle_unusual;
  4999. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  5000. // optional int32 start = 1;
  5001. case 1: {
  5002. if (static_cast< ::google::protobuf::uint8>(tag) ==
  5003. static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
  5004. set_has_start();
  5005. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  5006. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  5007. input, &start_)));
  5008. } else {
  5009. goto handle_unusual;
  5010. }
  5011. break;
  5012. }
  5013. // optional int32 end = 2;
  5014. case 2: {
  5015. if (static_cast< ::google::protobuf::uint8>(tag) ==
  5016. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  5017. set_has_end();
  5018. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  5019. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  5020. input, &end_)));
  5021. } else {
  5022. goto handle_unusual;
  5023. }
  5024. break;
  5025. }
  5026. default: {
  5027. handle_unusual:
  5028. if (tag == 0) {
  5029. goto success;
  5030. }
  5031. DO_(::google::protobuf::internal::WireFormat::SkipField(
  5032. input, tag, _internal_metadata_.mutable_unknown_fields()));
  5033. break;
  5034. }
  5035. }
  5036. }
  5037. success:
  5038. // @@protoc_insertion_point(parse_success:google.protobuf.EnumDescriptorProto.EnumReservedRange)
  5039. return true;
  5040. failure:
  5041. // @@protoc_insertion_point(parse_failure:google.protobuf.EnumDescriptorProto.EnumReservedRange)
  5042. return false;
  5043. #undef DO_
  5044. }
  5045. void EnumDescriptorProto_EnumReservedRange::SerializeWithCachedSizes(
  5046. ::google::protobuf::io::CodedOutputStream* output) const {
  5047. // @@protoc_insertion_point(serialize_start:google.protobuf.EnumDescriptorProto.EnumReservedRange)
  5048. ::google::protobuf::uint32 cached_has_bits = 0;
  5049. (void) cached_has_bits;
  5050. cached_has_bits = _has_bits_[0];
  5051. // optional int32 start = 1;
  5052. if (cached_has_bits & 0x00000001u) {
  5053. ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->start(), output);
  5054. }
  5055. // optional int32 end = 2;
  5056. if (cached_has_bits & 0x00000002u) {
  5057. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->end(), output);
  5058. }
  5059. if (_internal_metadata_.have_unknown_fields()) {
  5060. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  5061. _internal_metadata_.unknown_fields(), output);
  5062. }
  5063. // @@protoc_insertion_point(serialize_end:google.protobuf.EnumDescriptorProto.EnumReservedRange)
  5064. }
  5065. ::google::protobuf::uint8* EnumDescriptorProto_EnumReservedRange::InternalSerializeWithCachedSizesToArray(
  5066. bool deterministic, ::google::protobuf::uint8* target) const {
  5067. (void)deterministic; // Unused
  5068. // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumDescriptorProto.EnumReservedRange)
  5069. ::google::protobuf::uint32 cached_has_bits = 0;
  5070. (void) cached_has_bits;
  5071. cached_has_bits = _has_bits_[0];
  5072. // optional int32 start = 1;
  5073. if (cached_has_bits & 0x00000001u) {
  5074. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->start(), target);
  5075. }
  5076. // optional int32 end = 2;
  5077. if (cached_has_bits & 0x00000002u) {
  5078. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->end(), target);
  5079. }
  5080. if (_internal_metadata_.have_unknown_fields()) {
  5081. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  5082. _internal_metadata_.unknown_fields(), target);
  5083. }
  5084. // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumDescriptorProto.EnumReservedRange)
  5085. return target;
  5086. }
  5087. size_t EnumDescriptorProto_EnumReservedRange::ByteSizeLong() const {
  5088. // @@protoc_insertion_point(message_byte_size_start:google.protobuf.EnumDescriptorProto.EnumReservedRange)
  5089. size_t total_size = 0;
  5090. if (_internal_metadata_.have_unknown_fields()) {
  5091. total_size +=
  5092. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  5093. _internal_metadata_.unknown_fields());
  5094. }
  5095. if (_has_bits_[0 / 32] & 3u) {
  5096. // optional int32 start = 1;
  5097. if (has_start()) {
  5098. total_size += 1 +
  5099. ::google::protobuf::internal::WireFormatLite::Int32Size(
  5100. this->start());
  5101. }
  5102. // optional int32 end = 2;
  5103. if (has_end()) {
  5104. total_size += 1 +
  5105. ::google::protobuf::internal::WireFormatLite::Int32Size(
  5106. this->end());
  5107. }
  5108. }
  5109. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  5110. SetCachedSize(cached_size);
  5111. return total_size;
  5112. }
  5113. void EnumDescriptorProto_EnumReservedRange::MergeFrom(const ::google::protobuf::Message& from) {
  5114. // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.EnumDescriptorProto.EnumReservedRange)
  5115. GOOGLE_DCHECK_NE(&from, this);
  5116. const EnumDescriptorProto_EnumReservedRange* source =
  5117. ::google::protobuf::internal::DynamicCastToGenerated<const EnumDescriptorProto_EnumReservedRange>(
  5118. &from);
  5119. if (source == NULL) {
  5120. // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.EnumDescriptorProto.EnumReservedRange)
  5121. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  5122. } else {
  5123. // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.EnumDescriptorProto.EnumReservedRange)
  5124. MergeFrom(*source);
  5125. }
  5126. }
  5127. void EnumDescriptorProto_EnumReservedRange::MergeFrom(const EnumDescriptorProto_EnumReservedRange& from) {
  5128. // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.EnumDescriptorProto.EnumReservedRange)
  5129. GOOGLE_DCHECK_NE(&from, this);
  5130. _internal_metadata_.MergeFrom(from._internal_metadata_);
  5131. ::google::protobuf::uint32 cached_has_bits = 0;
  5132. (void) cached_has_bits;
  5133. cached_has_bits = from._has_bits_[0];
  5134. if (cached_has_bits & 3u) {
  5135. if (cached_has_bits & 0x00000001u) {
  5136. start_ = from.start_;
  5137. }
  5138. if (cached_has_bits & 0x00000002u) {
  5139. end_ = from.end_;
  5140. }
  5141. _has_bits_[0] |= cached_has_bits;
  5142. }
  5143. }
  5144. void EnumDescriptorProto_EnumReservedRange::CopyFrom(const ::google::protobuf::Message& from) {
  5145. // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.EnumDescriptorProto.EnumReservedRange)
  5146. if (&from == this) return;
  5147. Clear();
  5148. MergeFrom(from);
  5149. }
  5150. void EnumDescriptorProto_EnumReservedRange::CopyFrom(const EnumDescriptorProto_EnumReservedRange& from) {
  5151. // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.EnumDescriptorProto.EnumReservedRange)
  5152. if (&from == this) return;
  5153. Clear();
  5154. MergeFrom(from);
  5155. }
  5156. bool EnumDescriptorProto_EnumReservedRange::IsInitialized() const {
  5157. return true;
  5158. }
  5159. void EnumDescriptorProto_EnumReservedRange::Swap(EnumDescriptorProto_EnumReservedRange* other) {
  5160. if (other == this) return;
  5161. if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
  5162. InternalSwap(other);
  5163. } else {
  5164. EnumDescriptorProto_EnumReservedRange* temp = New(GetArenaNoVirtual());
  5165. temp->MergeFrom(*other);
  5166. other->CopyFrom(*this);
  5167. InternalSwap(temp);
  5168. if (GetArenaNoVirtual() == NULL) {
  5169. delete temp;
  5170. }
  5171. }
  5172. }
  5173. void EnumDescriptorProto_EnumReservedRange::UnsafeArenaSwap(EnumDescriptorProto_EnumReservedRange* other) {
  5174. if (other == this) return;
  5175. GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
  5176. InternalSwap(other);
  5177. }
  5178. void EnumDescriptorProto_EnumReservedRange::InternalSwap(EnumDescriptorProto_EnumReservedRange* other) {
  5179. using std::swap;
  5180. swap(start_, other->start_);
  5181. swap(end_, other->end_);
  5182. swap(_has_bits_[0], other->_has_bits_[0]);
  5183. _internal_metadata_.Swap(&other->_internal_metadata_);
  5184. }
  5185. ::google::protobuf::Metadata EnumDescriptorProto_EnumReservedRange::GetMetadata() const {
  5186. protobuf_google_2fprotobuf_2fdescriptor_2eproto::protobuf_AssignDescriptorsOnce();
  5187. return ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::file_level_metadata[kIndexInFileMessages];
  5188. }
  5189. // ===================================================================
  5190. void EnumDescriptorProto::InitAsDefaultInstance() {
  5191. ::google::protobuf::_EnumDescriptorProto_default_instance_._instance.get_mutable()->options_ = const_cast< ::google::protobuf::EnumOptions*>(
  5192. ::google::protobuf::EnumOptions::internal_default_instance());
  5193. }
  5194. void EnumDescriptorProto::unsafe_arena_set_allocated_options(
  5195. ::google::protobuf::EnumOptions* options) {
  5196. if (GetArenaNoVirtual() == NULL) {
  5197. delete options_;
  5198. }
  5199. options_ = options;
  5200. if (options) {
  5201. set_has_options();
  5202. } else {
  5203. clear_has_options();
  5204. }
  5205. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.EnumDescriptorProto.options)
  5206. }
  5207. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  5208. const int EnumDescriptorProto::kNameFieldNumber;
  5209. const int EnumDescriptorProto::kValueFieldNumber;
  5210. const int EnumDescriptorProto::kOptionsFieldNumber;
  5211. const int EnumDescriptorProto::kReservedRangeFieldNumber;
  5212. const int EnumDescriptorProto::kReservedNameFieldNumber;
  5213. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  5214. EnumDescriptorProto::EnumDescriptorProto()
  5215. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  5216. ::google::protobuf::internal::InitSCC(
  5217. &protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_EnumDescriptorProto.base);
  5218. SharedCtor();
  5219. // @@protoc_insertion_point(constructor:google.protobuf.EnumDescriptorProto)
  5220. }
  5221. EnumDescriptorProto::EnumDescriptorProto(::google::protobuf::Arena* arena)
  5222. : ::google::protobuf::Message(),
  5223. _internal_metadata_(arena),
  5224. value_(arena),
  5225. reserved_range_(arena),
  5226. reserved_name_(arena) {
  5227. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_EnumDescriptorProto.base);
  5228. SharedCtor();
  5229. RegisterArenaDtor(arena);
  5230. // @@protoc_insertion_point(arena_constructor:google.protobuf.EnumDescriptorProto)
  5231. }
  5232. EnumDescriptorProto::EnumDescriptorProto(const EnumDescriptorProto& from)
  5233. : ::google::protobuf::Message(),
  5234. _internal_metadata_(NULL),
  5235. _has_bits_(from._has_bits_),
  5236. value_(from.value_),
  5237. reserved_range_(from.reserved_range_),
  5238. reserved_name_(from.reserved_name_) {
  5239. _internal_metadata_.MergeFrom(from._internal_metadata_);
  5240. name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  5241. if (from.has_name()) {
  5242. name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name(),
  5243. GetArenaNoVirtual());
  5244. }
  5245. if (from.has_options()) {
  5246. options_ = new ::google::protobuf::EnumOptions(*from.options_);
  5247. } else {
  5248. options_ = NULL;
  5249. }
  5250. // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumDescriptorProto)
  5251. }
  5252. void EnumDescriptorProto::SharedCtor() {
  5253. name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  5254. options_ = NULL;
  5255. }
  5256. EnumDescriptorProto::~EnumDescriptorProto() {
  5257. // @@protoc_insertion_point(destructor:google.protobuf.EnumDescriptorProto)
  5258. SharedDtor();
  5259. }
  5260. void EnumDescriptorProto::SharedDtor() {
  5261. GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
  5262. name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  5263. if (this != internal_default_instance()) delete options_;
  5264. }
  5265. void EnumDescriptorProto::ArenaDtor(void* object) {
  5266. EnumDescriptorProto* _this = reinterpret_cast< EnumDescriptorProto* >(object);
  5267. (void)_this;
  5268. }
  5269. void EnumDescriptorProto::RegisterArenaDtor(::google::protobuf::Arena* arena) {
  5270. }
  5271. void EnumDescriptorProto::SetCachedSize(int size) const {
  5272. _cached_size_.Set(size);
  5273. }
  5274. const ::google::protobuf::Descriptor* EnumDescriptorProto::descriptor() {
  5275. ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::protobuf_AssignDescriptorsOnce();
  5276. return ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  5277. }
  5278. const EnumDescriptorProto& EnumDescriptorProto::default_instance() {
  5279. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_EnumDescriptorProto.base);
  5280. return *internal_default_instance();
  5281. }
  5282. void EnumDescriptorProto::Clear() {
  5283. // @@protoc_insertion_point(message_clear_start:google.protobuf.EnumDescriptorProto)
  5284. ::google::protobuf::uint32 cached_has_bits = 0;
  5285. // Prevent compiler warnings about cached_has_bits being unused
  5286. (void) cached_has_bits;
  5287. value_.Clear();
  5288. reserved_range_.Clear();
  5289. reserved_name_.Clear();
  5290. cached_has_bits = _has_bits_[0];
  5291. if (cached_has_bits & 3u) {
  5292. if (cached_has_bits & 0x00000001u) {
  5293. name_.ClearNonDefaultToEmpty();
  5294. }
  5295. if (cached_has_bits & 0x00000002u) {
  5296. GOOGLE_DCHECK(options_ != NULL);
  5297. options_->Clear();
  5298. }
  5299. }
  5300. _has_bits_.Clear();
  5301. _internal_metadata_.Clear();
  5302. }
  5303. bool EnumDescriptorProto::MergePartialFromCodedStream(
  5304. ::google::protobuf::io::CodedInputStream* input) {
  5305. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  5306. ::google::protobuf::uint32 tag;
  5307. // @@protoc_insertion_point(parse_start:google.protobuf.EnumDescriptorProto)
  5308. for (;;) {
  5309. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  5310. tag = p.first;
  5311. if (!p.second) goto handle_unusual;
  5312. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  5313. // optional string name = 1;
  5314. case 1: {
  5315. if (static_cast< ::google::protobuf::uint8>(tag) ==
  5316. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  5317. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  5318. input, this->mutable_name()));
  5319. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  5320. this->name().data(), static_cast<int>(this->name().length()),
  5321. ::google::protobuf::internal::WireFormat::PARSE,
  5322. "google.protobuf.EnumDescriptorProto.name");
  5323. } else {
  5324. goto handle_unusual;
  5325. }
  5326. break;
  5327. }
  5328. // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
  5329. case 2: {
  5330. if (static_cast< ::google::protobuf::uint8>(tag) ==
  5331. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  5332. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  5333. input, add_value()));
  5334. } else {
  5335. goto handle_unusual;
  5336. }
  5337. break;
  5338. }
  5339. // optional .google.protobuf.EnumOptions options = 3;
  5340. case 3: {
  5341. if (static_cast< ::google::protobuf::uint8>(tag) ==
  5342. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  5343. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  5344. input, mutable_options()));
  5345. } else {
  5346. goto handle_unusual;
  5347. }
  5348. break;
  5349. }
  5350. // repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
  5351. case 4: {
  5352. if (static_cast< ::google::protobuf::uint8>(tag) ==
  5353. static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
  5354. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  5355. input, add_reserved_range()));
  5356. } else {
  5357. goto handle_unusual;
  5358. }
  5359. break;
  5360. }
  5361. // repeated string reserved_name = 5;
  5362. case 5: {
  5363. if (static_cast< ::google::protobuf::uint8>(tag) ==
  5364. static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
  5365. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  5366. input, this->add_reserved_name()));
  5367. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  5368. this->reserved_name(this->reserved_name_size() - 1).data(),
  5369. static_cast<int>(this->reserved_name(this->reserved_name_size() - 1).length()),
  5370. ::google::protobuf::internal::WireFormat::PARSE,
  5371. "google.protobuf.EnumDescriptorProto.reserved_name");
  5372. } else {
  5373. goto handle_unusual;
  5374. }
  5375. break;
  5376. }
  5377. default: {
  5378. handle_unusual:
  5379. if (tag == 0) {
  5380. goto success;
  5381. }
  5382. DO_(::google::protobuf::internal::WireFormat::SkipField(
  5383. input, tag, _internal_metadata_.mutable_unknown_fields()));
  5384. break;
  5385. }
  5386. }
  5387. }
  5388. success:
  5389. // @@protoc_insertion_point(parse_success:google.protobuf.EnumDescriptorProto)
  5390. return true;
  5391. failure:
  5392. // @@protoc_insertion_point(parse_failure:google.protobuf.EnumDescriptorProto)
  5393. return false;
  5394. #undef DO_
  5395. }
  5396. void EnumDescriptorProto::SerializeWithCachedSizes(
  5397. ::google::protobuf::io::CodedOutputStream* output) const {
  5398. // @@protoc_insertion_point(serialize_start:google.protobuf.EnumDescriptorProto)
  5399. ::google::protobuf::uint32 cached_has_bits = 0;
  5400. (void) cached_has_bits;
  5401. cached_has_bits = _has_bits_[0];
  5402. // optional string name = 1;
  5403. if (cached_has_bits & 0x00000001u) {
  5404. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  5405. this->name().data(), static_cast<int>(this->name().length()),
  5406. ::google::protobuf::internal::WireFormat::SERIALIZE,
  5407. "google.protobuf.EnumDescriptorProto.name");
  5408. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  5409. 1, this->name(), output);
  5410. }
  5411. // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
  5412. for (unsigned int i = 0,
  5413. n = static_cast<unsigned int>(this->value_size()); i < n; i++) {
  5414. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  5415. 2,
  5416. this->value(static_cast<int>(i)),
  5417. output);
  5418. }
  5419. // optional .google.protobuf.EnumOptions options = 3;
  5420. if (cached_has_bits & 0x00000002u) {
  5421. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  5422. 3, this->_internal_options(), output);
  5423. }
  5424. // repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
  5425. for (unsigned int i = 0,
  5426. n = static_cast<unsigned int>(this->reserved_range_size()); i < n; i++) {
  5427. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  5428. 4,
  5429. this->reserved_range(static_cast<int>(i)),
  5430. output);
  5431. }
  5432. // repeated string reserved_name = 5;
  5433. for (int i = 0, n = this->reserved_name_size(); i < n; i++) {
  5434. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  5435. this->reserved_name(i).data(), static_cast<int>(this->reserved_name(i).length()),
  5436. ::google::protobuf::internal::WireFormat::SERIALIZE,
  5437. "google.protobuf.EnumDescriptorProto.reserved_name");
  5438. ::google::protobuf::internal::WireFormatLite::WriteString(
  5439. 5, this->reserved_name(i), output);
  5440. }
  5441. if (_internal_metadata_.have_unknown_fields()) {
  5442. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  5443. _internal_metadata_.unknown_fields(), output);
  5444. }
  5445. // @@protoc_insertion_point(serialize_end:google.protobuf.EnumDescriptorProto)
  5446. }
  5447. ::google::protobuf::uint8* EnumDescriptorProto::InternalSerializeWithCachedSizesToArray(
  5448. bool deterministic, ::google::protobuf::uint8* target) const {
  5449. (void)deterministic; // Unused
  5450. // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumDescriptorProto)
  5451. ::google::protobuf::uint32 cached_has_bits = 0;
  5452. (void) cached_has_bits;
  5453. cached_has_bits = _has_bits_[0];
  5454. // optional string name = 1;
  5455. if (cached_has_bits & 0x00000001u) {
  5456. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  5457. this->name().data(), static_cast<int>(this->name().length()),
  5458. ::google::protobuf::internal::WireFormat::SERIALIZE,
  5459. "google.protobuf.EnumDescriptorProto.name");
  5460. target =
  5461. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  5462. 1, this->name(), target);
  5463. }
  5464. // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
  5465. for (unsigned int i = 0,
  5466. n = static_cast<unsigned int>(this->value_size()); i < n; i++) {
  5467. target = ::google::protobuf::internal::WireFormatLite::
  5468. InternalWriteMessageToArray(
  5469. 2, this->value(static_cast<int>(i)), deterministic, target);
  5470. }
  5471. // optional .google.protobuf.EnumOptions options = 3;
  5472. if (cached_has_bits & 0x00000002u) {
  5473. target = ::google::protobuf::internal::WireFormatLite::
  5474. InternalWriteMessageToArray(
  5475. 3, this->_internal_options(), deterministic, target);
  5476. }
  5477. // repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
  5478. for (unsigned int i = 0,
  5479. n = static_cast<unsigned int>(this->reserved_range_size()); i < n; i++) {
  5480. target = ::google::protobuf::internal::WireFormatLite::
  5481. InternalWriteMessageToArray(
  5482. 4, this->reserved_range(static_cast<int>(i)), deterministic, target);
  5483. }
  5484. // repeated string reserved_name = 5;
  5485. for (int i = 0, n = this->reserved_name_size(); i < n; i++) {
  5486. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  5487. this->reserved_name(i).data(), static_cast<int>(this->reserved_name(i).length()),
  5488. ::google::protobuf::internal::WireFormat::SERIALIZE,
  5489. "google.protobuf.EnumDescriptorProto.reserved_name");
  5490. target = ::google::protobuf::internal::WireFormatLite::
  5491. WriteStringToArray(5, this->reserved_name(i), target);
  5492. }
  5493. if (_internal_metadata_.have_unknown_fields()) {
  5494. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  5495. _internal_metadata_.unknown_fields(), target);
  5496. }
  5497. // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumDescriptorProto)
  5498. return target;
  5499. }
  5500. size_t EnumDescriptorProto::ByteSizeLong() const {
  5501. // @@protoc_insertion_point(message_byte_size_start:google.protobuf.EnumDescriptorProto)
  5502. size_t total_size = 0;
  5503. if (_internal_metadata_.have_unknown_fields()) {
  5504. total_size +=
  5505. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  5506. _internal_metadata_.unknown_fields());
  5507. }
  5508. // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
  5509. {
  5510. unsigned int count = static_cast<unsigned int>(this->value_size());
  5511. total_size += 1UL * count;
  5512. for (unsigned int i = 0; i < count; i++) {
  5513. total_size +=
  5514. ::google::protobuf::internal::WireFormatLite::MessageSize(
  5515. this->value(static_cast<int>(i)));
  5516. }
  5517. }
  5518. // repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
  5519. {
  5520. unsigned int count = static_cast<unsigned int>(this->reserved_range_size());
  5521. total_size += 1UL * count;
  5522. for (unsigned int i = 0; i < count; i++) {
  5523. total_size +=
  5524. ::google::protobuf::internal::WireFormatLite::MessageSize(
  5525. this->reserved_range(static_cast<int>(i)));
  5526. }
  5527. }
  5528. // repeated string reserved_name = 5;
  5529. total_size += 1 *
  5530. ::google::protobuf::internal::FromIntSize(this->reserved_name_size());
  5531. for (int i = 0, n = this->reserved_name_size(); i < n; i++) {
  5532. total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
  5533. this->reserved_name(i));
  5534. }
  5535. if (_has_bits_[0 / 32] & 3u) {
  5536. // optional string name = 1;
  5537. if (has_name()) {
  5538. total_size += 1 +
  5539. ::google::protobuf::internal::WireFormatLite::StringSize(
  5540. this->name());
  5541. }
  5542. // optional .google.protobuf.EnumOptions options = 3;
  5543. if (has_options()) {
  5544. total_size += 1 +
  5545. ::google::protobuf::internal::WireFormatLite::MessageSize(
  5546. *options_);
  5547. }
  5548. }
  5549. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  5550. SetCachedSize(cached_size);
  5551. return total_size;
  5552. }
  5553. void EnumDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
  5554. // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.EnumDescriptorProto)
  5555. GOOGLE_DCHECK_NE(&from, this);
  5556. const EnumDescriptorProto* source =
  5557. ::google::protobuf::internal::DynamicCastToGenerated<const EnumDescriptorProto>(
  5558. &from);
  5559. if (source == NULL) {
  5560. // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.EnumDescriptorProto)
  5561. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  5562. } else {
  5563. // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.EnumDescriptorProto)
  5564. MergeFrom(*source);
  5565. }
  5566. }
  5567. void EnumDescriptorProto::MergeFrom(const EnumDescriptorProto& from) {
  5568. // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.EnumDescriptorProto)
  5569. GOOGLE_DCHECK_NE(&from, this);
  5570. _internal_metadata_.MergeFrom(from._internal_metadata_);
  5571. ::google::protobuf::uint32 cached_has_bits = 0;
  5572. (void) cached_has_bits;
  5573. value_.MergeFrom(from.value_);
  5574. reserved_range_.MergeFrom(from.reserved_range_);
  5575. reserved_name_.MergeFrom(from.reserved_name_);
  5576. cached_has_bits = from._has_bits_[0];
  5577. if (cached_has_bits & 3u) {
  5578. if (cached_has_bits & 0x00000001u) {
  5579. set_name(from.name());
  5580. }
  5581. if (cached_has_bits & 0x00000002u) {
  5582. mutable_options()->::google::protobuf::EnumOptions::MergeFrom(from.options());
  5583. }
  5584. }
  5585. }
  5586. void EnumDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
  5587. // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.EnumDescriptorProto)
  5588. if (&from == this) return;
  5589. Clear();
  5590. MergeFrom(from);
  5591. }
  5592. void EnumDescriptorProto::CopyFrom(const EnumDescriptorProto& from) {
  5593. // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.EnumDescriptorProto)
  5594. if (&from == this) return;
  5595. Clear();
  5596. MergeFrom(from);
  5597. }
  5598. bool EnumDescriptorProto::IsInitialized() const {
  5599. if (!::google::protobuf::internal::AllAreInitialized(this->value())) return false;
  5600. if (has_options()) {
  5601. if (!this->options_->IsInitialized()) return false;
  5602. }
  5603. return true;
  5604. }
  5605. void EnumDescriptorProto::Swap(EnumDescriptorProto* other) {
  5606. if (other == this) return;
  5607. if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
  5608. InternalSwap(other);
  5609. } else {
  5610. EnumDescriptorProto* temp = New(GetArenaNoVirtual());
  5611. temp->MergeFrom(*other);
  5612. other->CopyFrom(*this);
  5613. InternalSwap(temp);
  5614. if (GetArenaNoVirtual() == NULL) {
  5615. delete temp;
  5616. }
  5617. }
  5618. }
  5619. void EnumDescriptorProto::UnsafeArenaSwap(EnumDescriptorProto* other) {
  5620. if (other == this) return;
  5621. GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
  5622. InternalSwap(other);
  5623. }
  5624. void EnumDescriptorProto::InternalSwap(EnumDescriptorProto* other) {
  5625. using std::swap;
  5626. CastToBase(&value_)->InternalSwap(CastToBase(&other->value_));
  5627. CastToBase(&reserved_range_)->InternalSwap(CastToBase(&other->reserved_range_));
  5628. reserved_name_.InternalSwap(CastToBase(&other->reserved_name_));
  5629. name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  5630. GetArenaNoVirtual());
  5631. swap(options_, other->options_);
  5632. swap(_has_bits_[0], other->_has_bits_[0]);
  5633. _internal_metadata_.Swap(&other->_internal_metadata_);
  5634. }
  5635. ::google::protobuf::Metadata EnumDescriptorProto::GetMetadata() const {
  5636. protobuf_google_2fprotobuf_2fdescriptor_2eproto::protobuf_AssignDescriptorsOnce();
  5637. return ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::file_level_metadata[kIndexInFileMessages];
  5638. }
  5639. // ===================================================================
  5640. void EnumValueDescriptorProto::InitAsDefaultInstance() {
  5641. ::google::protobuf::_EnumValueDescriptorProto_default_instance_._instance.get_mutable()->options_ = const_cast< ::google::protobuf::EnumValueOptions*>(
  5642. ::google::protobuf::EnumValueOptions::internal_default_instance());
  5643. }
  5644. void EnumValueDescriptorProto::unsafe_arena_set_allocated_options(
  5645. ::google::protobuf::EnumValueOptions* options) {
  5646. if (GetArenaNoVirtual() == NULL) {
  5647. delete options_;
  5648. }
  5649. options_ = options;
  5650. if (options) {
  5651. set_has_options();
  5652. } else {
  5653. clear_has_options();
  5654. }
  5655. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.EnumValueDescriptorProto.options)
  5656. }
  5657. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  5658. const int EnumValueDescriptorProto::kNameFieldNumber;
  5659. const int EnumValueDescriptorProto::kNumberFieldNumber;
  5660. const int EnumValueDescriptorProto::kOptionsFieldNumber;
  5661. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  5662. EnumValueDescriptorProto::EnumValueDescriptorProto()
  5663. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  5664. ::google::protobuf::internal::InitSCC(
  5665. &protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_EnumValueDescriptorProto.base);
  5666. SharedCtor();
  5667. // @@protoc_insertion_point(constructor:google.protobuf.EnumValueDescriptorProto)
  5668. }
  5669. EnumValueDescriptorProto::EnumValueDescriptorProto(::google::protobuf::Arena* arena)
  5670. : ::google::protobuf::Message(),
  5671. _internal_metadata_(arena) {
  5672. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_EnumValueDescriptorProto.base);
  5673. SharedCtor();
  5674. RegisterArenaDtor(arena);
  5675. // @@protoc_insertion_point(arena_constructor:google.protobuf.EnumValueDescriptorProto)
  5676. }
  5677. EnumValueDescriptorProto::EnumValueDescriptorProto(const EnumValueDescriptorProto& from)
  5678. : ::google::protobuf::Message(),
  5679. _internal_metadata_(NULL),
  5680. _has_bits_(from._has_bits_) {
  5681. _internal_metadata_.MergeFrom(from._internal_metadata_);
  5682. name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  5683. if (from.has_name()) {
  5684. name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name(),
  5685. GetArenaNoVirtual());
  5686. }
  5687. if (from.has_options()) {
  5688. options_ = new ::google::protobuf::EnumValueOptions(*from.options_);
  5689. } else {
  5690. options_ = NULL;
  5691. }
  5692. number_ = from.number_;
  5693. // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumValueDescriptorProto)
  5694. }
  5695. void EnumValueDescriptorProto::SharedCtor() {
  5696. name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  5697. ::memset(&options_, 0, static_cast<size_t>(
  5698. reinterpret_cast<char*>(&number_) -
  5699. reinterpret_cast<char*>(&options_)) + sizeof(number_));
  5700. }
  5701. EnumValueDescriptorProto::~EnumValueDescriptorProto() {
  5702. // @@protoc_insertion_point(destructor:google.protobuf.EnumValueDescriptorProto)
  5703. SharedDtor();
  5704. }
  5705. void EnumValueDescriptorProto::SharedDtor() {
  5706. GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
  5707. name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  5708. if (this != internal_default_instance()) delete options_;
  5709. }
  5710. void EnumValueDescriptorProto::ArenaDtor(void* object) {
  5711. EnumValueDescriptorProto* _this = reinterpret_cast< EnumValueDescriptorProto* >(object);
  5712. (void)_this;
  5713. }
  5714. void EnumValueDescriptorProto::RegisterArenaDtor(::google::protobuf::Arena* arena) {
  5715. }
  5716. void EnumValueDescriptorProto::SetCachedSize(int size) const {
  5717. _cached_size_.Set(size);
  5718. }
  5719. const ::google::protobuf::Descriptor* EnumValueDescriptorProto::descriptor() {
  5720. ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::protobuf_AssignDescriptorsOnce();
  5721. return ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  5722. }
  5723. const EnumValueDescriptorProto& EnumValueDescriptorProto::default_instance() {
  5724. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_EnumValueDescriptorProto.base);
  5725. return *internal_default_instance();
  5726. }
  5727. void EnumValueDescriptorProto::Clear() {
  5728. // @@protoc_insertion_point(message_clear_start:google.protobuf.EnumValueDescriptorProto)
  5729. ::google::protobuf::uint32 cached_has_bits = 0;
  5730. // Prevent compiler warnings about cached_has_bits being unused
  5731. (void) cached_has_bits;
  5732. cached_has_bits = _has_bits_[0];
  5733. if (cached_has_bits & 3u) {
  5734. if (cached_has_bits & 0x00000001u) {
  5735. name_.ClearNonDefaultToEmpty();
  5736. }
  5737. if (cached_has_bits & 0x00000002u) {
  5738. GOOGLE_DCHECK(options_ != NULL);
  5739. options_->Clear();
  5740. }
  5741. }
  5742. number_ = 0;
  5743. _has_bits_.Clear();
  5744. _internal_metadata_.Clear();
  5745. }
  5746. bool EnumValueDescriptorProto::MergePartialFromCodedStream(
  5747. ::google::protobuf::io::CodedInputStream* input) {
  5748. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  5749. ::google::protobuf::uint32 tag;
  5750. // @@protoc_insertion_point(parse_start:google.protobuf.EnumValueDescriptorProto)
  5751. for (;;) {
  5752. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  5753. tag = p.first;
  5754. if (!p.second) goto handle_unusual;
  5755. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  5756. // optional string name = 1;
  5757. case 1: {
  5758. if (static_cast< ::google::protobuf::uint8>(tag) ==
  5759. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  5760. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  5761. input, this->mutable_name()));
  5762. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  5763. this->name().data(), static_cast<int>(this->name().length()),
  5764. ::google::protobuf::internal::WireFormat::PARSE,
  5765. "google.protobuf.EnumValueDescriptorProto.name");
  5766. } else {
  5767. goto handle_unusual;
  5768. }
  5769. break;
  5770. }
  5771. // optional int32 number = 2;
  5772. case 2: {
  5773. if (static_cast< ::google::protobuf::uint8>(tag) ==
  5774. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  5775. set_has_number();
  5776. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  5777. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  5778. input, &number_)));
  5779. } else {
  5780. goto handle_unusual;
  5781. }
  5782. break;
  5783. }
  5784. // optional .google.protobuf.EnumValueOptions options = 3;
  5785. case 3: {
  5786. if (static_cast< ::google::protobuf::uint8>(tag) ==
  5787. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  5788. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  5789. input, mutable_options()));
  5790. } else {
  5791. goto handle_unusual;
  5792. }
  5793. break;
  5794. }
  5795. default: {
  5796. handle_unusual:
  5797. if (tag == 0) {
  5798. goto success;
  5799. }
  5800. DO_(::google::protobuf::internal::WireFormat::SkipField(
  5801. input, tag, _internal_metadata_.mutable_unknown_fields()));
  5802. break;
  5803. }
  5804. }
  5805. }
  5806. success:
  5807. // @@protoc_insertion_point(parse_success:google.protobuf.EnumValueDescriptorProto)
  5808. return true;
  5809. failure:
  5810. // @@protoc_insertion_point(parse_failure:google.protobuf.EnumValueDescriptorProto)
  5811. return false;
  5812. #undef DO_
  5813. }
  5814. void EnumValueDescriptorProto::SerializeWithCachedSizes(
  5815. ::google::protobuf::io::CodedOutputStream* output) const {
  5816. // @@protoc_insertion_point(serialize_start:google.protobuf.EnumValueDescriptorProto)
  5817. ::google::protobuf::uint32 cached_has_bits = 0;
  5818. (void) cached_has_bits;
  5819. cached_has_bits = _has_bits_[0];
  5820. // optional string name = 1;
  5821. if (cached_has_bits & 0x00000001u) {
  5822. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  5823. this->name().data(), static_cast<int>(this->name().length()),
  5824. ::google::protobuf::internal::WireFormat::SERIALIZE,
  5825. "google.protobuf.EnumValueDescriptorProto.name");
  5826. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  5827. 1, this->name(), output);
  5828. }
  5829. // optional int32 number = 2;
  5830. if (cached_has_bits & 0x00000004u) {
  5831. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->number(), output);
  5832. }
  5833. // optional .google.protobuf.EnumValueOptions options = 3;
  5834. if (cached_has_bits & 0x00000002u) {
  5835. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  5836. 3, this->_internal_options(), output);
  5837. }
  5838. if (_internal_metadata_.have_unknown_fields()) {
  5839. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  5840. _internal_metadata_.unknown_fields(), output);
  5841. }
  5842. // @@protoc_insertion_point(serialize_end:google.protobuf.EnumValueDescriptorProto)
  5843. }
  5844. ::google::protobuf::uint8* EnumValueDescriptorProto::InternalSerializeWithCachedSizesToArray(
  5845. bool deterministic, ::google::protobuf::uint8* target) const {
  5846. (void)deterministic; // Unused
  5847. // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumValueDescriptorProto)
  5848. ::google::protobuf::uint32 cached_has_bits = 0;
  5849. (void) cached_has_bits;
  5850. cached_has_bits = _has_bits_[0];
  5851. // optional string name = 1;
  5852. if (cached_has_bits & 0x00000001u) {
  5853. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  5854. this->name().data(), static_cast<int>(this->name().length()),
  5855. ::google::protobuf::internal::WireFormat::SERIALIZE,
  5856. "google.protobuf.EnumValueDescriptorProto.name");
  5857. target =
  5858. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  5859. 1, this->name(), target);
  5860. }
  5861. // optional int32 number = 2;
  5862. if (cached_has_bits & 0x00000004u) {
  5863. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->number(), target);
  5864. }
  5865. // optional .google.protobuf.EnumValueOptions options = 3;
  5866. if (cached_has_bits & 0x00000002u) {
  5867. target = ::google::protobuf::internal::WireFormatLite::
  5868. InternalWriteMessageToArray(
  5869. 3, this->_internal_options(), deterministic, target);
  5870. }
  5871. if (_internal_metadata_.have_unknown_fields()) {
  5872. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  5873. _internal_metadata_.unknown_fields(), target);
  5874. }
  5875. // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumValueDescriptorProto)
  5876. return target;
  5877. }
  5878. size_t EnumValueDescriptorProto::ByteSizeLong() const {
  5879. // @@protoc_insertion_point(message_byte_size_start:google.protobuf.EnumValueDescriptorProto)
  5880. size_t total_size = 0;
  5881. if (_internal_metadata_.have_unknown_fields()) {
  5882. total_size +=
  5883. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  5884. _internal_metadata_.unknown_fields());
  5885. }
  5886. if (_has_bits_[0 / 32] & 7u) {
  5887. // optional string name = 1;
  5888. if (has_name()) {
  5889. total_size += 1 +
  5890. ::google::protobuf::internal::WireFormatLite::StringSize(
  5891. this->name());
  5892. }
  5893. // optional .google.protobuf.EnumValueOptions options = 3;
  5894. if (has_options()) {
  5895. total_size += 1 +
  5896. ::google::protobuf::internal::WireFormatLite::MessageSize(
  5897. *options_);
  5898. }
  5899. // optional int32 number = 2;
  5900. if (has_number()) {
  5901. total_size += 1 +
  5902. ::google::protobuf::internal::WireFormatLite::Int32Size(
  5903. this->number());
  5904. }
  5905. }
  5906. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  5907. SetCachedSize(cached_size);
  5908. return total_size;
  5909. }
  5910. void EnumValueDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
  5911. // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.EnumValueDescriptorProto)
  5912. GOOGLE_DCHECK_NE(&from, this);
  5913. const EnumValueDescriptorProto* source =
  5914. ::google::protobuf::internal::DynamicCastToGenerated<const EnumValueDescriptorProto>(
  5915. &from);
  5916. if (source == NULL) {
  5917. // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.EnumValueDescriptorProto)
  5918. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  5919. } else {
  5920. // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.EnumValueDescriptorProto)
  5921. MergeFrom(*source);
  5922. }
  5923. }
  5924. void EnumValueDescriptorProto::MergeFrom(const EnumValueDescriptorProto& from) {
  5925. // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.EnumValueDescriptorProto)
  5926. GOOGLE_DCHECK_NE(&from, this);
  5927. _internal_metadata_.MergeFrom(from._internal_metadata_);
  5928. ::google::protobuf::uint32 cached_has_bits = 0;
  5929. (void) cached_has_bits;
  5930. cached_has_bits = from._has_bits_[0];
  5931. if (cached_has_bits & 7u) {
  5932. if (cached_has_bits & 0x00000001u) {
  5933. set_name(from.name());
  5934. }
  5935. if (cached_has_bits & 0x00000002u) {
  5936. mutable_options()->::google::protobuf::EnumValueOptions::MergeFrom(from.options());
  5937. }
  5938. if (cached_has_bits & 0x00000004u) {
  5939. number_ = from.number_;
  5940. }
  5941. _has_bits_[0] |= cached_has_bits;
  5942. }
  5943. }
  5944. void EnumValueDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
  5945. // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.EnumValueDescriptorProto)
  5946. if (&from == this) return;
  5947. Clear();
  5948. MergeFrom(from);
  5949. }
  5950. void EnumValueDescriptorProto::CopyFrom(const EnumValueDescriptorProto& from) {
  5951. // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.EnumValueDescriptorProto)
  5952. if (&from == this) return;
  5953. Clear();
  5954. MergeFrom(from);
  5955. }
  5956. bool EnumValueDescriptorProto::IsInitialized() const {
  5957. if (has_options()) {
  5958. if (!this->options_->IsInitialized()) return false;
  5959. }
  5960. return true;
  5961. }
  5962. void EnumValueDescriptorProto::Swap(EnumValueDescriptorProto* other) {
  5963. if (other == this) return;
  5964. if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
  5965. InternalSwap(other);
  5966. } else {
  5967. EnumValueDescriptorProto* temp = New(GetArenaNoVirtual());
  5968. temp->MergeFrom(*other);
  5969. other->CopyFrom(*this);
  5970. InternalSwap(temp);
  5971. if (GetArenaNoVirtual() == NULL) {
  5972. delete temp;
  5973. }
  5974. }
  5975. }
  5976. void EnumValueDescriptorProto::UnsafeArenaSwap(EnumValueDescriptorProto* other) {
  5977. if (other == this) return;
  5978. GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
  5979. InternalSwap(other);
  5980. }
  5981. void EnumValueDescriptorProto::InternalSwap(EnumValueDescriptorProto* other) {
  5982. using std::swap;
  5983. name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  5984. GetArenaNoVirtual());
  5985. swap(options_, other->options_);
  5986. swap(number_, other->number_);
  5987. swap(_has_bits_[0], other->_has_bits_[0]);
  5988. _internal_metadata_.Swap(&other->_internal_metadata_);
  5989. }
  5990. ::google::protobuf::Metadata EnumValueDescriptorProto::GetMetadata() const {
  5991. protobuf_google_2fprotobuf_2fdescriptor_2eproto::protobuf_AssignDescriptorsOnce();
  5992. return ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::file_level_metadata[kIndexInFileMessages];
  5993. }
  5994. // ===================================================================
  5995. void ServiceDescriptorProto::InitAsDefaultInstance() {
  5996. ::google::protobuf::_ServiceDescriptorProto_default_instance_._instance.get_mutable()->options_ = const_cast< ::google::protobuf::ServiceOptions*>(
  5997. ::google::protobuf::ServiceOptions::internal_default_instance());
  5998. }
  5999. void ServiceDescriptorProto::unsafe_arena_set_allocated_options(
  6000. ::google::protobuf::ServiceOptions* options) {
  6001. if (GetArenaNoVirtual() == NULL) {
  6002. delete options_;
  6003. }
  6004. options_ = options;
  6005. if (options) {
  6006. set_has_options();
  6007. } else {
  6008. clear_has_options();
  6009. }
  6010. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.ServiceDescriptorProto.options)
  6011. }
  6012. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  6013. const int ServiceDescriptorProto::kNameFieldNumber;
  6014. const int ServiceDescriptorProto::kMethodFieldNumber;
  6015. const int ServiceDescriptorProto::kOptionsFieldNumber;
  6016. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  6017. ServiceDescriptorProto::ServiceDescriptorProto()
  6018. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  6019. ::google::protobuf::internal::InitSCC(
  6020. &protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_ServiceDescriptorProto.base);
  6021. SharedCtor();
  6022. // @@protoc_insertion_point(constructor:google.protobuf.ServiceDescriptorProto)
  6023. }
  6024. ServiceDescriptorProto::ServiceDescriptorProto(::google::protobuf::Arena* arena)
  6025. : ::google::protobuf::Message(),
  6026. _internal_metadata_(arena),
  6027. method_(arena) {
  6028. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_ServiceDescriptorProto.base);
  6029. SharedCtor();
  6030. RegisterArenaDtor(arena);
  6031. // @@protoc_insertion_point(arena_constructor:google.protobuf.ServiceDescriptorProto)
  6032. }
  6033. ServiceDescriptorProto::ServiceDescriptorProto(const ServiceDescriptorProto& from)
  6034. : ::google::protobuf::Message(),
  6035. _internal_metadata_(NULL),
  6036. _has_bits_(from._has_bits_),
  6037. method_(from.method_) {
  6038. _internal_metadata_.MergeFrom(from._internal_metadata_);
  6039. name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  6040. if (from.has_name()) {
  6041. name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name(),
  6042. GetArenaNoVirtual());
  6043. }
  6044. if (from.has_options()) {
  6045. options_ = new ::google::protobuf::ServiceOptions(*from.options_);
  6046. } else {
  6047. options_ = NULL;
  6048. }
  6049. // @@protoc_insertion_point(copy_constructor:google.protobuf.ServiceDescriptorProto)
  6050. }
  6051. void ServiceDescriptorProto::SharedCtor() {
  6052. name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  6053. options_ = NULL;
  6054. }
  6055. ServiceDescriptorProto::~ServiceDescriptorProto() {
  6056. // @@protoc_insertion_point(destructor:google.protobuf.ServiceDescriptorProto)
  6057. SharedDtor();
  6058. }
  6059. void ServiceDescriptorProto::SharedDtor() {
  6060. GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
  6061. name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  6062. if (this != internal_default_instance()) delete options_;
  6063. }
  6064. void ServiceDescriptorProto::ArenaDtor(void* object) {
  6065. ServiceDescriptorProto* _this = reinterpret_cast< ServiceDescriptorProto* >(object);
  6066. (void)_this;
  6067. }
  6068. void ServiceDescriptorProto::RegisterArenaDtor(::google::protobuf::Arena* arena) {
  6069. }
  6070. void ServiceDescriptorProto::SetCachedSize(int size) const {
  6071. _cached_size_.Set(size);
  6072. }
  6073. const ::google::protobuf::Descriptor* ServiceDescriptorProto::descriptor() {
  6074. ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::protobuf_AssignDescriptorsOnce();
  6075. return ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  6076. }
  6077. const ServiceDescriptorProto& ServiceDescriptorProto::default_instance() {
  6078. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_ServiceDescriptorProto.base);
  6079. return *internal_default_instance();
  6080. }
  6081. void ServiceDescriptorProto::Clear() {
  6082. // @@protoc_insertion_point(message_clear_start:google.protobuf.ServiceDescriptorProto)
  6083. ::google::protobuf::uint32 cached_has_bits = 0;
  6084. // Prevent compiler warnings about cached_has_bits being unused
  6085. (void) cached_has_bits;
  6086. method_.Clear();
  6087. cached_has_bits = _has_bits_[0];
  6088. if (cached_has_bits & 3u) {
  6089. if (cached_has_bits & 0x00000001u) {
  6090. name_.ClearNonDefaultToEmpty();
  6091. }
  6092. if (cached_has_bits & 0x00000002u) {
  6093. GOOGLE_DCHECK(options_ != NULL);
  6094. options_->Clear();
  6095. }
  6096. }
  6097. _has_bits_.Clear();
  6098. _internal_metadata_.Clear();
  6099. }
  6100. bool ServiceDescriptorProto::MergePartialFromCodedStream(
  6101. ::google::protobuf::io::CodedInputStream* input) {
  6102. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  6103. ::google::protobuf::uint32 tag;
  6104. // @@protoc_insertion_point(parse_start:google.protobuf.ServiceDescriptorProto)
  6105. for (;;) {
  6106. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  6107. tag = p.first;
  6108. if (!p.second) goto handle_unusual;
  6109. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  6110. // optional string name = 1;
  6111. case 1: {
  6112. if (static_cast< ::google::protobuf::uint8>(tag) ==
  6113. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  6114. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  6115. input, this->mutable_name()));
  6116. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  6117. this->name().data(), static_cast<int>(this->name().length()),
  6118. ::google::protobuf::internal::WireFormat::PARSE,
  6119. "google.protobuf.ServiceDescriptorProto.name");
  6120. } else {
  6121. goto handle_unusual;
  6122. }
  6123. break;
  6124. }
  6125. // repeated .google.protobuf.MethodDescriptorProto method = 2;
  6126. case 2: {
  6127. if (static_cast< ::google::protobuf::uint8>(tag) ==
  6128. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  6129. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  6130. input, add_method()));
  6131. } else {
  6132. goto handle_unusual;
  6133. }
  6134. break;
  6135. }
  6136. // optional .google.protobuf.ServiceOptions options = 3;
  6137. case 3: {
  6138. if (static_cast< ::google::protobuf::uint8>(tag) ==
  6139. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  6140. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  6141. input, mutable_options()));
  6142. } else {
  6143. goto handle_unusual;
  6144. }
  6145. break;
  6146. }
  6147. default: {
  6148. handle_unusual:
  6149. if (tag == 0) {
  6150. goto success;
  6151. }
  6152. DO_(::google::protobuf::internal::WireFormat::SkipField(
  6153. input, tag, _internal_metadata_.mutable_unknown_fields()));
  6154. break;
  6155. }
  6156. }
  6157. }
  6158. success:
  6159. // @@protoc_insertion_point(parse_success:google.protobuf.ServiceDescriptorProto)
  6160. return true;
  6161. failure:
  6162. // @@protoc_insertion_point(parse_failure:google.protobuf.ServiceDescriptorProto)
  6163. return false;
  6164. #undef DO_
  6165. }
  6166. void ServiceDescriptorProto::SerializeWithCachedSizes(
  6167. ::google::protobuf::io::CodedOutputStream* output) const {
  6168. // @@protoc_insertion_point(serialize_start:google.protobuf.ServiceDescriptorProto)
  6169. ::google::protobuf::uint32 cached_has_bits = 0;
  6170. (void) cached_has_bits;
  6171. cached_has_bits = _has_bits_[0];
  6172. // optional string name = 1;
  6173. if (cached_has_bits & 0x00000001u) {
  6174. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  6175. this->name().data(), static_cast<int>(this->name().length()),
  6176. ::google::protobuf::internal::WireFormat::SERIALIZE,
  6177. "google.protobuf.ServiceDescriptorProto.name");
  6178. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  6179. 1, this->name(), output);
  6180. }
  6181. // repeated .google.protobuf.MethodDescriptorProto method = 2;
  6182. for (unsigned int i = 0,
  6183. n = static_cast<unsigned int>(this->method_size()); i < n; i++) {
  6184. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  6185. 2,
  6186. this->method(static_cast<int>(i)),
  6187. output);
  6188. }
  6189. // optional .google.protobuf.ServiceOptions options = 3;
  6190. if (cached_has_bits & 0x00000002u) {
  6191. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  6192. 3, this->_internal_options(), output);
  6193. }
  6194. if (_internal_metadata_.have_unknown_fields()) {
  6195. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  6196. _internal_metadata_.unknown_fields(), output);
  6197. }
  6198. // @@protoc_insertion_point(serialize_end:google.protobuf.ServiceDescriptorProto)
  6199. }
  6200. ::google::protobuf::uint8* ServiceDescriptorProto::InternalSerializeWithCachedSizesToArray(
  6201. bool deterministic, ::google::protobuf::uint8* target) const {
  6202. (void)deterministic; // Unused
  6203. // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.ServiceDescriptorProto)
  6204. ::google::protobuf::uint32 cached_has_bits = 0;
  6205. (void) cached_has_bits;
  6206. cached_has_bits = _has_bits_[0];
  6207. // optional string name = 1;
  6208. if (cached_has_bits & 0x00000001u) {
  6209. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  6210. this->name().data(), static_cast<int>(this->name().length()),
  6211. ::google::protobuf::internal::WireFormat::SERIALIZE,
  6212. "google.protobuf.ServiceDescriptorProto.name");
  6213. target =
  6214. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  6215. 1, this->name(), target);
  6216. }
  6217. // repeated .google.protobuf.MethodDescriptorProto method = 2;
  6218. for (unsigned int i = 0,
  6219. n = static_cast<unsigned int>(this->method_size()); i < n; i++) {
  6220. target = ::google::protobuf::internal::WireFormatLite::
  6221. InternalWriteMessageToArray(
  6222. 2, this->method(static_cast<int>(i)), deterministic, target);
  6223. }
  6224. // optional .google.protobuf.ServiceOptions options = 3;
  6225. if (cached_has_bits & 0x00000002u) {
  6226. target = ::google::protobuf::internal::WireFormatLite::
  6227. InternalWriteMessageToArray(
  6228. 3, this->_internal_options(), deterministic, target);
  6229. }
  6230. if (_internal_metadata_.have_unknown_fields()) {
  6231. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  6232. _internal_metadata_.unknown_fields(), target);
  6233. }
  6234. // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.ServiceDescriptorProto)
  6235. return target;
  6236. }
  6237. size_t ServiceDescriptorProto::ByteSizeLong() const {
  6238. // @@protoc_insertion_point(message_byte_size_start:google.protobuf.ServiceDescriptorProto)
  6239. size_t total_size = 0;
  6240. if (_internal_metadata_.have_unknown_fields()) {
  6241. total_size +=
  6242. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  6243. _internal_metadata_.unknown_fields());
  6244. }
  6245. // repeated .google.protobuf.MethodDescriptorProto method = 2;
  6246. {
  6247. unsigned int count = static_cast<unsigned int>(this->method_size());
  6248. total_size += 1UL * count;
  6249. for (unsigned int i = 0; i < count; i++) {
  6250. total_size +=
  6251. ::google::protobuf::internal::WireFormatLite::MessageSize(
  6252. this->method(static_cast<int>(i)));
  6253. }
  6254. }
  6255. if (_has_bits_[0 / 32] & 3u) {
  6256. // optional string name = 1;
  6257. if (has_name()) {
  6258. total_size += 1 +
  6259. ::google::protobuf::internal::WireFormatLite::StringSize(
  6260. this->name());
  6261. }
  6262. // optional .google.protobuf.ServiceOptions options = 3;
  6263. if (has_options()) {
  6264. total_size += 1 +
  6265. ::google::protobuf::internal::WireFormatLite::MessageSize(
  6266. *options_);
  6267. }
  6268. }
  6269. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  6270. SetCachedSize(cached_size);
  6271. return total_size;
  6272. }
  6273. void ServiceDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
  6274. // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.ServiceDescriptorProto)
  6275. GOOGLE_DCHECK_NE(&from, this);
  6276. const ServiceDescriptorProto* source =
  6277. ::google::protobuf::internal::DynamicCastToGenerated<const ServiceDescriptorProto>(
  6278. &from);
  6279. if (source == NULL) {
  6280. // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.ServiceDescriptorProto)
  6281. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  6282. } else {
  6283. // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.ServiceDescriptorProto)
  6284. MergeFrom(*source);
  6285. }
  6286. }
  6287. void ServiceDescriptorProto::MergeFrom(const ServiceDescriptorProto& from) {
  6288. // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.ServiceDescriptorProto)
  6289. GOOGLE_DCHECK_NE(&from, this);
  6290. _internal_metadata_.MergeFrom(from._internal_metadata_);
  6291. ::google::protobuf::uint32 cached_has_bits = 0;
  6292. (void) cached_has_bits;
  6293. method_.MergeFrom(from.method_);
  6294. cached_has_bits = from._has_bits_[0];
  6295. if (cached_has_bits & 3u) {
  6296. if (cached_has_bits & 0x00000001u) {
  6297. set_name(from.name());
  6298. }
  6299. if (cached_has_bits & 0x00000002u) {
  6300. mutable_options()->::google::protobuf::ServiceOptions::MergeFrom(from.options());
  6301. }
  6302. }
  6303. }
  6304. void ServiceDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
  6305. // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.ServiceDescriptorProto)
  6306. if (&from == this) return;
  6307. Clear();
  6308. MergeFrom(from);
  6309. }
  6310. void ServiceDescriptorProto::CopyFrom(const ServiceDescriptorProto& from) {
  6311. // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.ServiceDescriptorProto)
  6312. if (&from == this) return;
  6313. Clear();
  6314. MergeFrom(from);
  6315. }
  6316. bool ServiceDescriptorProto::IsInitialized() const {
  6317. if (!::google::protobuf::internal::AllAreInitialized(this->method())) return false;
  6318. if (has_options()) {
  6319. if (!this->options_->IsInitialized()) return false;
  6320. }
  6321. return true;
  6322. }
  6323. void ServiceDescriptorProto::Swap(ServiceDescriptorProto* other) {
  6324. if (other == this) return;
  6325. if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
  6326. InternalSwap(other);
  6327. } else {
  6328. ServiceDescriptorProto* temp = New(GetArenaNoVirtual());
  6329. temp->MergeFrom(*other);
  6330. other->CopyFrom(*this);
  6331. InternalSwap(temp);
  6332. if (GetArenaNoVirtual() == NULL) {
  6333. delete temp;
  6334. }
  6335. }
  6336. }
  6337. void ServiceDescriptorProto::UnsafeArenaSwap(ServiceDescriptorProto* other) {
  6338. if (other == this) return;
  6339. GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
  6340. InternalSwap(other);
  6341. }
  6342. void ServiceDescriptorProto::InternalSwap(ServiceDescriptorProto* other) {
  6343. using std::swap;
  6344. CastToBase(&method_)->InternalSwap(CastToBase(&other->method_));
  6345. name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  6346. GetArenaNoVirtual());
  6347. swap(options_, other->options_);
  6348. swap(_has_bits_[0], other->_has_bits_[0]);
  6349. _internal_metadata_.Swap(&other->_internal_metadata_);
  6350. }
  6351. ::google::protobuf::Metadata ServiceDescriptorProto::GetMetadata() const {
  6352. protobuf_google_2fprotobuf_2fdescriptor_2eproto::protobuf_AssignDescriptorsOnce();
  6353. return ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::file_level_metadata[kIndexInFileMessages];
  6354. }
  6355. // ===================================================================
  6356. void MethodDescriptorProto::InitAsDefaultInstance() {
  6357. ::google::protobuf::_MethodDescriptorProto_default_instance_._instance.get_mutable()->options_ = const_cast< ::google::protobuf::MethodOptions*>(
  6358. ::google::protobuf::MethodOptions::internal_default_instance());
  6359. }
  6360. void MethodDescriptorProto::unsafe_arena_set_allocated_options(
  6361. ::google::protobuf::MethodOptions* options) {
  6362. if (GetArenaNoVirtual() == NULL) {
  6363. delete options_;
  6364. }
  6365. options_ = options;
  6366. if (options) {
  6367. set_has_options();
  6368. } else {
  6369. clear_has_options();
  6370. }
  6371. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.MethodDescriptorProto.options)
  6372. }
  6373. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  6374. const int MethodDescriptorProto::kNameFieldNumber;
  6375. const int MethodDescriptorProto::kInputTypeFieldNumber;
  6376. const int MethodDescriptorProto::kOutputTypeFieldNumber;
  6377. const int MethodDescriptorProto::kOptionsFieldNumber;
  6378. const int MethodDescriptorProto::kClientStreamingFieldNumber;
  6379. const int MethodDescriptorProto::kServerStreamingFieldNumber;
  6380. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  6381. MethodDescriptorProto::MethodDescriptorProto()
  6382. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  6383. ::google::protobuf::internal::InitSCC(
  6384. &protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_MethodDescriptorProto.base);
  6385. SharedCtor();
  6386. // @@protoc_insertion_point(constructor:google.protobuf.MethodDescriptorProto)
  6387. }
  6388. MethodDescriptorProto::MethodDescriptorProto(::google::protobuf::Arena* arena)
  6389. : ::google::protobuf::Message(),
  6390. _internal_metadata_(arena) {
  6391. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_MethodDescriptorProto.base);
  6392. SharedCtor();
  6393. RegisterArenaDtor(arena);
  6394. // @@protoc_insertion_point(arena_constructor:google.protobuf.MethodDescriptorProto)
  6395. }
  6396. MethodDescriptorProto::MethodDescriptorProto(const MethodDescriptorProto& from)
  6397. : ::google::protobuf::Message(),
  6398. _internal_metadata_(NULL),
  6399. _has_bits_(from._has_bits_) {
  6400. _internal_metadata_.MergeFrom(from._internal_metadata_);
  6401. name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  6402. if (from.has_name()) {
  6403. name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name(),
  6404. GetArenaNoVirtual());
  6405. }
  6406. input_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  6407. if (from.has_input_type()) {
  6408. input_type_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.input_type(),
  6409. GetArenaNoVirtual());
  6410. }
  6411. output_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  6412. if (from.has_output_type()) {
  6413. output_type_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.output_type(),
  6414. GetArenaNoVirtual());
  6415. }
  6416. if (from.has_options()) {
  6417. options_ = new ::google::protobuf::MethodOptions(*from.options_);
  6418. } else {
  6419. options_ = NULL;
  6420. }
  6421. ::memcpy(&client_streaming_, &from.client_streaming_,
  6422. static_cast<size_t>(reinterpret_cast<char*>(&server_streaming_) -
  6423. reinterpret_cast<char*>(&client_streaming_)) + sizeof(server_streaming_));
  6424. // @@protoc_insertion_point(copy_constructor:google.protobuf.MethodDescriptorProto)
  6425. }
  6426. void MethodDescriptorProto::SharedCtor() {
  6427. name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  6428. input_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  6429. output_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  6430. ::memset(&options_, 0, static_cast<size_t>(
  6431. reinterpret_cast<char*>(&server_streaming_) -
  6432. reinterpret_cast<char*>(&options_)) + sizeof(server_streaming_));
  6433. }
  6434. MethodDescriptorProto::~MethodDescriptorProto() {
  6435. // @@protoc_insertion_point(destructor:google.protobuf.MethodDescriptorProto)
  6436. SharedDtor();
  6437. }
  6438. void MethodDescriptorProto::SharedDtor() {
  6439. GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
  6440. name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  6441. input_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  6442. output_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  6443. if (this != internal_default_instance()) delete options_;
  6444. }
  6445. void MethodDescriptorProto::ArenaDtor(void* object) {
  6446. MethodDescriptorProto* _this = reinterpret_cast< MethodDescriptorProto* >(object);
  6447. (void)_this;
  6448. }
  6449. void MethodDescriptorProto::RegisterArenaDtor(::google::protobuf::Arena* arena) {
  6450. }
  6451. void MethodDescriptorProto::SetCachedSize(int size) const {
  6452. _cached_size_.Set(size);
  6453. }
  6454. const ::google::protobuf::Descriptor* MethodDescriptorProto::descriptor() {
  6455. ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::protobuf_AssignDescriptorsOnce();
  6456. return ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  6457. }
  6458. const MethodDescriptorProto& MethodDescriptorProto::default_instance() {
  6459. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_MethodDescriptorProto.base);
  6460. return *internal_default_instance();
  6461. }
  6462. void MethodDescriptorProto::Clear() {
  6463. // @@protoc_insertion_point(message_clear_start:google.protobuf.MethodDescriptorProto)
  6464. ::google::protobuf::uint32 cached_has_bits = 0;
  6465. // Prevent compiler warnings about cached_has_bits being unused
  6466. (void) cached_has_bits;
  6467. cached_has_bits = _has_bits_[0];
  6468. if (cached_has_bits & 15u) {
  6469. if (cached_has_bits & 0x00000001u) {
  6470. name_.ClearNonDefaultToEmpty();
  6471. }
  6472. if (cached_has_bits & 0x00000002u) {
  6473. input_type_.ClearNonDefaultToEmpty();
  6474. }
  6475. if (cached_has_bits & 0x00000004u) {
  6476. output_type_.ClearNonDefaultToEmpty();
  6477. }
  6478. if (cached_has_bits & 0x00000008u) {
  6479. GOOGLE_DCHECK(options_ != NULL);
  6480. options_->Clear();
  6481. }
  6482. }
  6483. ::memset(&client_streaming_, 0, static_cast<size_t>(
  6484. reinterpret_cast<char*>(&server_streaming_) -
  6485. reinterpret_cast<char*>(&client_streaming_)) + sizeof(server_streaming_));
  6486. _has_bits_.Clear();
  6487. _internal_metadata_.Clear();
  6488. }
  6489. bool MethodDescriptorProto::MergePartialFromCodedStream(
  6490. ::google::protobuf::io::CodedInputStream* input) {
  6491. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  6492. ::google::protobuf::uint32 tag;
  6493. // @@protoc_insertion_point(parse_start:google.protobuf.MethodDescriptorProto)
  6494. for (;;) {
  6495. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  6496. tag = p.first;
  6497. if (!p.second) goto handle_unusual;
  6498. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  6499. // optional string name = 1;
  6500. case 1: {
  6501. if (static_cast< ::google::protobuf::uint8>(tag) ==
  6502. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  6503. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  6504. input, this->mutable_name()));
  6505. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  6506. this->name().data(), static_cast<int>(this->name().length()),
  6507. ::google::protobuf::internal::WireFormat::PARSE,
  6508. "google.protobuf.MethodDescriptorProto.name");
  6509. } else {
  6510. goto handle_unusual;
  6511. }
  6512. break;
  6513. }
  6514. // optional string input_type = 2;
  6515. case 2: {
  6516. if (static_cast< ::google::protobuf::uint8>(tag) ==
  6517. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  6518. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  6519. input, this->mutable_input_type()));
  6520. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  6521. this->input_type().data(), static_cast<int>(this->input_type().length()),
  6522. ::google::protobuf::internal::WireFormat::PARSE,
  6523. "google.protobuf.MethodDescriptorProto.input_type");
  6524. } else {
  6525. goto handle_unusual;
  6526. }
  6527. break;
  6528. }
  6529. // optional string output_type = 3;
  6530. case 3: {
  6531. if (static_cast< ::google::protobuf::uint8>(tag) ==
  6532. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  6533. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  6534. input, this->mutable_output_type()));
  6535. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  6536. this->output_type().data(), static_cast<int>(this->output_type().length()),
  6537. ::google::protobuf::internal::WireFormat::PARSE,
  6538. "google.protobuf.MethodDescriptorProto.output_type");
  6539. } else {
  6540. goto handle_unusual;
  6541. }
  6542. break;
  6543. }
  6544. // optional .google.protobuf.MethodOptions options = 4;
  6545. case 4: {
  6546. if (static_cast< ::google::protobuf::uint8>(tag) ==
  6547. static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
  6548. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  6549. input, mutable_options()));
  6550. } else {
  6551. goto handle_unusual;
  6552. }
  6553. break;
  6554. }
  6555. // optional bool client_streaming = 5 [default = false];
  6556. case 5: {
  6557. if (static_cast< ::google::protobuf::uint8>(tag) ==
  6558. static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
  6559. set_has_client_streaming();
  6560. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  6561. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  6562. input, &client_streaming_)));
  6563. } else {
  6564. goto handle_unusual;
  6565. }
  6566. break;
  6567. }
  6568. // optional bool server_streaming = 6 [default = false];
  6569. case 6: {
  6570. if (static_cast< ::google::protobuf::uint8>(tag) ==
  6571. static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
  6572. set_has_server_streaming();
  6573. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  6574. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  6575. input, &server_streaming_)));
  6576. } else {
  6577. goto handle_unusual;
  6578. }
  6579. break;
  6580. }
  6581. default: {
  6582. handle_unusual:
  6583. if (tag == 0) {
  6584. goto success;
  6585. }
  6586. DO_(::google::protobuf::internal::WireFormat::SkipField(
  6587. input, tag, _internal_metadata_.mutable_unknown_fields()));
  6588. break;
  6589. }
  6590. }
  6591. }
  6592. success:
  6593. // @@protoc_insertion_point(parse_success:google.protobuf.MethodDescriptorProto)
  6594. return true;
  6595. failure:
  6596. // @@protoc_insertion_point(parse_failure:google.protobuf.MethodDescriptorProto)
  6597. return false;
  6598. #undef DO_
  6599. }
  6600. void MethodDescriptorProto::SerializeWithCachedSizes(
  6601. ::google::protobuf::io::CodedOutputStream* output) const {
  6602. // @@protoc_insertion_point(serialize_start:google.protobuf.MethodDescriptorProto)
  6603. ::google::protobuf::uint32 cached_has_bits = 0;
  6604. (void) cached_has_bits;
  6605. cached_has_bits = _has_bits_[0];
  6606. // optional string name = 1;
  6607. if (cached_has_bits & 0x00000001u) {
  6608. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  6609. this->name().data(), static_cast<int>(this->name().length()),
  6610. ::google::protobuf::internal::WireFormat::SERIALIZE,
  6611. "google.protobuf.MethodDescriptorProto.name");
  6612. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  6613. 1, this->name(), output);
  6614. }
  6615. // optional string input_type = 2;
  6616. if (cached_has_bits & 0x00000002u) {
  6617. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  6618. this->input_type().data(), static_cast<int>(this->input_type().length()),
  6619. ::google::protobuf::internal::WireFormat::SERIALIZE,
  6620. "google.protobuf.MethodDescriptorProto.input_type");
  6621. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  6622. 2, this->input_type(), output);
  6623. }
  6624. // optional string output_type = 3;
  6625. if (cached_has_bits & 0x00000004u) {
  6626. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  6627. this->output_type().data(), static_cast<int>(this->output_type().length()),
  6628. ::google::protobuf::internal::WireFormat::SERIALIZE,
  6629. "google.protobuf.MethodDescriptorProto.output_type");
  6630. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  6631. 3, this->output_type(), output);
  6632. }
  6633. // optional .google.protobuf.MethodOptions options = 4;
  6634. if (cached_has_bits & 0x00000008u) {
  6635. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  6636. 4, this->_internal_options(), output);
  6637. }
  6638. // optional bool client_streaming = 5 [default = false];
  6639. if (cached_has_bits & 0x00000010u) {
  6640. ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->client_streaming(), output);
  6641. }
  6642. // optional bool server_streaming = 6 [default = false];
  6643. if (cached_has_bits & 0x00000020u) {
  6644. ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->server_streaming(), output);
  6645. }
  6646. if (_internal_metadata_.have_unknown_fields()) {
  6647. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  6648. _internal_metadata_.unknown_fields(), output);
  6649. }
  6650. // @@protoc_insertion_point(serialize_end:google.protobuf.MethodDescriptorProto)
  6651. }
  6652. ::google::protobuf::uint8* MethodDescriptorProto::InternalSerializeWithCachedSizesToArray(
  6653. bool deterministic, ::google::protobuf::uint8* target) const {
  6654. (void)deterministic; // Unused
  6655. // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.MethodDescriptorProto)
  6656. ::google::protobuf::uint32 cached_has_bits = 0;
  6657. (void) cached_has_bits;
  6658. cached_has_bits = _has_bits_[0];
  6659. // optional string name = 1;
  6660. if (cached_has_bits & 0x00000001u) {
  6661. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  6662. this->name().data(), static_cast<int>(this->name().length()),
  6663. ::google::protobuf::internal::WireFormat::SERIALIZE,
  6664. "google.protobuf.MethodDescriptorProto.name");
  6665. target =
  6666. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  6667. 1, this->name(), target);
  6668. }
  6669. // optional string input_type = 2;
  6670. if (cached_has_bits & 0x00000002u) {
  6671. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  6672. this->input_type().data(), static_cast<int>(this->input_type().length()),
  6673. ::google::protobuf::internal::WireFormat::SERIALIZE,
  6674. "google.protobuf.MethodDescriptorProto.input_type");
  6675. target =
  6676. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  6677. 2, this->input_type(), target);
  6678. }
  6679. // optional string output_type = 3;
  6680. if (cached_has_bits & 0x00000004u) {
  6681. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  6682. this->output_type().data(), static_cast<int>(this->output_type().length()),
  6683. ::google::protobuf::internal::WireFormat::SERIALIZE,
  6684. "google.protobuf.MethodDescriptorProto.output_type");
  6685. target =
  6686. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  6687. 3, this->output_type(), target);
  6688. }
  6689. // optional .google.protobuf.MethodOptions options = 4;
  6690. if (cached_has_bits & 0x00000008u) {
  6691. target = ::google::protobuf::internal::WireFormatLite::
  6692. InternalWriteMessageToArray(
  6693. 4, this->_internal_options(), deterministic, target);
  6694. }
  6695. // optional bool client_streaming = 5 [default = false];
  6696. if (cached_has_bits & 0x00000010u) {
  6697. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->client_streaming(), target);
  6698. }
  6699. // optional bool server_streaming = 6 [default = false];
  6700. if (cached_has_bits & 0x00000020u) {
  6701. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->server_streaming(), target);
  6702. }
  6703. if (_internal_metadata_.have_unknown_fields()) {
  6704. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  6705. _internal_metadata_.unknown_fields(), target);
  6706. }
  6707. // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.MethodDescriptorProto)
  6708. return target;
  6709. }
  6710. size_t MethodDescriptorProto::ByteSizeLong() const {
  6711. // @@protoc_insertion_point(message_byte_size_start:google.protobuf.MethodDescriptorProto)
  6712. size_t total_size = 0;
  6713. if (_internal_metadata_.have_unknown_fields()) {
  6714. total_size +=
  6715. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  6716. _internal_metadata_.unknown_fields());
  6717. }
  6718. if (_has_bits_[0 / 32] & 63u) {
  6719. // optional string name = 1;
  6720. if (has_name()) {
  6721. total_size += 1 +
  6722. ::google::protobuf::internal::WireFormatLite::StringSize(
  6723. this->name());
  6724. }
  6725. // optional string input_type = 2;
  6726. if (has_input_type()) {
  6727. total_size += 1 +
  6728. ::google::protobuf::internal::WireFormatLite::StringSize(
  6729. this->input_type());
  6730. }
  6731. // optional string output_type = 3;
  6732. if (has_output_type()) {
  6733. total_size += 1 +
  6734. ::google::protobuf::internal::WireFormatLite::StringSize(
  6735. this->output_type());
  6736. }
  6737. // optional .google.protobuf.MethodOptions options = 4;
  6738. if (has_options()) {
  6739. total_size += 1 +
  6740. ::google::protobuf::internal::WireFormatLite::MessageSize(
  6741. *options_);
  6742. }
  6743. // optional bool client_streaming = 5 [default = false];
  6744. if (has_client_streaming()) {
  6745. total_size += 1 + 1;
  6746. }
  6747. // optional bool server_streaming = 6 [default = false];
  6748. if (has_server_streaming()) {
  6749. total_size += 1 + 1;
  6750. }
  6751. }
  6752. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  6753. SetCachedSize(cached_size);
  6754. return total_size;
  6755. }
  6756. void MethodDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
  6757. // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.MethodDescriptorProto)
  6758. GOOGLE_DCHECK_NE(&from, this);
  6759. const MethodDescriptorProto* source =
  6760. ::google::protobuf::internal::DynamicCastToGenerated<const MethodDescriptorProto>(
  6761. &from);
  6762. if (source == NULL) {
  6763. // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.MethodDescriptorProto)
  6764. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  6765. } else {
  6766. // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.MethodDescriptorProto)
  6767. MergeFrom(*source);
  6768. }
  6769. }
  6770. void MethodDescriptorProto::MergeFrom(const MethodDescriptorProto& from) {
  6771. // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.MethodDescriptorProto)
  6772. GOOGLE_DCHECK_NE(&from, this);
  6773. _internal_metadata_.MergeFrom(from._internal_metadata_);
  6774. ::google::protobuf::uint32 cached_has_bits = 0;
  6775. (void) cached_has_bits;
  6776. cached_has_bits = from._has_bits_[0];
  6777. if (cached_has_bits & 63u) {
  6778. if (cached_has_bits & 0x00000001u) {
  6779. set_name(from.name());
  6780. }
  6781. if (cached_has_bits & 0x00000002u) {
  6782. set_input_type(from.input_type());
  6783. }
  6784. if (cached_has_bits & 0x00000004u) {
  6785. set_output_type(from.output_type());
  6786. }
  6787. if (cached_has_bits & 0x00000008u) {
  6788. mutable_options()->::google::protobuf::MethodOptions::MergeFrom(from.options());
  6789. }
  6790. if (cached_has_bits & 0x00000010u) {
  6791. client_streaming_ = from.client_streaming_;
  6792. }
  6793. if (cached_has_bits & 0x00000020u) {
  6794. server_streaming_ = from.server_streaming_;
  6795. }
  6796. _has_bits_[0] |= cached_has_bits;
  6797. }
  6798. }
  6799. void MethodDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
  6800. // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.MethodDescriptorProto)
  6801. if (&from == this) return;
  6802. Clear();
  6803. MergeFrom(from);
  6804. }
  6805. void MethodDescriptorProto::CopyFrom(const MethodDescriptorProto& from) {
  6806. // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.MethodDescriptorProto)
  6807. if (&from == this) return;
  6808. Clear();
  6809. MergeFrom(from);
  6810. }
  6811. bool MethodDescriptorProto::IsInitialized() const {
  6812. if (has_options()) {
  6813. if (!this->options_->IsInitialized()) return false;
  6814. }
  6815. return true;
  6816. }
  6817. void MethodDescriptorProto::Swap(MethodDescriptorProto* other) {
  6818. if (other == this) return;
  6819. if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
  6820. InternalSwap(other);
  6821. } else {
  6822. MethodDescriptorProto* temp = New(GetArenaNoVirtual());
  6823. temp->MergeFrom(*other);
  6824. other->CopyFrom(*this);
  6825. InternalSwap(temp);
  6826. if (GetArenaNoVirtual() == NULL) {
  6827. delete temp;
  6828. }
  6829. }
  6830. }
  6831. void MethodDescriptorProto::UnsafeArenaSwap(MethodDescriptorProto* other) {
  6832. if (other == this) return;
  6833. GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
  6834. InternalSwap(other);
  6835. }
  6836. void MethodDescriptorProto::InternalSwap(MethodDescriptorProto* other) {
  6837. using std::swap;
  6838. name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  6839. GetArenaNoVirtual());
  6840. input_type_.Swap(&other->input_type_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  6841. GetArenaNoVirtual());
  6842. output_type_.Swap(&other->output_type_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  6843. GetArenaNoVirtual());
  6844. swap(options_, other->options_);
  6845. swap(client_streaming_, other->client_streaming_);
  6846. swap(server_streaming_, other->server_streaming_);
  6847. swap(_has_bits_[0], other->_has_bits_[0]);
  6848. _internal_metadata_.Swap(&other->_internal_metadata_);
  6849. }
  6850. ::google::protobuf::Metadata MethodDescriptorProto::GetMetadata() const {
  6851. protobuf_google_2fprotobuf_2fdescriptor_2eproto::protobuf_AssignDescriptorsOnce();
  6852. return ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::file_level_metadata[kIndexInFileMessages];
  6853. }
  6854. // ===================================================================
  6855. void FileOptions::InitAsDefaultInstance() {
  6856. }
  6857. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  6858. const int FileOptions::kJavaPackageFieldNumber;
  6859. const int FileOptions::kJavaOuterClassnameFieldNumber;
  6860. const int FileOptions::kJavaMultipleFilesFieldNumber;
  6861. const int FileOptions::kJavaGenerateEqualsAndHashFieldNumber;
  6862. const int FileOptions::kJavaStringCheckUtf8FieldNumber;
  6863. const int FileOptions::kOptimizeForFieldNumber;
  6864. const int FileOptions::kGoPackageFieldNumber;
  6865. const int FileOptions::kCcGenericServicesFieldNumber;
  6866. const int FileOptions::kJavaGenericServicesFieldNumber;
  6867. const int FileOptions::kPyGenericServicesFieldNumber;
  6868. const int FileOptions::kPhpGenericServicesFieldNumber;
  6869. const int FileOptions::kDeprecatedFieldNumber;
  6870. const int FileOptions::kCcEnableArenasFieldNumber;
  6871. const int FileOptions::kObjcClassPrefixFieldNumber;
  6872. const int FileOptions::kCsharpNamespaceFieldNumber;
  6873. const int FileOptions::kSwiftPrefixFieldNumber;
  6874. const int FileOptions::kPhpClassPrefixFieldNumber;
  6875. const int FileOptions::kPhpNamespaceFieldNumber;
  6876. const int FileOptions::kPhpMetadataNamespaceFieldNumber;
  6877. const int FileOptions::kRubyPackageFieldNumber;
  6878. const int FileOptions::kUninterpretedOptionFieldNumber;
  6879. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  6880. FileOptions::FileOptions()
  6881. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  6882. ::google::protobuf::internal::InitSCC(
  6883. &protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_FileOptions.base);
  6884. SharedCtor();
  6885. // @@protoc_insertion_point(constructor:google.protobuf.FileOptions)
  6886. }
  6887. FileOptions::FileOptions(::google::protobuf::Arena* arena)
  6888. : ::google::protobuf::Message(),
  6889. _extensions_(arena),
  6890. _internal_metadata_(arena),
  6891. uninterpreted_option_(arena) {
  6892. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_FileOptions.base);
  6893. SharedCtor();
  6894. RegisterArenaDtor(arena);
  6895. // @@protoc_insertion_point(arena_constructor:google.protobuf.FileOptions)
  6896. }
  6897. FileOptions::FileOptions(const FileOptions& from)
  6898. : ::google::protobuf::Message(),
  6899. _internal_metadata_(NULL),
  6900. _has_bits_(from._has_bits_),
  6901. uninterpreted_option_(from.uninterpreted_option_) {
  6902. _internal_metadata_.MergeFrom(from._internal_metadata_);
  6903. _extensions_.MergeFrom(from._extensions_);
  6904. java_package_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  6905. if (from.has_java_package()) {
  6906. java_package_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.java_package(),
  6907. GetArenaNoVirtual());
  6908. }
  6909. java_outer_classname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  6910. if (from.has_java_outer_classname()) {
  6911. java_outer_classname_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.java_outer_classname(),
  6912. GetArenaNoVirtual());
  6913. }
  6914. go_package_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  6915. if (from.has_go_package()) {
  6916. go_package_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.go_package(),
  6917. GetArenaNoVirtual());
  6918. }
  6919. objc_class_prefix_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  6920. if (from.has_objc_class_prefix()) {
  6921. objc_class_prefix_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.objc_class_prefix(),
  6922. GetArenaNoVirtual());
  6923. }
  6924. csharp_namespace_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  6925. if (from.has_csharp_namespace()) {
  6926. csharp_namespace_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.csharp_namespace(),
  6927. GetArenaNoVirtual());
  6928. }
  6929. swift_prefix_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  6930. if (from.has_swift_prefix()) {
  6931. swift_prefix_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.swift_prefix(),
  6932. GetArenaNoVirtual());
  6933. }
  6934. php_class_prefix_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  6935. if (from.has_php_class_prefix()) {
  6936. php_class_prefix_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.php_class_prefix(),
  6937. GetArenaNoVirtual());
  6938. }
  6939. php_namespace_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  6940. if (from.has_php_namespace()) {
  6941. php_namespace_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.php_namespace(),
  6942. GetArenaNoVirtual());
  6943. }
  6944. php_metadata_namespace_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  6945. if (from.has_php_metadata_namespace()) {
  6946. php_metadata_namespace_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.php_metadata_namespace(),
  6947. GetArenaNoVirtual());
  6948. }
  6949. ruby_package_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  6950. if (from.has_ruby_package()) {
  6951. ruby_package_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.ruby_package(),
  6952. GetArenaNoVirtual());
  6953. }
  6954. ::memcpy(&java_multiple_files_, &from.java_multiple_files_,
  6955. static_cast<size_t>(reinterpret_cast<char*>(&optimize_for_) -
  6956. reinterpret_cast<char*>(&java_multiple_files_)) + sizeof(optimize_for_));
  6957. // @@protoc_insertion_point(copy_constructor:google.protobuf.FileOptions)
  6958. }
  6959. void FileOptions::SharedCtor() {
  6960. java_package_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  6961. java_outer_classname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  6962. go_package_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  6963. objc_class_prefix_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  6964. csharp_namespace_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  6965. swift_prefix_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  6966. php_class_prefix_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  6967. php_namespace_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  6968. php_metadata_namespace_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  6969. ruby_package_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  6970. ::memset(&java_multiple_files_, 0, static_cast<size_t>(
  6971. reinterpret_cast<char*>(&cc_enable_arenas_) -
  6972. reinterpret_cast<char*>(&java_multiple_files_)) + sizeof(cc_enable_arenas_));
  6973. optimize_for_ = 1;
  6974. }
  6975. FileOptions::~FileOptions() {
  6976. // @@protoc_insertion_point(destructor:google.protobuf.FileOptions)
  6977. SharedDtor();
  6978. }
  6979. void FileOptions::SharedDtor() {
  6980. GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
  6981. java_package_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  6982. java_outer_classname_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  6983. go_package_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  6984. objc_class_prefix_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  6985. csharp_namespace_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  6986. swift_prefix_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  6987. php_class_prefix_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  6988. php_namespace_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  6989. php_metadata_namespace_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  6990. ruby_package_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  6991. }
  6992. void FileOptions::ArenaDtor(void* object) {
  6993. FileOptions* _this = reinterpret_cast< FileOptions* >(object);
  6994. (void)_this;
  6995. }
  6996. void FileOptions::RegisterArenaDtor(::google::protobuf::Arena* arena) {
  6997. }
  6998. void FileOptions::SetCachedSize(int size) const {
  6999. _cached_size_.Set(size);
  7000. }
  7001. const ::google::protobuf::Descriptor* FileOptions::descriptor() {
  7002. ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::protobuf_AssignDescriptorsOnce();
  7003. return ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  7004. }
  7005. const FileOptions& FileOptions::default_instance() {
  7006. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_FileOptions.base);
  7007. return *internal_default_instance();
  7008. }
  7009. void FileOptions::Clear() {
  7010. // @@protoc_insertion_point(message_clear_start:google.protobuf.FileOptions)
  7011. ::google::protobuf::uint32 cached_has_bits = 0;
  7012. // Prevent compiler warnings about cached_has_bits being unused
  7013. (void) cached_has_bits;
  7014. _extensions_.Clear();
  7015. uninterpreted_option_.Clear();
  7016. cached_has_bits = _has_bits_[0];
  7017. if (cached_has_bits & 255u) {
  7018. if (cached_has_bits & 0x00000001u) {
  7019. java_package_.ClearNonDefaultToEmpty();
  7020. }
  7021. if (cached_has_bits & 0x00000002u) {
  7022. java_outer_classname_.ClearNonDefaultToEmpty();
  7023. }
  7024. if (cached_has_bits & 0x00000004u) {
  7025. go_package_.ClearNonDefaultToEmpty();
  7026. }
  7027. if (cached_has_bits & 0x00000008u) {
  7028. objc_class_prefix_.ClearNonDefaultToEmpty();
  7029. }
  7030. if (cached_has_bits & 0x00000010u) {
  7031. csharp_namespace_.ClearNonDefaultToEmpty();
  7032. }
  7033. if (cached_has_bits & 0x00000020u) {
  7034. swift_prefix_.ClearNonDefaultToEmpty();
  7035. }
  7036. if (cached_has_bits & 0x00000040u) {
  7037. php_class_prefix_.ClearNonDefaultToEmpty();
  7038. }
  7039. if (cached_has_bits & 0x00000080u) {
  7040. php_namespace_.ClearNonDefaultToEmpty();
  7041. }
  7042. }
  7043. if (cached_has_bits & 768u) {
  7044. if (cached_has_bits & 0x00000100u) {
  7045. php_metadata_namespace_.ClearNonDefaultToEmpty();
  7046. }
  7047. if (cached_has_bits & 0x00000200u) {
  7048. ruby_package_.ClearNonDefaultToEmpty();
  7049. }
  7050. }
  7051. if (cached_has_bits & 64512u) {
  7052. ::memset(&java_multiple_files_, 0, static_cast<size_t>(
  7053. reinterpret_cast<char*>(&py_generic_services_) -
  7054. reinterpret_cast<char*>(&java_multiple_files_)) + sizeof(py_generic_services_));
  7055. }
  7056. if (cached_has_bits & 983040u) {
  7057. ::memset(&php_generic_services_, 0, static_cast<size_t>(
  7058. reinterpret_cast<char*>(&cc_enable_arenas_) -
  7059. reinterpret_cast<char*>(&php_generic_services_)) + sizeof(cc_enable_arenas_));
  7060. optimize_for_ = 1;
  7061. }
  7062. _has_bits_.Clear();
  7063. _internal_metadata_.Clear();
  7064. }
  7065. bool FileOptions::MergePartialFromCodedStream(
  7066. ::google::protobuf::io::CodedInputStream* input) {
  7067. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  7068. ::google::protobuf::uint32 tag;
  7069. // @@protoc_insertion_point(parse_start:google.protobuf.FileOptions)
  7070. for (;;) {
  7071. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
  7072. tag = p.first;
  7073. if (!p.second) goto handle_unusual;
  7074. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  7075. // optional string java_package = 1;
  7076. case 1: {
  7077. if (static_cast< ::google::protobuf::uint8>(tag) ==
  7078. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  7079. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  7080. input, this->mutable_java_package()));
  7081. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  7082. this->java_package().data(), static_cast<int>(this->java_package().length()),
  7083. ::google::protobuf::internal::WireFormat::PARSE,
  7084. "google.protobuf.FileOptions.java_package");
  7085. } else {
  7086. goto handle_unusual;
  7087. }
  7088. break;
  7089. }
  7090. // optional string java_outer_classname = 8;
  7091. case 8: {
  7092. if (static_cast< ::google::protobuf::uint8>(tag) ==
  7093. static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
  7094. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  7095. input, this->mutable_java_outer_classname()));
  7096. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  7097. this->java_outer_classname().data(), static_cast<int>(this->java_outer_classname().length()),
  7098. ::google::protobuf::internal::WireFormat::PARSE,
  7099. "google.protobuf.FileOptions.java_outer_classname");
  7100. } else {
  7101. goto handle_unusual;
  7102. }
  7103. break;
  7104. }
  7105. // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
  7106. case 9: {
  7107. if (static_cast< ::google::protobuf::uint8>(tag) ==
  7108. static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) {
  7109. int value;
  7110. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  7111. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  7112. input, &value)));
  7113. if (::google::protobuf::FileOptions_OptimizeMode_IsValid(value)) {
  7114. set_optimize_for(static_cast< ::google::protobuf::FileOptions_OptimizeMode >(value));
  7115. } else {
  7116. mutable_unknown_fields()->AddVarint(
  7117. 9, static_cast< ::google::protobuf::uint64>(value));
  7118. }
  7119. } else {
  7120. goto handle_unusual;
  7121. }
  7122. break;
  7123. }
  7124. // optional bool java_multiple_files = 10 [default = false];
  7125. case 10: {
  7126. if (static_cast< ::google::protobuf::uint8>(tag) ==
  7127. static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) {
  7128. set_has_java_multiple_files();
  7129. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  7130. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  7131. input, &java_multiple_files_)));
  7132. } else {
  7133. goto handle_unusual;
  7134. }
  7135. break;
  7136. }
  7137. // optional string go_package = 11;
  7138. case 11: {
  7139. if (static_cast< ::google::protobuf::uint8>(tag) ==
  7140. static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) {
  7141. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  7142. input, this->mutable_go_package()));
  7143. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  7144. this->go_package().data(), static_cast<int>(this->go_package().length()),
  7145. ::google::protobuf::internal::WireFormat::PARSE,
  7146. "google.protobuf.FileOptions.go_package");
  7147. } else {
  7148. goto handle_unusual;
  7149. }
  7150. break;
  7151. }
  7152. // optional bool cc_generic_services = 16 [default = false];
  7153. case 16: {
  7154. if (static_cast< ::google::protobuf::uint8>(tag) ==
  7155. static_cast< ::google::protobuf::uint8>(128u /* 128 & 0xFF */)) {
  7156. set_has_cc_generic_services();
  7157. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  7158. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  7159. input, &cc_generic_services_)));
  7160. } else {
  7161. goto handle_unusual;
  7162. }
  7163. break;
  7164. }
  7165. // optional bool java_generic_services = 17 [default = false];
  7166. case 17: {
  7167. if (static_cast< ::google::protobuf::uint8>(tag) ==
  7168. static_cast< ::google::protobuf::uint8>(136u /* 136 & 0xFF */)) {
  7169. set_has_java_generic_services();
  7170. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  7171. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  7172. input, &java_generic_services_)));
  7173. } else {
  7174. goto handle_unusual;
  7175. }
  7176. break;
  7177. }
  7178. // optional bool py_generic_services = 18 [default = false];
  7179. case 18: {
  7180. if (static_cast< ::google::protobuf::uint8>(tag) ==
  7181. static_cast< ::google::protobuf::uint8>(144u /* 144 & 0xFF */)) {
  7182. set_has_py_generic_services();
  7183. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  7184. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  7185. input, &py_generic_services_)));
  7186. } else {
  7187. goto handle_unusual;
  7188. }
  7189. break;
  7190. }
  7191. // optional bool java_generate_equals_and_hash = 20 [deprecated = true];
  7192. case 20: {
  7193. if (static_cast< ::google::protobuf::uint8>(tag) ==
  7194. static_cast< ::google::protobuf::uint8>(160u /* 160 & 0xFF */)) {
  7195. set_has_java_generate_equals_and_hash();
  7196. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  7197. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  7198. input, &java_generate_equals_and_hash_)));
  7199. } else {
  7200. goto handle_unusual;
  7201. }
  7202. break;
  7203. }
  7204. // optional bool deprecated = 23 [default = false];
  7205. case 23: {
  7206. if (static_cast< ::google::protobuf::uint8>(tag) ==
  7207. static_cast< ::google::protobuf::uint8>(184u /* 184 & 0xFF */)) {
  7208. set_has_deprecated();
  7209. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  7210. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  7211. input, &deprecated_)));
  7212. } else {
  7213. goto handle_unusual;
  7214. }
  7215. break;
  7216. }
  7217. // optional bool java_string_check_utf8 = 27 [default = false];
  7218. case 27: {
  7219. if (static_cast< ::google::protobuf::uint8>(tag) ==
  7220. static_cast< ::google::protobuf::uint8>(216u /* 216 & 0xFF */)) {
  7221. set_has_java_string_check_utf8();
  7222. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  7223. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  7224. input, &java_string_check_utf8_)));
  7225. } else {
  7226. goto handle_unusual;
  7227. }
  7228. break;
  7229. }
  7230. // optional bool cc_enable_arenas = 31 [default = false];
  7231. case 31: {
  7232. if (static_cast< ::google::protobuf::uint8>(tag) ==
  7233. static_cast< ::google::protobuf::uint8>(248u /* 248 & 0xFF */)) {
  7234. set_has_cc_enable_arenas();
  7235. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  7236. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  7237. input, &cc_enable_arenas_)));
  7238. } else {
  7239. goto handle_unusual;
  7240. }
  7241. break;
  7242. }
  7243. // optional string objc_class_prefix = 36;
  7244. case 36: {
  7245. if (static_cast< ::google::protobuf::uint8>(tag) ==
  7246. static_cast< ::google::protobuf::uint8>(34u /* 290 & 0xFF */)) {
  7247. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  7248. input, this->mutable_objc_class_prefix()));
  7249. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  7250. this->objc_class_prefix().data(), static_cast<int>(this->objc_class_prefix().length()),
  7251. ::google::protobuf::internal::WireFormat::PARSE,
  7252. "google.protobuf.FileOptions.objc_class_prefix");
  7253. } else {
  7254. goto handle_unusual;
  7255. }
  7256. break;
  7257. }
  7258. // optional string csharp_namespace = 37;
  7259. case 37: {
  7260. if (static_cast< ::google::protobuf::uint8>(tag) ==
  7261. static_cast< ::google::protobuf::uint8>(42u /* 298 & 0xFF */)) {
  7262. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  7263. input, this->mutable_csharp_namespace()));
  7264. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  7265. this->csharp_namespace().data(), static_cast<int>(this->csharp_namespace().length()),
  7266. ::google::protobuf::internal::WireFormat::PARSE,
  7267. "google.protobuf.FileOptions.csharp_namespace");
  7268. } else {
  7269. goto handle_unusual;
  7270. }
  7271. break;
  7272. }
  7273. // optional string swift_prefix = 39;
  7274. case 39: {
  7275. if (static_cast< ::google::protobuf::uint8>(tag) ==
  7276. static_cast< ::google::protobuf::uint8>(58u /* 314 & 0xFF */)) {
  7277. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  7278. input, this->mutable_swift_prefix()));
  7279. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  7280. this->swift_prefix().data(), static_cast<int>(this->swift_prefix().length()),
  7281. ::google::protobuf::internal::WireFormat::PARSE,
  7282. "google.protobuf.FileOptions.swift_prefix");
  7283. } else {
  7284. goto handle_unusual;
  7285. }
  7286. break;
  7287. }
  7288. // optional string php_class_prefix = 40;
  7289. case 40: {
  7290. if (static_cast< ::google::protobuf::uint8>(tag) ==
  7291. static_cast< ::google::protobuf::uint8>(66u /* 322 & 0xFF */)) {
  7292. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  7293. input, this->mutable_php_class_prefix()));
  7294. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  7295. this->php_class_prefix().data(), static_cast<int>(this->php_class_prefix().length()),
  7296. ::google::protobuf::internal::WireFormat::PARSE,
  7297. "google.protobuf.FileOptions.php_class_prefix");
  7298. } else {
  7299. goto handle_unusual;
  7300. }
  7301. break;
  7302. }
  7303. // optional string php_namespace = 41;
  7304. case 41: {
  7305. if (static_cast< ::google::protobuf::uint8>(tag) ==
  7306. static_cast< ::google::protobuf::uint8>(74u /* 330 & 0xFF */)) {
  7307. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  7308. input, this->mutable_php_namespace()));
  7309. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  7310. this->php_namespace().data(), static_cast<int>(this->php_namespace().length()),
  7311. ::google::protobuf::internal::WireFormat::PARSE,
  7312. "google.protobuf.FileOptions.php_namespace");
  7313. } else {
  7314. goto handle_unusual;
  7315. }
  7316. break;
  7317. }
  7318. // optional bool php_generic_services = 42 [default = false];
  7319. case 42: {
  7320. if (static_cast< ::google::protobuf::uint8>(tag) ==
  7321. static_cast< ::google::protobuf::uint8>(80u /* 336 & 0xFF */)) {
  7322. set_has_php_generic_services();
  7323. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  7324. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  7325. input, &php_generic_services_)));
  7326. } else {
  7327. goto handle_unusual;
  7328. }
  7329. break;
  7330. }
  7331. // optional string php_metadata_namespace = 44;
  7332. case 44: {
  7333. if (static_cast< ::google::protobuf::uint8>(tag) ==
  7334. static_cast< ::google::protobuf::uint8>(98u /* 354 & 0xFF */)) {
  7335. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  7336. input, this->mutable_php_metadata_namespace()));
  7337. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  7338. this->php_metadata_namespace().data(), static_cast<int>(this->php_metadata_namespace().length()),
  7339. ::google::protobuf::internal::WireFormat::PARSE,
  7340. "google.protobuf.FileOptions.php_metadata_namespace");
  7341. } else {
  7342. goto handle_unusual;
  7343. }
  7344. break;
  7345. }
  7346. // optional string ruby_package = 45;
  7347. case 45: {
  7348. if (static_cast< ::google::protobuf::uint8>(tag) ==
  7349. static_cast< ::google::protobuf::uint8>(106u /* 362 & 0xFF */)) {
  7350. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  7351. input, this->mutable_ruby_package()));
  7352. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  7353. this->ruby_package().data(), static_cast<int>(this->ruby_package().length()),
  7354. ::google::protobuf::internal::WireFormat::PARSE,
  7355. "google.protobuf.FileOptions.ruby_package");
  7356. } else {
  7357. goto handle_unusual;
  7358. }
  7359. break;
  7360. }
  7361. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  7362. case 999: {
  7363. if (static_cast< ::google::protobuf::uint8>(tag) ==
  7364. static_cast< ::google::protobuf::uint8>(58u /* 7994 & 0xFF */)) {
  7365. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  7366. input, add_uninterpreted_option()));
  7367. } else {
  7368. goto handle_unusual;
  7369. }
  7370. break;
  7371. }
  7372. default: {
  7373. handle_unusual:
  7374. if (tag == 0) {
  7375. goto success;
  7376. }
  7377. if ((8000u <= tag)) {
  7378. DO_(_extensions_.ParseField(tag, input,
  7379. internal_default_instance(),
  7380. _internal_metadata_.mutable_unknown_fields()));
  7381. continue;
  7382. }
  7383. DO_(::google::protobuf::internal::WireFormat::SkipField(
  7384. input, tag, _internal_metadata_.mutable_unknown_fields()));
  7385. break;
  7386. }
  7387. }
  7388. }
  7389. success:
  7390. // @@protoc_insertion_point(parse_success:google.protobuf.FileOptions)
  7391. return true;
  7392. failure:
  7393. // @@protoc_insertion_point(parse_failure:google.protobuf.FileOptions)
  7394. return false;
  7395. #undef DO_
  7396. }
  7397. void FileOptions::SerializeWithCachedSizes(
  7398. ::google::protobuf::io::CodedOutputStream* output) const {
  7399. // @@protoc_insertion_point(serialize_start:google.protobuf.FileOptions)
  7400. ::google::protobuf::uint32 cached_has_bits = 0;
  7401. (void) cached_has_bits;
  7402. cached_has_bits = _has_bits_[0];
  7403. // optional string java_package = 1;
  7404. if (cached_has_bits & 0x00000001u) {
  7405. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  7406. this->java_package().data(), static_cast<int>(this->java_package().length()),
  7407. ::google::protobuf::internal::WireFormat::SERIALIZE,
  7408. "google.protobuf.FileOptions.java_package");
  7409. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  7410. 1, this->java_package(), output);
  7411. }
  7412. // optional string java_outer_classname = 8;
  7413. if (cached_has_bits & 0x00000002u) {
  7414. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  7415. this->java_outer_classname().data(), static_cast<int>(this->java_outer_classname().length()),
  7416. ::google::protobuf::internal::WireFormat::SERIALIZE,
  7417. "google.protobuf.FileOptions.java_outer_classname");
  7418. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  7419. 8, this->java_outer_classname(), output);
  7420. }
  7421. // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
  7422. if (cached_has_bits & 0x00080000u) {
  7423. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  7424. 9, this->optimize_for(), output);
  7425. }
  7426. // optional bool java_multiple_files = 10 [default = false];
  7427. if (cached_has_bits & 0x00000400u) {
  7428. ::google::protobuf::internal::WireFormatLite::WriteBool(10, this->java_multiple_files(), output);
  7429. }
  7430. // optional string go_package = 11;
  7431. if (cached_has_bits & 0x00000004u) {
  7432. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  7433. this->go_package().data(), static_cast<int>(this->go_package().length()),
  7434. ::google::protobuf::internal::WireFormat::SERIALIZE,
  7435. "google.protobuf.FileOptions.go_package");
  7436. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  7437. 11, this->go_package(), output);
  7438. }
  7439. // optional bool cc_generic_services = 16 [default = false];
  7440. if (cached_has_bits & 0x00002000u) {
  7441. ::google::protobuf::internal::WireFormatLite::WriteBool(16, this->cc_generic_services(), output);
  7442. }
  7443. // optional bool java_generic_services = 17 [default = false];
  7444. if (cached_has_bits & 0x00004000u) {
  7445. ::google::protobuf::internal::WireFormatLite::WriteBool(17, this->java_generic_services(), output);
  7446. }
  7447. // optional bool py_generic_services = 18 [default = false];
  7448. if (cached_has_bits & 0x00008000u) {
  7449. ::google::protobuf::internal::WireFormatLite::WriteBool(18, this->py_generic_services(), output);
  7450. }
  7451. // optional bool java_generate_equals_and_hash = 20 [deprecated = true];
  7452. if (cached_has_bits & 0x00000800u) {
  7453. ::google::protobuf::internal::WireFormatLite::WriteBool(20, this->java_generate_equals_and_hash(), output);
  7454. }
  7455. // optional bool deprecated = 23 [default = false];
  7456. if (cached_has_bits & 0x00020000u) {
  7457. ::google::protobuf::internal::WireFormatLite::WriteBool(23, this->deprecated(), output);
  7458. }
  7459. // optional bool java_string_check_utf8 = 27 [default = false];
  7460. if (cached_has_bits & 0x00001000u) {
  7461. ::google::protobuf::internal::WireFormatLite::WriteBool(27, this->java_string_check_utf8(), output);
  7462. }
  7463. // optional bool cc_enable_arenas = 31 [default = false];
  7464. if (cached_has_bits & 0x00040000u) {
  7465. ::google::protobuf::internal::WireFormatLite::WriteBool(31, this->cc_enable_arenas(), output);
  7466. }
  7467. // optional string objc_class_prefix = 36;
  7468. if (cached_has_bits & 0x00000008u) {
  7469. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  7470. this->objc_class_prefix().data(), static_cast<int>(this->objc_class_prefix().length()),
  7471. ::google::protobuf::internal::WireFormat::SERIALIZE,
  7472. "google.protobuf.FileOptions.objc_class_prefix");
  7473. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  7474. 36, this->objc_class_prefix(), output);
  7475. }
  7476. // optional string csharp_namespace = 37;
  7477. if (cached_has_bits & 0x00000010u) {
  7478. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  7479. this->csharp_namespace().data(), static_cast<int>(this->csharp_namespace().length()),
  7480. ::google::protobuf::internal::WireFormat::SERIALIZE,
  7481. "google.protobuf.FileOptions.csharp_namespace");
  7482. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  7483. 37, this->csharp_namespace(), output);
  7484. }
  7485. // optional string swift_prefix = 39;
  7486. if (cached_has_bits & 0x00000020u) {
  7487. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  7488. this->swift_prefix().data(), static_cast<int>(this->swift_prefix().length()),
  7489. ::google::protobuf::internal::WireFormat::SERIALIZE,
  7490. "google.protobuf.FileOptions.swift_prefix");
  7491. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  7492. 39, this->swift_prefix(), output);
  7493. }
  7494. // optional string php_class_prefix = 40;
  7495. if (cached_has_bits & 0x00000040u) {
  7496. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  7497. this->php_class_prefix().data(), static_cast<int>(this->php_class_prefix().length()),
  7498. ::google::protobuf::internal::WireFormat::SERIALIZE,
  7499. "google.protobuf.FileOptions.php_class_prefix");
  7500. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  7501. 40, this->php_class_prefix(), output);
  7502. }
  7503. // optional string php_namespace = 41;
  7504. if (cached_has_bits & 0x00000080u) {
  7505. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  7506. this->php_namespace().data(), static_cast<int>(this->php_namespace().length()),
  7507. ::google::protobuf::internal::WireFormat::SERIALIZE,
  7508. "google.protobuf.FileOptions.php_namespace");
  7509. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  7510. 41, this->php_namespace(), output);
  7511. }
  7512. // optional bool php_generic_services = 42 [default = false];
  7513. if (cached_has_bits & 0x00010000u) {
  7514. ::google::protobuf::internal::WireFormatLite::WriteBool(42, this->php_generic_services(), output);
  7515. }
  7516. // optional string php_metadata_namespace = 44;
  7517. if (cached_has_bits & 0x00000100u) {
  7518. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  7519. this->php_metadata_namespace().data(), static_cast<int>(this->php_metadata_namespace().length()),
  7520. ::google::protobuf::internal::WireFormat::SERIALIZE,
  7521. "google.protobuf.FileOptions.php_metadata_namespace");
  7522. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  7523. 44, this->php_metadata_namespace(), output);
  7524. }
  7525. // optional string ruby_package = 45;
  7526. if (cached_has_bits & 0x00000200u) {
  7527. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  7528. this->ruby_package().data(), static_cast<int>(this->ruby_package().length()),
  7529. ::google::protobuf::internal::WireFormat::SERIALIZE,
  7530. "google.protobuf.FileOptions.ruby_package");
  7531. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  7532. 45, this->ruby_package(), output);
  7533. }
  7534. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  7535. for (unsigned int i = 0,
  7536. n = static_cast<unsigned int>(this->uninterpreted_option_size()); i < n; i++) {
  7537. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  7538. 999,
  7539. this->uninterpreted_option(static_cast<int>(i)),
  7540. output);
  7541. }
  7542. // Extension range [1000, 536870912)
  7543. _extensions_.SerializeWithCachedSizes(
  7544. 1000, 536870912, output);
  7545. if (_internal_metadata_.have_unknown_fields()) {
  7546. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  7547. _internal_metadata_.unknown_fields(), output);
  7548. }
  7549. // @@protoc_insertion_point(serialize_end:google.protobuf.FileOptions)
  7550. }
  7551. ::google::protobuf::uint8* FileOptions::InternalSerializeWithCachedSizesToArray(
  7552. bool deterministic, ::google::protobuf::uint8* target) const {
  7553. (void)deterministic; // Unused
  7554. // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FileOptions)
  7555. ::google::protobuf::uint32 cached_has_bits = 0;
  7556. (void) cached_has_bits;
  7557. cached_has_bits = _has_bits_[0];
  7558. // optional string java_package = 1;
  7559. if (cached_has_bits & 0x00000001u) {
  7560. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  7561. this->java_package().data(), static_cast<int>(this->java_package().length()),
  7562. ::google::protobuf::internal::WireFormat::SERIALIZE,
  7563. "google.protobuf.FileOptions.java_package");
  7564. target =
  7565. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  7566. 1, this->java_package(), target);
  7567. }
  7568. // optional string java_outer_classname = 8;
  7569. if (cached_has_bits & 0x00000002u) {
  7570. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  7571. this->java_outer_classname().data(), static_cast<int>(this->java_outer_classname().length()),
  7572. ::google::protobuf::internal::WireFormat::SERIALIZE,
  7573. "google.protobuf.FileOptions.java_outer_classname");
  7574. target =
  7575. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  7576. 8, this->java_outer_classname(), target);
  7577. }
  7578. // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
  7579. if (cached_has_bits & 0x00080000u) {
  7580. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  7581. 9, this->optimize_for(), target);
  7582. }
  7583. // optional bool java_multiple_files = 10 [default = false];
  7584. if (cached_has_bits & 0x00000400u) {
  7585. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(10, this->java_multiple_files(), target);
  7586. }
  7587. // optional string go_package = 11;
  7588. if (cached_has_bits & 0x00000004u) {
  7589. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  7590. this->go_package().data(), static_cast<int>(this->go_package().length()),
  7591. ::google::protobuf::internal::WireFormat::SERIALIZE,
  7592. "google.protobuf.FileOptions.go_package");
  7593. target =
  7594. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  7595. 11, this->go_package(), target);
  7596. }
  7597. // optional bool cc_generic_services = 16 [default = false];
  7598. if (cached_has_bits & 0x00002000u) {
  7599. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(16, this->cc_generic_services(), target);
  7600. }
  7601. // optional bool java_generic_services = 17 [default = false];
  7602. if (cached_has_bits & 0x00004000u) {
  7603. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(17, this->java_generic_services(), target);
  7604. }
  7605. // optional bool py_generic_services = 18 [default = false];
  7606. if (cached_has_bits & 0x00008000u) {
  7607. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(18, this->py_generic_services(), target);
  7608. }
  7609. // optional bool java_generate_equals_and_hash = 20 [deprecated = true];
  7610. if (cached_has_bits & 0x00000800u) {
  7611. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(20, this->java_generate_equals_and_hash(), target);
  7612. }
  7613. // optional bool deprecated = 23 [default = false];
  7614. if (cached_has_bits & 0x00020000u) {
  7615. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(23, this->deprecated(), target);
  7616. }
  7617. // optional bool java_string_check_utf8 = 27 [default = false];
  7618. if (cached_has_bits & 0x00001000u) {
  7619. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(27, this->java_string_check_utf8(), target);
  7620. }
  7621. // optional bool cc_enable_arenas = 31 [default = false];
  7622. if (cached_has_bits & 0x00040000u) {
  7623. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(31, this->cc_enable_arenas(), target);
  7624. }
  7625. // optional string objc_class_prefix = 36;
  7626. if (cached_has_bits & 0x00000008u) {
  7627. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  7628. this->objc_class_prefix().data(), static_cast<int>(this->objc_class_prefix().length()),
  7629. ::google::protobuf::internal::WireFormat::SERIALIZE,
  7630. "google.protobuf.FileOptions.objc_class_prefix");
  7631. target =
  7632. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  7633. 36, this->objc_class_prefix(), target);
  7634. }
  7635. // optional string csharp_namespace = 37;
  7636. if (cached_has_bits & 0x00000010u) {
  7637. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  7638. this->csharp_namespace().data(), static_cast<int>(this->csharp_namespace().length()),
  7639. ::google::protobuf::internal::WireFormat::SERIALIZE,
  7640. "google.protobuf.FileOptions.csharp_namespace");
  7641. target =
  7642. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  7643. 37, this->csharp_namespace(), target);
  7644. }
  7645. // optional string swift_prefix = 39;
  7646. if (cached_has_bits & 0x00000020u) {
  7647. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  7648. this->swift_prefix().data(), static_cast<int>(this->swift_prefix().length()),
  7649. ::google::protobuf::internal::WireFormat::SERIALIZE,
  7650. "google.protobuf.FileOptions.swift_prefix");
  7651. target =
  7652. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  7653. 39, this->swift_prefix(), target);
  7654. }
  7655. // optional string php_class_prefix = 40;
  7656. if (cached_has_bits & 0x00000040u) {
  7657. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  7658. this->php_class_prefix().data(), static_cast<int>(this->php_class_prefix().length()),
  7659. ::google::protobuf::internal::WireFormat::SERIALIZE,
  7660. "google.protobuf.FileOptions.php_class_prefix");
  7661. target =
  7662. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  7663. 40, this->php_class_prefix(), target);
  7664. }
  7665. // optional string php_namespace = 41;
  7666. if (cached_has_bits & 0x00000080u) {
  7667. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  7668. this->php_namespace().data(), static_cast<int>(this->php_namespace().length()),
  7669. ::google::protobuf::internal::WireFormat::SERIALIZE,
  7670. "google.protobuf.FileOptions.php_namespace");
  7671. target =
  7672. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  7673. 41, this->php_namespace(), target);
  7674. }
  7675. // optional bool php_generic_services = 42 [default = false];
  7676. if (cached_has_bits & 0x00010000u) {
  7677. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(42, this->php_generic_services(), target);
  7678. }
  7679. // optional string php_metadata_namespace = 44;
  7680. if (cached_has_bits & 0x00000100u) {
  7681. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  7682. this->php_metadata_namespace().data(), static_cast<int>(this->php_metadata_namespace().length()),
  7683. ::google::protobuf::internal::WireFormat::SERIALIZE,
  7684. "google.protobuf.FileOptions.php_metadata_namespace");
  7685. target =
  7686. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  7687. 44, this->php_metadata_namespace(), target);
  7688. }
  7689. // optional string ruby_package = 45;
  7690. if (cached_has_bits & 0x00000200u) {
  7691. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  7692. this->ruby_package().data(), static_cast<int>(this->ruby_package().length()),
  7693. ::google::protobuf::internal::WireFormat::SERIALIZE,
  7694. "google.protobuf.FileOptions.ruby_package");
  7695. target =
  7696. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  7697. 45, this->ruby_package(), target);
  7698. }
  7699. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  7700. for (unsigned int i = 0,
  7701. n = static_cast<unsigned int>(this->uninterpreted_option_size()); i < n; i++) {
  7702. target = ::google::protobuf::internal::WireFormatLite::
  7703. InternalWriteMessageToArray(
  7704. 999, this->uninterpreted_option(static_cast<int>(i)), deterministic, target);
  7705. }
  7706. // Extension range [1000, 536870912)
  7707. target = _extensions_.InternalSerializeWithCachedSizesToArray(
  7708. 1000, 536870912, deterministic, target);
  7709. if (_internal_metadata_.have_unknown_fields()) {
  7710. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  7711. _internal_metadata_.unknown_fields(), target);
  7712. }
  7713. // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FileOptions)
  7714. return target;
  7715. }
  7716. size_t FileOptions::ByteSizeLong() const {
  7717. // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FileOptions)
  7718. size_t total_size = 0;
  7719. total_size += _extensions_.ByteSize();
  7720. if (_internal_metadata_.have_unknown_fields()) {
  7721. total_size +=
  7722. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  7723. _internal_metadata_.unknown_fields());
  7724. }
  7725. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  7726. {
  7727. unsigned int count = static_cast<unsigned int>(this->uninterpreted_option_size());
  7728. total_size += 2UL * count;
  7729. for (unsigned int i = 0; i < count; i++) {
  7730. total_size +=
  7731. ::google::protobuf::internal::WireFormatLite::MessageSize(
  7732. this->uninterpreted_option(static_cast<int>(i)));
  7733. }
  7734. }
  7735. if (_has_bits_[0 / 32] & 255u) {
  7736. // optional string java_package = 1;
  7737. if (has_java_package()) {
  7738. total_size += 1 +
  7739. ::google::protobuf::internal::WireFormatLite::StringSize(
  7740. this->java_package());
  7741. }
  7742. // optional string java_outer_classname = 8;
  7743. if (has_java_outer_classname()) {
  7744. total_size += 1 +
  7745. ::google::protobuf::internal::WireFormatLite::StringSize(
  7746. this->java_outer_classname());
  7747. }
  7748. // optional string go_package = 11;
  7749. if (has_go_package()) {
  7750. total_size += 1 +
  7751. ::google::protobuf::internal::WireFormatLite::StringSize(
  7752. this->go_package());
  7753. }
  7754. // optional string objc_class_prefix = 36;
  7755. if (has_objc_class_prefix()) {
  7756. total_size += 2 +
  7757. ::google::protobuf::internal::WireFormatLite::StringSize(
  7758. this->objc_class_prefix());
  7759. }
  7760. // optional string csharp_namespace = 37;
  7761. if (has_csharp_namespace()) {
  7762. total_size += 2 +
  7763. ::google::protobuf::internal::WireFormatLite::StringSize(
  7764. this->csharp_namespace());
  7765. }
  7766. // optional string swift_prefix = 39;
  7767. if (has_swift_prefix()) {
  7768. total_size += 2 +
  7769. ::google::protobuf::internal::WireFormatLite::StringSize(
  7770. this->swift_prefix());
  7771. }
  7772. // optional string php_class_prefix = 40;
  7773. if (has_php_class_prefix()) {
  7774. total_size += 2 +
  7775. ::google::protobuf::internal::WireFormatLite::StringSize(
  7776. this->php_class_prefix());
  7777. }
  7778. // optional string php_namespace = 41;
  7779. if (has_php_namespace()) {
  7780. total_size += 2 +
  7781. ::google::protobuf::internal::WireFormatLite::StringSize(
  7782. this->php_namespace());
  7783. }
  7784. }
  7785. if (_has_bits_[8 / 32] & 65280u) {
  7786. // optional string php_metadata_namespace = 44;
  7787. if (has_php_metadata_namespace()) {
  7788. total_size += 2 +
  7789. ::google::protobuf::internal::WireFormatLite::StringSize(
  7790. this->php_metadata_namespace());
  7791. }
  7792. // optional string ruby_package = 45;
  7793. if (has_ruby_package()) {
  7794. total_size += 2 +
  7795. ::google::protobuf::internal::WireFormatLite::StringSize(
  7796. this->ruby_package());
  7797. }
  7798. // optional bool java_multiple_files = 10 [default = false];
  7799. if (has_java_multiple_files()) {
  7800. total_size += 1 + 1;
  7801. }
  7802. // optional bool java_generate_equals_and_hash = 20 [deprecated = true];
  7803. if (has_java_generate_equals_and_hash()) {
  7804. total_size += 2 + 1;
  7805. }
  7806. // optional bool java_string_check_utf8 = 27 [default = false];
  7807. if (has_java_string_check_utf8()) {
  7808. total_size += 2 + 1;
  7809. }
  7810. // optional bool cc_generic_services = 16 [default = false];
  7811. if (has_cc_generic_services()) {
  7812. total_size += 2 + 1;
  7813. }
  7814. // optional bool java_generic_services = 17 [default = false];
  7815. if (has_java_generic_services()) {
  7816. total_size += 2 + 1;
  7817. }
  7818. // optional bool py_generic_services = 18 [default = false];
  7819. if (has_py_generic_services()) {
  7820. total_size += 2 + 1;
  7821. }
  7822. }
  7823. if (_has_bits_[16 / 32] & 983040u) {
  7824. // optional bool php_generic_services = 42 [default = false];
  7825. if (has_php_generic_services()) {
  7826. total_size += 2 + 1;
  7827. }
  7828. // optional bool deprecated = 23 [default = false];
  7829. if (has_deprecated()) {
  7830. total_size += 2 + 1;
  7831. }
  7832. // optional bool cc_enable_arenas = 31 [default = false];
  7833. if (has_cc_enable_arenas()) {
  7834. total_size += 2 + 1;
  7835. }
  7836. // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
  7837. if (has_optimize_for()) {
  7838. total_size += 1 +
  7839. ::google::protobuf::internal::WireFormatLite::EnumSize(this->optimize_for());
  7840. }
  7841. }
  7842. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  7843. SetCachedSize(cached_size);
  7844. return total_size;
  7845. }
  7846. void FileOptions::MergeFrom(const ::google::protobuf::Message& from) {
  7847. // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.FileOptions)
  7848. GOOGLE_DCHECK_NE(&from, this);
  7849. const FileOptions* source =
  7850. ::google::protobuf::internal::DynamicCastToGenerated<const FileOptions>(
  7851. &from);
  7852. if (source == NULL) {
  7853. // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.FileOptions)
  7854. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  7855. } else {
  7856. // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.FileOptions)
  7857. MergeFrom(*source);
  7858. }
  7859. }
  7860. void FileOptions::MergeFrom(const FileOptions& from) {
  7861. // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.FileOptions)
  7862. GOOGLE_DCHECK_NE(&from, this);
  7863. _extensions_.MergeFrom(from._extensions_);
  7864. _internal_metadata_.MergeFrom(from._internal_metadata_);
  7865. ::google::protobuf::uint32 cached_has_bits = 0;
  7866. (void) cached_has_bits;
  7867. uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
  7868. cached_has_bits = from._has_bits_[0];
  7869. if (cached_has_bits & 255u) {
  7870. if (cached_has_bits & 0x00000001u) {
  7871. set_java_package(from.java_package());
  7872. }
  7873. if (cached_has_bits & 0x00000002u) {
  7874. set_java_outer_classname(from.java_outer_classname());
  7875. }
  7876. if (cached_has_bits & 0x00000004u) {
  7877. set_go_package(from.go_package());
  7878. }
  7879. if (cached_has_bits & 0x00000008u) {
  7880. set_objc_class_prefix(from.objc_class_prefix());
  7881. }
  7882. if (cached_has_bits & 0x00000010u) {
  7883. set_csharp_namespace(from.csharp_namespace());
  7884. }
  7885. if (cached_has_bits & 0x00000020u) {
  7886. set_swift_prefix(from.swift_prefix());
  7887. }
  7888. if (cached_has_bits & 0x00000040u) {
  7889. set_php_class_prefix(from.php_class_prefix());
  7890. }
  7891. if (cached_has_bits & 0x00000080u) {
  7892. set_php_namespace(from.php_namespace());
  7893. }
  7894. }
  7895. if (cached_has_bits & 65280u) {
  7896. if (cached_has_bits & 0x00000100u) {
  7897. set_php_metadata_namespace(from.php_metadata_namespace());
  7898. }
  7899. if (cached_has_bits & 0x00000200u) {
  7900. set_ruby_package(from.ruby_package());
  7901. }
  7902. if (cached_has_bits & 0x00000400u) {
  7903. java_multiple_files_ = from.java_multiple_files_;
  7904. }
  7905. if (cached_has_bits & 0x00000800u) {
  7906. java_generate_equals_and_hash_ = from.java_generate_equals_and_hash_;
  7907. }
  7908. if (cached_has_bits & 0x00001000u) {
  7909. java_string_check_utf8_ = from.java_string_check_utf8_;
  7910. }
  7911. if (cached_has_bits & 0x00002000u) {
  7912. cc_generic_services_ = from.cc_generic_services_;
  7913. }
  7914. if (cached_has_bits & 0x00004000u) {
  7915. java_generic_services_ = from.java_generic_services_;
  7916. }
  7917. if (cached_has_bits & 0x00008000u) {
  7918. py_generic_services_ = from.py_generic_services_;
  7919. }
  7920. _has_bits_[0] |= cached_has_bits;
  7921. }
  7922. if (cached_has_bits & 983040u) {
  7923. if (cached_has_bits & 0x00010000u) {
  7924. php_generic_services_ = from.php_generic_services_;
  7925. }
  7926. if (cached_has_bits & 0x00020000u) {
  7927. deprecated_ = from.deprecated_;
  7928. }
  7929. if (cached_has_bits & 0x00040000u) {
  7930. cc_enable_arenas_ = from.cc_enable_arenas_;
  7931. }
  7932. if (cached_has_bits & 0x00080000u) {
  7933. optimize_for_ = from.optimize_for_;
  7934. }
  7935. _has_bits_[0] |= cached_has_bits;
  7936. }
  7937. }
  7938. void FileOptions::CopyFrom(const ::google::protobuf::Message& from) {
  7939. // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.FileOptions)
  7940. if (&from == this) return;
  7941. Clear();
  7942. MergeFrom(from);
  7943. }
  7944. void FileOptions::CopyFrom(const FileOptions& from) {
  7945. // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.FileOptions)
  7946. if (&from == this) return;
  7947. Clear();
  7948. MergeFrom(from);
  7949. }
  7950. bool FileOptions::IsInitialized() const {
  7951. if (!_extensions_.IsInitialized()) {
  7952. return false;
  7953. }
  7954. if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false;
  7955. return true;
  7956. }
  7957. void FileOptions::Swap(FileOptions* other) {
  7958. if (other == this) return;
  7959. if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
  7960. InternalSwap(other);
  7961. } else {
  7962. FileOptions* temp = New(GetArenaNoVirtual());
  7963. temp->MergeFrom(*other);
  7964. other->CopyFrom(*this);
  7965. InternalSwap(temp);
  7966. if (GetArenaNoVirtual() == NULL) {
  7967. delete temp;
  7968. }
  7969. }
  7970. }
  7971. void FileOptions::UnsafeArenaSwap(FileOptions* other) {
  7972. if (other == this) return;
  7973. GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
  7974. InternalSwap(other);
  7975. }
  7976. void FileOptions::InternalSwap(FileOptions* other) {
  7977. using std::swap;
  7978. CastToBase(&uninterpreted_option_)->InternalSwap(CastToBase(&other->uninterpreted_option_));
  7979. java_package_.Swap(&other->java_package_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  7980. GetArenaNoVirtual());
  7981. java_outer_classname_.Swap(&other->java_outer_classname_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  7982. GetArenaNoVirtual());
  7983. go_package_.Swap(&other->go_package_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  7984. GetArenaNoVirtual());
  7985. objc_class_prefix_.Swap(&other->objc_class_prefix_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  7986. GetArenaNoVirtual());
  7987. csharp_namespace_.Swap(&other->csharp_namespace_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  7988. GetArenaNoVirtual());
  7989. swift_prefix_.Swap(&other->swift_prefix_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  7990. GetArenaNoVirtual());
  7991. php_class_prefix_.Swap(&other->php_class_prefix_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  7992. GetArenaNoVirtual());
  7993. php_namespace_.Swap(&other->php_namespace_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  7994. GetArenaNoVirtual());
  7995. php_metadata_namespace_.Swap(&other->php_metadata_namespace_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  7996. GetArenaNoVirtual());
  7997. ruby_package_.Swap(&other->ruby_package_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  7998. GetArenaNoVirtual());
  7999. swap(java_multiple_files_, other->java_multiple_files_);
  8000. swap(java_generate_equals_and_hash_, other->java_generate_equals_and_hash_);
  8001. swap(java_string_check_utf8_, other->java_string_check_utf8_);
  8002. swap(cc_generic_services_, other->cc_generic_services_);
  8003. swap(java_generic_services_, other->java_generic_services_);
  8004. swap(py_generic_services_, other->py_generic_services_);
  8005. swap(php_generic_services_, other->php_generic_services_);
  8006. swap(deprecated_, other->deprecated_);
  8007. swap(cc_enable_arenas_, other->cc_enable_arenas_);
  8008. swap(optimize_for_, other->optimize_for_);
  8009. swap(_has_bits_[0], other->_has_bits_[0]);
  8010. _internal_metadata_.Swap(&other->_internal_metadata_);
  8011. _extensions_.Swap(&other->_extensions_);
  8012. }
  8013. ::google::protobuf::Metadata FileOptions::GetMetadata() const {
  8014. protobuf_google_2fprotobuf_2fdescriptor_2eproto::protobuf_AssignDescriptorsOnce();
  8015. return ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::file_level_metadata[kIndexInFileMessages];
  8016. }
  8017. // ===================================================================
  8018. void MessageOptions::InitAsDefaultInstance() {
  8019. }
  8020. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  8021. const int MessageOptions::kMessageSetWireFormatFieldNumber;
  8022. const int MessageOptions::kNoStandardDescriptorAccessorFieldNumber;
  8023. const int MessageOptions::kDeprecatedFieldNumber;
  8024. const int MessageOptions::kMapEntryFieldNumber;
  8025. const int MessageOptions::kUninterpretedOptionFieldNumber;
  8026. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  8027. MessageOptions::MessageOptions()
  8028. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  8029. ::google::protobuf::internal::InitSCC(
  8030. &protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_MessageOptions.base);
  8031. SharedCtor();
  8032. // @@protoc_insertion_point(constructor:google.protobuf.MessageOptions)
  8033. }
  8034. MessageOptions::MessageOptions(::google::protobuf::Arena* arena)
  8035. : ::google::protobuf::Message(),
  8036. _extensions_(arena),
  8037. _internal_metadata_(arena),
  8038. uninterpreted_option_(arena) {
  8039. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_MessageOptions.base);
  8040. SharedCtor();
  8041. RegisterArenaDtor(arena);
  8042. // @@protoc_insertion_point(arena_constructor:google.protobuf.MessageOptions)
  8043. }
  8044. MessageOptions::MessageOptions(const MessageOptions& from)
  8045. : ::google::protobuf::Message(),
  8046. _internal_metadata_(NULL),
  8047. _has_bits_(from._has_bits_),
  8048. uninterpreted_option_(from.uninterpreted_option_) {
  8049. _internal_metadata_.MergeFrom(from._internal_metadata_);
  8050. _extensions_.MergeFrom(from._extensions_);
  8051. ::memcpy(&message_set_wire_format_, &from.message_set_wire_format_,
  8052. static_cast<size_t>(reinterpret_cast<char*>(&map_entry_) -
  8053. reinterpret_cast<char*>(&message_set_wire_format_)) + sizeof(map_entry_));
  8054. // @@protoc_insertion_point(copy_constructor:google.protobuf.MessageOptions)
  8055. }
  8056. void MessageOptions::SharedCtor() {
  8057. ::memset(&message_set_wire_format_, 0, static_cast<size_t>(
  8058. reinterpret_cast<char*>(&map_entry_) -
  8059. reinterpret_cast<char*>(&message_set_wire_format_)) + sizeof(map_entry_));
  8060. }
  8061. MessageOptions::~MessageOptions() {
  8062. // @@protoc_insertion_point(destructor:google.protobuf.MessageOptions)
  8063. SharedDtor();
  8064. }
  8065. void MessageOptions::SharedDtor() {
  8066. GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
  8067. }
  8068. void MessageOptions::ArenaDtor(void* object) {
  8069. MessageOptions* _this = reinterpret_cast< MessageOptions* >(object);
  8070. (void)_this;
  8071. }
  8072. void MessageOptions::RegisterArenaDtor(::google::protobuf::Arena* arena) {
  8073. }
  8074. void MessageOptions::SetCachedSize(int size) const {
  8075. _cached_size_.Set(size);
  8076. }
  8077. const ::google::protobuf::Descriptor* MessageOptions::descriptor() {
  8078. ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::protobuf_AssignDescriptorsOnce();
  8079. return ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  8080. }
  8081. const MessageOptions& MessageOptions::default_instance() {
  8082. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_MessageOptions.base);
  8083. return *internal_default_instance();
  8084. }
  8085. void MessageOptions::Clear() {
  8086. // @@protoc_insertion_point(message_clear_start:google.protobuf.MessageOptions)
  8087. ::google::protobuf::uint32 cached_has_bits = 0;
  8088. // Prevent compiler warnings about cached_has_bits being unused
  8089. (void) cached_has_bits;
  8090. _extensions_.Clear();
  8091. uninterpreted_option_.Clear();
  8092. ::memset(&message_set_wire_format_, 0, static_cast<size_t>(
  8093. reinterpret_cast<char*>(&map_entry_) -
  8094. reinterpret_cast<char*>(&message_set_wire_format_)) + sizeof(map_entry_));
  8095. _has_bits_.Clear();
  8096. _internal_metadata_.Clear();
  8097. }
  8098. bool MessageOptions::MergePartialFromCodedStream(
  8099. ::google::protobuf::io::CodedInputStream* input) {
  8100. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  8101. ::google::protobuf::uint32 tag;
  8102. // @@protoc_insertion_point(parse_start:google.protobuf.MessageOptions)
  8103. for (;;) {
  8104. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
  8105. tag = p.first;
  8106. if (!p.second) goto handle_unusual;
  8107. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  8108. // optional bool message_set_wire_format = 1 [default = false];
  8109. case 1: {
  8110. if (static_cast< ::google::protobuf::uint8>(tag) ==
  8111. static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
  8112. set_has_message_set_wire_format();
  8113. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  8114. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  8115. input, &message_set_wire_format_)));
  8116. } else {
  8117. goto handle_unusual;
  8118. }
  8119. break;
  8120. }
  8121. // optional bool no_standard_descriptor_accessor = 2 [default = false];
  8122. case 2: {
  8123. if (static_cast< ::google::protobuf::uint8>(tag) ==
  8124. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  8125. set_has_no_standard_descriptor_accessor();
  8126. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  8127. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  8128. input, &no_standard_descriptor_accessor_)));
  8129. } else {
  8130. goto handle_unusual;
  8131. }
  8132. break;
  8133. }
  8134. // optional bool deprecated = 3 [default = false];
  8135. case 3: {
  8136. if (static_cast< ::google::protobuf::uint8>(tag) ==
  8137. static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
  8138. set_has_deprecated();
  8139. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  8140. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  8141. input, &deprecated_)));
  8142. } else {
  8143. goto handle_unusual;
  8144. }
  8145. break;
  8146. }
  8147. // optional bool map_entry = 7;
  8148. case 7: {
  8149. if (static_cast< ::google::protobuf::uint8>(tag) ==
  8150. static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
  8151. set_has_map_entry();
  8152. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  8153. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  8154. input, &map_entry_)));
  8155. } else {
  8156. goto handle_unusual;
  8157. }
  8158. break;
  8159. }
  8160. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  8161. case 999: {
  8162. if (static_cast< ::google::protobuf::uint8>(tag) ==
  8163. static_cast< ::google::protobuf::uint8>(58u /* 7994 & 0xFF */)) {
  8164. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  8165. input, add_uninterpreted_option()));
  8166. } else {
  8167. goto handle_unusual;
  8168. }
  8169. break;
  8170. }
  8171. default: {
  8172. handle_unusual:
  8173. if (tag == 0) {
  8174. goto success;
  8175. }
  8176. if ((8000u <= tag)) {
  8177. DO_(_extensions_.ParseField(tag, input,
  8178. internal_default_instance(),
  8179. _internal_metadata_.mutable_unknown_fields()));
  8180. continue;
  8181. }
  8182. DO_(::google::protobuf::internal::WireFormat::SkipField(
  8183. input, tag, _internal_metadata_.mutable_unknown_fields()));
  8184. break;
  8185. }
  8186. }
  8187. }
  8188. success:
  8189. // @@protoc_insertion_point(parse_success:google.protobuf.MessageOptions)
  8190. return true;
  8191. failure:
  8192. // @@protoc_insertion_point(parse_failure:google.protobuf.MessageOptions)
  8193. return false;
  8194. #undef DO_
  8195. }
  8196. void MessageOptions::SerializeWithCachedSizes(
  8197. ::google::protobuf::io::CodedOutputStream* output) const {
  8198. // @@protoc_insertion_point(serialize_start:google.protobuf.MessageOptions)
  8199. ::google::protobuf::uint32 cached_has_bits = 0;
  8200. (void) cached_has_bits;
  8201. cached_has_bits = _has_bits_[0];
  8202. // optional bool message_set_wire_format = 1 [default = false];
  8203. if (cached_has_bits & 0x00000001u) {
  8204. ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->message_set_wire_format(), output);
  8205. }
  8206. // optional bool no_standard_descriptor_accessor = 2 [default = false];
  8207. if (cached_has_bits & 0x00000002u) {
  8208. ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->no_standard_descriptor_accessor(), output);
  8209. }
  8210. // optional bool deprecated = 3 [default = false];
  8211. if (cached_has_bits & 0x00000004u) {
  8212. ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->deprecated(), output);
  8213. }
  8214. // optional bool map_entry = 7;
  8215. if (cached_has_bits & 0x00000008u) {
  8216. ::google::protobuf::internal::WireFormatLite::WriteBool(7, this->map_entry(), output);
  8217. }
  8218. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  8219. for (unsigned int i = 0,
  8220. n = static_cast<unsigned int>(this->uninterpreted_option_size()); i < n; i++) {
  8221. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  8222. 999,
  8223. this->uninterpreted_option(static_cast<int>(i)),
  8224. output);
  8225. }
  8226. // Extension range [1000, 536870912)
  8227. _extensions_.SerializeWithCachedSizes(
  8228. 1000, 536870912, output);
  8229. if (_internal_metadata_.have_unknown_fields()) {
  8230. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  8231. _internal_metadata_.unknown_fields(), output);
  8232. }
  8233. // @@protoc_insertion_point(serialize_end:google.protobuf.MessageOptions)
  8234. }
  8235. ::google::protobuf::uint8* MessageOptions::InternalSerializeWithCachedSizesToArray(
  8236. bool deterministic, ::google::protobuf::uint8* target) const {
  8237. (void)deterministic; // Unused
  8238. // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.MessageOptions)
  8239. ::google::protobuf::uint32 cached_has_bits = 0;
  8240. (void) cached_has_bits;
  8241. cached_has_bits = _has_bits_[0];
  8242. // optional bool message_set_wire_format = 1 [default = false];
  8243. if (cached_has_bits & 0x00000001u) {
  8244. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->message_set_wire_format(), target);
  8245. }
  8246. // optional bool no_standard_descriptor_accessor = 2 [default = false];
  8247. if (cached_has_bits & 0x00000002u) {
  8248. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->no_standard_descriptor_accessor(), target);
  8249. }
  8250. // optional bool deprecated = 3 [default = false];
  8251. if (cached_has_bits & 0x00000004u) {
  8252. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->deprecated(), target);
  8253. }
  8254. // optional bool map_entry = 7;
  8255. if (cached_has_bits & 0x00000008u) {
  8256. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->map_entry(), target);
  8257. }
  8258. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  8259. for (unsigned int i = 0,
  8260. n = static_cast<unsigned int>(this->uninterpreted_option_size()); i < n; i++) {
  8261. target = ::google::protobuf::internal::WireFormatLite::
  8262. InternalWriteMessageToArray(
  8263. 999, this->uninterpreted_option(static_cast<int>(i)), deterministic, target);
  8264. }
  8265. // Extension range [1000, 536870912)
  8266. target = _extensions_.InternalSerializeWithCachedSizesToArray(
  8267. 1000, 536870912, deterministic, target);
  8268. if (_internal_metadata_.have_unknown_fields()) {
  8269. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  8270. _internal_metadata_.unknown_fields(), target);
  8271. }
  8272. // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.MessageOptions)
  8273. return target;
  8274. }
  8275. size_t MessageOptions::ByteSizeLong() const {
  8276. // @@protoc_insertion_point(message_byte_size_start:google.protobuf.MessageOptions)
  8277. size_t total_size = 0;
  8278. total_size += _extensions_.ByteSize();
  8279. if (_internal_metadata_.have_unknown_fields()) {
  8280. total_size +=
  8281. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  8282. _internal_metadata_.unknown_fields());
  8283. }
  8284. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  8285. {
  8286. unsigned int count = static_cast<unsigned int>(this->uninterpreted_option_size());
  8287. total_size += 2UL * count;
  8288. for (unsigned int i = 0; i < count; i++) {
  8289. total_size +=
  8290. ::google::protobuf::internal::WireFormatLite::MessageSize(
  8291. this->uninterpreted_option(static_cast<int>(i)));
  8292. }
  8293. }
  8294. if (_has_bits_[0 / 32] & 15u) {
  8295. // optional bool message_set_wire_format = 1 [default = false];
  8296. if (has_message_set_wire_format()) {
  8297. total_size += 1 + 1;
  8298. }
  8299. // optional bool no_standard_descriptor_accessor = 2 [default = false];
  8300. if (has_no_standard_descriptor_accessor()) {
  8301. total_size += 1 + 1;
  8302. }
  8303. // optional bool deprecated = 3 [default = false];
  8304. if (has_deprecated()) {
  8305. total_size += 1 + 1;
  8306. }
  8307. // optional bool map_entry = 7;
  8308. if (has_map_entry()) {
  8309. total_size += 1 + 1;
  8310. }
  8311. }
  8312. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  8313. SetCachedSize(cached_size);
  8314. return total_size;
  8315. }
  8316. void MessageOptions::MergeFrom(const ::google::protobuf::Message& from) {
  8317. // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.MessageOptions)
  8318. GOOGLE_DCHECK_NE(&from, this);
  8319. const MessageOptions* source =
  8320. ::google::protobuf::internal::DynamicCastToGenerated<const MessageOptions>(
  8321. &from);
  8322. if (source == NULL) {
  8323. // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.MessageOptions)
  8324. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  8325. } else {
  8326. // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.MessageOptions)
  8327. MergeFrom(*source);
  8328. }
  8329. }
  8330. void MessageOptions::MergeFrom(const MessageOptions& from) {
  8331. // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.MessageOptions)
  8332. GOOGLE_DCHECK_NE(&from, this);
  8333. _extensions_.MergeFrom(from._extensions_);
  8334. _internal_metadata_.MergeFrom(from._internal_metadata_);
  8335. ::google::protobuf::uint32 cached_has_bits = 0;
  8336. (void) cached_has_bits;
  8337. uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
  8338. cached_has_bits = from._has_bits_[0];
  8339. if (cached_has_bits & 15u) {
  8340. if (cached_has_bits & 0x00000001u) {
  8341. message_set_wire_format_ = from.message_set_wire_format_;
  8342. }
  8343. if (cached_has_bits & 0x00000002u) {
  8344. no_standard_descriptor_accessor_ = from.no_standard_descriptor_accessor_;
  8345. }
  8346. if (cached_has_bits & 0x00000004u) {
  8347. deprecated_ = from.deprecated_;
  8348. }
  8349. if (cached_has_bits & 0x00000008u) {
  8350. map_entry_ = from.map_entry_;
  8351. }
  8352. _has_bits_[0] |= cached_has_bits;
  8353. }
  8354. }
  8355. void MessageOptions::CopyFrom(const ::google::protobuf::Message& from) {
  8356. // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.MessageOptions)
  8357. if (&from == this) return;
  8358. Clear();
  8359. MergeFrom(from);
  8360. }
  8361. void MessageOptions::CopyFrom(const MessageOptions& from) {
  8362. // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.MessageOptions)
  8363. if (&from == this) return;
  8364. Clear();
  8365. MergeFrom(from);
  8366. }
  8367. bool MessageOptions::IsInitialized() const {
  8368. if (!_extensions_.IsInitialized()) {
  8369. return false;
  8370. }
  8371. if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false;
  8372. return true;
  8373. }
  8374. void MessageOptions::Swap(MessageOptions* other) {
  8375. if (other == this) return;
  8376. if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
  8377. InternalSwap(other);
  8378. } else {
  8379. MessageOptions* temp = New(GetArenaNoVirtual());
  8380. temp->MergeFrom(*other);
  8381. other->CopyFrom(*this);
  8382. InternalSwap(temp);
  8383. if (GetArenaNoVirtual() == NULL) {
  8384. delete temp;
  8385. }
  8386. }
  8387. }
  8388. void MessageOptions::UnsafeArenaSwap(MessageOptions* other) {
  8389. if (other == this) return;
  8390. GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
  8391. InternalSwap(other);
  8392. }
  8393. void MessageOptions::InternalSwap(MessageOptions* other) {
  8394. using std::swap;
  8395. CastToBase(&uninterpreted_option_)->InternalSwap(CastToBase(&other->uninterpreted_option_));
  8396. swap(message_set_wire_format_, other->message_set_wire_format_);
  8397. swap(no_standard_descriptor_accessor_, other->no_standard_descriptor_accessor_);
  8398. swap(deprecated_, other->deprecated_);
  8399. swap(map_entry_, other->map_entry_);
  8400. swap(_has_bits_[0], other->_has_bits_[0]);
  8401. _internal_metadata_.Swap(&other->_internal_metadata_);
  8402. _extensions_.Swap(&other->_extensions_);
  8403. }
  8404. ::google::protobuf::Metadata MessageOptions::GetMetadata() const {
  8405. protobuf_google_2fprotobuf_2fdescriptor_2eproto::protobuf_AssignDescriptorsOnce();
  8406. return ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::file_level_metadata[kIndexInFileMessages];
  8407. }
  8408. // ===================================================================
  8409. void FieldOptions::InitAsDefaultInstance() {
  8410. }
  8411. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  8412. const int FieldOptions::kCtypeFieldNumber;
  8413. const int FieldOptions::kPackedFieldNumber;
  8414. const int FieldOptions::kJstypeFieldNumber;
  8415. const int FieldOptions::kLazyFieldNumber;
  8416. const int FieldOptions::kDeprecatedFieldNumber;
  8417. const int FieldOptions::kWeakFieldNumber;
  8418. const int FieldOptions::kUninterpretedOptionFieldNumber;
  8419. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  8420. FieldOptions::FieldOptions()
  8421. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  8422. ::google::protobuf::internal::InitSCC(
  8423. &protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_FieldOptions.base);
  8424. SharedCtor();
  8425. // @@protoc_insertion_point(constructor:google.protobuf.FieldOptions)
  8426. }
  8427. FieldOptions::FieldOptions(::google::protobuf::Arena* arena)
  8428. : ::google::protobuf::Message(),
  8429. _extensions_(arena),
  8430. _internal_metadata_(arena),
  8431. uninterpreted_option_(arena) {
  8432. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_FieldOptions.base);
  8433. SharedCtor();
  8434. RegisterArenaDtor(arena);
  8435. // @@protoc_insertion_point(arena_constructor:google.protobuf.FieldOptions)
  8436. }
  8437. FieldOptions::FieldOptions(const FieldOptions& from)
  8438. : ::google::protobuf::Message(),
  8439. _internal_metadata_(NULL),
  8440. _has_bits_(from._has_bits_),
  8441. uninterpreted_option_(from.uninterpreted_option_) {
  8442. _internal_metadata_.MergeFrom(from._internal_metadata_);
  8443. _extensions_.MergeFrom(from._extensions_);
  8444. ::memcpy(&ctype_, &from.ctype_,
  8445. static_cast<size_t>(reinterpret_cast<char*>(&jstype_) -
  8446. reinterpret_cast<char*>(&ctype_)) + sizeof(jstype_));
  8447. // @@protoc_insertion_point(copy_constructor:google.protobuf.FieldOptions)
  8448. }
  8449. void FieldOptions::SharedCtor() {
  8450. ::memset(&ctype_, 0, static_cast<size_t>(
  8451. reinterpret_cast<char*>(&jstype_) -
  8452. reinterpret_cast<char*>(&ctype_)) + sizeof(jstype_));
  8453. }
  8454. FieldOptions::~FieldOptions() {
  8455. // @@protoc_insertion_point(destructor:google.protobuf.FieldOptions)
  8456. SharedDtor();
  8457. }
  8458. void FieldOptions::SharedDtor() {
  8459. GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
  8460. }
  8461. void FieldOptions::ArenaDtor(void* object) {
  8462. FieldOptions* _this = reinterpret_cast< FieldOptions* >(object);
  8463. (void)_this;
  8464. }
  8465. void FieldOptions::RegisterArenaDtor(::google::protobuf::Arena* arena) {
  8466. }
  8467. void FieldOptions::SetCachedSize(int size) const {
  8468. _cached_size_.Set(size);
  8469. }
  8470. const ::google::protobuf::Descriptor* FieldOptions::descriptor() {
  8471. ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::protobuf_AssignDescriptorsOnce();
  8472. return ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  8473. }
  8474. const FieldOptions& FieldOptions::default_instance() {
  8475. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_FieldOptions.base);
  8476. return *internal_default_instance();
  8477. }
  8478. void FieldOptions::Clear() {
  8479. // @@protoc_insertion_point(message_clear_start:google.protobuf.FieldOptions)
  8480. ::google::protobuf::uint32 cached_has_bits = 0;
  8481. // Prevent compiler warnings about cached_has_bits being unused
  8482. (void) cached_has_bits;
  8483. _extensions_.Clear();
  8484. uninterpreted_option_.Clear();
  8485. cached_has_bits = _has_bits_[0];
  8486. if (cached_has_bits & 63u) {
  8487. ::memset(&ctype_, 0, static_cast<size_t>(
  8488. reinterpret_cast<char*>(&jstype_) -
  8489. reinterpret_cast<char*>(&ctype_)) + sizeof(jstype_));
  8490. }
  8491. _has_bits_.Clear();
  8492. _internal_metadata_.Clear();
  8493. }
  8494. bool FieldOptions::MergePartialFromCodedStream(
  8495. ::google::protobuf::io::CodedInputStream* input) {
  8496. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  8497. ::google::protobuf::uint32 tag;
  8498. // @@protoc_insertion_point(parse_start:google.protobuf.FieldOptions)
  8499. for (;;) {
  8500. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
  8501. tag = p.first;
  8502. if (!p.second) goto handle_unusual;
  8503. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  8504. // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
  8505. case 1: {
  8506. if (static_cast< ::google::protobuf::uint8>(tag) ==
  8507. static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
  8508. int value;
  8509. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  8510. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  8511. input, &value)));
  8512. if (::google::protobuf::FieldOptions_CType_IsValid(value)) {
  8513. set_ctype(static_cast< ::google::protobuf::FieldOptions_CType >(value));
  8514. } else {
  8515. mutable_unknown_fields()->AddVarint(
  8516. 1, static_cast< ::google::protobuf::uint64>(value));
  8517. }
  8518. } else {
  8519. goto handle_unusual;
  8520. }
  8521. break;
  8522. }
  8523. // optional bool packed = 2;
  8524. case 2: {
  8525. if (static_cast< ::google::protobuf::uint8>(tag) ==
  8526. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  8527. set_has_packed();
  8528. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  8529. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  8530. input, &packed_)));
  8531. } else {
  8532. goto handle_unusual;
  8533. }
  8534. break;
  8535. }
  8536. // optional bool deprecated = 3 [default = false];
  8537. case 3: {
  8538. if (static_cast< ::google::protobuf::uint8>(tag) ==
  8539. static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
  8540. set_has_deprecated();
  8541. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  8542. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  8543. input, &deprecated_)));
  8544. } else {
  8545. goto handle_unusual;
  8546. }
  8547. break;
  8548. }
  8549. // optional bool lazy = 5 [default = false];
  8550. case 5: {
  8551. if (static_cast< ::google::protobuf::uint8>(tag) ==
  8552. static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
  8553. set_has_lazy();
  8554. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  8555. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  8556. input, &lazy_)));
  8557. } else {
  8558. goto handle_unusual;
  8559. }
  8560. break;
  8561. }
  8562. // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];
  8563. case 6: {
  8564. if (static_cast< ::google::protobuf::uint8>(tag) ==
  8565. static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
  8566. int value;
  8567. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  8568. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  8569. input, &value)));
  8570. if (::google::protobuf::FieldOptions_JSType_IsValid(value)) {
  8571. set_jstype(static_cast< ::google::protobuf::FieldOptions_JSType >(value));
  8572. } else {
  8573. mutable_unknown_fields()->AddVarint(
  8574. 6, static_cast< ::google::protobuf::uint64>(value));
  8575. }
  8576. } else {
  8577. goto handle_unusual;
  8578. }
  8579. break;
  8580. }
  8581. // optional bool weak = 10 [default = false];
  8582. case 10: {
  8583. if (static_cast< ::google::protobuf::uint8>(tag) ==
  8584. static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) {
  8585. set_has_weak();
  8586. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  8587. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  8588. input, &weak_)));
  8589. } else {
  8590. goto handle_unusual;
  8591. }
  8592. break;
  8593. }
  8594. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  8595. case 999: {
  8596. if (static_cast< ::google::protobuf::uint8>(tag) ==
  8597. static_cast< ::google::protobuf::uint8>(58u /* 7994 & 0xFF */)) {
  8598. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  8599. input, add_uninterpreted_option()));
  8600. } else {
  8601. goto handle_unusual;
  8602. }
  8603. break;
  8604. }
  8605. default: {
  8606. handle_unusual:
  8607. if (tag == 0) {
  8608. goto success;
  8609. }
  8610. if ((8000u <= tag)) {
  8611. DO_(_extensions_.ParseField(tag, input,
  8612. internal_default_instance(),
  8613. _internal_metadata_.mutable_unknown_fields()));
  8614. continue;
  8615. }
  8616. DO_(::google::protobuf::internal::WireFormat::SkipField(
  8617. input, tag, _internal_metadata_.mutable_unknown_fields()));
  8618. break;
  8619. }
  8620. }
  8621. }
  8622. success:
  8623. // @@protoc_insertion_point(parse_success:google.protobuf.FieldOptions)
  8624. return true;
  8625. failure:
  8626. // @@protoc_insertion_point(parse_failure:google.protobuf.FieldOptions)
  8627. return false;
  8628. #undef DO_
  8629. }
  8630. void FieldOptions::SerializeWithCachedSizes(
  8631. ::google::protobuf::io::CodedOutputStream* output) const {
  8632. // @@protoc_insertion_point(serialize_start:google.protobuf.FieldOptions)
  8633. ::google::protobuf::uint32 cached_has_bits = 0;
  8634. (void) cached_has_bits;
  8635. cached_has_bits = _has_bits_[0];
  8636. // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
  8637. if (cached_has_bits & 0x00000001u) {
  8638. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  8639. 1, this->ctype(), output);
  8640. }
  8641. // optional bool packed = 2;
  8642. if (cached_has_bits & 0x00000002u) {
  8643. ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->packed(), output);
  8644. }
  8645. // optional bool deprecated = 3 [default = false];
  8646. if (cached_has_bits & 0x00000008u) {
  8647. ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->deprecated(), output);
  8648. }
  8649. // optional bool lazy = 5 [default = false];
  8650. if (cached_has_bits & 0x00000004u) {
  8651. ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->lazy(), output);
  8652. }
  8653. // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];
  8654. if (cached_has_bits & 0x00000020u) {
  8655. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  8656. 6, this->jstype(), output);
  8657. }
  8658. // optional bool weak = 10 [default = false];
  8659. if (cached_has_bits & 0x00000010u) {
  8660. ::google::protobuf::internal::WireFormatLite::WriteBool(10, this->weak(), output);
  8661. }
  8662. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  8663. for (unsigned int i = 0,
  8664. n = static_cast<unsigned int>(this->uninterpreted_option_size()); i < n; i++) {
  8665. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  8666. 999,
  8667. this->uninterpreted_option(static_cast<int>(i)),
  8668. output);
  8669. }
  8670. // Extension range [1000, 536870912)
  8671. _extensions_.SerializeWithCachedSizes(
  8672. 1000, 536870912, output);
  8673. if (_internal_metadata_.have_unknown_fields()) {
  8674. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  8675. _internal_metadata_.unknown_fields(), output);
  8676. }
  8677. // @@protoc_insertion_point(serialize_end:google.protobuf.FieldOptions)
  8678. }
  8679. ::google::protobuf::uint8* FieldOptions::InternalSerializeWithCachedSizesToArray(
  8680. bool deterministic, ::google::protobuf::uint8* target) const {
  8681. (void)deterministic; // Unused
  8682. // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FieldOptions)
  8683. ::google::protobuf::uint32 cached_has_bits = 0;
  8684. (void) cached_has_bits;
  8685. cached_has_bits = _has_bits_[0];
  8686. // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
  8687. if (cached_has_bits & 0x00000001u) {
  8688. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  8689. 1, this->ctype(), target);
  8690. }
  8691. // optional bool packed = 2;
  8692. if (cached_has_bits & 0x00000002u) {
  8693. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->packed(), target);
  8694. }
  8695. // optional bool deprecated = 3 [default = false];
  8696. if (cached_has_bits & 0x00000008u) {
  8697. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->deprecated(), target);
  8698. }
  8699. // optional bool lazy = 5 [default = false];
  8700. if (cached_has_bits & 0x00000004u) {
  8701. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->lazy(), target);
  8702. }
  8703. // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];
  8704. if (cached_has_bits & 0x00000020u) {
  8705. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  8706. 6, this->jstype(), target);
  8707. }
  8708. // optional bool weak = 10 [default = false];
  8709. if (cached_has_bits & 0x00000010u) {
  8710. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(10, this->weak(), target);
  8711. }
  8712. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  8713. for (unsigned int i = 0,
  8714. n = static_cast<unsigned int>(this->uninterpreted_option_size()); i < n; i++) {
  8715. target = ::google::protobuf::internal::WireFormatLite::
  8716. InternalWriteMessageToArray(
  8717. 999, this->uninterpreted_option(static_cast<int>(i)), deterministic, target);
  8718. }
  8719. // Extension range [1000, 536870912)
  8720. target = _extensions_.InternalSerializeWithCachedSizesToArray(
  8721. 1000, 536870912, deterministic, target);
  8722. if (_internal_metadata_.have_unknown_fields()) {
  8723. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  8724. _internal_metadata_.unknown_fields(), target);
  8725. }
  8726. // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FieldOptions)
  8727. return target;
  8728. }
  8729. size_t FieldOptions::ByteSizeLong() const {
  8730. // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FieldOptions)
  8731. size_t total_size = 0;
  8732. total_size += _extensions_.ByteSize();
  8733. if (_internal_metadata_.have_unknown_fields()) {
  8734. total_size +=
  8735. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  8736. _internal_metadata_.unknown_fields());
  8737. }
  8738. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  8739. {
  8740. unsigned int count = static_cast<unsigned int>(this->uninterpreted_option_size());
  8741. total_size += 2UL * count;
  8742. for (unsigned int i = 0; i < count; i++) {
  8743. total_size +=
  8744. ::google::protobuf::internal::WireFormatLite::MessageSize(
  8745. this->uninterpreted_option(static_cast<int>(i)));
  8746. }
  8747. }
  8748. if (_has_bits_[0 / 32] & 63u) {
  8749. // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
  8750. if (has_ctype()) {
  8751. total_size += 1 +
  8752. ::google::protobuf::internal::WireFormatLite::EnumSize(this->ctype());
  8753. }
  8754. // optional bool packed = 2;
  8755. if (has_packed()) {
  8756. total_size += 1 + 1;
  8757. }
  8758. // optional bool lazy = 5 [default = false];
  8759. if (has_lazy()) {
  8760. total_size += 1 + 1;
  8761. }
  8762. // optional bool deprecated = 3 [default = false];
  8763. if (has_deprecated()) {
  8764. total_size += 1 + 1;
  8765. }
  8766. // optional bool weak = 10 [default = false];
  8767. if (has_weak()) {
  8768. total_size += 1 + 1;
  8769. }
  8770. // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];
  8771. if (has_jstype()) {
  8772. total_size += 1 +
  8773. ::google::protobuf::internal::WireFormatLite::EnumSize(this->jstype());
  8774. }
  8775. }
  8776. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  8777. SetCachedSize(cached_size);
  8778. return total_size;
  8779. }
  8780. void FieldOptions::MergeFrom(const ::google::protobuf::Message& from) {
  8781. // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.FieldOptions)
  8782. GOOGLE_DCHECK_NE(&from, this);
  8783. const FieldOptions* source =
  8784. ::google::protobuf::internal::DynamicCastToGenerated<const FieldOptions>(
  8785. &from);
  8786. if (source == NULL) {
  8787. // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.FieldOptions)
  8788. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  8789. } else {
  8790. // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.FieldOptions)
  8791. MergeFrom(*source);
  8792. }
  8793. }
  8794. void FieldOptions::MergeFrom(const FieldOptions& from) {
  8795. // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.FieldOptions)
  8796. GOOGLE_DCHECK_NE(&from, this);
  8797. _extensions_.MergeFrom(from._extensions_);
  8798. _internal_metadata_.MergeFrom(from._internal_metadata_);
  8799. ::google::protobuf::uint32 cached_has_bits = 0;
  8800. (void) cached_has_bits;
  8801. uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
  8802. cached_has_bits = from._has_bits_[0];
  8803. if (cached_has_bits & 63u) {
  8804. if (cached_has_bits & 0x00000001u) {
  8805. ctype_ = from.ctype_;
  8806. }
  8807. if (cached_has_bits & 0x00000002u) {
  8808. packed_ = from.packed_;
  8809. }
  8810. if (cached_has_bits & 0x00000004u) {
  8811. lazy_ = from.lazy_;
  8812. }
  8813. if (cached_has_bits & 0x00000008u) {
  8814. deprecated_ = from.deprecated_;
  8815. }
  8816. if (cached_has_bits & 0x00000010u) {
  8817. weak_ = from.weak_;
  8818. }
  8819. if (cached_has_bits & 0x00000020u) {
  8820. jstype_ = from.jstype_;
  8821. }
  8822. _has_bits_[0] |= cached_has_bits;
  8823. }
  8824. }
  8825. void FieldOptions::CopyFrom(const ::google::protobuf::Message& from) {
  8826. // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.FieldOptions)
  8827. if (&from == this) return;
  8828. Clear();
  8829. MergeFrom(from);
  8830. }
  8831. void FieldOptions::CopyFrom(const FieldOptions& from) {
  8832. // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.FieldOptions)
  8833. if (&from == this) return;
  8834. Clear();
  8835. MergeFrom(from);
  8836. }
  8837. bool FieldOptions::IsInitialized() const {
  8838. if (!_extensions_.IsInitialized()) {
  8839. return false;
  8840. }
  8841. if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false;
  8842. return true;
  8843. }
  8844. void FieldOptions::Swap(FieldOptions* other) {
  8845. if (other == this) return;
  8846. if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
  8847. InternalSwap(other);
  8848. } else {
  8849. FieldOptions* temp = New(GetArenaNoVirtual());
  8850. temp->MergeFrom(*other);
  8851. other->CopyFrom(*this);
  8852. InternalSwap(temp);
  8853. if (GetArenaNoVirtual() == NULL) {
  8854. delete temp;
  8855. }
  8856. }
  8857. }
  8858. void FieldOptions::UnsafeArenaSwap(FieldOptions* other) {
  8859. if (other == this) return;
  8860. GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
  8861. InternalSwap(other);
  8862. }
  8863. void FieldOptions::InternalSwap(FieldOptions* other) {
  8864. using std::swap;
  8865. CastToBase(&uninterpreted_option_)->InternalSwap(CastToBase(&other->uninterpreted_option_));
  8866. swap(ctype_, other->ctype_);
  8867. swap(packed_, other->packed_);
  8868. swap(lazy_, other->lazy_);
  8869. swap(deprecated_, other->deprecated_);
  8870. swap(weak_, other->weak_);
  8871. swap(jstype_, other->jstype_);
  8872. swap(_has_bits_[0], other->_has_bits_[0]);
  8873. _internal_metadata_.Swap(&other->_internal_metadata_);
  8874. _extensions_.Swap(&other->_extensions_);
  8875. }
  8876. ::google::protobuf::Metadata FieldOptions::GetMetadata() const {
  8877. protobuf_google_2fprotobuf_2fdescriptor_2eproto::protobuf_AssignDescriptorsOnce();
  8878. return ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::file_level_metadata[kIndexInFileMessages];
  8879. }
  8880. // ===================================================================
  8881. void OneofOptions::InitAsDefaultInstance() {
  8882. }
  8883. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  8884. const int OneofOptions::kUninterpretedOptionFieldNumber;
  8885. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  8886. OneofOptions::OneofOptions()
  8887. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  8888. ::google::protobuf::internal::InitSCC(
  8889. &protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_OneofOptions.base);
  8890. SharedCtor();
  8891. // @@protoc_insertion_point(constructor:google.protobuf.OneofOptions)
  8892. }
  8893. OneofOptions::OneofOptions(::google::protobuf::Arena* arena)
  8894. : ::google::protobuf::Message(),
  8895. _extensions_(arena),
  8896. _internal_metadata_(arena),
  8897. uninterpreted_option_(arena) {
  8898. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_OneofOptions.base);
  8899. SharedCtor();
  8900. RegisterArenaDtor(arena);
  8901. // @@protoc_insertion_point(arena_constructor:google.protobuf.OneofOptions)
  8902. }
  8903. OneofOptions::OneofOptions(const OneofOptions& from)
  8904. : ::google::protobuf::Message(),
  8905. _internal_metadata_(NULL),
  8906. _has_bits_(from._has_bits_),
  8907. uninterpreted_option_(from.uninterpreted_option_) {
  8908. _internal_metadata_.MergeFrom(from._internal_metadata_);
  8909. _extensions_.MergeFrom(from._extensions_);
  8910. // @@protoc_insertion_point(copy_constructor:google.protobuf.OneofOptions)
  8911. }
  8912. void OneofOptions::SharedCtor() {
  8913. }
  8914. OneofOptions::~OneofOptions() {
  8915. // @@protoc_insertion_point(destructor:google.protobuf.OneofOptions)
  8916. SharedDtor();
  8917. }
  8918. void OneofOptions::SharedDtor() {
  8919. GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
  8920. }
  8921. void OneofOptions::ArenaDtor(void* object) {
  8922. OneofOptions* _this = reinterpret_cast< OneofOptions* >(object);
  8923. (void)_this;
  8924. }
  8925. void OneofOptions::RegisterArenaDtor(::google::protobuf::Arena* arena) {
  8926. }
  8927. void OneofOptions::SetCachedSize(int size) const {
  8928. _cached_size_.Set(size);
  8929. }
  8930. const ::google::protobuf::Descriptor* OneofOptions::descriptor() {
  8931. ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::protobuf_AssignDescriptorsOnce();
  8932. return ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  8933. }
  8934. const OneofOptions& OneofOptions::default_instance() {
  8935. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_OneofOptions.base);
  8936. return *internal_default_instance();
  8937. }
  8938. void OneofOptions::Clear() {
  8939. // @@protoc_insertion_point(message_clear_start:google.protobuf.OneofOptions)
  8940. ::google::protobuf::uint32 cached_has_bits = 0;
  8941. // Prevent compiler warnings about cached_has_bits being unused
  8942. (void) cached_has_bits;
  8943. _extensions_.Clear();
  8944. uninterpreted_option_.Clear();
  8945. _has_bits_.Clear();
  8946. _internal_metadata_.Clear();
  8947. }
  8948. bool OneofOptions::MergePartialFromCodedStream(
  8949. ::google::protobuf::io::CodedInputStream* input) {
  8950. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  8951. ::google::protobuf::uint32 tag;
  8952. // @@protoc_insertion_point(parse_start:google.protobuf.OneofOptions)
  8953. for (;;) {
  8954. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
  8955. tag = p.first;
  8956. if (!p.second) goto handle_unusual;
  8957. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  8958. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  8959. case 999: {
  8960. if (static_cast< ::google::protobuf::uint8>(tag) ==
  8961. static_cast< ::google::protobuf::uint8>(58u /* 7994 & 0xFF */)) {
  8962. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  8963. input, add_uninterpreted_option()));
  8964. } else {
  8965. goto handle_unusual;
  8966. }
  8967. break;
  8968. }
  8969. default: {
  8970. handle_unusual:
  8971. if (tag == 0) {
  8972. goto success;
  8973. }
  8974. if ((8000u <= tag)) {
  8975. DO_(_extensions_.ParseField(tag, input,
  8976. internal_default_instance(),
  8977. _internal_metadata_.mutable_unknown_fields()));
  8978. continue;
  8979. }
  8980. DO_(::google::protobuf::internal::WireFormat::SkipField(
  8981. input, tag, _internal_metadata_.mutable_unknown_fields()));
  8982. break;
  8983. }
  8984. }
  8985. }
  8986. success:
  8987. // @@protoc_insertion_point(parse_success:google.protobuf.OneofOptions)
  8988. return true;
  8989. failure:
  8990. // @@protoc_insertion_point(parse_failure:google.protobuf.OneofOptions)
  8991. return false;
  8992. #undef DO_
  8993. }
  8994. void OneofOptions::SerializeWithCachedSizes(
  8995. ::google::protobuf::io::CodedOutputStream* output) const {
  8996. // @@protoc_insertion_point(serialize_start:google.protobuf.OneofOptions)
  8997. ::google::protobuf::uint32 cached_has_bits = 0;
  8998. (void) cached_has_bits;
  8999. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  9000. for (unsigned int i = 0,
  9001. n = static_cast<unsigned int>(this->uninterpreted_option_size()); i < n; i++) {
  9002. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  9003. 999,
  9004. this->uninterpreted_option(static_cast<int>(i)),
  9005. output);
  9006. }
  9007. // Extension range [1000, 536870912)
  9008. _extensions_.SerializeWithCachedSizes(
  9009. 1000, 536870912, output);
  9010. if (_internal_metadata_.have_unknown_fields()) {
  9011. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  9012. _internal_metadata_.unknown_fields(), output);
  9013. }
  9014. // @@protoc_insertion_point(serialize_end:google.protobuf.OneofOptions)
  9015. }
  9016. ::google::protobuf::uint8* OneofOptions::InternalSerializeWithCachedSizesToArray(
  9017. bool deterministic, ::google::protobuf::uint8* target) const {
  9018. (void)deterministic; // Unused
  9019. // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.OneofOptions)
  9020. ::google::protobuf::uint32 cached_has_bits = 0;
  9021. (void) cached_has_bits;
  9022. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  9023. for (unsigned int i = 0,
  9024. n = static_cast<unsigned int>(this->uninterpreted_option_size()); i < n; i++) {
  9025. target = ::google::protobuf::internal::WireFormatLite::
  9026. InternalWriteMessageToArray(
  9027. 999, this->uninterpreted_option(static_cast<int>(i)), deterministic, target);
  9028. }
  9029. // Extension range [1000, 536870912)
  9030. target = _extensions_.InternalSerializeWithCachedSizesToArray(
  9031. 1000, 536870912, deterministic, target);
  9032. if (_internal_metadata_.have_unknown_fields()) {
  9033. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  9034. _internal_metadata_.unknown_fields(), target);
  9035. }
  9036. // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.OneofOptions)
  9037. return target;
  9038. }
  9039. size_t OneofOptions::ByteSizeLong() const {
  9040. // @@protoc_insertion_point(message_byte_size_start:google.protobuf.OneofOptions)
  9041. size_t total_size = 0;
  9042. total_size += _extensions_.ByteSize();
  9043. if (_internal_metadata_.have_unknown_fields()) {
  9044. total_size +=
  9045. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  9046. _internal_metadata_.unknown_fields());
  9047. }
  9048. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  9049. {
  9050. unsigned int count = static_cast<unsigned int>(this->uninterpreted_option_size());
  9051. total_size += 2UL * count;
  9052. for (unsigned int i = 0; i < count; i++) {
  9053. total_size +=
  9054. ::google::protobuf::internal::WireFormatLite::MessageSize(
  9055. this->uninterpreted_option(static_cast<int>(i)));
  9056. }
  9057. }
  9058. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  9059. SetCachedSize(cached_size);
  9060. return total_size;
  9061. }
  9062. void OneofOptions::MergeFrom(const ::google::protobuf::Message& from) {
  9063. // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.OneofOptions)
  9064. GOOGLE_DCHECK_NE(&from, this);
  9065. const OneofOptions* source =
  9066. ::google::protobuf::internal::DynamicCastToGenerated<const OneofOptions>(
  9067. &from);
  9068. if (source == NULL) {
  9069. // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.OneofOptions)
  9070. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  9071. } else {
  9072. // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.OneofOptions)
  9073. MergeFrom(*source);
  9074. }
  9075. }
  9076. void OneofOptions::MergeFrom(const OneofOptions& from) {
  9077. // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.OneofOptions)
  9078. GOOGLE_DCHECK_NE(&from, this);
  9079. _extensions_.MergeFrom(from._extensions_);
  9080. _internal_metadata_.MergeFrom(from._internal_metadata_);
  9081. ::google::protobuf::uint32 cached_has_bits = 0;
  9082. (void) cached_has_bits;
  9083. uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
  9084. }
  9085. void OneofOptions::CopyFrom(const ::google::protobuf::Message& from) {
  9086. // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.OneofOptions)
  9087. if (&from == this) return;
  9088. Clear();
  9089. MergeFrom(from);
  9090. }
  9091. void OneofOptions::CopyFrom(const OneofOptions& from) {
  9092. // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.OneofOptions)
  9093. if (&from == this) return;
  9094. Clear();
  9095. MergeFrom(from);
  9096. }
  9097. bool OneofOptions::IsInitialized() const {
  9098. if (!_extensions_.IsInitialized()) {
  9099. return false;
  9100. }
  9101. if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false;
  9102. return true;
  9103. }
  9104. void OneofOptions::Swap(OneofOptions* other) {
  9105. if (other == this) return;
  9106. if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
  9107. InternalSwap(other);
  9108. } else {
  9109. OneofOptions* temp = New(GetArenaNoVirtual());
  9110. temp->MergeFrom(*other);
  9111. other->CopyFrom(*this);
  9112. InternalSwap(temp);
  9113. if (GetArenaNoVirtual() == NULL) {
  9114. delete temp;
  9115. }
  9116. }
  9117. }
  9118. void OneofOptions::UnsafeArenaSwap(OneofOptions* other) {
  9119. if (other == this) return;
  9120. GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
  9121. InternalSwap(other);
  9122. }
  9123. void OneofOptions::InternalSwap(OneofOptions* other) {
  9124. using std::swap;
  9125. CastToBase(&uninterpreted_option_)->InternalSwap(CastToBase(&other->uninterpreted_option_));
  9126. swap(_has_bits_[0], other->_has_bits_[0]);
  9127. _internal_metadata_.Swap(&other->_internal_metadata_);
  9128. _extensions_.Swap(&other->_extensions_);
  9129. }
  9130. ::google::protobuf::Metadata OneofOptions::GetMetadata() const {
  9131. protobuf_google_2fprotobuf_2fdescriptor_2eproto::protobuf_AssignDescriptorsOnce();
  9132. return ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::file_level_metadata[kIndexInFileMessages];
  9133. }
  9134. // ===================================================================
  9135. void EnumOptions::InitAsDefaultInstance() {
  9136. }
  9137. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  9138. const int EnumOptions::kAllowAliasFieldNumber;
  9139. const int EnumOptions::kDeprecatedFieldNumber;
  9140. const int EnumOptions::kUninterpretedOptionFieldNumber;
  9141. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  9142. EnumOptions::EnumOptions()
  9143. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  9144. ::google::protobuf::internal::InitSCC(
  9145. &protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_EnumOptions.base);
  9146. SharedCtor();
  9147. // @@protoc_insertion_point(constructor:google.protobuf.EnumOptions)
  9148. }
  9149. EnumOptions::EnumOptions(::google::protobuf::Arena* arena)
  9150. : ::google::protobuf::Message(),
  9151. _extensions_(arena),
  9152. _internal_metadata_(arena),
  9153. uninterpreted_option_(arena) {
  9154. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_EnumOptions.base);
  9155. SharedCtor();
  9156. RegisterArenaDtor(arena);
  9157. // @@protoc_insertion_point(arena_constructor:google.protobuf.EnumOptions)
  9158. }
  9159. EnumOptions::EnumOptions(const EnumOptions& from)
  9160. : ::google::protobuf::Message(),
  9161. _internal_metadata_(NULL),
  9162. _has_bits_(from._has_bits_),
  9163. uninterpreted_option_(from.uninterpreted_option_) {
  9164. _internal_metadata_.MergeFrom(from._internal_metadata_);
  9165. _extensions_.MergeFrom(from._extensions_);
  9166. ::memcpy(&allow_alias_, &from.allow_alias_,
  9167. static_cast<size_t>(reinterpret_cast<char*>(&deprecated_) -
  9168. reinterpret_cast<char*>(&allow_alias_)) + sizeof(deprecated_));
  9169. // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumOptions)
  9170. }
  9171. void EnumOptions::SharedCtor() {
  9172. ::memset(&allow_alias_, 0, static_cast<size_t>(
  9173. reinterpret_cast<char*>(&deprecated_) -
  9174. reinterpret_cast<char*>(&allow_alias_)) + sizeof(deprecated_));
  9175. }
  9176. EnumOptions::~EnumOptions() {
  9177. // @@protoc_insertion_point(destructor:google.protobuf.EnumOptions)
  9178. SharedDtor();
  9179. }
  9180. void EnumOptions::SharedDtor() {
  9181. GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
  9182. }
  9183. void EnumOptions::ArenaDtor(void* object) {
  9184. EnumOptions* _this = reinterpret_cast< EnumOptions* >(object);
  9185. (void)_this;
  9186. }
  9187. void EnumOptions::RegisterArenaDtor(::google::protobuf::Arena* arena) {
  9188. }
  9189. void EnumOptions::SetCachedSize(int size) const {
  9190. _cached_size_.Set(size);
  9191. }
  9192. const ::google::protobuf::Descriptor* EnumOptions::descriptor() {
  9193. ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::protobuf_AssignDescriptorsOnce();
  9194. return ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  9195. }
  9196. const EnumOptions& EnumOptions::default_instance() {
  9197. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_EnumOptions.base);
  9198. return *internal_default_instance();
  9199. }
  9200. void EnumOptions::Clear() {
  9201. // @@protoc_insertion_point(message_clear_start:google.protobuf.EnumOptions)
  9202. ::google::protobuf::uint32 cached_has_bits = 0;
  9203. // Prevent compiler warnings about cached_has_bits being unused
  9204. (void) cached_has_bits;
  9205. _extensions_.Clear();
  9206. uninterpreted_option_.Clear();
  9207. ::memset(&allow_alias_, 0, static_cast<size_t>(
  9208. reinterpret_cast<char*>(&deprecated_) -
  9209. reinterpret_cast<char*>(&allow_alias_)) + sizeof(deprecated_));
  9210. _has_bits_.Clear();
  9211. _internal_metadata_.Clear();
  9212. }
  9213. bool EnumOptions::MergePartialFromCodedStream(
  9214. ::google::protobuf::io::CodedInputStream* input) {
  9215. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  9216. ::google::protobuf::uint32 tag;
  9217. // @@protoc_insertion_point(parse_start:google.protobuf.EnumOptions)
  9218. for (;;) {
  9219. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
  9220. tag = p.first;
  9221. if (!p.second) goto handle_unusual;
  9222. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  9223. // optional bool allow_alias = 2;
  9224. case 2: {
  9225. if (static_cast< ::google::protobuf::uint8>(tag) ==
  9226. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  9227. set_has_allow_alias();
  9228. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  9229. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  9230. input, &allow_alias_)));
  9231. } else {
  9232. goto handle_unusual;
  9233. }
  9234. break;
  9235. }
  9236. // optional bool deprecated = 3 [default = false];
  9237. case 3: {
  9238. if (static_cast< ::google::protobuf::uint8>(tag) ==
  9239. static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
  9240. set_has_deprecated();
  9241. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  9242. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  9243. input, &deprecated_)));
  9244. } else {
  9245. goto handle_unusual;
  9246. }
  9247. break;
  9248. }
  9249. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  9250. case 999: {
  9251. if (static_cast< ::google::protobuf::uint8>(tag) ==
  9252. static_cast< ::google::protobuf::uint8>(58u /* 7994 & 0xFF */)) {
  9253. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  9254. input, add_uninterpreted_option()));
  9255. } else {
  9256. goto handle_unusual;
  9257. }
  9258. break;
  9259. }
  9260. default: {
  9261. handle_unusual:
  9262. if (tag == 0) {
  9263. goto success;
  9264. }
  9265. if ((8000u <= tag)) {
  9266. DO_(_extensions_.ParseField(tag, input,
  9267. internal_default_instance(),
  9268. _internal_metadata_.mutable_unknown_fields()));
  9269. continue;
  9270. }
  9271. DO_(::google::protobuf::internal::WireFormat::SkipField(
  9272. input, tag, _internal_metadata_.mutable_unknown_fields()));
  9273. break;
  9274. }
  9275. }
  9276. }
  9277. success:
  9278. // @@protoc_insertion_point(parse_success:google.protobuf.EnumOptions)
  9279. return true;
  9280. failure:
  9281. // @@protoc_insertion_point(parse_failure:google.protobuf.EnumOptions)
  9282. return false;
  9283. #undef DO_
  9284. }
  9285. void EnumOptions::SerializeWithCachedSizes(
  9286. ::google::protobuf::io::CodedOutputStream* output) const {
  9287. // @@protoc_insertion_point(serialize_start:google.protobuf.EnumOptions)
  9288. ::google::protobuf::uint32 cached_has_bits = 0;
  9289. (void) cached_has_bits;
  9290. cached_has_bits = _has_bits_[0];
  9291. // optional bool allow_alias = 2;
  9292. if (cached_has_bits & 0x00000001u) {
  9293. ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->allow_alias(), output);
  9294. }
  9295. // optional bool deprecated = 3 [default = false];
  9296. if (cached_has_bits & 0x00000002u) {
  9297. ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->deprecated(), output);
  9298. }
  9299. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  9300. for (unsigned int i = 0,
  9301. n = static_cast<unsigned int>(this->uninterpreted_option_size()); i < n; i++) {
  9302. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  9303. 999,
  9304. this->uninterpreted_option(static_cast<int>(i)),
  9305. output);
  9306. }
  9307. // Extension range [1000, 536870912)
  9308. _extensions_.SerializeWithCachedSizes(
  9309. 1000, 536870912, output);
  9310. if (_internal_metadata_.have_unknown_fields()) {
  9311. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  9312. _internal_metadata_.unknown_fields(), output);
  9313. }
  9314. // @@protoc_insertion_point(serialize_end:google.protobuf.EnumOptions)
  9315. }
  9316. ::google::protobuf::uint8* EnumOptions::InternalSerializeWithCachedSizesToArray(
  9317. bool deterministic, ::google::protobuf::uint8* target) const {
  9318. (void)deterministic; // Unused
  9319. // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumOptions)
  9320. ::google::protobuf::uint32 cached_has_bits = 0;
  9321. (void) cached_has_bits;
  9322. cached_has_bits = _has_bits_[0];
  9323. // optional bool allow_alias = 2;
  9324. if (cached_has_bits & 0x00000001u) {
  9325. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->allow_alias(), target);
  9326. }
  9327. // optional bool deprecated = 3 [default = false];
  9328. if (cached_has_bits & 0x00000002u) {
  9329. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->deprecated(), target);
  9330. }
  9331. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  9332. for (unsigned int i = 0,
  9333. n = static_cast<unsigned int>(this->uninterpreted_option_size()); i < n; i++) {
  9334. target = ::google::protobuf::internal::WireFormatLite::
  9335. InternalWriteMessageToArray(
  9336. 999, this->uninterpreted_option(static_cast<int>(i)), deterministic, target);
  9337. }
  9338. // Extension range [1000, 536870912)
  9339. target = _extensions_.InternalSerializeWithCachedSizesToArray(
  9340. 1000, 536870912, deterministic, target);
  9341. if (_internal_metadata_.have_unknown_fields()) {
  9342. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  9343. _internal_metadata_.unknown_fields(), target);
  9344. }
  9345. // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumOptions)
  9346. return target;
  9347. }
  9348. size_t EnumOptions::ByteSizeLong() const {
  9349. // @@protoc_insertion_point(message_byte_size_start:google.protobuf.EnumOptions)
  9350. size_t total_size = 0;
  9351. total_size += _extensions_.ByteSize();
  9352. if (_internal_metadata_.have_unknown_fields()) {
  9353. total_size +=
  9354. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  9355. _internal_metadata_.unknown_fields());
  9356. }
  9357. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  9358. {
  9359. unsigned int count = static_cast<unsigned int>(this->uninterpreted_option_size());
  9360. total_size += 2UL * count;
  9361. for (unsigned int i = 0; i < count; i++) {
  9362. total_size +=
  9363. ::google::protobuf::internal::WireFormatLite::MessageSize(
  9364. this->uninterpreted_option(static_cast<int>(i)));
  9365. }
  9366. }
  9367. if (_has_bits_[0 / 32] & 3u) {
  9368. // optional bool allow_alias = 2;
  9369. if (has_allow_alias()) {
  9370. total_size += 1 + 1;
  9371. }
  9372. // optional bool deprecated = 3 [default = false];
  9373. if (has_deprecated()) {
  9374. total_size += 1 + 1;
  9375. }
  9376. }
  9377. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  9378. SetCachedSize(cached_size);
  9379. return total_size;
  9380. }
  9381. void EnumOptions::MergeFrom(const ::google::protobuf::Message& from) {
  9382. // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.EnumOptions)
  9383. GOOGLE_DCHECK_NE(&from, this);
  9384. const EnumOptions* source =
  9385. ::google::protobuf::internal::DynamicCastToGenerated<const EnumOptions>(
  9386. &from);
  9387. if (source == NULL) {
  9388. // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.EnumOptions)
  9389. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  9390. } else {
  9391. // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.EnumOptions)
  9392. MergeFrom(*source);
  9393. }
  9394. }
  9395. void EnumOptions::MergeFrom(const EnumOptions& from) {
  9396. // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.EnumOptions)
  9397. GOOGLE_DCHECK_NE(&from, this);
  9398. _extensions_.MergeFrom(from._extensions_);
  9399. _internal_metadata_.MergeFrom(from._internal_metadata_);
  9400. ::google::protobuf::uint32 cached_has_bits = 0;
  9401. (void) cached_has_bits;
  9402. uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
  9403. cached_has_bits = from._has_bits_[0];
  9404. if (cached_has_bits & 3u) {
  9405. if (cached_has_bits & 0x00000001u) {
  9406. allow_alias_ = from.allow_alias_;
  9407. }
  9408. if (cached_has_bits & 0x00000002u) {
  9409. deprecated_ = from.deprecated_;
  9410. }
  9411. _has_bits_[0] |= cached_has_bits;
  9412. }
  9413. }
  9414. void EnumOptions::CopyFrom(const ::google::protobuf::Message& from) {
  9415. // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.EnumOptions)
  9416. if (&from == this) return;
  9417. Clear();
  9418. MergeFrom(from);
  9419. }
  9420. void EnumOptions::CopyFrom(const EnumOptions& from) {
  9421. // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.EnumOptions)
  9422. if (&from == this) return;
  9423. Clear();
  9424. MergeFrom(from);
  9425. }
  9426. bool EnumOptions::IsInitialized() const {
  9427. if (!_extensions_.IsInitialized()) {
  9428. return false;
  9429. }
  9430. if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false;
  9431. return true;
  9432. }
  9433. void EnumOptions::Swap(EnumOptions* other) {
  9434. if (other == this) return;
  9435. if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
  9436. InternalSwap(other);
  9437. } else {
  9438. EnumOptions* temp = New(GetArenaNoVirtual());
  9439. temp->MergeFrom(*other);
  9440. other->CopyFrom(*this);
  9441. InternalSwap(temp);
  9442. if (GetArenaNoVirtual() == NULL) {
  9443. delete temp;
  9444. }
  9445. }
  9446. }
  9447. void EnumOptions::UnsafeArenaSwap(EnumOptions* other) {
  9448. if (other == this) return;
  9449. GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
  9450. InternalSwap(other);
  9451. }
  9452. void EnumOptions::InternalSwap(EnumOptions* other) {
  9453. using std::swap;
  9454. CastToBase(&uninterpreted_option_)->InternalSwap(CastToBase(&other->uninterpreted_option_));
  9455. swap(allow_alias_, other->allow_alias_);
  9456. swap(deprecated_, other->deprecated_);
  9457. swap(_has_bits_[0], other->_has_bits_[0]);
  9458. _internal_metadata_.Swap(&other->_internal_metadata_);
  9459. _extensions_.Swap(&other->_extensions_);
  9460. }
  9461. ::google::protobuf::Metadata EnumOptions::GetMetadata() const {
  9462. protobuf_google_2fprotobuf_2fdescriptor_2eproto::protobuf_AssignDescriptorsOnce();
  9463. return ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::file_level_metadata[kIndexInFileMessages];
  9464. }
  9465. // ===================================================================
  9466. void EnumValueOptions::InitAsDefaultInstance() {
  9467. }
  9468. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  9469. const int EnumValueOptions::kDeprecatedFieldNumber;
  9470. const int EnumValueOptions::kUninterpretedOptionFieldNumber;
  9471. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  9472. EnumValueOptions::EnumValueOptions()
  9473. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  9474. ::google::protobuf::internal::InitSCC(
  9475. &protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_EnumValueOptions.base);
  9476. SharedCtor();
  9477. // @@protoc_insertion_point(constructor:google.protobuf.EnumValueOptions)
  9478. }
  9479. EnumValueOptions::EnumValueOptions(::google::protobuf::Arena* arena)
  9480. : ::google::protobuf::Message(),
  9481. _extensions_(arena),
  9482. _internal_metadata_(arena),
  9483. uninterpreted_option_(arena) {
  9484. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_EnumValueOptions.base);
  9485. SharedCtor();
  9486. RegisterArenaDtor(arena);
  9487. // @@protoc_insertion_point(arena_constructor:google.protobuf.EnumValueOptions)
  9488. }
  9489. EnumValueOptions::EnumValueOptions(const EnumValueOptions& from)
  9490. : ::google::protobuf::Message(),
  9491. _internal_metadata_(NULL),
  9492. _has_bits_(from._has_bits_),
  9493. uninterpreted_option_(from.uninterpreted_option_) {
  9494. _internal_metadata_.MergeFrom(from._internal_metadata_);
  9495. _extensions_.MergeFrom(from._extensions_);
  9496. deprecated_ = from.deprecated_;
  9497. // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumValueOptions)
  9498. }
  9499. void EnumValueOptions::SharedCtor() {
  9500. deprecated_ = false;
  9501. }
  9502. EnumValueOptions::~EnumValueOptions() {
  9503. // @@protoc_insertion_point(destructor:google.protobuf.EnumValueOptions)
  9504. SharedDtor();
  9505. }
  9506. void EnumValueOptions::SharedDtor() {
  9507. GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
  9508. }
  9509. void EnumValueOptions::ArenaDtor(void* object) {
  9510. EnumValueOptions* _this = reinterpret_cast< EnumValueOptions* >(object);
  9511. (void)_this;
  9512. }
  9513. void EnumValueOptions::RegisterArenaDtor(::google::protobuf::Arena* arena) {
  9514. }
  9515. void EnumValueOptions::SetCachedSize(int size) const {
  9516. _cached_size_.Set(size);
  9517. }
  9518. const ::google::protobuf::Descriptor* EnumValueOptions::descriptor() {
  9519. ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::protobuf_AssignDescriptorsOnce();
  9520. return ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  9521. }
  9522. const EnumValueOptions& EnumValueOptions::default_instance() {
  9523. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_EnumValueOptions.base);
  9524. return *internal_default_instance();
  9525. }
  9526. void EnumValueOptions::Clear() {
  9527. // @@protoc_insertion_point(message_clear_start:google.protobuf.EnumValueOptions)
  9528. ::google::protobuf::uint32 cached_has_bits = 0;
  9529. // Prevent compiler warnings about cached_has_bits being unused
  9530. (void) cached_has_bits;
  9531. _extensions_.Clear();
  9532. uninterpreted_option_.Clear();
  9533. deprecated_ = false;
  9534. _has_bits_.Clear();
  9535. _internal_metadata_.Clear();
  9536. }
  9537. bool EnumValueOptions::MergePartialFromCodedStream(
  9538. ::google::protobuf::io::CodedInputStream* input) {
  9539. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  9540. ::google::protobuf::uint32 tag;
  9541. // @@protoc_insertion_point(parse_start:google.protobuf.EnumValueOptions)
  9542. for (;;) {
  9543. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
  9544. tag = p.first;
  9545. if (!p.second) goto handle_unusual;
  9546. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  9547. // optional bool deprecated = 1 [default = false];
  9548. case 1: {
  9549. if (static_cast< ::google::protobuf::uint8>(tag) ==
  9550. static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
  9551. set_has_deprecated();
  9552. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  9553. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  9554. input, &deprecated_)));
  9555. } else {
  9556. goto handle_unusual;
  9557. }
  9558. break;
  9559. }
  9560. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  9561. case 999: {
  9562. if (static_cast< ::google::protobuf::uint8>(tag) ==
  9563. static_cast< ::google::protobuf::uint8>(58u /* 7994 & 0xFF */)) {
  9564. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  9565. input, add_uninterpreted_option()));
  9566. } else {
  9567. goto handle_unusual;
  9568. }
  9569. break;
  9570. }
  9571. default: {
  9572. handle_unusual:
  9573. if (tag == 0) {
  9574. goto success;
  9575. }
  9576. if ((8000u <= tag)) {
  9577. DO_(_extensions_.ParseField(tag, input,
  9578. internal_default_instance(),
  9579. _internal_metadata_.mutable_unknown_fields()));
  9580. continue;
  9581. }
  9582. DO_(::google::protobuf::internal::WireFormat::SkipField(
  9583. input, tag, _internal_metadata_.mutable_unknown_fields()));
  9584. break;
  9585. }
  9586. }
  9587. }
  9588. success:
  9589. // @@protoc_insertion_point(parse_success:google.protobuf.EnumValueOptions)
  9590. return true;
  9591. failure:
  9592. // @@protoc_insertion_point(parse_failure:google.protobuf.EnumValueOptions)
  9593. return false;
  9594. #undef DO_
  9595. }
  9596. void EnumValueOptions::SerializeWithCachedSizes(
  9597. ::google::protobuf::io::CodedOutputStream* output) const {
  9598. // @@protoc_insertion_point(serialize_start:google.protobuf.EnumValueOptions)
  9599. ::google::protobuf::uint32 cached_has_bits = 0;
  9600. (void) cached_has_bits;
  9601. cached_has_bits = _has_bits_[0];
  9602. // optional bool deprecated = 1 [default = false];
  9603. if (cached_has_bits & 0x00000001u) {
  9604. ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->deprecated(), output);
  9605. }
  9606. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  9607. for (unsigned int i = 0,
  9608. n = static_cast<unsigned int>(this->uninterpreted_option_size()); i < n; i++) {
  9609. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  9610. 999,
  9611. this->uninterpreted_option(static_cast<int>(i)),
  9612. output);
  9613. }
  9614. // Extension range [1000, 536870912)
  9615. _extensions_.SerializeWithCachedSizes(
  9616. 1000, 536870912, output);
  9617. if (_internal_metadata_.have_unknown_fields()) {
  9618. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  9619. _internal_metadata_.unknown_fields(), output);
  9620. }
  9621. // @@protoc_insertion_point(serialize_end:google.protobuf.EnumValueOptions)
  9622. }
  9623. ::google::protobuf::uint8* EnumValueOptions::InternalSerializeWithCachedSizesToArray(
  9624. bool deterministic, ::google::protobuf::uint8* target) const {
  9625. (void)deterministic; // Unused
  9626. // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumValueOptions)
  9627. ::google::protobuf::uint32 cached_has_bits = 0;
  9628. (void) cached_has_bits;
  9629. cached_has_bits = _has_bits_[0];
  9630. // optional bool deprecated = 1 [default = false];
  9631. if (cached_has_bits & 0x00000001u) {
  9632. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->deprecated(), target);
  9633. }
  9634. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  9635. for (unsigned int i = 0,
  9636. n = static_cast<unsigned int>(this->uninterpreted_option_size()); i < n; i++) {
  9637. target = ::google::protobuf::internal::WireFormatLite::
  9638. InternalWriteMessageToArray(
  9639. 999, this->uninterpreted_option(static_cast<int>(i)), deterministic, target);
  9640. }
  9641. // Extension range [1000, 536870912)
  9642. target = _extensions_.InternalSerializeWithCachedSizesToArray(
  9643. 1000, 536870912, deterministic, target);
  9644. if (_internal_metadata_.have_unknown_fields()) {
  9645. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  9646. _internal_metadata_.unknown_fields(), target);
  9647. }
  9648. // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumValueOptions)
  9649. return target;
  9650. }
  9651. size_t EnumValueOptions::ByteSizeLong() const {
  9652. // @@protoc_insertion_point(message_byte_size_start:google.protobuf.EnumValueOptions)
  9653. size_t total_size = 0;
  9654. total_size += _extensions_.ByteSize();
  9655. if (_internal_metadata_.have_unknown_fields()) {
  9656. total_size +=
  9657. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  9658. _internal_metadata_.unknown_fields());
  9659. }
  9660. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  9661. {
  9662. unsigned int count = static_cast<unsigned int>(this->uninterpreted_option_size());
  9663. total_size += 2UL * count;
  9664. for (unsigned int i = 0; i < count; i++) {
  9665. total_size +=
  9666. ::google::protobuf::internal::WireFormatLite::MessageSize(
  9667. this->uninterpreted_option(static_cast<int>(i)));
  9668. }
  9669. }
  9670. // optional bool deprecated = 1 [default = false];
  9671. if (has_deprecated()) {
  9672. total_size += 1 + 1;
  9673. }
  9674. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  9675. SetCachedSize(cached_size);
  9676. return total_size;
  9677. }
  9678. void EnumValueOptions::MergeFrom(const ::google::protobuf::Message& from) {
  9679. // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.EnumValueOptions)
  9680. GOOGLE_DCHECK_NE(&from, this);
  9681. const EnumValueOptions* source =
  9682. ::google::protobuf::internal::DynamicCastToGenerated<const EnumValueOptions>(
  9683. &from);
  9684. if (source == NULL) {
  9685. // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.EnumValueOptions)
  9686. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  9687. } else {
  9688. // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.EnumValueOptions)
  9689. MergeFrom(*source);
  9690. }
  9691. }
  9692. void EnumValueOptions::MergeFrom(const EnumValueOptions& from) {
  9693. // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.EnumValueOptions)
  9694. GOOGLE_DCHECK_NE(&from, this);
  9695. _extensions_.MergeFrom(from._extensions_);
  9696. _internal_metadata_.MergeFrom(from._internal_metadata_);
  9697. ::google::protobuf::uint32 cached_has_bits = 0;
  9698. (void) cached_has_bits;
  9699. uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
  9700. if (from.has_deprecated()) {
  9701. set_deprecated(from.deprecated());
  9702. }
  9703. }
  9704. void EnumValueOptions::CopyFrom(const ::google::protobuf::Message& from) {
  9705. // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.EnumValueOptions)
  9706. if (&from == this) return;
  9707. Clear();
  9708. MergeFrom(from);
  9709. }
  9710. void EnumValueOptions::CopyFrom(const EnumValueOptions& from) {
  9711. // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.EnumValueOptions)
  9712. if (&from == this) return;
  9713. Clear();
  9714. MergeFrom(from);
  9715. }
  9716. bool EnumValueOptions::IsInitialized() const {
  9717. if (!_extensions_.IsInitialized()) {
  9718. return false;
  9719. }
  9720. if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false;
  9721. return true;
  9722. }
  9723. void EnumValueOptions::Swap(EnumValueOptions* other) {
  9724. if (other == this) return;
  9725. if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
  9726. InternalSwap(other);
  9727. } else {
  9728. EnumValueOptions* temp = New(GetArenaNoVirtual());
  9729. temp->MergeFrom(*other);
  9730. other->CopyFrom(*this);
  9731. InternalSwap(temp);
  9732. if (GetArenaNoVirtual() == NULL) {
  9733. delete temp;
  9734. }
  9735. }
  9736. }
  9737. void EnumValueOptions::UnsafeArenaSwap(EnumValueOptions* other) {
  9738. if (other == this) return;
  9739. GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
  9740. InternalSwap(other);
  9741. }
  9742. void EnumValueOptions::InternalSwap(EnumValueOptions* other) {
  9743. using std::swap;
  9744. CastToBase(&uninterpreted_option_)->InternalSwap(CastToBase(&other->uninterpreted_option_));
  9745. swap(deprecated_, other->deprecated_);
  9746. swap(_has_bits_[0], other->_has_bits_[0]);
  9747. _internal_metadata_.Swap(&other->_internal_metadata_);
  9748. _extensions_.Swap(&other->_extensions_);
  9749. }
  9750. ::google::protobuf::Metadata EnumValueOptions::GetMetadata() const {
  9751. protobuf_google_2fprotobuf_2fdescriptor_2eproto::protobuf_AssignDescriptorsOnce();
  9752. return ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::file_level_metadata[kIndexInFileMessages];
  9753. }
  9754. // ===================================================================
  9755. void ServiceOptions::InitAsDefaultInstance() {
  9756. }
  9757. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  9758. const int ServiceOptions::kDeprecatedFieldNumber;
  9759. const int ServiceOptions::kUninterpretedOptionFieldNumber;
  9760. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  9761. ServiceOptions::ServiceOptions()
  9762. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  9763. ::google::protobuf::internal::InitSCC(
  9764. &protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_ServiceOptions.base);
  9765. SharedCtor();
  9766. // @@protoc_insertion_point(constructor:google.protobuf.ServiceOptions)
  9767. }
  9768. ServiceOptions::ServiceOptions(::google::protobuf::Arena* arena)
  9769. : ::google::protobuf::Message(),
  9770. _extensions_(arena),
  9771. _internal_metadata_(arena),
  9772. uninterpreted_option_(arena) {
  9773. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_ServiceOptions.base);
  9774. SharedCtor();
  9775. RegisterArenaDtor(arena);
  9776. // @@protoc_insertion_point(arena_constructor:google.protobuf.ServiceOptions)
  9777. }
  9778. ServiceOptions::ServiceOptions(const ServiceOptions& from)
  9779. : ::google::protobuf::Message(),
  9780. _internal_metadata_(NULL),
  9781. _has_bits_(from._has_bits_),
  9782. uninterpreted_option_(from.uninterpreted_option_) {
  9783. _internal_metadata_.MergeFrom(from._internal_metadata_);
  9784. _extensions_.MergeFrom(from._extensions_);
  9785. deprecated_ = from.deprecated_;
  9786. // @@protoc_insertion_point(copy_constructor:google.protobuf.ServiceOptions)
  9787. }
  9788. void ServiceOptions::SharedCtor() {
  9789. deprecated_ = false;
  9790. }
  9791. ServiceOptions::~ServiceOptions() {
  9792. // @@protoc_insertion_point(destructor:google.protobuf.ServiceOptions)
  9793. SharedDtor();
  9794. }
  9795. void ServiceOptions::SharedDtor() {
  9796. GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
  9797. }
  9798. void ServiceOptions::ArenaDtor(void* object) {
  9799. ServiceOptions* _this = reinterpret_cast< ServiceOptions* >(object);
  9800. (void)_this;
  9801. }
  9802. void ServiceOptions::RegisterArenaDtor(::google::protobuf::Arena* arena) {
  9803. }
  9804. void ServiceOptions::SetCachedSize(int size) const {
  9805. _cached_size_.Set(size);
  9806. }
  9807. const ::google::protobuf::Descriptor* ServiceOptions::descriptor() {
  9808. ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::protobuf_AssignDescriptorsOnce();
  9809. return ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  9810. }
  9811. const ServiceOptions& ServiceOptions::default_instance() {
  9812. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_ServiceOptions.base);
  9813. return *internal_default_instance();
  9814. }
  9815. void ServiceOptions::Clear() {
  9816. // @@protoc_insertion_point(message_clear_start:google.protobuf.ServiceOptions)
  9817. ::google::protobuf::uint32 cached_has_bits = 0;
  9818. // Prevent compiler warnings about cached_has_bits being unused
  9819. (void) cached_has_bits;
  9820. _extensions_.Clear();
  9821. uninterpreted_option_.Clear();
  9822. deprecated_ = false;
  9823. _has_bits_.Clear();
  9824. _internal_metadata_.Clear();
  9825. }
  9826. bool ServiceOptions::MergePartialFromCodedStream(
  9827. ::google::protobuf::io::CodedInputStream* input) {
  9828. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  9829. ::google::protobuf::uint32 tag;
  9830. // @@protoc_insertion_point(parse_start:google.protobuf.ServiceOptions)
  9831. for (;;) {
  9832. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
  9833. tag = p.first;
  9834. if (!p.second) goto handle_unusual;
  9835. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  9836. // optional bool deprecated = 33 [default = false];
  9837. case 33: {
  9838. if (static_cast< ::google::protobuf::uint8>(tag) ==
  9839. static_cast< ::google::protobuf::uint8>(8u /* 264 & 0xFF */)) {
  9840. set_has_deprecated();
  9841. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  9842. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  9843. input, &deprecated_)));
  9844. } else {
  9845. goto handle_unusual;
  9846. }
  9847. break;
  9848. }
  9849. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  9850. case 999: {
  9851. if (static_cast< ::google::protobuf::uint8>(tag) ==
  9852. static_cast< ::google::protobuf::uint8>(58u /* 7994 & 0xFF */)) {
  9853. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  9854. input, add_uninterpreted_option()));
  9855. } else {
  9856. goto handle_unusual;
  9857. }
  9858. break;
  9859. }
  9860. default: {
  9861. handle_unusual:
  9862. if (tag == 0) {
  9863. goto success;
  9864. }
  9865. if ((8000u <= tag)) {
  9866. DO_(_extensions_.ParseField(tag, input,
  9867. internal_default_instance(),
  9868. _internal_metadata_.mutable_unknown_fields()));
  9869. continue;
  9870. }
  9871. DO_(::google::protobuf::internal::WireFormat::SkipField(
  9872. input, tag, _internal_metadata_.mutable_unknown_fields()));
  9873. break;
  9874. }
  9875. }
  9876. }
  9877. success:
  9878. // @@protoc_insertion_point(parse_success:google.protobuf.ServiceOptions)
  9879. return true;
  9880. failure:
  9881. // @@protoc_insertion_point(parse_failure:google.protobuf.ServiceOptions)
  9882. return false;
  9883. #undef DO_
  9884. }
  9885. void ServiceOptions::SerializeWithCachedSizes(
  9886. ::google::protobuf::io::CodedOutputStream* output) const {
  9887. // @@protoc_insertion_point(serialize_start:google.protobuf.ServiceOptions)
  9888. ::google::protobuf::uint32 cached_has_bits = 0;
  9889. (void) cached_has_bits;
  9890. cached_has_bits = _has_bits_[0];
  9891. // optional bool deprecated = 33 [default = false];
  9892. if (cached_has_bits & 0x00000001u) {
  9893. ::google::protobuf::internal::WireFormatLite::WriteBool(33, this->deprecated(), output);
  9894. }
  9895. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  9896. for (unsigned int i = 0,
  9897. n = static_cast<unsigned int>(this->uninterpreted_option_size()); i < n; i++) {
  9898. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  9899. 999,
  9900. this->uninterpreted_option(static_cast<int>(i)),
  9901. output);
  9902. }
  9903. // Extension range [1000, 536870912)
  9904. _extensions_.SerializeWithCachedSizes(
  9905. 1000, 536870912, output);
  9906. if (_internal_metadata_.have_unknown_fields()) {
  9907. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  9908. _internal_metadata_.unknown_fields(), output);
  9909. }
  9910. // @@protoc_insertion_point(serialize_end:google.protobuf.ServiceOptions)
  9911. }
  9912. ::google::protobuf::uint8* ServiceOptions::InternalSerializeWithCachedSizesToArray(
  9913. bool deterministic, ::google::protobuf::uint8* target) const {
  9914. (void)deterministic; // Unused
  9915. // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.ServiceOptions)
  9916. ::google::protobuf::uint32 cached_has_bits = 0;
  9917. (void) cached_has_bits;
  9918. cached_has_bits = _has_bits_[0];
  9919. // optional bool deprecated = 33 [default = false];
  9920. if (cached_has_bits & 0x00000001u) {
  9921. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(33, this->deprecated(), target);
  9922. }
  9923. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  9924. for (unsigned int i = 0,
  9925. n = static_cast<unsigned int>(this->uninterpreted_option_size()); i < n; i++) {
  9926. target = ::google::protobuf::internal::WireFormatLite::
  9927. InternalWriteMessageToArray(
  9928. 999, this->uninterpreted_option(static_cast<int>(i)), deterministic, target);
  9929. }
  9930. // Extension range [1000, 536870912)
  9931. target = _extensions_.InternalSerializeWithCachedSizesToArray(
  9932. 1000, 536870912, deterministic, target);
  9933. if (_internal_metadata_.have_unknown_fields()) {
  9934. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  9935. _internal_metadata_.unknown_fields(), target);
  9936. }
  9937. // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.ServiceOptions)
  9938. return target;
  9939. }
  9940. size_t ServiceOptions::ByteSizeLong() const {
  9941. // @@protoc_insertion_point(message_byte_size_start:google.protobuf.ServiceOptions)
  9942. size_t total_size = 0;
  9943. total_size += _extensions_.ByteSize();
  9944. if (_internal_metadata_.have_unknown_fields()) {
  9945. total_size +=
  9946. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  9947. _internal_metadata_.unknown_fields());
  9948. }
  9949. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  9950. {
  9951. unsigned int count = static_cast<unsigned int>(this->uninterpreted_option_size());
  9952. total_size += 2UL * count;
  9953. for (unsigned int i = 0; i < count; i++) {
  9954. total_size +=
  9955. ::google::protobuf::internal::WireFormatLite::MessageSize(
  9956. this->uninterpreted_option(static_cast<int>(i)));
  9957. }
  9958. }
  9959. // optional bool deprecated = 33 [default = false];
  9960. if (has_deprecated()) {
  9961. total_size += 2 + 1;
  9962. }
  9963. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  9964. SetCachedSize(cached_size);
  9965. return total_size;
  9966. }
  9967. void ServiceOptions::MergeFrom(const ::google::protobuf::Message& from) {
  9968. // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.ServiceOptions)
  9969. GOOGLE_DCHECK_NE(&from, this);
  9970. const ServiceOptions* source =
  9971. ::google::protobuf::internal::DynamicCastToGenerated<const ServiceOptions>(
  9972. &from);
  9973. if (source == NULL) {
  9974. // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.ServiceOptions)
  9975. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  9976. } else {
  9977. // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.ServiceOptions)
  9978. MergeFrom(*source);
  9979. }
  9980. }
  9981. void ServiceOptions::MergeFrom(const ServiceOptions& from) {
  9982. // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.ServiceOptions)
  9983. GOOGLE_DCHECK_NE(&from, this);
  9984. _extensions_.MergeFrom(from._extensions_);
  9985. _internal_metadata_.MergeFrom(from._internal_metadata_);
  9986. ::google::protobuf::uint32 cached_has_bits = 0;
  9987. (void) cached_has_bits;
  9988. uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
  9989. if (from.has_deprecated()) {
  9990. set_deprecated(from.deprecated());
  9991. }
  9992. }
  9993. void ServiceOptions::CopyFrom(const ::google::protobuf::Message& from) {
  9994. // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.ServiceOptions)
  9995. if (&from == this) return;
  9996. Clear();
  9997. MergeFrom(from);
  9998. }
  9999. void ServiceOptions::CopyFrom(const ServiceOptions& from) {
  10000. // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.ServiceOptions)
  10001. if (&from == this) return;
  10002. Clear();
  10003. MergeFrom(from);
  10004. }
  10005. bool ServiceOptions::IsInitialized() const {
  10006. if (!_extensions_.IsInitialized()) {
  10007. return false;
  10008. }
  10009. if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false;
  10010. return true;
  10011. }
  10012. void ServiceOptions::Swap(ServiceOptions* other) {
  10013. if (other == this) return;
  10014. if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
  10015. InternalSwap(other);
  10016. } else {
  10017. ServiceOptions* temp = New(GetArenaNoVirtual());
  10018. temp->MergeFrom(*other);
  10019. other->CopyFrom(*this);
  10020. InternalSwap(temp);
  10021. if (GetArenaNoVirtual() == NULL) {
  10022. delete temp;
  10023. }
  10024. }
  10025. }
  10026. void ServiceOptions::UnsafeArenaSwap(ServiceOptions* other) {
  10027. if (other == this) return;
  10028. GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
  10029. InternalSwap(other);
  10030. }
  10031. void ServiceOptions::InternalSwap(ServiceOptions* other) {
  10032. using std::swap;
  10033. CastToBase(&uninterpreted_option_)->InternalSwap(CastToBase(&other->uninterpreted_option_));
  10034. swap(deprecated_, other->deprecated_);
  10035. swap(_has_bits_[0], other->_has_bits_[0]);
  10036. _internal_metadata_.Swap(&other->_internal_metadata_);
  10037. _extensions_.Swap(&other->_extensions_);
  10038. }
  10039. ::google::protobuf::Metadata ServiceOptions::GetMetadata() const {
  10040. protobuf_google_2fprotobuf_2fdescriptor_2eproto::protobuf_AssignDescriptorsOnce();
  10041. return ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::file_level_metadata[kIndexInFileMessages];
  10042. }
  10043. // ===================================================================
  10044. void MethodOptions::InitAsDefaultInstance() {
  10045. }
  10046. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  10047. const int MethodOptions::kDeprecatedFieldNumber;
  10048. const int MethodOptions::kIdempotencyLevelFieldNumber;
  10049. const int MethodOptions::kUninterpretedOptionFieldNumber;
  10050. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  10051. MethodOptions::MethodOptions()
  10052. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  10053. ::google::protobuf::internal::InitSCC(
  10054. &protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_MethodOptions.base);
  10055. SharedCtor();
  10056. // @@protoc_insertion_point(constructor:google.protobuf.MethodOptions)
  10057. }
  10058. MethodOptions::MethodOptions(::google::protobuf::Arena* arena)
  10059. : ::google::protobuf::Message(),
  10060. _extensions_(arena),
  10061. _internal_metadata_(arena),
  10062. uninterpreted_option_(arena) {
  10063. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_MethodOptions.base);
  10064. SharedCtor();
  10065. RegisterArenaDtor(arena);
  10066. // @@protoc_insertion_point(arena_constructor:google.protobuf.MethodOptions)
  10067. }
  10068. MethodOptions::MethodOptions(const MethodOptions& from)
  10069. : ::google::protobuf::Message(),
  10070. _internal_metadata_(NULL),
  10071. _has_bits_(from._has_bits_),
  10072. uninterpreted_option_(from.uninterpreted_option_) {
  10073. _internal_metadata_.MergeFrom(from._internal_metadata_);
  10074. _extensions_.MergeFrom(from._extensions_);
  10075. ::memcpy(&deprecated_, &from.deprecated_,
  10076. static_cast<size_t>(reinterpret_cast<char*>(&idempotency_level_) -
  10077. reinterpret_cast<char*>(&deprecated_)) + sizeof(idempotency_level_));
  10078. // @@protoc_insertion_point(copy_constructor:google.protobuf.MethodOptions)
  10079. }
  10080. void MethodOptions::SharedCtor() {
  10081. ::memset(&deprecated_, 0, static_cast<size_t>(
  10082. reinterpret_cast<char*>(&idempotency_level_) -
  10083. reinterpret_cast<char*>(&deprecated_)) + sizeof(idempotency_level_));
  10084. }
  10085. MethodOptions::~MethodOptions() {
  10086. // @@protoc_insertion_point(destructor:google.protobuf.MethodOptions)
  10087. SharedDtor();
  10088. }
  10089. void MethodOptions::SharedDtor() {
  10090. GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
  10091. }
  10092. void MethodOptions::ArenaDtor(void* object) {
  10093. MethodOptions* _this = reinterpret_cast< MethodOptions* >(object);
  10094. (void)_this;
  10095. }
  10096. void MethodOptions::RegisterArenaDtor(::google::protobuf::Arena* arena) {
  10097. }
  10098. void MethodOptions::SetCachedSize(int size) const {
  10099. _cached_size_.Set(size);
  10100. }
  10101. const ::google::protobuf::Descriptor* MethodOptions::descriptor() {
  10102. ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::protobuf_AssignDescriptorsOnce();
  10103. return ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  10104. }
  10105. const MethodOptions& MethodOptions::default_instance() {
  10106. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_MethodOptions.base);
  10107. return *internal_default_instance();
  10108. }
  10109. void MethodOptions::Clear() {
  10110. // @@protoc_insertion_point(message_clear_start:google.protobuf.MethodOptions)
  10111. ::google::protobuf::uint32 cached_has_bits = 0;
  10112. // Prevent compiler warnings about cached_has_bits being unused
  10113. (void) cached_has_bits;
  10114. _extensions_.Clear();
  10115. uninterpreted_option_.Clear();
  10116. cached_has_bits = _has_bits_[0];
  10117. if (cached_has_bits & 3u) {
  10118. ::memset(&deprecated_, 0, static_cast<size_t>(
  10119. reinterpret_cast<char*>(&idempotency_level_) -
  10120. reinterpret_cast<char*>(&deprecated_)) + sizeof(idempotency_level_));
  10121. }
  10122. _has_bits_.Clear();
  10123. _internal_metadata_.Clear();
  10124. }
  10125. bool MethodOptions::MergePartialFromCodedStream(
  10126. ::google::protobuf::io::CodedInputStream* input) {
  10127. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  10128. ::google::protobuf::uint32 tag;
  10129. // @@protoc_insertion_point(parse_start:google.protobuf.MethodOptions)
  10130. for (;;) {
  10131. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
  10132. tag = p.first;
  10133. if (!p.second) goto handle_unusual;
  10134. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  10135. // optional bool deprecated = 33 [default = false];
  10136. case 33: {
  10137. if (static_cast< ::google::protobuf::uint8>(tag) ==
  10138. static_cast< ::google::protobuf::uint8>(8u /* 264 & 0xFF */)) {
  10139. set_has_deprecated();
  10140. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  10141. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  10142. input, &deprecated_)));
  10143. } else {
  10144. goto handle_unusual;
  10145. }
  10146. break;
  10147. }
  10148. // optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];
  10149. case 34: {
  10150. if (static_cast< ::google::protobuf::uint8>(tag) ==
  10151. static_cast< ::google::protobuf::uint8>(16u /* 272 & 0xFF */)) {
  10152. int value;
  10153. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  10154. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  10155. input, &value)));
  10156. if (::google::protobuf::MethodOptions_IdempotencyLevel_IsValid(value)) {
  10157. set_idempotency_level(static_cast< ::google::protobuf::MethodOptions_IdempotencyLevel >(value));
  10158. } else {
  10159. mutable_unknown_fields()->AddVarint(
  10160. 34, static_cast< ::google::protobuf::uint64>(value));
  10161. }
  10162. } else {
  10163. goto handle_unusual;
  10164. }
  10165. break;
  10166. }
  10167. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  10168. case 999: {
  10169. if (static_cast< ::google::protobuf::uint8>(tag) ==
  10170. static_cast< ::google::protobuf::uint8>(58u /* 7994 & 0xFF */)) {
  10171. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  10172. input, add_uninterpreted_option()));
  10173. } else {
  10174. goto handle_unusual;
  10175. }
  10176. break;
  10177. }
  10178. default: {
  10179. handle_unusual:
  10180. if (tag == 0) {
  10181. goto success;
  10182. }
  10183. if ((8000u <= tag)) {
  10184. DO_(_extensions_.ParseField(tag, input,
  10185. internal_default_instance(),
  10186. _internal_metadata_.mutable_unknown_fields()));
  10187. continue;
  10188. }
  10189. DO_(::google::protobuf::internal::WireFormat::SkipField(
  10190. input, tag, _internal_metadata_.mutable_unknown_fields()));
  10191. break;
  10192. }
  10193. }
  10194. }
  10195. success:
  10196. // @@protoc_insertion_point(parse_success:google.protobuf.MethodOptions)
  10197. return true;
  10198. failure:
  10199. // @@protoc_insertion_point(parse_failure:google.protobuf.MethodOptions)
  10200. return false;
  10201. #undef DO_
  10202. }
  10203. void MethodOptions::SerializeWithCachedSizes(
  10204. ::google::protobuf::io::CodedOutputStream* output) const {
  10205. // @@protoc_insertion_point(serialize_start:google.protobuf.MethodOptions)
  10206. ::google::protobuf::uint32 cached_has_bits = 0;
  10207. (void) cached_has_bits;
  10208. cached_has_bits = _has_bits_[0];
  10209. // optional bool deprecated = 33 [default = false];
  10210. if (cached_has_bits & 0x00000001u) {
  10211. ::google::protobuf::internal::WireFormatLite::WriteBool(33, this->deprecated(), output);
  10212. }
  10213. // optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];
  10214. if (cached_has_bits & 0x00000002u) {
  10215. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  10216. 34, this->idempotency_level(), output);
  10217. }
  10218. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  10219. for (unsigned int i = 0,
  10220. n = static_cast<unsigned int>(this->uninterpreted_option_size()); i < n; i++) {
  10221. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  10222. 999,
  10223. this->uninterpreted_option(static_cast<int>(i)),
  10224. output);
  10225. }
  10226. // Extension range [1000, 536870912)
  10227. _extensions_.SerializeWithCachedSizes(
  10228. 1000, 536870912, output);
  10229. if (_internal_metadata_.have_unknown_fields()) {
  10230. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  10231. _internal_metadata_.unknown_fields(), output);
  10232. }
  10233. // @@protoc_insertion_point(serialize_end:google.protobuf.MethodOptions)
  10234. }
  10235. ::google::protobuf::uint8* MethodOptions::InternalSerializeWithCachedSizesToArray(
  10236. bool deterministic, ::google::protobuf::uint8* target) const {
  10237. (void)deterministic; // Unused
  10238. // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.MethodOptions)
  10239. ::google::protobuf::uint32 cached_has_bits = 0;
  10240. (void) cached_has_bits;
  10241. cached_has_bits = _has_bits_[0];
  10242. // optional bool deprecated = 33 [default = false];
  10243. if (cached_has_bits & 0x00000001u) {
  10244. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(33, this->deprecated(), target);
  10245. }
  10246. // optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];
  10247. if (cached_has_bits & 0x00000002u) {
  10248. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  10249. 34, this->idempotency_level(), target);
  10250. }
  10251. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  10252. for (unsigned int i = 0,
  10253. n = static_cast<unsigned int>(this->uninterpreted_option_size()); i < n; i++) {
  10254. target = ::google::protobuf::internal::WireFormatLite::
  10255. InternalWriteMessageToArray(
  10256. 999, this->uninterpreted_option(static_cast<int>(i)), deterministic, target);
  10257. }
  10258. // Extension range [1000, 536870912)
  10259. target = _extensions_.InternalSerializeWithCachedSizesToArray(
  10260. 1000, 536870912, deterministic, target);
  10261. if (_internal_metadata_.have_unknown_fields()) {
  10262. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  10263. _internal_metadata_.unknown_fields(), target);
  10264. }
  10265. // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.MethodOptions)
  10266. return target;
  10267. }
  10268. size_t MethodOptions::ByteSizeLong() const {
  10269. // @@protoc_insertion_point(message_byte_size_start:google.protobuf.MethodOptions)
  10270. size_t total_size = 0;
  10271. total_size += _extensions_.ByteSize();
  10272. if (_internal_metadata_.have_unknown_fields()) {
  10273. total_size +=
  10274. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  10275. _internal_metadata_.unknown_fields());
  10276. }
  10277. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  10278. {
  10279. unsigned int count = static_cast<unsigned int>(this->uninterpreted_option_size());
  10280. total_size += 2UL * count;
  10281. for (unsigned int i = 0; i < count; i++) {
  10282. total_size +=
  10283. ::google::protobuf::internal::WireFormatLite::MessageSize(
  10284. this->uninterpreted_option(static_cast<int>(i)));
  10285. }
  10286. }
  10287. if (_has_bits_[0 / 32] & 3u) {
  10288. // optional bool deprecated = 33 [default = false];
  10289. if (has_deprecated()) {
  10290. total_size += 2 + 1;
  10291. }
  10292. // optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];
  10293. if (has_idempotency_level()) {
  10294. total_size += 2 +
  10295. ::google::protobuf::internal::WireFormatLite::EnumSize(this->idempotency_level());
  10296. }
  10297. }
  10298. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  10299. SetCachedSize(cached_size);
  10300. return total_size;
  10301. }
  10302. void MethodOptions::MergeFrom(const ::google::protobuf::Message& from) {
  10303. // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.MethodOptions)
  10304. GOOGLE_DCHECK_NE(&from, this);
  10305. const MethodOptions* source =
  10306. ::google::protobuf::internal::DynamicCastToGenerated<const MethodOptions>(
  10307. &from);
  10308. if (source == NULL) {
  10309. // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.MethodOptions)
  10310. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  10311. } else {
  10312. // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.MethodOptions)
  10313. MergeFrom(*source);
  10314. }
  10315. }
  10316. void MethodOptions::MergeFrom(const MethodOptions& from) {
  10317. // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.MethodOptions)
  10318. GOOGLE_DCHECK_NE(&from, this);
  10319. _extensions_.MergeFrom(from._extensions_);
  10320. _internal_metadata_.MergeFrom(from._internal_metadata_);
  10321. ::google::protobuf::uint32 cached_has_bits = 0;
  10322. (void) cached_has_bits;
  10323. uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
  10324. cached_has_bits = from._has_bits_[0];
  10325. if (cached_has_bits & 3u) {
  10326. if (cached_has_bits & 0x00000001u) {
  10327. deprecated_ = from.deprecated_;
  10328. }
  10329. if (cached_has_bits & 0x00000002u) {
  10330. idempotency_level_ = from.idempotency_level_;
  10331. }
  10332. _has_bits_[0] |= cached_has_bits;
  10333. }
  10334. }
  10335. void MethodOptions::CopyFrom(const ::google::protobuf::Message& from) {
  10336. // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.MethodOptions)
  10337. if (&from == this) return;
  10338. Clear();
  10339. MergeFrom(from);
  10340. }
  10341. void MethodOptions::CopyFrom(const MethodOptions& from) {
  10342. // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.MethodOptions)
  10343. if (&from == this) return;
  10344. Clear();
  10345. MergeFrom(from);
  10346. }
  10347. bool MethodOptions::IsInitialized() const {
  10348. if (!_extensions_.IsInitialized()) {
  10349. return false;
  10350. }
  10351. if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false;
  10352. return true;
  10353. }
  10354. void MethodOptions::Swap(MethodOptions* other) {
  10355. if (other == this) return;
  10356. if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
  10357. InternalSwap(other);
  10358. } else {
  10359. MethodOptions* temp = New(GetArenaNoVirtual());
  10360. temp->MergeFrom(*other);
  10361. other->CopyFrom(*this);
  10362. InternalSwap(temp);
  10363. if (GetArenaNoVirtual() == NULL) {
  10364. delete temp;
  10365. }
  10366. }
  10367. }
  10368. void MethodOptions::UnsafeArenaSwap(MethodOptions* other) {
  10369. if (other == this) return;
  10370. GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
  10371. InternalSwap(other);
  10372. }
  10373. void MethodOptions::InternalSwap(MethodOptions* other) {
  10374. using std::swap;
  10375. CastToBase(&uninterpreted_option_)->InternalSwap(CastToBase(&other->uninterpreted_option_));
  10376. swap(deprecated_, other->deprecated_);
  10377. swap(idempotency_level_, other->idempotency_level_);
  10378. swap(_has_bits_[0], other->_has_bits_[0]);
  10379. _internal_metadata_.Swap(&other->_internal_metadata_);
  10380. _extensions_.Swap(&other->_extensions_);
  10381. }
  10382. ::google::protobuf::Metadata MethodOptions::GetMetadata() const {
  10383. protobuf_google_2fprotobuf_2fdescriptor_2eproto::protobuf_AssignDescriptorsOnce();
  10384. return ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::file_level_metadata[kIndexInFileMessages];
  10385. }
  10386. // ===================================================================
  10387. void UninterpretedOption_NamePart::InitAsDefaultInstance() {
  10388. }
  10389. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  10390. const int UninterpretedOption_NamePart::kNamePartFieldNumber;
  10391. const int UninterpretedOption_NamePart::kIsExtensionFieldNumber;
  10392. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  10393. UninterpretedOption_NamePart::UninterpretedOption_NamePart()
  10394. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  10395. ::google::protobuf::internal::InitSCC(
  10396. &protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_UninterpretedOption_NamePart.base);
  10397. SharedCtor();
  10398. // @@protoc_insertion_point(constructor:google.protobuf.UninterpretedOption.NamePart)
  10399. }
  10400. UninterpretedOption_NamePart::UninterpretedOption_NamePart(::google::protobuf::Arena* arena)
  10401. : ::google::protobuf::Message(),
  10402. _internal_metadata_(arena) {
  10403. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_UninterpretedOption_NamePart.base);
  10404. SharedCtor();
  10405. RegisterArenaDtor(arena);
  10406. // @@protoc_insertion_point(arena_constructor:google.protobuf.UninterpretedOption.NamePart)
  10407. }
  10408. UninterpretedOption_NamePart::UninterpretedOption_NamePart(const UninterpretedOption_NamePart& from)
  10409. : ::google::protobuf::Message(),
  10410. _internal_metadata_(NULL),
  10411. _has_bits_(from._has_bits_) {
  10412. _internal_metadata_.MergeFrom(from._internal_metadata_);
  10413. name_part_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  10414. if (from.has_name_part()) {
  10415. name_part_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_part(),
  10416. GetArenaNoVirtual());
  10417. }
  10418. is_extension_ = from.is_extension_;
  10419. // @@protoc_insertion_point(copy_constructor:google.protobuf.UninterpretedOption.NamePart)
  10420. }
  10421. void UninterpretedOption_NamePart::SharedCtor() {
  10422. name_part_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  10423. is_extension_ = false;
  10424. }
  10425. UninterpretedOption_NamePart::~UninterpretedOption_NamePart() {
  10426. // @@protoc_insertion_point(destructor:google.protobuf.UninterpretedOption.NamePart)
  10427. SharedDtor();
  10428. }
  10429. void UninterpretedOption_NamePart::SharedDtor() {
  10430. GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
  10431. name_part_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  10432. }
  10433. void UninterpretedOption_NamePart::ArenaDtor(void* object) {
  10434. UninterpretedOption_NamePart* _this = reinterpret_cast< UninterpretedOption_NamePart* >(object);
  10435. (void)_this;
  10436. }
  10437. void UninterpretedOption_NamePart::RegisterArenaDtor(::google::protobuf::Arena* arena) {
  10438. }
  10439. void UninterpretedOption_NamePart::SetCachedSize(int size) const {
  10440. _cached_size_.Set(size);
  10441. }
  10442. const ::google::protobuf::Descriptor* UninterpretedOption_NamePart::descriptor() {
  10443. ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::protobuf_AssignDescriptorsOnce();
  10444. return ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  10445. }
  10446. const UninterpretedOption_NamePart& UninterpretedOption_NamePart::default_instance() {
  10447. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_UninterpretedOption_NamePart.base);
  10448. return *internal_default_instance();
  10449. }
  10450. void UninterpretedOption_NamePart::Clear() {
  10451. // @@protoc_insertion_point(message_clear_start:google.protobuf.UninterpretedOption.NamePart)
  10452. ::google::protobuf::uint32 cached_has_bits = 0;
  10453. // Prevent compiler warnings about cached_has_bits being unused
  10454. (void) cached_has_bits;
  10455. cached_has_bits = _has_bits_[0];
  10456. if (cached_has_bits & 0x00000001u) {
  10457. name_part_.ClearNonDefaultToEmpty();
  10458. }
  10459. is_extension_ = false;
  10460. _has_bits_.Clear();
  10461. _internal_metadata_.Clear();
  10462. }
  10463. bool UninterpretedOption_NamePart::MergePartialFromCodedStream(
  10464. ::google::protobuf::io::CodedInputStream* input) {
  10465. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  10466. ::google::protobuf::uint32 tag;
  10467. // @@protoc_insertion_point(parse_start:google.protobuf.UninterpretedOption.NamePart)
  10468. for (;;) {
  10469. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  10470. tag = p.first;
  10471. if (!p.second) goto handle_unusual;
  10472. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  10473. // required string name_part = 1;
  10474. case 1: {
  10475. if (static_cast< ::google::protobuf::uint8>(tag) ==
  10476. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  10477. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  10478. input, this->mutable_name_part()));
  10479. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  10480. this->name_part().data(), static_cast<int>(this->name_part().length()),
  10481. ::google::protobuf::internal::WireFormat::PARSE,
  10482. "google.protobuf.UninterpretedOption.NamePart.name_part");
  10483. } else {
  10484. goto handle_unusual;
  10485. }
  10486. break;
  10487. }
  10488. // required bool is_extension = 2;
  10489. case 2: {
  10490. if (static_cast< ::google::protobuf::uint8>(tag) ==
  10491. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  10492. set_has_is_extension();
  10493. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  10494. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  10495. input, &is_extension_)));
  10496. } else {
  10497. goto handle_unusual;
  10498. }
  10499. break;
  10500. }
  10501. default: {
  10502. handle_unusual:
  10503. if (tag == 0) {
  10504. goto success;
  10505. }
  10506. DO_(::google::protobuf::internal::WireFormat::SkipField(
  10507. input, tag, _internal_metadata_.mutable_unknown_fields()));
  10508. break;
  10509. }
  10510. }
  10511. }
  10512. success:
  10513. // @@protoc_insertion_point(parse_success:google.protobuf.UninterpretedOption.NamePart)
  10514. return true;
  10515. failure:
  10516. // @@protoc_insertion_point(parse_failure:google.protobuf.UninterpretedOption.NamePart)
  10517. return false;
  10518. #undef DO_
  10519. }
  10520. void UninterpretedOption_NamePart::SerializeWithCachedSizes(
  10521. ::google::protobuf::io::CodedOutputStream* output) const {
  10522. // @@protoc_insertion_point(serialize_start:google.protobuf.UninterpretedOption.NamePart)
  10523. ::google::protobuf::uint32 cached_has_bits = 0;
  10524. (void) cached_has_bits;
  10525. cached_has_bits = _has_bits_[0];
  10526. // required string name_part = 1;
  10527. if (cached_has_bits & 0x00000001u) {
  10528. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  10529. this->name_part().data(), static_cast<int>(this->name_part().length()),
  10530. ::google::protobuf::internal::WireFormat::SERIALIZE,
  10531. "google.protobuf.UninterpretedOption.NamePart.name_part");
  10532. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  10533. 1, this->name_part(), output);
  10534. }
  10535. // required bool is_extension = 2;
  10536. if (cached_has_bits & 0x00000002u) {
  10537. ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->is_extension(), output);
  10538. }
  10539. if (_internal_metadata_.have_unknown_fields()) {
  10540. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  10541. _internal_metadata_.unknown_fields(), output);
  10542. }
  10543. // @@protoc_insertion_point(serialize_end:google.protobuf.UninterpretedOption.NamePart)
  10544. }
  10545. ::google::protobuf::uint8* UninterpretedOption_NamePart::InternalSerializeWithCachedSizesToArray(
  10546. bool deterministic, ::google::protobuf::uint8* target) const {
  10547. (void)deterministic; // Unused
  10548. // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.UninterpretedOption.NamePart)
  10549. ::google::protobuf::uint32 cached_has_bits = 0;
  10550. (void) cached_has_bits;
  10551. cached_has_bits = _has_bits_[0];
  10552. // required string name_part = 1;
  10553. if (cached_has_bits & 0x00000001u) {
  10554. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  10555. this->name_part().data(), static_cast<int>(this->name_part().length()),
  10556. ::google::protobuf::internal::WireFormat::SERIALIZE,
  10557. "google.protobuf.UninterpretedOption.NamePart.name_part");
  10558. target =
  10559. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  10560. 1, this->name_part(), target);
  10561. }
  10562. // required bool is_extension = 2;
  10563. if (cached_has_bits & 0x00000002u) {
  10564. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->is_extension(), target);
  10565. }
  10566. if (_internal_metadata_.have_unknown_fields()) {
  10567. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  10568. _internal_metadata_.unknown_fields(), target);
  10569. }
  10570. // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.UninterpretedOption.NamePart)
  10571. return target;
  10572. }
  10573. size_t UninterpretedOption_NamePart::RequiredFieldsByteSizeFallback() const {
  10574. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:google.protobuf.UninterpretedOption.NamePart)
  10575. size_t total_size = 0;
  10576. if (has_name_part()) {
  10577. // required string name_part = 1;
  10578. total_size += 1 +
  10579. ::google::protobuf::internal::WireFormatLite::StringSize(
  10580. this->name_part());
  10581. }
  10582. if (has_is_extension()) {
  10583. // required bool is_extension = 2;
  10584. total_size += 1 + 1;
  10585. }
  10586. return total_size;
  10587. }
  10588. size_t UninterpretedOption_NamePart::ByteSizeLong() const {
  10589. // @@protoc_insertion_point(message_byte_size_start:google.protobuf.UninterpretedOption.NamePart)
  10590. size_t total_size = 0;
  10591. if (_internal_metadata_.have_unknown_fields()) {
  10592. total_size +=
  10593. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  10594. _internal_metadata_.unknown_fields());
  10595. }
  10596. if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present.
  10597. // required string name_part = 1;
  10598. total_size += 1 +
  10599. ::google::protobuf::internal::WireFormatLite::StringSize(
  10600. this->name_part());
  10601. // required bool is_extension = 2;
  10602. total_size += 1 + 1;
  10603. } else {
  10604. total_size += RequiredFieldsByteSizeFallback();
  10605. }
  10606. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  10607. SetCachedSize(cached_size);
  10608. return total_size;
  10609. }
  10610. void UninterpretedOption_NamePart::MergeFrom(const ::google::protobuf::Message& from) {
  10611. // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.UninterpretedOption.NamePart)
  10612. GOOGLE_DCHECK_NE(&from, this);
  10613. const UninterpretedOption_NamePart* source =
  10614. ::google::protobuf::internal::DynamicCastToGenerated<const UninterpretedOption_NamePart>(
  10615. &from);
  10616. if (source == NULL) {
  10617. // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.UninterpretedOption.NamePart)
  10618. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  10619. } else {
  10620. // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.UninterpretedOption.NamePart)
  10621. MergeFrom(*source);
  10622. }
  10623. }
  10624. void UninterpretedOption_NamePart::MergeFrom(const UninterpretedOption_NamePart& from) {
  10625. // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.UninterpretedOption.NamePart)
  10626. GOOGLE_DCHECK_NE(&from, this);
  10627. _internal_metadata_.MergeFrom(from._internal_metadata_);
  10628. ::google::protobuf::uint32 cached_has_bits = 0;
  10629. (void) cached_has_bits;
  10630. cached_has_bits = from._has_bits_[0];
  10631. if (cached_has_bits & 3u) {
  10632. if (cached_has_bits & 0x00000001u) {
  10633. set_name_part(from.name_part());
  10634. }
  10635. if (cached_has_bits & 0x00000002u) {
  10636. is_extension_ = from.is_extension_;
  10637. }
  10638. _has_bits_[0] |= cached_has_bits;
  10639. }
  10640. }
  10641. void UninterpretedOption_NamePart::CopyFrom(const ::google::protobuf::Message& from) {
  10642. // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.UninterpretedOption.NamePart)
  10643. if (&from == this) return;
  10644. Clear();
  10645. MergeFrom(from);
  10646. }
  10647. void UninterpretedOption_NamePart::CopyFrom(const UninterpretedOption_NamePart& from) {
  10648. // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.UninterpretedOption.NamePart)
  10649. if (&from == this) return;
  10650. Clear();
  10651. MergeFrom(from);
  10652. }
  10653. bool UninterpretedOption_NamePart::IsInitialized() const {
  10654. if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
  10655. return true;
  10656. }
  10657. void UninterpretedOption_NamePart::Swap(UninterpretedOption_NamePart* other) {
  10658. if (other == this) return;
  10659. if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
  10660. InternalSwap(other);
  10661. } else {
  10662. UninterpretedOption_NamePart* temp = New(GetArenaNoVirtual());
  10663. temp->MergeFrom(*other);
  10664. other->CopyFrom(*this);
  10665. InternalSwap(temp);
  10666. if (GetArenaNoVirtual() == NULL) {
  10667. delete temp;
  10668. }
  10669. }
  10670. }
  10671. void UninterpretedOption_NamePart::UnsafeArenaSwap(UninterpretedOption_NamePart* other) {
  10672. if (other == this) return;
  10673. GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
  10674. InternalSwap(other);
  10675. }
  10676. void UninterpretedOption_NamePart::InternalSwap(UninterpretedOption_NamePart* other) {
  10677. using std::swap;
  10678. name_part_.Swap(&other->name_part_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  10679. GetArenaNoVirtual());
  10680. swap(is_extension_, other->is_extension_);
  10681. swap(_has_bits_[0], other->_has_bits_[0]);
  10682. _internal_metadata_.Swap(&other->_internal_metadata_);
  10683. }
  10684. ::google::protobuf::Metadata UninterpretedOption_NamePart::GetMetadata() const {
  10685. protobuf_google_2fprotobuf_2fdescriptor_2eproto::protobuf_AssignDescriptorsOnce();
  10686. return ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::file_level_metadata[kIndexInFileMessages];
  10687. }
  10688. // ===================================================================
  10689. void UninterpretedOption::InitAsDefaultInstance() {
  10690. }
  10691. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  10692. const int UninterpretedOption::kNameFieldNumber;
  10693. const int UninterpretedOption::kIdentifierValueFieldNumber;
  10694. const int UninterpretedOption::kPositiveIntValueFieldNumber;
  10695. const int UninterpretedOption::kNegativeIntValueFieldNumber;
  10696. const int UninterpretedOption::kDoubleValueFieldNumber;
  10697. const int UninterpretedOption::kStringValueFieldNumber;
  10698. const int UninterpretedOption::kAggregateValueFieldNumber;
  10699. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  10700. UninterpretedOption::UninterpretedOption()
  10701. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  10702. ::google::protobuf::internal::InitSCC(
  10703. &protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_UninterpretedOption.base);
  10704. SharedCtor();
  10705. // @@protoc_insertion_point(constructor:google.protobuf.UninterpretedOption)
  10706. }
  10707. UninterpretedOption::UninterpretedOption(::google::protobuf::Arena* arena)
  10708. : ::google::protobuf::Message(),
  10709. _internal_metadata_(arena),
  10710. name_(arena) {
  10711. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_UninterpretedOption.base);
  10712. SharedCtor();
  10713. RegisterArenaDtor(arena);
  10714. // @@protoc_insertion_point(arena_constructor:google.protobuf.UninterpretedOption)
  10715. }
  10716. UninterpretedOption::UninterpretedOption(const UninterpretedOption& from)
  10717. : ::google::protobuf::Message(),
  10718. _internal_metadata_(NULL),
  10719. _has_bits_(from._has_bits_),
  10720. name_(from.name_) {
  10721. _internal_metadata_.MergeFrom(from._internal_metadata_);
  10722. identifier_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  10723. if (from.has_identifier_value()) {
  10724. identifier_value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.identifier_value(),
  10725. GetArenaNoVirtual());
  10726. }
  10727. string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  10728. if (from.has_string_value()) {
  10729. string_value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.string_value(),
  10730. GetArenaNoVirtual());
  10731. }
  10732. aggregate_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  10733. if (from.has_aggregate_value()) {
  10734. aggregate_value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.aggregate_value(),
  10735. GetArenaNoVirtual());
  10736. }
  10737. ::memcpy(&positive_int_value_, &from.positive_int_value_,
  10738. static_cast<size_t>(reinterpret_cast<char*>(&double_value_) -
  10739. reinterpret_cast<char*>(&positive_int_value_)) + sizeof(double_value_));
  10740. // @@protoc_insertion_point(copy_constructor:google.protobuf.UninterpretedOption)
  10741. }
  10742. void UninterpretedOption::SharedCtor() {
  10743. identifier_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  10744. string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  10745. aggregate_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  10746. ::memset(&positive_int_value_, 0, static_cast<size_t>(
  10747. reinterpret_cast<char*>(&double_value_) -
  10748. reinterpret_cast<char*>(&positive_int_value_)) + sizeof(double_value_));
  10749. }
  10750. UninterpretedOption::~UninterpretedOption() {
  10751. // @@protoc_insertion_point(destructor:google.protobuf.UninterpretedOption)
  10752. SharedDtor();
  10753. }
  10754. void UninterpretedOption::SharedDtor() {
  10755. GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
  10756. identifier_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  10757. string_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  10758. aggregate_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  10759. }
  10760. void UninterpretedOption::ArenaDtor(void* object) {
  10761. UninterpretedOption* _this = reinterpret_cast< UninterpretedOption* >(object);
  10762. (void)_this;
  10763. }
  10764. void UninterpretedOption::RegisterArenaDtor(::google::protobuf::Arena* arena) {
  10765. }
  10766. void UninterpretedOption::SetCachedSize(int size) const {
  10767. _cached_size_.Set(size);
  10768. }
  10769. const ::google::protobuf::Descriptor* UninterpretedOption::descriptor() {
  10770. ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::protobuf_AssignDescriptorsOnce();
  10771. return ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  10772. }
  10773. const UninterpretedOption& UninterpretedOption::default_instance() {
  10774. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_UninterpretedOption.base);
  10775. return *internal_default_instance();
  10776. }
  10777. void UninterpretedOption::Clear() {
  10778. // @@protoc_insertion_point(message_clear_start:google.protobuf.UninterpretedOption)
  10779. ::google::protobuf::uint32 cached_has_bits = 0;
  10780. // Prevent compiler warnings about cached_has_bits being unused
  10781. (void) cached_has_bits;
  10782. name_.Clear();
  10783. cached_has_bits = _has_bits_[0];
  10784. if (cached_has_bits & 7u) {
  10785. if (cached_has_bits & 0x00000001u) {
  10786. identifier_value_.ClearNonDefaultToEmpty();
  10787. }
  10788. if (cached_has_bits & 0x00000002u) {
  10789. string_value_.ClearNonDefaultToEmpty();
  10790. }
  10791. if (cached_has_bits & 0x00000004u) {
  10792. aggregate_value_.ClearNonDefaultToEmpty();
  10793. }
  10794. }
  10795. if (cached_has_bits & 56u) {
  10796. ::memset(&positive_int_value_, 0, static_cast<size_t>(
  10797. reinterpret_cast<char*>(&double_value_) -
  10798. reinterpret_cast<char*>(&positive_int_value_)) + sizeof(double_value_));
  10799. }
  10800. _has_bits_.Clear();
  10801. _internal_metadata_.Clear();
  10802. }
  10803. bool UninterpretedOption::MergePartialFromCodedStream(
  10804. ::google::protobuf::io::CodedInputStream* input) {
  10805. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  10806. ::google::protobuf::uint32 tag;
  10807. // @@protoc_insertion_point(parse_start:google.protobuf.UninterpretedOption)
  10808. for (;;) {
  10809. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  10810. tag = p.first;
  10811. if (!p.second) goto handle_unusual;
  10812. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  10813. // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
  10814. case 2: {
  10815. if (static_cast< ::google::protobuf::uint8>(tag) ==
  10816. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  10817. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  10818. input, add_name()));
  10819. } else {
  10820. goto handle_unusual;
  10821. }
  10822. break;
  10823. }
  10824. // optional string identifier_value = 3;
  10825. case 3: {
  10826. if (static_cast< ::google::protobuf::uint8>(tag) ==
  10827. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  10828. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  10829. input, this->mutable_identifier_value()));
  10830. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  10831. this->identifier_value().data(), static_cast<int>(this->identifier_value().length()),
  10832. ::google::protobuf::internal::WireFormat::PARSE,
  10833. "google.protobuf.UninterpretedOption.identifier_value");
  10834. } else {
  10835. goto handle_unusual;
  10836. }
  10837. break;
  10838. }
  10839. // optional uint64 positive_int_value = 4;
  10840. case 4: {
  10841. if (static_cast< ::google::protobuf::uint8>(tag) ==
  10842. static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
  10843. set_has_positive_int_value();
  10844. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  10845. ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
  10846. input, &positive_int_value_)));
  10847. } else {
  10848. goto handle_unusual;
  10849. }
  10850. break;
  10851. }
  10852. // optional int64 negative_int_value = 5;
  10853. case 5: {
  10854. if (static_cast< ::google::protobuf::uint8>(tag) ==
  10855. static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
  10856. set_has_negative_int_value();
  10857. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  10858. ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
  10859. input, &negative_int_value_)));
  10860. } else {
  10861. goto handle_unusual;
  10862. }
  10863. break;
  10864. }
  10865. // optional double double_value = 6;
  10866. case 6: {
  10867. if (static_cast< ::google::protobuf::uint8>(tag) ==
  10868. static_cast< ::google::protobuf::uint8>(49u /* 49 & 0xFF */)) {
  10869. set_has_double_value();
  10870. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  10871. double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
  10872. input, &double_value_)));
  10873. } else {
  10874. goto handle_unusual;
  10875. }
  10876. break;
  10877. }
  10878. // optional bytes string_value = 7;
  10879. case 7: {
  10880. if (static_cast< ::google::protobuf::uint8>(tag) ==
  10881. static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
  10882. DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
  10883. input, this->mutable_string_value()));
  10884. } else {
  10885. goto handle_unusual;
  10886. }
  10887. break;
  10888. }
  10889. // optional string aggregate_value = 8;
  10890. case 8: {
  10891. if (static_cast< ::google::protobuf::uint8>(tag) ==
  10892. static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
  10893. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  10894. input, this->mutable_aggregate_value()));
  10895. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  10896. this->aggregate_value().data(), static_cast<int>(this->aggregate_value().length()),
  10897. ::google::protobuf::internal::WireFormat::PARSE,
  10898. "google.protobuf.UninterpretedOption.aggregate_value");
  10899. } else {
  10900. goto handle_unusual;
  10901. }
  10902. break;
  10903. }
  10904. default: {
  10905. handle_unusual:
  10906. if (tag == 0) {
  10907. goto success;
  10908. }
  10909. DO_(::google::protobuf::internal::WireFormat::SkipField(
  10910. input, tag, _internal_metadata_.mutable_unknown_fields()));
  10911. break;
  10912. }
  10913. }
  10914. }
  10915. success:
  10916. // @@protoc_insertion_point(parse_success:google.protobuf.UninterpretedOption)
  10917. return true;
  10918. failure:
  10919. // @@protoc_insertion_point(parse_failure:google.protobuf.UninterpretedOption)
  10920. return false;
  10921. #undef DO_
  10922. }
  10923. void UninterpretedOption::SerializeWithCachedSizes(
  10924. ::google::protobuf::io::CodedOutputStream* output) const {
  10925. // @@protoc_insertion_point(serialize_start:google.protobuf.UninterpretedOption)
  10926. ::google::protobuf::uint32 cached_has_bits = 0;
  10927. (void) cached_has_bits;
  10928. // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
  10929. for (unsigned int i = 0,
  10930. n = static_cast<unsigned int>(this->name_size()); i < n; i++) {
  10931. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  10932. 2,
  10933. this->name(static_cast<int>(i)),
  10934. output);
  10935. }
  10936. cached_has_bits = _has_bits_[0];
  10937. // optional string identifier_value = 3;
  10938. if (cached_has_bits & 0x00000001u) {
  10939. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  10940. this->identifier_value().data(), static_cast<int>(this->identifier_value().length()),
  10941. ::google::protobuf::internal::WireFormat::SERIALIZE,
  10942. "google.protobuf.UninterpretedOption.identifier_value");
  10943. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  10944. 3, this->identifier_value(), output);
  10945. }
  10946. // optional uint64 positive_int_value = 4;
  10947. if (cached_has_bits & 0x00000008u) {
  10948. ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->positive_int_value(), output);
  10949. }
  10950. // optional int64 negative_int_value = 5;
  10951. if (cached_has_bits & 0x00000010u) {
  10952. ::google::protobuf::internal::WireFormatLite::WriteInt64(5, this->negative_int_value(), output);
  10953. }
  10954. // optional double double_value = 6;
  10955. if (cached_has_bits & 0x00000020u) {
  10956. ::google::protobuf::internal::WireFormatLite::WriteDouble(6, this->double_value(), output);
  10957. }
  10958. // optional bytes string_value = 7;
  10959. if (cached_has_bits & 0x00000002u) {
  10960. ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
  10961. 7, this->string_value(), output);
  10962. }
  10963. // optional string aggregate_value = 8;
  10964. if (cached_has_bits & 0x00000004u) {
  10965. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  10966. this->aggregate_value().data(), static_cast<int>(this->aggregate_value().length()),
  10967. ::google::protobuf::internal::WireFormat::SERIALIZE,
  10968. "google.protobuf.UninterpretedOption.aggregate_value");
  10969. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  10970. 8, this->aggregate_value(), output);
  10971. }
  10972. if (_internal_metadata_.have_unknown_fields()) {
  10973. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  10974. _internal_metadata_.unknown_fields(), output);
  10975. }
  10976. // @@protoc_insertion_point(serialize_end:google.protobuf.UninterpretedOption)
  10977. }
  10978. ::google::protobuf::uint8* UninterpretedOption::InternalSerializeWithCachedSizesToArray(
  10979. bool deterministic, ::google::protobuf::uint8* target) const {
  10980. (void)deterministic; // Unused
  10981. // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.UninterpretedOption)
  10982. ::google::protobuf::uint32 cached_has_bits = 0;
  10983. (void) cached_has_bits;
  10984. // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
  10985. for (unsigned int i = 0,
  10986. n = static_cast<unsigned int>(this->name_size()); i < n; i++) {
  10987. target = ::google::protobuf::internal::WireFormatLite::
  10988. InternalWriteMessageToArray(
  10989. 2, this->name(static_cast<int>(i)), deterministic, target);
  10990. }
  10991. cached_has_bits = _has_bits_[0];
  10992. // optional string identifier_value = 3;
  10993. if (cached_has_bits & 0x00000001u) {
  10994. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  10995. this->identifier_value().data(), static_cast<int>(this->identifier_value().length()),
  10996. ::google::protobuf::internal::WireFormat::SERIALIZE,
  10997. "google.protobuf.UninterpretedOption.identifier_value");
  10998. target =
  10999. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  11000. 3, this->identifier_value(), target);
  11001. }
  11002. // optional uint64 positive_int_value = 4;
  11003. if (cached_has_bits & 0x00000008u) {
  11004. target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->positive_int_value(), target);
  11005. }
  11006. // optional int64 negative_int_value = 5;
  11007. if (cached_has_bits & 0x00000010u) {
  11008. target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(5, this->negative_int_value(), target);
  11009. }
  11010. // optional double double_value = 6;
  11011. if (cached_has_bits & 0x00000020u) {
  11012. target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(6, this->double_value(), target);
  11013. }
  11014. // optional bytes string_value = 7;
  11015. if (cached_has_bits & 0x00000002u) {
  11016. target =
  11017. ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
  11018. 7, this->string_value(), target);
  11019. }
  11020. // optional string aggregate_value = 8;
  11021. if (cached_has_bits & 0x00000004u) {
  11022. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  11023. this->aggregate_value().data(), static_cast<int>(this->aggregate_value().length()),
  11024. ::google::protobuf::internal::WireFormat::SERIALIZE,
  11025. "google.protobuf.UninterpretedOption.aggregate_value");
  11026. target =
  11027. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  11028. 8, this->aggregate_value(), target);
  11029. }
  11030. if (_internal_metadata_.have_unknown_fields()) {
  11031. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  11032. _internal_metadata_.unknown_fields(), target);
  11033. }
  11034. // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.UninterpretedOption)
  11035. return target;
  11036. }
  11037. size_t UninterpretedOption::ByteSizeLong() const {
  11038. // @@protoc_insertion_point(message_byte_size_start:google.protobuf.UninterpretedOption)
  11039. size_t total_size = 0;
  11040. if (_internal_metadata_.have_unknown_fields()) {
  11041. total_size +=
  11042. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  11043. _internal_metadata_.unknown_fields());
  11044. }
  11045. // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
  11046. {
  11047. unsigned int count = static_cast<unsigned int>(this->name_size());
  11048. total_size += 1UL * count;
  11049. for (unsigned int i = 0; i < count; i++) {
  11050. total_size +=
  11051. ::google::protobuf::internal::WireFormatLite::MessageSize(
  11052. this->name(static_cast<int>(i)));
  11053. }
  11054. }
  11055. if (_has_bits_[0 / 32] & 63u) {
  11056. // optional string identifier_value = 3;
  11057. if (has_identifier_value()) {
  11058. total_size += 1 +
  11059. ::google::protobuf::internal::WireFormatLite::StringSize(
  11060. this->identifier_value());
  11061. }
  11062. // optional bytes string_value = 7;
  11063. if (has_string_value()) {
  11064. total_size += 1 +
  11065. ::google::protobuf::internal::WireFormatLite::BytesSize(
  11066. this->string_value());
  11067. }
  11068. // optional string aggregate_value = 8;
  11069. if (has_aggregate_value()) {
  11070. total_size += 1 +
  11071. ::google::protobuf::internal::WireFormatLite::StringSize(
  11072. this->aggregate_value());
  11073. }
  11074. // optional uint64 positive_int_value = 4;
  11075. if (has_positive_int_value()) {
  11076. total_size += 1 +
  11077. ::google::protobuf::internal::WireFormatLite::UInt64Size(
  11078. this->positive_int_value());
  11079. }
  11080. // optional int64 negative_int_value = 5;
  11081. if (has_negative_int_value()) {
  11082. total_size += 1 +
  11083. ::google::protobuf::internal::WireFormatLite::Int64Size(
  11084. this->negative_int_value());
  11085. }
  11086. // optional double double_value = 6;
  11087. if (has_double_value()) {
  11088. total_size += 1 + 8;
  11089. }
  11090. }
  11091. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  11092. SetCachedSize(cached_size);
  11093. return total_size;
  11094. }
  11095. void UninterpretedOption::MergeFrom(const ::google::protobuf::Message& from) {
  11096. // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.UninterpretedOption)
  11097. GOOGLE_DCHECK_NE(&from, this);
  11098. const UninterpretedOption* source =
  11099. ::google::protobuf::internal::DynamicCastToGenerated<const UninterpretedOption>(
  11100. &from);
  11101. if (source == NULL) {
  11102. // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.UninterpretedOption)
  11103. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  11104. } else {
  11105. // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.UninterpretedOption)
  11106. MergeFrom(*source);
  11107. }
  11108. }
  11109. void UninterpretedOption::MergeFrom(const UninterpretedOption& from) {
  11110. // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.UninterpretedOption)
  11111. GOOGLE_DCHECK_NE(&from, this);
  11112. _internal_metadata_.MergeFrom(from._internal_metadata_);
  11113. ::google::protobuf::uint32 cached_has_bits = 0;
  11114. (void) cached_has_bits;
  11115. name_.MergeFrom(from.name_);
  11116. cached_has_bits = from._has_bits_[0];
  11117. if (cached_has_bits & 63u) {
  11118. if (cached_has_bits & 0x00000001u) {
  11119. set_identifier_value(from.identifier_value());
  11120. }
  11121. if (cached_has_bits & 0x00000002u) {
  11122. set_string_value(from.string_value());
  11123. }
  11124. if (cached_has_bits & 0x00000004u) {
  11125. set_aggregate_value(from.aggregate_value());
  11126. }
  11127. if (cached_has_bits & 0x00000008u) {
  11128. positive_int_value_ = from.positive_int_value_;
  11129. }
  11130. if (cached_has_bits & 0x00000010u) {
  11131. negative_int_value_ = from.negative_int_value_;
  11132. }
  11133. if (cached_has_bits & 0x00000020u) {
  11134. double_value_ = from.double_value_;
  11135. }
  11136. _has_bits_[0] |= cached_has_bits;
  11137. }
  11138. }
  11139. void UninterpretedOption::CopyFrom(const ::google::protobuf::Message& from) {
  11140. // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.UninterpretedOption)
  11141. if (&from == this) return;
  11142. Clear();
  11143. MergeFrom(from);
  11144. }
  11145. void UninterpretedOption::CopyFrom(const UninterpretedOption& from) {
  11146. // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.UninterpretedOption)
  11147. if (&from == this) return;
  11148. Clear();
  11149. MergeFrom(from);
  11150. }
  11151. bool UninterpretedOption::IsInitialized() const {
  11152. if (!::google::protobuf::internal::AllAreInitialized(this->name())) return false;
  11153. return true;
  11154. }
  11155. void UninterpretedOption::Swap(UninterpretedOption* other) {
  11156. if (other == this) return;
  11157. if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
  11158. InternalSwap(other);
  11159. } else {
  11160. UninterpretedOption* temp = New(GetArenaNoVirtual());
  11161. temp->MergeFrom(*other);
  11162. other->CopyFrom(*this);
  11163. InternalSwap(temp);
  11164. if (GetArenaNoVirtual() == NULL) {
  11165. delete temp;
  11166. }
  11167. }
  11168. }
  11169. void UninterpretedOption::UnsafeArenaSwap(UninterpretedOption* other) {
  11170. if (other == this) return;
  11171. GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
  11172. InternalSwap(other);
  11173. }
  11174. void UninterpretedOption::InternalSwap(UninterpretedOption* other) {
  11175. using std::swap;
  11176. CastToBase(&name_)->InternalSwap(CastToBase(&other->name_));
  11177. identifier_value_.Swap(&other->identifier_value_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  11178. GetArenaNoVirtual());
  11179. string_value_.Swap(&other->string_value_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  11180. GetArenaNoVirtual());
  11181. aggregate_value_.Swap(&other->aggregate_value_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  11182. GetArenaNoVirtual());
  11183. swap(positive_int_value_, other->positive_int_value_);
  11184. swap(negative_int_value_, other->negative_int_value_);
  11185. swap(double_value_, other->double_value_);
  11186. swap(_has_bits_[0], other->_has_bits_[0]);
  11187. _internal_metadata_.Swap(&other->_internal_metadata_);
  11188. }
  11189. ::google::protobuf::Metadata UninterpretedOption::GetMetadata() const {
  11190. protobuf_google_2fprotobuf_2fdescriptor_2eproto::protobuf_AssignDescriptorsOnce();
  11191. return ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::file_level_metadata[kIndexInFileMessages];
  11192. }
  11193. // ===================================================================
  11194. void SourceCodeInfo_Location::InitAsDefaultInstance() {
  11195. }
  11196. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  11197. const int SourceCodeInfo_Location::kPathFieldNumber;
  11198. const int SourceCodeInfo_Location::kSpanFieldNumber;
  11199. const int SourceCodeInfo_Location::kLeadingCommentsFieldNumber;
  11200. const int SourceCodeInfo_Location::kTrailingCommentsFieldNumber;
  11201. const int SourceCodeInfo_Location::kLeadingDetachedCommentsFieldNumber;
  11202. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  11203. SourceCodeInfo_Location::SourceCodeInfo_Location()
  11204. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  11205. ::google::protobuf::internal::InitSCC(
  11206. &protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_SourceCodeInfo_Location.base);
  11207. SharedCtor();
  11208. // @@protoc_insertion_point(constructor:google.protobuf.SourceCodeInfo.Location)
  11209. }
  11210. SourceCodeInfo_Location::SourceCodeInfo_Location(::google::protobuf::Arena* arena)
  11211. : ::google::protobuf::Message(),
  11212. _internal_metadata_(arena),
  11213. path_(arena),
  11214. span_(arena),
  11215. leading_detached_comments_(arena) {
  11216. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_SourceCodeInfo_Location.base);
  11217. SharedCtor();
  11218. RegisterArenaDtor(arena);
  11219. // @@protoc_insertion_point(arena_constructor:google.protobuf.SourceCodeInfo.Location)
  11220. }
  11221. SourceCodeInfo_Location::SourceCodeInfo_Location(const SourceCodeInfo_Location& from)
  11222. : ::google::protobuf::Message(),
  11223. _internal_metadata_(NULL),
  11224. _has_bits_(from._has_bits_),
  11225. path_(from.path_),
  11226. span_(from.span_),
  11227. leading_detached_comments_(from.leading_detached_comments_) {
  11228. _internal_metadata_.MergeFrom(from._internal_metadata_);
  11229. leading_comments_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  11230. if (from.has_leading_comments()) {
  11231. leading_comments_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.leading_comments(),
  11232. GetArenaNoVirtual());
  11233. }
  11234. trailing_comments_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  11235. if (from.has_trailing_comments()) {
  11236. trailing_comments_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.trailing_comments(),
  11237. GetArenaNoVirtual());
  11238. }
  11239. // @@protoc_insertion_point(copy_constructor:google.protobuf.SourceCodeInfo.Location)
  11240. }
  11241. void SourceCodeInfo_Location::SharedCtor() {
  11242. leading_comments_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  11243. trailing_comments_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  11244. }
  11245. SourceCodeInfo_Location::~SourceCodeInfo_Location() {
  11246. // @@protoc_insertion_point(destructor:google.protobuf.SourceCodeInfo.Location)
  11247. SharedDtor();
  11248. }
  11249. void SourceCodeInfo_Location::SharedDtor() {
  11250. GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
  11251. leading_comments_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  11252. trailing_comments_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  11253. }
  11254. void SourceCodeInfo_Location::ArenaDtor(void* object) {
  11255. SourceCodeInfo_Location* _this = reinterpret_cast< SourceCodeInfo_Location* >(object);
  11256. (void)_this;
  11257. }
  11258. void SourceCodeInfo_Location::RegisterArenaDtor(::google::protobuf::Arena* arena) {
  11259. }
  11260. void SourceCodeInfo_Location::SetCachedSize(int size) const {
  11261. _cached_size_.Set(size);
  11262. }
  11263. const ::google::protobuf::Descriptor* SourceCodeInfo_Location::descriptor() {
  11264. ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::protobuf_AssignDescriptorsOnce();
  11265. return ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  11266. }
  11267. const SourceCodeInfo_Location& SourceCodeInfo_Location::default_instance() {
  11268. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_SourceCodeInfo_Location.base);
  11269. return *internal_default_instance();
  11270. }
  11271. void SourceCodeInfo_Location::Clear() {
  11272. // @@protoc_insertion_point(message_clear_start:google.protobuf.SourceCodeInfo.Location)
  11273. ::google::protobuf::uint32 cached_has_bits = 0;
  11274. // Prevent compiler warnings about cached_has_bits being unused
  11275. (void) cached_has_bits;
  11276. path_.Clear();
  11277. span_.Clear();
  11278. leading_detached_comments_.Clear();
  11279. cached_has_bits = _has_bits_[0];
  11280. if (cached_has_bits & 3u) {
  11281. if (cached_has_bits & 0x00000001u) {
  11282. leading_comments_.ClearNonDefaultToEmpty();
  11283. }
  11284. if (cached_has_bits & 0x00000002u) {
  11285. trailing_comments_.ClearNonDefaultToEmpty();
  11286. }
  11287. }
  11288. _has_bits_.Clear();
  11289. _internal_metadata_.Clear();
  11290. }
  11291. bool SourceCodeInfo_Location::MergePartialFromCodedStream(
  11292. ::google::protobuf::io::CodedInputStream* input) {
  11293. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  11294. ::google::protobuf::uint32 tag;
  11295. // @@protoc_insertion_point(parse_start:google.protobuf.SourceCodeInfo.Location)
  11296. for (;;) {
  11297. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  11298. tag = p.first;
  11299. if (!p.second) goto handle_unusual;
  11300. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  11301. // repeated int32 path = 1 [packed = true];
  11302. case 1: {
  11303. if (static_cast< ::google::protobuf::uint8>(tag) ==
  11304. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  11305. DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
  11306. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  11307. input, this->mutable_path())));
  11308. } else if (
  11309. static_cast< ::google::protobuf::uint8>(tag) ==
  11310. static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
  11311. DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
  11312. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  11313. 1, 10u, input, this->mutable_path())));
  11314. } else {
  11315. goto handle_unusual;
  11316. }
  11317. break;
  11318. }
  11319. // repeated int32 span = 2 [packed = true];
  11320. case 2: {
  11321. if (static_cast< ::google::protobuf::uint8>(tag) ==
  11322. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  11323. DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
  11324. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  11325. input, this->mutable_span())));
  11326. } else if (
  11327. static_cast< ::google::protobuf::uint8>(tag) ==
  11328. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  11329. DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
  11330. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  11331. 1, 18u, input, this->mutable_span())));
  11332. } else {
  11333. goto handle_unusual;
  11334. }
  11335. break;
  11336. }
  11337. // optional string leading_comments = 3;
  11338. case 3: {
  11339. if (static_cast< ::google::protobuf::uint8>(tag) ==
  11340. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  11341. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  11342. input, this->mutable_leading_comments()));
  11343. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  11344. this->leading_comments().data(), static_cast<int>(this->leading_comments().length()),
  11345. ::google::protobuf::internal::WireFormat::PARSE,
  11346. "google.protobuf.SourceCodeInfo.Location.leading_comments");
  11347. } else {
  11348. goto handle_unusual;
  11349. }
  11350. break;
  11351. }
  11352. // optional string trailing_comments = 4;
  11353. case 4: {
  11354. if (static_cast< ::google::protobuf::uint8>(tag) ==
  11355. static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
  11356. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  11357. input, this->mutable_trailing_comments()));
  11358. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  11359. this->trailing_comments().data(), static_cast<int>(this->trailing_comments().length()),
  11360. ::google::protobuf::internal::WireFormat::PARSE,
  11361. "google.protobuf.SourceCodeInfo.Location.trailing_comments");
  11362. } else {
  11363. goto handle_unusual;
  11364. }
  11365. break;
  11366. }
  11367. // repeated string leading_detached_comments = 6;
  11368. case 6: {
  11369. if (static_cast< ::google::protobuf::uint8>(tag) ==
  11370. static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
  11371. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  11372. input, this->add_leading_detached_comments()));
  11373. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  11374. this->leading_detached_comments(this->leading_detached_comments_size() - 1).data(),
  11375. static_cast<int>(this->leading_detached_comments(this->leading_detached_comments_size() - 1).length()),
  11376. ::google::protobuf::internal::WireFormat::PARSE,
  11377. "google.protobuf.SourceCodeInfo.Location.leading_detached_comments");
  11378. } else {
  11379. goto handle_unusual;
  11380. }
  11381. break;
  11382. }
  11383. default: {
  11384. handle_unusual:
  11385. if (tag == 0) {
  11386. goto success;
  11387. }
  11388. DO_(::google::protobuf::internal::WireFormat::SkipField(
  11389. input, tag, _internal_metadata_.mutable_unknown_fields()));
  11390. break;
  11391. }
  11392. }
  11393. }
  11394. success:
  11395. // @@protoc_insertion_point(parse_success:google.protobuf.SourceCodeInfo.Location)
  11396. return true;
  11397. failure:
  11398. // @@protoc_insertion_point(parse_failure:google.protobuf.SourceCodeInfo.Location)
  11399. return false;
  11400. #undef DO_
  11401. }
  11402. void SourceCodeInfo_Location::SerializeWithCachedSizes(
  11403. ::google::protobuf::io::CodedOutputStream* output) const {
  11404. // @@protoc_insertion_point(serialize_start:google.protobuf.SourceCodeInfo.Location)
  11405. ::google::protobuf::uint32 cached_has_bits = 0;
  11406. (void) cached_has_bits;
  11407. // repeated int32 path = 1 [packed = true];
  11408. if (this->path_size() > 0) {
  11409. ::google::protobuf::internal::WireFormatLite::WriteTag(1, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
  11410. output->WriteVarint32(static_cast< ::google::protobuf::uint32>(
  11411. _path_cached_byte_size_));
  11412. }
  11413. for (int i = 0, n = this->path_size(); i < n; i++) {
  11414. ::google::protobuf::internal::WireFormatLite::WriteInt32NoTag(
  11415. this->path(i), output);
  11416. }
  11417. // repeated int32 span = 2 [packed = true];
  11418. if (this->span_size() > 0) {
  11419. ::google::protobuf::internal::WireFormatLite::WriteTag(2, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
  11420. output->WriteVarint32(static_cast< ::google::protobuf::uint32>(
  11421. _span_cached_byte_size_));
  11422. }
  11423. for (int i = 0, n = this->span_size(); i < n; i++) {
  11424. ::google::protobuf::internal::WireFormatLite::WriteInt32NoTag(
  11425. this->span(i), output);
  11426. }
  11427. cached_has_bits = _has_bits_[0];
  11428. // optional string leading_comments = 3;
  11429. if (cached_has_bits & 0x00000001u) {
  11430. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  11431. this->leading_comments().data(), static_cast<int>(this->leading_comments().length()),
  11432. ::google::protobuf::internal::WireFormat::SERIALIZE,
  11433. "google.protobuf.SourceCodeInfo.Location.leading_comments");
  11434. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  11435. 3, this->leading_comments(), output);
  11436. }
  11437. // optional string trailing_comments = 4;
  11438. if (cached_has_bits & 0x00000002u) {
  11439. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  11440. this->trailing_comments().data(), static_cast<int>(this->trailing_comments().length()),
  11441. ::google::protobuf::internal::WireFormat::SERIALIZE,
  11442. "google.protobuf.SourceCodeInfo.Location.trailing_comments");
  11443. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  11444. 4, this->trailing_comments(), output);
  11445. }
  11446. // repeated string leading_detached_comments = 6;
  11447. for (int i = 0, n = this->leading_detached_comments_size(); i < n; i++) {
  11448. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  11449. this->leading_detached_comments(i).data(), static_cast<int>(this->leading_detached_comments(i).length()),
  11450. ::google::protobuf::internal::WireFormat::SERIALIZE,
  11451. "google.protobuf.SourceCodeInfo.Location.leading_detached_comments");
  11452. ::google::protobuf::internal::WireFormatLite::WriteString(
  11453. 6, this->leading_detached_comments(i), output);
  11454. }
  11455. if (_internal_metadata_.have_unknown_fields()) {
  11456. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  11457. _internal_metadata_.unknown_fields(), output);
  11458. }
  11459. // @@protoc_insertion_point(serialize_end:google.protobuf.SourceCodeInfo.Location)
  11460. }
  11461. ::google::protobuf::uint8* SourceCodeInfo_Location::InternalSerializeWithCachedSizesToArray(
  11462. bool deterministic, ::google::protobuf::uint8* target) const {
  11463. (void)deterministic; // Unused
  11464. // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.SourceCodeInfo.Location)
  11465. ::google::protobuf::uint32 cached_has_bits = 0;
  11466. (void) cached_has_bits;
  11467. // repeated int32 path = 1 [packed = true];
  11468. if (this->path_size() > 0) {
  11469. target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
  11470. 1,
  11471. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
  11472. target);
  11473. target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
  11474. static_cast< ::google::protobuf::int32>(
  11475. _path_cached_byte_size_), target);
  11476. target = ::google::protobuf::internal::WireFormatLite::
  11477. WriteInt32NoTagToArray(this->path_, target);
  11478. }
  11479. // repeated int32 span = 2 [packed = true];
  11480. if (this->span_size() > 0) {
  11481. target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
  11482. 2,
  11483. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
  11484. target);
  11485. target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
  11486. static_cast< ::google::protobuf::int32>(
  11487. _span_cached_byte_size_), target);
  11488. target = ::google::protobuf::internal::WireFormatLite::
  11489. WriteInt32NoTagToArray(this->span_, target);
  11490. }
  11491. cached_has_bits = _has_bits_[0];
  11492. // optional string leading_comments = 3;
  11493. if (cached_has_bits & 0x00000001u) {
  11494. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  11495. this->leading_comments().data(), static_cast<int>(this->leading_comments().length()),
  11496. ::google::protobuf::internal::WireFormat::SERIALIZE,
  11497. "google.protobuf.SourceCodeInfo.Location.leading_comments");
  11498. target =
  11499. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  11500. 3, this->leading_comments(), target);
  11501. }
  11502. // optional string trailing_comments = 4;
  11503. if (cached_has_bits & 0x00000002u) {
  11504. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  11505. this->trailing_comments().data(), static_cast<int>(this->trailing_comments().length()),
  11506. ::google::protobuf::internal::WireFormat::SERIALIZE,
  11507. "google.protobuf.SourceCodeInfo.Location.trailing_comments");
  11508. target =
  11509. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  11510. 4, this->trailing_comments(), target);
  11511. }
  11512. // repeated string leading_detached_comments = 6;
  11513. for (int i = 0, n = this->leading_detached_comments_size(); i < n; i++) {
  11514. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  11515. this->leading_detached_comments(i).data(), static_cast<int>(this->leading_detached_comments(i).length()),
  11516. ::google::protobuf::internal::WireFormat::SERIALIZE,
  11517. "google.protobuf.SourceCodeInfo.Location.leading_detached_comments");
  11518. target = ::google::protobuf::internal::WireFormatLite::
  11519. WriteStringToArray(6, this->leading_detached_comments(i), target);
  11520. }
  11521. if (_internal_metadata_.have_unknown_fields()) {
  11522. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  11523. _internal_metadata_.unknown_fields(), target);
  11524. }
  11525. // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.SourceCodeInfo.Location)
  11526. return target;
  11527. }
  11528. size_t SourceCodeInfo_Location::ByteSizeLong() const {
  11529. // @@protoc_insertion_point(message_byte_size_start:google.protobuf.SourceCodeInfo.Location)
  11530. size_t total_size = 0;
  11531. if (_internal_metadata_.have_unknown_fields()) {
  11532. total_size +=
  11533. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  11534. _internal_metadata_.unknown_fields());
  11535. }
  11536. // repeated int32 path = 1 [packed = true];
  11537. {
  11538. size_t data_size = ::google::protobuf::internal::WireFormatLite::
  11539. Int32Size(this->path_);
  11540. if (data_size > 0) {
  11541. total_size += 1 +
  11542. ::google::protobuf::internal::WireFormatLite::Int32Size(
  11543. static_cast< ::google::protobuf::int32>(data_size));
  11544. }
  11545. int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);
  11546. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  11547. _path_cached_byte_size_ = cached_size;
  11548. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  11549. total_size += data_size;
  11550. }
  11551. // repeated int32 span = 2 [packed = true];
  11552. {
  11553. size_t data_size = ::google::protobuf::internal::WireFormatLite::
  11554. Int32Size(this->span_);
  11555. if (data_size > 0) {
  11556. total_size += 1 +
  11557. ::google::protobuf::internal::WireFormatLite::Int32Size(
  11558. static_cast< ::google::protobuf::int32>(data_size));
  11559. }
  11560. int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);
  11561. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  11562. _span_cached_byte_size_ = cached_size;
  11563. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  11564. total_size += data_size;
  11565. }
  11566. // repeated string leading_detached_comments = 6;
  11567. total_size += 1 *
  11568. ::google::protobuf::internal::FromIntSize(this->leading_detached_comments_size());
  11569. for (int i = 0, n = this->leading_detached_comments_size(); i < n; i++) {
  11570. total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
  11571. this->leading_detached_comments(i));
  11572. }
  11573. if (_has_bits_[0 / 32] & 3u) {
  11574. // optional string leading_comments = 3;
  11575. if (has_leading_comments()) {
  11576. total_size += 1 +
  11577. ::google::protobuf::internal::WireFormatLite::StringSize(
  11578. this->leading_comments());
  11579. }
  11580. // optional string trailing_comments = 4;
  11581. if (has_trailing_comments()) {
  11582. total_size += 1 +
  11583. ::google::protobuf::internal::WireFormatLite::StringSize(
  11584. this->trailing_comments());
  11585. }
  11586. }
  11587. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  11588. SetCachedSize(cached_size);
  11589. return total_size;
  11590. }
  11591. void SourceCodeInfo_Location::MergeFrom(const ::google::protobuf::Message& from) {
  11592. // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.SourceCodeInfo.Location)
  11593. GOOGLE_DCHECK_NE(&from, this);
  11594. const SourceCodeInfo_Location* source =
  11595. ::google::protobuf::internal::DynamicCastToGenerated<const SourceCodeInfo_Location>(
  11596. &from);
  11597. if (source == NULL) {
  11598. // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.SourceCodeInfo.Location)
  11599. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  11600. } else {
  11601. // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.SourceCodeInfo.Location)
  11602. MergeFrom(*source);
  11603. }
  11604. }
  11605. void SourceCodeInfo_Location::MergeFrom(const SourceCodeInfo_Location& from) {
  11606. // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.SourceCodeInfo.Location)
  11607. GOOGLE_DCHECK_NE(&from, this);
  11608. _internal_metadata_.MergeFrom(from._internal_metadata_);
  11609. ::google::protobuf::uint32 cached_has_bits = 0;
  11610. (void) cached_has_bits;
  11611. path_.MergeFrom(from.path_);
  11612. span_.MergeFrom(from.span_);
  11613. leading_detached_comments_.MergeFrom(from.leading_detached_comments_);
  11614. cached_has_bits = from._has_bits_[0];
  11615. if (cached_has_bits & 3u) {
  11616. if (cached_has_bits & 0x00000001u) {
  11617. set_leading_comments(from.leading_comments());
  11618. }
  11619. if (cached_has_bits & 0x00000002u) {
  11620. set_trailing_comments(from.trailing_comments());
  11621. }
  11622. }
  11623. }
  11624. void SourceCodeInfo_Location::CopyFrom(const ::google::protobuf::Message& from) {
  11625. // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.SourceCodeInfo.Location)
  11626. if (&from == this) return;
  11627. Clear();
  11628. MergeFrom(from);
  11629. }
  11630. void SourceCodeInfo_Location::CopyFrom(const SourceCodeInfo_Location& from) {
  11631. // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.SourceCodeInfo.Location)
  11632. if (&from == this) return;
  11633. Clear();
  11634. MergeFrom(from);
  11635. }
  11636. bool SourceCodeInfo_Location::IsInitialized() const {
  11637. return true;
  11638. }
  11639. void SourceCodeInfo_Location::Swap(SourceCodeInfo_Location* other) {
  11640. if (other == this) return;
  11641. if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
  11642. InternalSwap(other);
  11643. } else {
  11644. SourceCodeInfo_Location* temp = New(GetArenaNoVirtual());
  11645. temp->MergeFrom(*other);
  11646. other->CopyFrom(*this);
  11647. InternalSwap(temp);
  11648. if (GetArenaNoVirtual() == NULL) {
  11649. delete temp;
  11650. }
  11651. }
  11652. }
  11653. void SourceCodeInfo_Location::UnsafeArenaSwap(SourceCodeInfo_Location* other) {
  11654. if (other == this) return;
  11655. GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
  11656. InternalSwap(other);
  11657. }
  11658. void SourceCodeInfo_Location::InternalSwap(SourceCodeInfo_Location* other) {
  11659. using std::swap;
  11660. path_.InternalSwap(&other->path_);
  11661. span_.InternalSwap(&other->span_);
  11662. leading_detached_comments_.InternalSwap(CastToBase(&other->leading_detached_comments_));
  11663. leading_comments_.Swap(&other->leading_comments_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  11664. GetArenaNoVirtual());
  11665. trailing_comments_.Swap(&other->trailing_comments_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  11666. GetArenaNoVirtual());
  11667. swap(_has_bits_[0], other->_has_bits_[0]);
  11668. _internal_metadata_.Swap(&other->_internal_metadata_);
  11669. }
  11670. ::google::protobuf::Metadata SourceCodeInfo_Location::GetMetadata() const {
  11671. protobuf_google_2fprotobuf_2fdescriptor_2eproto::protobuf_AssignDescriptorsOnce();
  11672. return ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::file_level_metadata[kIndexInFileMessages];
  11673. }
  11674. // ===================================================================
  11675. void SourceCodeInfo::InitAsDefaultInstance() {
  11676. }
  11677. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  11678. const int SourceCodeInfo::kLocationFieldNumber;
  11679. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  11680. SourceCodeInfo::SourceCodeInfo()
  11681. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  11682. ::google::protobuf::internal::InitSCC(
  11683. &protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_SourceCodeInfo.base);
  11684. SharedCtor();
  11685. // @@protoc_insertion_point(constructor:google.protobuf.SourceCodeInfo)
  11686. }
  11687. SourceCodeInfo::SourceCodeInfo(::google::protobuf::Arena* arena)
  11688. : ::google::protobuf::Message(),
  11689. _internal_metadata_(arena),
  11690. location_(arena) {
  11691. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_SourceCodeInfo.base);
  11692. SharedCtor();
  11693. RegisterArenaDtor(arena);
  11694. // @@protoc_insertion_point(arena_constructor:google.protobuf.SourceCodeInfo)
  11695. }
  11696. SourceCodeInfo::SourceCodeInfo(const SourceCodeInfo& from)
  11697. : ::google::protobuf::Message(),
  11698. _internal_metadata_(NULL),
  11699. _has_bits_(from._has_bits_),
  11700. location_(from.location_) {
  11701. _internal_metadata_.MergeFrom(from._internal_metadata_);
  11702. // @@protoc_insertion_point(copy_constructor:google.protobuf.SourceCodeInfo)
  11703. }
  11704. void SourceCodeInfo::SharedCtor() {
  11705. }
  11706. SourceCodeInfo::~SourceCodeInfo() {
  11707. // @@protoc_insertion_point(destructor:google.protobuf.SourceCodeInfo)
  11708. SharedDtor();
  11709. }
  11710. void SourceCodeInfo::SharedDtor() {
  11711. GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
  11712. }
  11713. void SourceCodeInfo::ArenaDtor(void* object) {
  11714. SourceCodeInfo* _this = reinterpret_cast< SourceCodeInfo* >(object);
  11715. (void)_this;
  11716. }
  11717. void SourceCodeInfo::RegisterArenaDtor(::google::protobuf::Arena* arena) {
  11718. }
  11719. void SourceCodeInfo::SetCachedSize(int size) const {
  11720. _cached_size_.Set(size);
  11721. }
  11722. const ::google::protobuf::Descriptor* SourceCodeInfo::descriptor() {
  11723. ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::protobuf_AssignDescriptorsOnce();
  11724. return ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  11725. }
  11726. const SourceCodeInfo& SourceCodeInfo::default_instance() {
  11727. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_SourceCodeInfo.base);
  11728. return *internal_default_instance();
  11729. }
  11730. void SourceCodeInfo::Clear() {
  11731. // @@protoc_insertion_point(message_clear_start:google.protobuf.SourceCodeInfo)
  11732. ::google::protobuf::uint32 cached_has_bits = 0;
  11733. // Prevent compiler warnings about cached_has_bits being unused
  11734. (void) cached_has_bits;
  11735. location_.Clear();
  11736. _has_bits_.Clear();
  11737. _internal_metadata_.Clear();
  11738. }
  11739. bool SourceCodeInfo::MergePartialFromCodedStream(
  11740. ::google::protobuf::io::CodedInputStream* input) {
  11741. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  11742. ::google::protobuf::uint32 tag;
  11743. // @@protoc_insertion_point(parse_start:google.protobuf.SourceCodeInfo)
  11744. for (;;) {
  11745. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  11746. tag = p.first;
  11747. if (!p.second) goto handle_unusual;
  11748. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  11749. // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
  11750. case 1: {
  11751. if (static_cast< ::google::protobuf::uint8>(tag) ==
  11752. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  11753. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  11754. input, add_location()));
  11755. } else {
  11756. goto handle_unusual;
  11757. }
  11758. break;
  11759. }
  11760. default: {
  11761. handle_unusual:
  11762. if (tag == 0) {
  11763. goto success;
  11764. }
  11765. DO_(::google::protobuf::internal::WireFormat::SkipField(
  11766. input, tag, _internal_metadata_.mutable_unknown_fields()));
  11767. break;
  11768. }
  11769. }
  11770. }
  11771. success:
  11772. // @@protoc_insertion_point(parse_success:google.protobuf.SourceCodeInfo)
  11773. return true;
  11774. failure:
  11775. // @@protoc_insertion_point(parse_failure:google.protobuf.SourceCodeInfo)
  11776. return false;
  11777. #undef DO_
  11778. }
  11779. void SourceCodeInfo::SerializeWithCachedSizes(
  11780. ::google::protobuf::io::CodedOutputStream* output) const {
  11781. // @@protoc_insertion_point(serialize_start:google.protobuf.SourceCodeInfo)
  11782. ::google::protobuf::uint32 cached_has_bits = 0;
  11783. (void) cached_has_bits;
  11784. // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
  11785. for (unsigned int i = 0,
  11786. n = static_cast<unsigned int>(this->location_size()); i < n; i++) {
  11787. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  11788. 1,
  11789. this->location(static_cast<int>(i)),
  11790. output);
  11791. }
  11792. if (_internal_metadata_.have_unknown_fields()) {
  11793. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  11794. _internal_metadata_.unknown_fields(), output);
  11795. }
  11796. // @@protoc_insertion_point(serialize_end:google.protobuf.SourceCodeInfo)
  11797. }
  11798. ::google::protobuf::uint8* SourceCodeInfo::InternalSerializeWithCachedSizesToArray(
  11799. bool deterministic, ::google::protobuf::uint8* target) const {
  11800. (void)deterministic; // Unused
  11801. // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.SourceCodeInfo)
  11802. ::google::protobuf::uint32 cached_has_bits = 0;
  11803. (void) cached_has_bits;
  11804. // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
  11805. for (unsigned int i = 0,
  11806. n = static_cast<unsigned int>(this->location_size()); i < n; i++) {
  11807. target = ::google::protobuf::internal::WireFormatLite::
  11808. InternalWriteMessageToArray(
  11809. 1, this->location(static_cast<int>(i)), deterministic, target);
  11810. }
  11811. if (_internal_metadata_.have_unknown_fields()) {
  11812. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  11813. _internal_metadata_.unknown_fields(), target);
  11814. }
  11815. // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.SourceCodeInfo)
  11816. return target;
  11817. }
  11818. size_t SourceCodeInfo::ByteSizeLong() const {
  11819. // @@protoc_insertion_point(message_byte_size_start:google.protobuf.SourceCodeInfo)
  11820. size_t total_size = 0;
  11821. if (_internal_metadata_.have_unknown_fields()) {
  11822. total_size +=
  11823. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  11824. _internal_metadata_.unknown_fields());
  11825. }
  11826. // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
  11827. {
  11828. unsigned int count = static_cast<unsigned int>(this->location_size());
  11829. total_size += 1UL * count;
  11830. for (unsigned int i = 0; i < count; i++) {
  11831. total_size +=
  11832. ::google::protobuf::internal::WireFormatLite::MessageSize(
  11833. this->location(static_cast<int>(i)));
  11834. }
  11835. }
  11836. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  11837. SetCachedSize(cached_size);
  11838. return total_size;
  11839. }
  11840. void SourceCodeInfo::MergeFrom(const ::google::protobuf::Message& from) {
  11841. // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.SourceCodeInfo)
  11842. GOOGLE_DCHECK_NE(&from, this);
  11843. const SourceCodeInfo* source =
  11844. ::google::protobuf::internal::DynamicCastToGenerated<const SourceCodeInfo>(
  11845. &from);
  11846. if (source == NULL) {
  11847. // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.SourceCodeInfo)
  11848. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  11849. } else {
  11850. // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.SourceCodeInfo)
  11851. MergeFrom(*source);
  11852. }
  11853. }
  11854. void SourceCodeInfo::MergeFrom(const SourceCodeInfo& from) {
  11855. // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.SourceCodeInfo)
  11856. GOOGLE_DCHECK_NE(&from, this);
  11857. _internal_metadata_.MergeFrom(from._internal_metadata_);
  11858. ::google::protobuf::uint32 cached_has_bits = 0;
  11859. (void) cached_has_bits;
  11860. location_.MergeFrom(from.location_);
  11861. }
  11862. void SourceCodeInfo::CopyFrom(const ::google::protobuf::Message& from) {
  11863. // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.SourceCodeInfo)
  11864. if (&from == this) return;
  11865. Clear();
  11866. MergeFrom(from);
  11867. }
  11868. void SourceCodeInfo::CopyFrom(const SourceCodeInfo& from) {
  11869. // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.SourceCodeInfo)
  11870. if (&from == this) return;
  11871. Clear();
  11872. MergeFrom(from);
  11873. }
  11874. bool SourceCodeInfo::IsInitialized() const {
  11875. return true;
  11876. }
  11877. void SourceCodeInfo::Swap(SourceCodeInfo* other) {
  11878. if (other == this) return;
  11879. if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
  11880. InternalSwap(other);
  11881. } else {
  11882. SourceCodeInfo* temp = New(GetArenaNoVirtual());
  11883. temp->MergeFrom(*other);
  11884. other->CopyFrom(*this);
  11885. InternalSwap(temp);
  11886. if (GetArenaNoVirtual() == NULL) {
  11887. delete temp;
  11888. }
  11889. }
  11890. }
  11891. void SourceCodeInfo::UnsafeArenaSwap(SourceCodeInfo* other) {
  11892. if (other == this) return;
  11893. GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
  11894. InternalSwap(other);
  11895. }
  11896. void SourceCodeInfo::InternalSwap(SourceCodeInfo* other) {
  11897. using std::swap;
  11898. CastToBase(&location_)->InternalSwap(CastToBase(&other->location_));
  11899. swap(_has_bits_[0], other->_has_bits_[0]);
  11900. _internal_metadata_.Swap(&other->_internal_metadata_);
  11901. }
  11902. ::google::protobuf::Metadata SourceCodeInfo::GetMetadata() const {
  11903. protobuf_google_2fprotobuf_2fdescriptor_2eproto::protobuf_AssignDescriptorsOnce();
  11904. return ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::file_level_metadata[kIndexInFileMessages];
  11905. }
  11906. // ===================================================================
  11907. void GeneratedCodeInfo_Annotation::InitAsDefaultInstance() {
  11908. }
  11909. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  11910. const int GeneratedCodeInfo_Annotation::kPathFieldNumber;
  11911. const int GeneratedCodeInfo_Annotation::kSourceFileFieldNumber;
  11912. const int GeneratedCodeInfo_Annotation::kBeginFieldNumber;
  11913. const int GeneratedCodeInfo_Annotation::kEndFieldNumber;
  11914. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  11915. GeneratedCodeInfo_Annotation::GeneratedCodeInfo_Annotation()
  11916. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  11917. ::google::protobuf::internal::InitSCC(
  11918. &protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_GeneratedCodeInfo_Annotation.base);
  11919. SharedCtor();
  11920. // @@protoc_insertion_point(constructor:google.protobuf.GeneratedCodeInfo.Annotation)
  11921. }
  11922. GeneratedCodeInfo_Annotation::GeneratedCodeInfo_Annotation(::google::protobuf::Arena* arena)
  11923. : ::google::protobuf::Message(),
  11924. _internal_metadata_(arena),
  11925. path_(arena) {
  11926. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_GeneratedCodeInfo_Annotation.base);
  11927. SharedCtor();
  11928. RegisterArenaDtor(arena);
  11929. // @@protoc_insertion_point(arena_constructor:google.protobuf.GeneratedCodeInfo.Annotation)
  11930. }
  11931. GeneratedCodeInfo_Annotation::GeneratedCodeInfo_Annotation(const GeneratedCodeInfo_Annotation& from)
  11932. : ::google::protobuf::Message(),
  11933. _internal_metadata_(NULL),
  11934. _has_bits_(from._has_bits_),
  11935. path_(from.path_) {
  11936. _internal_metadata_.MergeFrom(from._internal_metadata_);
  11937. source_file_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  11938. if (from.has_source_file()) {
  11939. source_file_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.source_file(),
  11940. GetArenaNoVirtual());
  11941. }
  11942. ::memcpy(&begin_, &from.begin_,
  11943. static_cast<size_t>(reinterpret_cast<char*>(&end_) -
  11944. reinterpret_cast<char*>(&begin_)) + sizeof(end_));
  11945. // @@protoc_insertion_point(copy_constructor:google.protobuf.GeneratedCodeInfo.Annotation)
  11946. }
  11947. void GeneratedCodeInfo_Annotation::SharedCtor() {
  11948. source_file_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  11949. ::memset(&begin_, 0, static_cast<size_t>(
  11950. reinterpret_cast<char*>(&end_) -
  11951. reinterpret_cast<char*>(&begin_)) + sizeof(end_));
  11952. }
  11953. GeneratedCodeInfo_Annotation::~GeneratedCodeInfo_Annotation() {
  11954. // @@protoc_insertion_point(destructor:google.protobuf.GeneratedCodeInfo.Annotation)
  11955. SharedDtor();
  11956. }
  11957. void GeneratedCodeInfo_Annotation::SharedDtor() {
  11958. GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
  11959. source_file_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  11960. }
  11961. void GeneratedCodeInfo_Annotation::ArenaDtor(void* object) {
  11962. GeneratedCodeInfo_Annotation* _this = reinterpret_cast< GeneratedCodeInfo_Annotation* >(object);
  11963. (void)_this;
  11964. }
  11965. void GeneratedCodeInfo_Annotation::RegisterArenaDtor(::google::protobuf::Arena* arena) {
  11966. }
  11967. void GeneratedCodeInfo_Annotation::SetCachedSize(int size) const {
  11968. _cached_size_.Set(size);
  11969. }
  11970. const ::google::protobuf::Descriptor* GeneratedCodeInfo_Annotation::descriptor() {
  11971. ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::protobuf_AssignDescriptorsOnce();
  11972. return ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  11973. }
  11974. const GeneratedCodeInfo_Annotation& GeneratedCodeInfo_Annotation::default_instance() {
  11975. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_GeneratedCodeInfo_Annotation.base);
  11976. return *internal_default_instance();
  11977. }
  11978. void GeneratedCodeInfo_Annotation::Clear() {
  11979. // @@protoc_insertion_point(message_clear_start:google.protobuf.GeneratedCodeInfo.Annotation)
  11980. ::google::protobuf::uint32 cached_has_bits = 0;
  11981. // Prevent compiler warnings about cached_has_bits being unused
  11982. (void) cached_has_bits;
  11983. path_.Clear();
  11984. cached_has_bits = _has_bits_[0];
  11985. if (cached_has_bits & 0x00000001u) {
  11986. source_file_.ClearNonDefaultToEmpty();
  11987. }
  11988. if (cached_has_bits & 6u) {
  11989. ::memset(&begin_, 0, static_cast<size_t>(
  11990. reinterpret_cast<char*>(&end_) -
  11991. reinterpret_cast<char*>(&begin_)) + sizeof(end_));
  11992. }
  11993. _has_bits_.Clear();
  11994. _internal_metadata_.Clear();
  11995. }
  11996. bool GeneratedCodeInfo_Annotation::MergePartialFromCodedStream(
  11997. ::google::protobuf::io::CodedInputStream* input) {
  11998. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  11999. ::google::protobuf::uint32 tag;
  12000. // @@protoc_insertion_point(parse_start:google.protobuf.GeneratedCodeInfo.Annotation)
  12001. for (;;) {
  12002. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  12003. tag = p.first;
  12004. if (!p.second) goto handle_unusual;
  12005. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  12006. // repeated int32 path = 1 [packed = true];
  12007. case 1: {
  12008. if (static_cast< ::google::protobuf::uint8>(tag) ==
  12009. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  12010. DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
  12011. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  12012. input, this->mutable_path())));
  12013. } else if (
  12014. static_cast< ::google::protobuf::uint8>(tag) ==
  12015. static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
  12016. DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
  12017. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  12018. 1, 10u, input, this->mutable_path())));
  12019. } else {
  12020. goto handle_unusual;
  12021. }
  12022. break;
  12023. }
  12024. // optional string source_file = 2;
  12025. case 2: {
  12026. if (static_cast< ::google::protobuf::uint8>(tag) ==
  12027. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  12028. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  12029. input, this->mutable_source_file()));
  12030. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  12031. this->source_file().data(), static_cast<int>(this->source_file().length()),
  12032. ::google::protobuf::internal::WireFormat::PARSE,
  12033. "google.protobuf.GeneratedCodeInfo.Annotation.source_file");
  12034. } else {
  12035. goto handle_unusual;
  12036. }
  12037. break;
  12038. }
  12039. // optional int32 begin = 3;
  12040. case 3: {
  12041. if (static_cast< ::google::protobuf::uint8>(tag) ==
  12042. static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
  12043. set_has_begin();
  12044. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  12045. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  12046. input, &begin_)));
  12047. } else {
  12048. goto handle_unusual;
  12049. }
  12050. break;
  12051. }
  12052. // optional int32 end = 4;
  12053. case 4: {
  12054. if (static_cast< ::google::protobuf::uint8>(tag) ==
  12055. static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
  12056. set_has_end();
  12057. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  12058. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  12059. input, &end_)));
  12060. } else {
  12061. goto handle_unusual;
  12062. }
  12063. break;
  12064. }
  12065. default: {
  12066. handle_unusual:
  12067. if (tag == 0) {
  12068. goto success;
  12069. }
  12070. DO_(::google::protobuf::internal::WireFormat::SkipField(
  12071. input, tag, _internal_metadata_.mutable_unknown_fields()));
  12072. break;
  12073. }
  12074. }
  12075. }
  12076. success:
  12077. // @@protoc_insertion_point(parse_success:google.protobuf.GeneratedCodeInfo.Annotation)
  12078. return true;
  12079. failure:
  12080. // @@protoc_insertion_point(parse_failure:google.protobuf.GeneratedCodeInfo.Annotation)
  12081. return false;
  12082. #undef DO_
  12083. }
  12084. void GeneratedCodeInfo_Annotation::SerializeWithCachedSizes(
  12085. ::google::protobuf::io::CodedOutputStream* output) const {
  12086. // @@protoc_insertion_point(serialize_start:google.protobuf.GeneratedCodeInfo.Annotation)
  12087. ::google::protobuf::uint32 cached_has_bits = 0;
  12088. (void) cached_has_bits;
  12089. // repeated int32 path = 1 [packed = true];
  12090. if (this->path_size() > 0) {
  12091. ::google::protobuf::internal::WireFormatLite::WriteTag(1, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
  12092. output->WriteVarint32(static_cast< ::google::protobuf::uint32>(
  12093. _path_cached_byte_size_));
  12094. }
  12095. for (int i = 0, n = this->path_size(); i < n; i++) {
  12096. ::google::protobuf::internal::WireFormatLite::WriteInt32NoTag(
  12097. this->path(i), output);
  12098. }
  12099. cached_has_bits = _has_bits_[0];
  12100. // optional string source_file = 2;
  12101. if (cached_has_bits & 0x00000001u) {
  12102. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  12103. this->source_file().data(), static_cast<int>(this->source_file().length()),
  12104. ::google::protobuf::internal::WireFormat::SERIALIZE,
  12105. "google.protobuf.GeneratedCodeInfo.Annotation.source_file");
  12106. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  12107. 2, this->source_file(), output);
  12108. }
  12109. // optional int32 begin = 3;
  12110. if (cached_has_bits & 0x00000002u) {
  12111. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->begin(), output);
  12112. }
  12113. // optional int32 end = 4;
  12114. if (cached_has_bits & 0x00000004u) {
  12115. ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->end(), output);
  12116. }
  12117. if (_internal_metadata_.have_unknown_fields()) {
  12118. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  12119. _internal_metadata_.unknown_fields(), output);
  12120. }
  12121. // @@protoc_insertion_point(serialize_end:google.protobuf.GeneratedCodeInfo.Annotation)
  12122. }
  12123. ::google::protobuf::uint8* GeneratedCodeInfo_Annotation::InternalSerializeWithCachedSizesToArray(
  12124. bool deterministic, ::google::protobuf::uint8* target) const {
  12125. (void)deterministic; // Unused
  12126. // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.GeneratedCodeInfo.Annotation)
  12127. ::google::protobuf::uint32 cached_has_bits = 0;
  12128. (void) cached_has_bits;
  12129. // repeated int32 path = 1 [packed = true];
  12130. if (this->path_size() > 0) {
  12131. target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
  12132. 1,
  12133. ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
  12134. target);
  12135. target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
  12136. static_cast< ::google::protobuf::int32>(
  12137. _path_cached_byte_size_), target);
  12138. target = ::google::protobuf::internal::WireFormatLite::
  12139. WriteInt32NoTagToArray(this->path_, target);
  12140. }
  12141. cached_has_bits = _has_bits_[0];
  12142. // optional string source_file = 2;
  12143. if (cached_has_bits & 0x00000001u) {
  12144. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  12145. this->source_file().data(), static_cast<int>(this->source_file().length()),
  12146. ::google::protobuf::internal::WireFormat::SERIALIZE,
  12147. "google.protobuf.GeneratedCodeInfo.Annotation.source_file");
  12148. target =
  12149. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  12150. 2, this->source_file(), target);
  12151. }
  12152. // optional int32 begin = 3;
  12153. if (cached_has_bits & 0x00000002u) {
  12154. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->begin(), target);
  12155. }
  12156. // optional int32 end = 4;
  12157. if (cached_has_bits & 0x00000004u) {
  12158. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->end(), target);
  12159. }
  12160. if (_internal_metadata_.have_unknown_fields()) {
  12161. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  12162. _internal_metadata_.unknown_fields(), target);
  12163. }
  12164. // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.GeneratedCodeInfo.Annotation)
  12165. return target;
  12166. }
  12167. size_t GeneratedCodeInfo_Annotation::ByteSizeLong() const {
  12168. // @@protoc_insertion_point(message_byte_size_start:google.protobuf.GeneratedCodeInfo.Annotation)
  12169. size_t total_size = 0;
  12170. if (_internal_metadata_.have_unknown_fields()) {
  12171. total_size +=
  12172. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  12173. _internal_metadata_.unknown_fields());
  12174. }
  12175. // repeated int32 path = 1 [packed = true];
  12176. {
  12177. size_t data_size = ::google::protobuf::internal::WireFormatLite::
  12178. Int32Size(this->path_);
  12179. if (data_size > 0) {
  12180. total_size += 1 +
  12181. ::google::protobuf::internal::WireFormatLite::Int32Size(
  12182. static_cast< ::google::protobuf::int32>(data_size));
  12183. }
  12184. int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);
  12185. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  12186. _path_cached_byte_size_ = cached_size;
  12187. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  12188. total_size += data_size;
  12189. }
  12190. if (_has_bits_[0 / 32] & 7u) {
  12191. // optional string source_file = 2;
  12192. if (has_source_file()) {
  12193. total_size += 1 +
  12194. ::google::protobuf::internal::WireFormatLite::StringSize(
  12195. this->source_file());
  12196. }
  12197. // optional int32 begin = 3;
  12198. if (has_begin()) {
  12199. total_size += 1 +
  12200. ::google::protobuf::internal::WireFormatLite::Int32Size(
  12201. this->begin());
  12202. }
  12203. // optional int32 end = 4;
  12204. if (has_end()) {
  12205. total_size += 1 +
  12206. ::google::protobuf::internal::WireFormatLite::Int32Size(
  12207. this->end());
  12208. }
  12209. }
  12210. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  12211. SetCachedSize(cached_size);
  12212. return total_size;
  12213. }
  12214. void GeneratedCodeInfo_Annotation::MergeFrom(const ::google::protobuf::Message& from) {
  12215. // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.GeneratedCodeInfo.Annotation)
  12216. GOOGLE_DCHECK_NE(&from, this);
  12217. const GeneratedCodeInfo_Annotation* source =
  12218. ::google::protobuf::internal::DynamicCastToGenerated<const GeneratedCodeInfo_Annotation>(
  12219. &from);
  12220. if (source == NULL) {
  12221. // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.GeneratedCodeInfo.Annotation)
  12222. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  12223. } else {
  12224. // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.GeneratedCodeInfo.Annotation)
  12225. MergeFrom(*source);
  12226. }
  12227. }
  12228. void GeneratedCodeInfo_Annotation::MergeFrom(const GeneratedCodeInfo_Annotation& from) {
  12229. // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.GeneratedCodeInfo.Annotation)
  12230. GOOGLE_DCHECK_NE(&from, this);
  12231. _internal_metadata_.MergeFrom(from._internal_metadata_);
  12232. ::google::protobuf::uint32 cached_has_bits = 0;
  12233. (void) cached_has_bits;
  12234. path_.MergeFrom(from.path_);
  12235. cached_has_bits = from._has_bits_[0];
  12236. if (cached_has_bits & 7u) {
  12237. if (cached_has_bits & 0x00000001u) {
  12238. set_source_file(from.source_file());
  12239. }
  12240. if (cached_has_bits & 0x00000002u) {
  12241. begin_ = from.begin_;
  12242. }
  12243. if (cached_has_bits & 0x00000004u) {
  12244. end_ = from.end_;
  12245. }
  12246. _has_bits_[0] |= cached_has_bits;
  12247. }
  12248. }
  12249. void GeneratedCodeInfo_Annotation::CopyFrom(const ::google::protobuf::Message& from) {
  12250. // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.GeneratedCodeInfo.Annotation)
  12251. if (&from == this) return;
  12252. Clear();
  12253. MergeFrom(from);
  12254. }
  12255. void GeneratedCodeInfo_Annotation::CopyFrom(const GeneratedCodeInfo_Annotation& from) {
  12256. // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.GeneratedCodeInfo.Annotation)
  12257. if (&from == this) return;
  12258. Clear();
  12259. MergeFrom(from);
  12260. }
  12261. bool GeneratedCodeInfo_Annotation::IsInitialized() const {
  12262. return true;
  12263. }
  12264. void GeneratedCodeInfo_Annotation::Swap(GeneratedCodeInfo_Annotation* other) {
  12265. if (other == this) return;
  12266. if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
  12267. InternalSwap(other);
  12268. } else {
  12269. GeneratedCodeInfo_Annotation* temp = New(GetArenaNoVirtual());
  12270. temp->MergeFrom(*other);
  12271. other->CopyFrom(*this);
  12272. InternalSwap(temp);
  12273. if (GetArenaNoVirtual() == NULL) {
  12274. delete temp;
  12275. }
  12276. }
  12277. }
  12278. void GeneratedCodeInfo_Annotation::UnsafeArenaSwap(GeneratedCodeInfo_Annotation* other) {
  12279. if (other == this) return;
  12280. GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
  12281. InternalSwap(other);
  12282. }
  12283. void GeneratedCodeInfo_Annotation::InternalSwap(GeneratedCodeInfo_Annotation* other) {
  12284. using std::swap;
  12285. path_.InternalSwap(&other->path_);
  12286. source_file_.Swap(&other->source_file_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  12287. GetArenaNoVirtual());
  12288. swap(begin_, other->begin_);
  12289. swap(end_, other->end_);
  12290. swap(_has_bits_[0], other->_has_bits_[0]);
  12291. _internal_metadata_.Swap(&other->_internal_metadata_);
  12292. }
  12293. ::google::protobuf::Metadata GeneratedCodeInfo_Annotation::GetMetadata() const {
  12294. protobuf_google_2fprotobuf_2fdescriptor_2eproto::protobuf_AssignDescriptorsOnce();
  12295. return ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::file_level_metadata[kIndexInFileMessages];
  12296. }
  12297. // ===================================================================
  12298. void GeneratedCodeInfo::InitAsDefaultInstance() {
  12299. }
  12300. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  12301. const int GeneratedCodeInfo::kAnnotationFieldNumber;
  12302. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  12303. GeneratedCodeInfo::GeneratedCodeInfo()
  12304. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  12305. ::google::protobuf::internal::InitSCC(
  12306. &protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_GeneratedCodeInfo.base);
  12307. SharedCtor();
  12308. // @@protoc_insertion_point(constructor:google.protobuf.GeneratedCodeInfo)
  12309. }
  12310. GeneratedCodeInfo::GeneratedCodeInfo(::google::protobuf::Arena* arena)
  12311. : ::google::protobuf::Message(),
  12312. _internal_metadata_(arena),
  12313. annotation_(arena) {
  12314. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_GeneratedCodeInfo.base);
  12315. SharedCtor();
  12316. RegisterArenaDtor(arena);
  12317. // @@protoc_insertion_point(arena_constructor:google.protobuf.GeneratedCodeInfo)
  12318. }
  12319. GeneratedCodeInfo::GeneratedCodeInfo(const GeneratedCodeInfo& from)
  12320. : ::google::protobuf::Message(),
  12321. _internal_metadata_(NULL),
  12322. _has_bits_(from._has_bits_),
  12323. annotation_(from.annotation_) {
  12324. _internal_metadata_.MergeFrom(from._internal_metadata_);
  12325. // @@protoc_insertion_point(copy_constructor:google.protobuf.GeneratedCodeInfo)
  12326. }
  12327. void GeneratedCodeInfo::SharedCtor() {
  12328. }
  12329. GeneratedCodeInfo::~GeneratedCodeInfo() {
  12330. // @@protoc_insertion_point(destructor:google.protobuf.GeneratedCodeInfo)
  12331. SharedDtor();
  12332. }
  12333. void GeneratedCodeInfo::SharedDtor() {
  12334. GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
  12335. }
  12336. void GeneratedCodeInfo::ArenaDtor(void* object) {
  12337. GeneratedCodeInfo* _this = reinterpret_cast< GeneratedCodeInfo* >(object);
  12338. (void)_this;
  12339. }
  12340. void GeneratedCodeInfo::RegisterArenaDtor(::google::protobuf::Arena* arena) {
  12341. }
  12342. void GeneratedCodeInfo::SetCachedSize(int size) const {
  12343. _cached_size_.Set(size);
  12344. }
  12345. const ::google::protobuf::Descriptor* GeneratedCodeInfo::descriptor() {
  12346. ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::protobuf_AssignDescriptorsOnce();
  12347. return ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  12348. }
  12349. const GeneratedCodeInfo& GeneratedCodeInfo::default_instance() {
  12350. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_GeneratedCodeInfo.base);
  12351. return *internal_default_instance();
  12352. }
  12353. void GeneratedCodeInfo::Clear() {
  12354. // @@protoc_insertion_point(message_clear_start:google.protobuf.GeneratedCodeInfo)
  12355. ::google::protobuf::uint32 cached_has_bits = 0;
  12356. // Prevent compiler warnings about cached_has_bits being unused
  12357. (void) cached_has_bits;
  12358. annotation_.Clear();
  12359. _has_bits_.Clear();
  12360. _internal_metadata_.Clear();
  12361. }
  12362. bool GeneratedCodeInfo::MergePartialFromCodedStream(
  12363. ::google::protobuf::io::CodedInputStream* input) {
  12364. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  12365. ::google::protobuf::uint32 tag;
  12366. // @@protoc_insertion_point(parse_start:google.protobuf.GeneratedCodeInfo)
  12367. for (;;) {
  12368. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  12369. tag = p.first;
  12370. if (!p.second) goto handle_unusual;
  12371. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  12372. // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
  12373. case 1: {
  12374. if (static_cast< ::google::protobuf::uint8>(tag) ==
  12375. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  12376. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  12377. input, add_annotation()));
  12378. } else {
  12379. goto handle_unusual;
  12380. }
  12381. break;
  12382. }
  12383. default: {
  12384. handle_unusual:
  12385. if (tag == 0) {
  12386. goto success;
  12387. }
  12388. DO_(::google::protobuf::internal::WireFormat::SkipField(
  12389. input, tag, _internal_metadata_.mutable_unknown_fields()));
  12390. break;
  12391. }
  12392. }
  12393. }
  12394. success:
  12395. // @@protoc_insertion_point(parse_success:google.protobuf.GeneratedCodeInfo)
  12396. return true;
  12397. failure:
  12398. // @@protoc_insertion_point(parse_failure:google.protobuf.GeneratedCodeInfo)
  12399. return false;
  12400. #undef DO_
  12401. }
  12402. void GeneratedCodeInfo::SerializeWithCachedSizes(
  12403. ::google::protobuf::io::CodedOutputStream* output) const {
  12404. // @@protoc_insertion_point(serialize_start:google.protobuf.GeneratedCodeInfo)
  12405. ::google::protobuf::uint32 cached_has_bits = 0;
  12406. (void) cached_has_bits;
  12407. // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
  12408. for (unsigned int i = 0,
  12409. n = static_cast<unsigned int>(this->annotation_size()); i < n; i++) {
  12410. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  12411. 1,
  12412. this->annotation(static_cast<int>(i)),
  12413. output);
  12414. }
  12415. if (_internal_metadata_.have_unknown_fields()) {
  12416. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  12417. _internal_metadata_.unknown_fields(), output);
  12418. }
  12419. // @@protoc_insertion_point(serialize_end:google.protobuf.GeneratedCodeInfo)
  12420. }
  12421. ::google::protobuf::uint8* GeneratedCodeInfo::InternalSerializeWithCachedSizesToArray(
  12422. bool deterministic, ::google::protobuf::uint8* target) const {
  12423. (void)deterministic; // Unused
  12424. // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.GeneratedCodeInfo)
  12425. ::google::protobuf::uint32 cached_has_bits = 0;
  12426. (void) cached_has_bits;
  12427. // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
  12428. for (unsigned int i = 0,
  12429. n = static_cast<unsigned int>(this->annotation_size()); i < n; i++) {
  12430. target = ::google::protobuf::internal::WireFormatLite::
  12431. InternalWriteMessageToArray(
  12432. 1, this->annotation(static_cast<int>(i)), deterministic, target);
  12433. }
  12434. if (_internal_metadata_.have_unknown_fields()) {
  12435. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  12436. _internal_metadata_.unknown_fields(), target);
  12437. }
  12438. // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.GeneratedCodeInfo)
  12439. return target;
  12440. }
  12441. size_t GeneratedCodeInfo::ByteSizeLong() const {
  12442. // @@protoc_insertion_point(message_byte_size_start:google.protobuf.GeneratedCodeInfo)
  12443. size_t total_size = 0;
  12444. if (_internal_metadata_.have_unknown_fields()) {
  12445. total_size +=
  12446. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  12447. _internal_metadata_.unknown_fields());
  12448. }
  12449. // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
  12450. {
  12451. unsigned int count = static_cast<unsigned int>(this->annotation_size());
  12452. total_size += 1UL * count;
  12453. for (unsigned int i = 0; i < count; i++) {
  12454. total_size +=
  12455. ::google::protobuf::internal::WireFormatLite::MessageSize(
  12456. this->annotation(static_cast<int>(i)));
  12457. }
  12458. }
  12459. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  12460. SetCachedSize(cached_size);
  12461. return total_size;
  12462. }
  12463. void GeneratedCodeInfo::MergeFrom(const ::google::protobuf::Message& from) {
  12464. // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.GeneratedCodeInfo)
  12465. GOOGLE_DCHECK_NE(&from, this);
  12466. const GeneratedCodeInfo* source =
  12467. ::google::protobuf::internal::DynamicCastToGenerated<const GeneratedCodeInfo>(
  12468. &from);
  12469. if (source == NULL) {
  12470. // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.GeneratedCodeInfo)
  12471. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  12472. } else {
  12473. // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.GeneratedCodeInfo)
  12474. MergeFrom(*source);
  12475. }
  12476. }
  12477. void GeneratedCodeInfo::MergeFrom(const GeneratedCodeInfo& from) {
  12478. // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.GeneratedCodeInfo)
  12479. GOOGLE_DCHECK_NE(&from, this);
  12480. _internal_metadata_.MergeFrom(from._internal_metadata_);
  12481. ::google::protobuf::uint32 cached_has_bits = 0;
  12482. (void) cached_has_bits;
  12483. annotation_.MergeFrom(from.annotation_);
  12484. }
  12485. void GeneratedCodeInfo::CopyFrom(const ::google::protobuf::Message& from) {
  12486. // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.GeneratedCodeInfo)
  12487. if (&from == this) return;
  12488. Clear();
  12489. MergeFrom(from);
  12490. }
  12491. void GeneratedCodeInfo::CopyFrom(const GeneratedCodeInfo& from) {
  12492. // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.GeneratedCodeInfo)
  12493. if (&from == this) return;
  12494. Clear();
  12495. MergeFrom(from);
  12496. }
  12497. bool GeneratedCodeInfo::IsInitialized() const {
  12498. return true;
  12499. }
  12500. void GeneratedCodeInfo::Swap(GeneratedCodeInfo* other) {
  12501. if (other == this) return;
  12502. if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
  12503. InternalSwap(other);
  12504. } else {
  12505. GeneratedCodeInfo* temp = New(GetArenaNoVirtual());
  12506. temp->MergeFrom(*other);
  12507. other->CopyFrom(*this);
  12508. InternalSwap(temp);
  12509. if (GetArenaNoVirtual() == NULL) {
  12510. delete temp;
  12511. }
  12512. }
  12513. }
  12514. void GeneratedCodeInfo::UnsafeArenaSwap(GeneratedCodeInfo* other) {
  12515. if (other == this) return;
  12516. GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
  12517. InternalSwap(other);
  12518. }
  12519. void GeneratedCodeInfo::InternalSwap(GeneratedCodeInfo* other) {
  12520. using std::swap;
  12521. CastToBase(&annotation_)->InternalSwap(CastToBase(&other->annotation_));
  12522. swap(_has_bits_[0], other->_has_bits_[0]);
  12523. _internal_metadata_.Swap(&other->_internal_metadata_);
  12524. }
  12525. ::google::protobuf::Metadata GeneratedCodeInfo::GetMetadata() const {
  12526. protobuf_google_2fprotobuf_2fdescriptor_2eproto::protobuf_AssignDescriptorsOnce();
  12527. return ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::file_level_metadata[kIndexInFileMessages];
  12528. }
  12529. // @@protoc_insertion_point(namespace_scope)
  12530. } // namespace protobuf
  12531. } // namespace google
  12532. namespace google {
  12533. namespace protobuf {
  12534. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::google::protobuf::FileDescriptorSet* Arena::CreateMaybeMessage< ::google::protobuf::FileDescriptorSet >(Arena* arena) {
  12535. return Arena::CreateMessageInternal< ::google::protobuf::FileDescriptorSet >(arena);
  12536. }
  12537. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::google::protobuf::FileDescriptorProto* Arena::CreateMaybeMessage< ::google::protobuf::FileDescriptorProto >(Arena* arena) {
  12538. return Arena::CreateMessageInternal< ::google::protobuf::FileDescriptorProto >(arena);
  12539. }
  12540. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::google::protobuf::DescriptorProto_ExtensionRange* Arena::CreateMaybeMessage< ::google::protobuf::DescriptorProto_ExtensionRange >(Arena* arena) {
  12541. return Arena::CreateMessageInternal< ::google::protobuf::DescriptorProto_ExtensionRange >(arena);
  12542. }
  12543. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::google::protobuf::DescriptorProto_ReservedRange* Arena::CreateMaybeMessage< ::google::protobuf::DescriptorProto_ReservedRange >(Arena* arena) {
  12544. return Arena::CreateMessageInternal< ::google::protobuf::DescriptorProto_ReservedRange >(arena);
  12545. }
  12546. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::google::protobuf::DescriptorProto* Arena::CreateMaybeMessage< ::google::protobuf::DescriptorProto >(Arena* arena) {
  12547. return Arena::CreateMessageInternal< ::google::protobuf::DescriptorProto >(arena);
  12548. }
  12549. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::google::protobuf::ExtensionRangeOptions* Arena::CreateMaybeMessage< ::google::protobuf::ExtensionRangeOptions >(Arena* arena) {
  12550. return Arena::CreateMessageInternal< ::google::protobuf::ExtensionRangeOptions >(arena);
  12551. }
  12552. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::google::protobuf::FieldDescriptorProto* Arena::CreateMaybeMessage< ::google::protobuf::FieldDescriptorProto >(Arena* arena) {
  12553. return Arena::CreateMessageInternal< ::google::protobuf::FieldDescriptorProto >(arena);
  12554. }
  12555. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::google::protobuf::OneofDescriptorProto* Arena::CreateMaybeMessage< ::google::protobuf::OneofDescriptorProto >(Arena* arena) {
  12556. return Arena::CreateMessageInternal< ::google::protobuf::OneofDescriptorProto >(arena);
  12557. }
  12558. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::google::protobuf::EnumDescriptorProto_EnumReservedRange* Arena::CreateMaybeMessage< ::google::protobuf::EnumDescriptorProto_EnumReservedRange >(Arena* arena) {
  12559. return Arena::CreateMessageInternal< ::google::protobuf::EnumDescriptorProto_EnumReservedRange >(arena);
  12560. }
  12561. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::google::protobuf::EnumDescriptorProto* Arena::CreateMaybeMessage< ::google::protobuf::EnumDescriptorProto >(Arena* arena) {
  12562. return Arena::CreateMessageInternal< ::google::protobuf::EnumDescriptorProto >(arena);
  12563. }
  12564. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::google::protobuf::EnumValueDescriptorProto* Arena::CreateMaybeMessage< ::google::protobuf::EnumValueDescriptorProto >(Arena* arena) {
  12565. return Arena::CreateMessageInternal< ::google::protobuf::EnumValueDescriptorProto >(arena);
  12566. }
  12567. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::google::protobuf::ServiceDescriptorProto* Arena::CreateMaybeMessage< ::google::protobuf::ServiceDescriptorProto >(Arena* arena) {
  12568. return Arena::CreateMessageInternal< ::google::protobuf::ServiceDescriptorProto >(arena);
  12569. }
  12570. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::google::protobuf::MethodDescriptorProto* Arena::CreateMaybeMessage< ::google::protobuf::MethodDescriptorProto >(Arena* arena) {
  12571. return Arena::CreateMessageInternal< ::google::protobuf::MethodDescriptorProto >(arena);
  12572. }
  12573. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::google::protobuf::FileOptions* Arena::CreateMaybeMessage< ::google::protobuf::FileOptions >(Arena* arena) {
  12574. return Arena::CreateMessageInternal< ::google::protobuf::FileOptions >(arena);
  12575. }
  12576. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::google::protobuf::MessageOptions* Arena::CreateMaybeMessage< ::google::protobuf::MessageOptions >(Arena* arena) {
  12577. return Arena::CreateMessageInternal< ::google::protobuf::MessageOptions >(arena);
  12578. }
  12579. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::google::protobuf::FieldOptions* Arena::CreateMaybeMessage< ::google::protobuf::FieldOptions >(Arena* arena) {
  12580. return Arena::CreateMessageInternal< ::google::protobuf::FieldOptions >(arena);
  12581. }
  12582. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::google::protobuf::OneofOptions* Arena::CreateMaybeMessage< ::google::protobuf::OneofOptions >(Arena* arena) {
  12583. return Arena::CreateMessageInternal< ::google::protobuf::OneofOptions >(arena);
  12584. }
  12585. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::google::protobuf::EnumOptions* Arena::CreateMaybeMessage< ::google::protobuf::EnumOptions >(Arena* arena) {
  12586. return Arena::CreateMessageInternal< ::google::protobuf::EnumOptions >(arena);
  12587. }
  12588. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::google::protobuf::EnumValueOptions* Arena::CreateMaybeMessage< ::google::protobuf::EnumValueOptions >(Arena* arena) {
  12589. return Arena::CreateMessageInternal< ::google::protobuf::EnumValueOptions >(arena);
  12590. }
  12591. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::google::protobuf::ServiceOptions* Arena::CreateMaybeMessage< ::google::protobuf::ServiceOptions >(Arena* arena) {
  12592. return Arena::CreateMessageInternal< ::google::protobuf::ServiceOptions >(arena);
  12593. }
  12594. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::google::protobuf::MethodOptions* Arena::CreateMaybeMessage< ::google::protobuf::MethodOptions >(Arena* arena) {
  12595. return Arena::CreateMessageInternal< ::google::protobuf::MethodOptions >(arena);
  12596. }
  12597. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::google::protobuf::UninterpretedOption_NamePart* Arena::CreateMaybeMessage< ::google::protobuf::UninterpretedOption_NamePart >(Arena* arena) {
  12598. return Arena::CreateMessageInternal< ::google::protobuf::UninterpretedOption_NamePart >(arena);
  12599. }
  12600. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::google::protobuf::UninterpretedOption* Arena::CreateMaybeMessage< ::google::protobuf::UninterpretedOption >(Arena* arena) {
  12601. return Arena::CreateMessageInternal< ::google::protobuf::UninterpretedOption >(arena);
  12602. }
  12603. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::google::protobuf::SourceCodeInfo_Location* Arena::CreateMaybeMessage< ::google::protobuf::SourceCodeInfo_Location >(Arena* arena) {
  12604. return Arena::CreateMessageInternal< ::google::protobuf::SourceCodeInfo_Location >(arena);
  12605. }
  12606. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::google::protobuf::SourceCodeInfo* Arena::CreateMaybeMessage< ::google::protobuf::SourceCodeInfo >(Arena* arena) {
  12607. return Arena::CreateMessageInternal< ::google::protobuf::SourceCodeInfo >(arena);
  12608. }
  12609. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::google::protobuf::GeneratedCodeInfo_Annotation* Arena::CreateMaybeMessage< ::google::protobuf::GeneratedCodeInfo_Annotation >(Arena* arena) {
  12610. return Arena::CreateMessageInternal< ::google::protobuf::GeneratedCodeInfo_Annotation >(arena);
  12611. }
  12612. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::google::protobuf::GeneratedCodeInfo* Arena::CreateMaybeMessage< ::google::protobuf::GeneratedCodeInfo >(Arena* arena) {
  12613. return Arena::CreateMessageInternal< ::google::protobuf::GeneratedCodeInfo >(arena);
  12614. }
  12615. } // namespace protobuf
  12616. } // namespace google
  12617. // @@protoc_insertion_point(global_scope)