descriptor.pb.cc 551 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982
  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)