1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: google/protobuf/unittest_custom_options.proto
- #include <google/protobuf/unittest_custom_options.pb.h>
- #include <algorithm>
- #include <google/protobuf/stubs/common.h>
- #include <google/protobuf/stubs/port.h>
- #include <google/protobuf/io/coded_stream.h>
- #include <google/protobuf/wire_format_lite_inl.h>
- #include <google/protobuf/descriptor.h>
- #include <google/protobuf/generated_message_reflection.h>
- #include <google/protobuf/reflection_ops.h>
- #include <google/protobuf/wire_format.h>
- // This is a temporary google only hack
- #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
- #include "third_party/protobuf/version.h"
- #endif
- // @@protoc_insertion_point(includes)
- namespace protobuf_google_2fprotobuf_2fdescriptor_2eproto {
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fdescriptor_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_FileOptions;
- } // namespace protobuf_google_2fprotobuf_2fdescriptor_2eproto
- namespace protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto {
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_AggregateMessageSet;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_AggregateMessageSetElement;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ComplexOpt6;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ComplexOptionType1;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ComplexOptionType2_ComplexOptionType4;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ComplexOptionType3_ComplexOptionType5;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_DummyMessageInvalidAsOptionType;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_OldOptionType;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ComplexOptionType3;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_Aggregate;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_ComplexOptionType2;
- } // namespace protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto
- namespace protobuf_unittest {
- class TestMessageWithCustomOptionsDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<TestMessageWithCustomOptions>
- _instance;
- ::google::protobuf::int32 oneof_field_;
- } _TestMessageWithCustomOptions_default_instance_;
- class CustomOptionFooRequestDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<CustomOptionFooRequest>
- _instance;
- } _CustomOptionFooRequest_default_instance_;
- class CustomOptionFooResponseDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<CustomOptionFooResponse>
- _instance;
- } _CustomOptionFooResponse_default_instance_;
- class CustomOptionFooClientMessageDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<CustomOptionFooClientMessage>
- _instance;
- } _CustomOptionFooClientMessage_default_instance_;
- class CustomOptionFooServerMessageDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<CustomOptionFooServerMessage>
- _instance;
- } _CustomOptionFooServerMessage_default_instance_;
- class DummyMessageContainingEnumDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<DummyMessageContainingEnum>
- _instance;
- } _DummyMessageContainingEnum_default_instance_;
- class DummyMessageInvalidAsOptionTypeDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<DummyMessageInvalidAsOptionType>
- _instance;
- } _DummyMessageInvalidAsOptionType_default_instance_;
- class CustomOptionMinIntegerValuesDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<CustomOptionMinIntegerValues>
- _instance;
- } _CustomOptionMinIntegerValues_default_instance_;
- class CustomOptionMaxIntegerValuesDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<CustomOptionMaxIntegerValues>
- _instance;
- } _CustomOptionMaxIntegerValues_default_instance_;
- class CustomOptionOtherValuesDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<CustomOptionOtherValues>
- _instance;
- } _CustomOptionOtherValues_default_instance_;
- class SettingRealsFromPositiveIntsDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<SettingRealsFromPositiveInts>
- _instance;
- } _SettingRealsFromPositiveInts_default_instance_;
- class SettingRealsFromNegativeIntsDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<SettingRealsFromNegativeInts>
- _instance;
- } _SettingRealsFromNegativeInts_default_instance_;
- class ComplexOptionType1DefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<ComplexOptionType1>
- _instance;
- } _ComplexOptionType1_default_instance_;
- class ComplexOptionType2_ComplexOptionType4DefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<ComplexOptionType2_ComplexOptionType4>
- _instance;
- } _ComplexOptionType2_ComplexOptionType4_default_instance_;
- class ComplexOptionType2DefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<ComplexOptionType2>
- _instance;
- } _ComplexOptionType2_default_instance_;
- class ComplexOptionType3_ComplexOptionType5DefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<ComplexOptionType3_ComplexOptionType5>
- _instance;
- } _ComplexOptionType3_ComplexOptionType5_default_instance_;
- class ComplexOptionType3DefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<ComplexOptionType3>
- _instance;
- } _ComplexOptionType3_default_instance_;
- class ComplexOpt6DefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<ComplexOpt6>
- _instance;
- } _ComplexOpt6_default_instance_;
- class VariousComplexOptionsDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<VariousComplexOptions>
- _instance;
- } _VariousComplexOptions_default_instance_;
- class AggregateMessageSetDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<AggregateMessageSet>
- _instance;
- } _AggregateMessageSet_default_instance_;
- class AggregateMessageSetElementDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<AggregateMessageSetElement>
- _instance;
- } _AggregateMessageSetElement_default_instance_;
- class AggregateDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<Aggregate>
- _instance;
- } _Aggregate_default_instance_;
- class AggregateMessageDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<AggregateMessage>
- _instance;
- } _AggregateMessage_default_instance_;
- class NestedOptionType_NestedMessageDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<NestedOptionType_NestedMessage>
- _instance;
- } _NestedOptionType_NestedMessage_default_instance_;
- class NestedOptionTypeDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<NestedOptionType>
- _instance;
- } _NestedOptionType_default_instance_;
- class OldOptionTypeDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<OldOptionType>
- _instance;
- } _OldOptionType_default_instance_;
- class NewOptionTypeDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<NewOptionType>
- _instance;
- } _NewOptionType_default_instance_;
- class TestMessageWithRequiredEnumOptionDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<TestMessageWithRequiredEnumOption>
- _instance;
- } _TestMessageWithRequiredEnumOption_default_instance_;
- } // namespace protobuf_unittest
- namespace protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto {
- static void InitDefaultsTestMessageWithCustomOptions() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_TestMessageWithCustomOptions_default_instance_;
- new (ptr) ::protobuf_unittest::TestMessageWithCustomOptions();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::protobuf_unittest::TestMessageWithCustomOptions::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_TestMessageWithCustomOptions =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTestMessageWithCustomOptions}, {}};
- static void InitDefaultsCustomOptionFooRequest() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_CustomOptionFooRequest_default_instance_;
- new (ptr) ::protobuf_unittest::CustomOptionFooRequest();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::protobuf_unittest::CustomOptionFooRequest::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_CustomOptionFooRequest =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCustomOptionFooRequest}, {}};
- static void InitDefaultsCustomOptionFooResponse() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_CustomOptionFooResponse_default_instance_;
- new (ptr) ::protobuf_unittest::CustomOptionFooResponse();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::protobuf_unittest::CustomOptionFooResponse::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_CustomOptionFooResponse =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCustomOptionFooResponse}, {}};
- static void InitDefaultsCustomOptionFooClientMessage() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_CustomOptionFooClientMessage_default_instance_;
- new (ptr) ::protobuf_unittest::CustomOptionFooClientMessage();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::protobuf_unittest::CustomOptionFooClientMessage::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_CustomOptionFooClientMessage =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCustomOptionFooClientMessage}, {}};
- static void InitDefaultsCustomOptionFooServerMessage() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_CustomOptionFooServerMessage_default_instance_;
- new (ptr) ::protobuf_unittest::CustomOptionFooServerMessage();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::protobuf_unittest::CustomOptionFooServerMessage::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_CustomOptionFooServerMessage =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCustomOptionFooServerMessage}, {}};
- static void InitDefaultsDummyMessageContainingEnum() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_DummyMessageContainingEnum_default_instance_;
- new (ptr) ::protobuf_unittest::DummyMessageContainingEnum();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::protobuf_unittest::DummyMessageContainingEnum::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_DummyMessageContainingEnum =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsDummyMessageContainingEnum}, {}};
- static void InitDefaultsDummyMessageInvalidAsOptionType() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_DummyMessageInvalidAsOptionType_default_instance_;
- new (ptr) ::protobuf_unittest::DummyMessageInvalidAsOptionType();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::protobuf_unittest::DummyMessageInvalidAsOptionType::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_DummyMessageInvalidAsOptionType =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsDummyMessageInvalidAsOptionType}, {}};
- static void InitDefaultsCustomOptionMinIntegerValues() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_CustomOptionMinIntegerValues_default_instance_;
- new (ptr) ::protobuf_unittest::CustomOptionMinIntegerValues();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::protobuf_unittest::CustomOptionMinIntegerValues::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_CustomOptionMinIntegerValues =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCustomOptionMinIntegerValues}, {}};
- static void InitDefaultsCustomOptionMaxIntegerValues() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_CustomOptionMaxIntegerValues_default_instance_;
- new (ptr) ::protobuf_unittest::CustomOptionMaxIntegerValues();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::protobuf_unittest::CustomOptionMaxIntegerValues::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_CustomOptionMaxIntegerValues =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCustomOptionMaxIntegerValues}, {}};
- static void InitDefaultsCustomOptionOtherValues() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_CustomOptionOtherValues_default_instance_;
- new (ptr) ::protobuf_unittest::CustomOptionOtherValues();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::protobuf_unittest::CustomOptionOtherValues::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_CustomOptionOtherValues =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCustomOptionOtherValues}, {}};
- static void InitDefaultsSettingRealsFromPositiveInts() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_SettingRealsFromPositiveInts_default_instance_;
- new (ptr) ::protobuf_unittest::SettingRealsFromPositiveInts();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::protobuf_unittest::SettingRealsFromPositiveInts::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_SettingRealsFromPositiveInts =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSettingRealsFromPositiveInts}, {}};
- static void InitDefaultsSettingRealsFromNegativeInts() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_SettingRealsFromNegativeInts_default_instance_;
- new (ptr) ::protobuf_unittest::SettingRealsFromNegativeInts();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::protobuf_unittest::SettingRealsFromNegativeInts::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_SettingRealsFromNegativeInts =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSettingRealsFromNegativeInts}, {}};
- static void InitDefaultsComplexOptionType1() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_ComplexOptionType1_default_instance_;
- new (ptr) ::protobuf_unittest::ComplexOptionType1();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::protobuf_unittest::ComplexOptionType1::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_ComplexOptionType1 =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsComplexOptionType1}, {}};
- static void InitDefaultsComplexOptionType2_ComplexOptionType4() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_ComplexOptionType2_ComplexOptionType4_default_instance_;
- new (ptr) ::protobuf_unittest::ComplexOptionType2_ComplexOptionType4();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::protobuf_unittest::ComplexOptionType2_ComplexOptionType4::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_ComplexOptionType2_ComplexOptionType4 =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsComplexOptionType2_ComplexOptionType4}, {}};
- static void InitDefaultsComplexOptionType2() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_ComplexOptionType2_default_instance_;
- new (ptr) ::protobuf_unittest::ComplexOptionType2();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::protobuf_unittest::ComplexOptionType2::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<2> scc_info_ComplexOptionType2 =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsComplexOptionType2}, {
- &protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::scc_info_ComplexOptionType1.base,
- &protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::scc_info_ComplexOptionType2_ComplexOptionType4.base,}};
- static void InitDefaultsComplexOptionType3_ComplexOptionType5() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_ComplexOptionType3_ComplexOptionType5_default_instance_;
- new (ptr) ::protobuf_unittest::ComplexOptionType3_ComplexOptionType5();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::protobuf_unittest::ComplexOptionType3_ComplexOptionType5::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_ComplexOptionType3_ComplexOptionType5 =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsComplexOptionType3_ComplexOptionType5}, {}};
- static void InitDefaultsComplexOptionType3() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_ComplexOptionType3_default_instance_;
- new (ptr) ::protobuf_unittest::ComplexOptionType3();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::protobuf_unittest::ComplexOptionType3::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<1> scc_info_ComplexOptionType3 =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsComplexOptionType3}, {
- &protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::scc_info_ComplexOptionType3_ComplexOptionType5.base,}};
- static void InitDefaultsComplexOpt6() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_ComplexOpt6_default_instance_;
- new (ptr) ::protobuf_unittest::ComplexOpt6();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::protobuf_unittest::ComplexOpt6::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_ComplexOpt6 =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsComplexOpt6}, {}};
- static void InitDefaultsVariousComplexOptions() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_VariousComplexOptions_default_instance_;
- new (ptr) ::protobuf_unittest::VariousComplexOptions();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::protobuf_unittest::VariousComplexOptions::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_VariousComplexOptions =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsVariousComplexOptions}, {}};
- static void InitDefaultsAggregateMessageSet() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_AggregateMessageSet_default_instance_;
- new (ptr) ::protobuf_unittest::AggregateMessageSet();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::protobuf_unittest::AggregateMessageSet::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_AggregateMessageSet =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsAggregateMessageSet}, {}};
- static void InitDefaultsAggregateMessageSetElement() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_AggregateMessageSetElement_default_instance_;
- new (ptr) ::protobuf_unittest::AggregateMessageSetElement();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::protobuf_unittest::AggregateMessageSetElement::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_AggregateMessageSetElement =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsAggregateMessageSetElement}, {}};
- static void InitDefaultsAggregate() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_Aggregate_default_instance_;
- new (ptr) ::protobuf_unittest::Aggregate();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::protobuf_unittest::Aggregate::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<2> scc_info_Aggregate =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsAggregate}, {
- &protobuf_google_2fprotobuf_2fdescriptor_2eproto::scc_info_FileOptions.base,
- &protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::scc_info_AggregateMessageSet.base,}};
- static void InitDefaultsAggregateMessage() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_AggregateMessage_default_instance_;
- new (ptr) ::protobuf_unittest::AggregateMessage();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::protobuf_unittest::AggregateMessage::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_AggregateMessage =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsAggregateMessage}, {}};
- static void InitDefaultsNestedOptionType_NestedMessage() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_NestedOptionType_NestedMessage_default_instance_;
- new (ptr) ::protobuf_unittest::NestedOptionType_NestedMessage();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::protobuf_unittest::NestedOptionType_NestedMessage::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_NestedOptionType_NestedMessage =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsNestedOptionType_NestedMessage}, {}};
- static void InitDefaultsNestedOptionType() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_NestedOptionType_default_instance_;
- new (ptr) ::protobuf_unittest::NestedOptionType();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::protobuf_unittest::NestedOptionType::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_NestedOptionType =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsNestedOptionType}, {}};
- static void InitDefaultsOldOptionType() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_OldOptionType_default_instance_;
- new (ptr) ::protobuf_unittest::OldOptionType();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::protobuf_unittest::OldOptionType::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_OldOptionType =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsOldOptionType}, {}};
- static void InitDefaultsNewOptionType() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_NewOptionType_default_instance_;
- new (ptr) ::protobuf_unittest::NewOptionType();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::protobuf_unittest::NewOptionType::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_NewOptionType =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsNewOptionType}, {}};
- static void InitDefaultsTestMessageWithRequiredEnumOption() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_TestMessageWithRequiredEnumOption_default_instance_;
- new (ptr) ::protobuf_unittest::TestMessageWithRequiredEnumOption();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::protobuf_unittest::TestMessageWithRequiredEnumOption::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_TestMessageWithRequiredEnumOption =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTestMessageWithRequiredEnumOption}, {}};
- void InitDefaults() {
- ::google::protobuf::internal::InitSCC(&scc_info_TestMessageWithCustomOptions.base);
- ::google::protobuf::internal::InitSCC(&scc_info_CustomOptionFooRequest.base);
- ::google::protobuf::internal::InitSCC(&scc_info_CustomOptionFooResponse.base);
- ::google::protobuf::internal::InitSCC(&scc_info_CustomOptionFooClientMessage.base);
- ::google::protobuf::internal::InitSCC(&scc_info_CustomOptionFooServerMessage.base);
- ::google::protobuf::internal::InitSCC(&scc_info_DummyMessageContainingEnum.base);
- ::google::protobuf::internal::InitSCC(&scc_info_DummyMessageInvalidAsOptionType.base);
- ::google::protobuf::internal::InitSCC(&scc_info_CustomOptionMinIntegerValues.base);
- ::google::protobuf::internal::InitSCC(&scc_info_CustomOptionMaxIntegerValues.base);
- ::google::protobuf::internal::InitSCC(&scc_info_CustomOptionOtherValues.base);
- ::google::protobuf::internal::InitSCC(&scc_info_SettingRealsFromPositiveInts.base);
- ::google::protobuf::internal::InitSCC(&scc_info_SettingRealsFromNegativeInts.base);
- ::google::protobuf::internal::InitSCC(&scc_info_ComplexOptionType1.base);
- ::google::protobuf::internal::InitSCC(&scc_info_ComplexOptionType2_ComplexOptionType4.base);
- ::google::protobuf::internal::InitSCC(&scc_info_ComplexOptionType2.base);
- ::google::protobuf::internal::InitSCC(&scc_info_ComplexOptionType3_ComplexOptionType5.base);
- ::google::protobuf::internal::InitSCC(&scc_info_ComplexOptionType3.base);
- ::google::protobuf::internal::InitSCC(&scc_info_ComplexOpt6.base);
- ::google::protobuf::internal::InitSCC(&scc_info_VariousComplexOptions.base);
- ::google::protobuf::internal::InitSCC(&scc_info_AggregateMessageSet.base);
- ::google::protobuf::internal::InitSCC(&scc_info_AggregateMessageSetElement.base);
- ::google::protobuf::internal::InitSCC(&scc_info_Aggregate.base);
- ::google::protobuf::internal::InitSCC(&scc_info_AggregateMessage.base);
- ::google::protobuf::internal::InitSCC(&scc_info_NestedOptionType_NestedMessage.base);
- ::google::protobuf::internal::InitSCC(&scc_info_NestedOptionType.base);
- ::google::protobuf::internal::InitSCC(&scc_info_OldOptionType.base);
- ::google::protobuf::internal::InitSCC(&scc_info_NewOptionType.base);
- ::google::protobuf::internal::InitSCC(&scc_info_TestMessageWithRequiredEnumOption.base);
- }
- ::google::protobuf::Metadata file_level_metadata[28];
- const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[7];
- const ::google::protobuf::ServiceDescriptor* file_level_service_descriptors[2];
- const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMessageWithCustomOptions, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMessageWithCustomOptions, _internal_metadata_),
- ~0u, // no _extensions_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMessageWithCustomOptions, _oneof_case_[0]),
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMessageWithCustomOptions, field1_),
- offsetof(::protobuf_unittest::TestMessageWithCustomOptionsDefaultTypeInternal, oneof_field_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMessageWithCustomOptions, AnOneof_),
- 0,
- ~0u,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::CustomOptionFooRequest, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::CustomOptionFooRequest, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::CustomOptionFooResponse, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::CustomOptionFooResponse, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::CustomOptionFooClientMessage, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::CustomOptionFooClientMessage, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::CustomOptionFooServerMessage, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::CustomOptionFooServerMessage, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::DummyMessageContainingEnum, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::DummyMessageContainingEnum, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::DummyMessageInvalidAsOptionType, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::DummyMessageInvalidAsOptionType, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::CustomOptionMinIntegerValues, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::CustomOptionMinIntegerValues, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::CustomOptionMaxIntegerValues, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::CustomOptionMaxIntegerValues, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::CustomOptionOtherValues, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::CustomOptionOtherValues, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::SettingRealsFromPositiveInts, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::SettingRealsFromPositiveInts, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::SettingRealsFromNegativeInts, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::SettingRealsFromNegativeInts, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::ComplexOptionType1, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::ComplexOptionType1, _internal_metadata_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::ComplexOptionType1, _extensions_),
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::ComplexOptionType1, foo_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::ComplexOptionType1, foo2_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::ComplexOptionType1, foo3_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::ComplexOptionType1, foo4_),
- 0,
- 1,
- 2,
- ~0u,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::ComplexOptionType2_ComplexOptionType4, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::ComplexOptionType2_ComplexOptionType4, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::ComplexOptionType2_ComplexOptionType4, waldo_),
- 0,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::ComplexOptionType2, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::ComplexOptionType2, _internal_metadata_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::ComplexOptionType2, _extensions_),
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::ComplexOptionType2, bar_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::ComplexOptionType2, baz_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::ComplexOptionType2, fred_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::ComplexOptionType2, barney_),
- 0,
- 2,
- 1,
- ~0u,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::ComplexOptionType3_ComplexOptionType5, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::ComplexOptionType3_ComplexOptionType5, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::ComplexOptionType3_ComplexOptionType5, plugh_),
- 0,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::ComplexOptionType3, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::ComplexOptionType3, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::ComplexOptionType3, qux_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::ComplexOptionType3, complexoptiontype5_),
- 1,
- 0,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::ComplexOpt6, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::ComplexOpt6, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::ComplexOpt6, xyzzy_),
- 0,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::VariousComplexOptions, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::VariousComplexOptions, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::AggregateMessageSet, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::AggregateMessageSet, _internal_metadata_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::AggregateMessageSet, _extensions_),
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::AggregateMessageSetElement, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::AggregateMessageSetElement, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::AggregateMessageSetElement, s_),
- 0,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::Aggregate, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::Aggregate, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::Aggregate, i_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::Aggregate, s_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::Aggregate, sub_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::Aggregate, file_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::Aggregate, mset_),
- 4,
- 0,
- 1,
- 2,
- 3,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::AggregateMessage, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::AggregateMessage, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::AggregateMessage, fieldname_),
- 0,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::NestedOptionType_NestedMessage, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::NestedOptionType_NestedMessage, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::NestedOptionType_NestedMessage, nested_field_),
- 0,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::NestedOptionType, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::NestedOptionType, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::OldOptionType, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::OldOptionType, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::OldOptionType, value_),
- 0,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::NewOptionType, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::NewOptionType, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::NewOptionType, value_),
- 0,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMessageWithRequiredEnumOption, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMessageWithRequiredEnumOption, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- };
- static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- { 0, 8, sizeof(::protobuf_unittest::TestMessageWithCustomOptions)},
- { 10, 15, sizeof(::protobuf_unittest::CustomOptionFooRequest)},
- { 15, 20, sizeof(::protobuf_unittest::CustomOptionFooResponse)},
- { 20, 25, sizeof(::protobuf_unittest::CustomOptionFooClientMessage)},
- { 25, 30, sizeof(::protobuf_unittest::CustomOptionFooServerMessage)},
- { 30, 35, sizeof(::protobuf_unittest::DummyMessageContainingEnum)},
- { 35, 40, sizeof(::protobuf_unittest::DummyMessageInvalidAsOptionType)},
- { 40, 45, sizeof(::protobuf_unittest::CustomOptionMinIntegerValues)},
- { 45, 50, sizeof(::protobuf_unittest::CustomOptionMaxIntegerValues)},
- { 50, 55, sizeof(::protobuf_unittest::CustomOptionOtherValues)},
- { 55, 60, sizeof(::protobuf_unittest::SettingRealsFromPositiveInts)},
- { 60, 65, sizeof(::protobuf_unittest::SettingRealsFromNegativeInts)},
- { 65, 74, sizeof(::protobuf_unittest::ComplexOptionType1)},
- { 78, 84, sizeof(::protobuf_unittest::ComplexOptionType2_ComplexOptionType4)},
- { 85, 94, sizeof(::protobuf_unittest::ComplexOptionType2)},
- { 98, 104, sizeof(::protobuf_unittest::ComplexOptionType3_ComplexOptionType5)},
- { 105, 112, sizeof(::protobuf_unittest::ComplexOptionType3)},
- { 114, 120, sizeof(::protobuf_unittest::ComplexOpt6)},
- { 121, 126, sizeof(::protobuf_unittest::VariousComplexOptions)},
- { 126, 131, sizeof(::protobuf_unittest::AggregateMessageSet)},
- { 131, 137, sizeof(::protobuf_unittest::AggregateMessageSetElement)},
- { 138, 148, sizeof(::protobuf_unittest::Aggregate)},
- { 153, 159, sizeof(::protobuf_unittest::AggregateMessage)},
- { 160, 166, sizeof(::protobuf_unittest::NestedOptionType_NestedMessage)},
- { 167, 172, sizeof(::protobuf_unittest::NestedOptionType)},
- { 172, 178, sizeof(::protobuf_unittest::OldOptionType)},
- { 179, 185, sizeof(::protobuf_unittest::NewOptionType)},
- { 186, 191, sizeof(::protobuf_unittest::TestMessageWithRequiredEnumOption)},
- };
- static ::google::protobuf::Message const * const file_default_instances[] = {
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestMessageWithCustomOptions_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_CustomOptionFooRequest_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_CustomOptionFooResponse_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_CustomOptionFooClientMessage_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_CustomOptionFooServerMessage_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_DummyMessageContainingEnum_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_DummyMessageInvalidAsOptionType_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_CustomOptionMinIntegerValues_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_CustomOptionMaxIntegerValues_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_CustomOptionOtherValues_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_SettingRealsFromPositiveInts_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_SettingRealsFromNegativeInts_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_ComplexOptionType1_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_ComplexOptionType2_ComplexOptionType4_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_ComplexOptionType2_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_ComplexOptionType3_ComplexOptionType5_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_ComplexOptionType3_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_ComplexOpt6_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_VariousComplexOptions_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_AggregateMessageSet_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_AggregateMessageSetElement_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_Aggregate_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_AggregateMessage_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_NestedOptionType_NestedMessage_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_NestedOptionType_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_OldOptionType_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_NewOptionType_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestMessageWithRequiredEnumOption_default_instance_),
- };
- void protobuf_AssignDescriptors() {
- AddDescriptors();
- AssignDescriptors(
- "google/protobuf/unittest_custom_options.proto", schemas, file_default_instances, TableStruct::offsets,
- file_level_metadata, file_level_enum_descriptors, file_level_service_descriptors);
- }
- void protobuf_AssignDescriptorsOnce() {
- static ::google::protobuf::internal::once_flag once;
- ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
- }
- void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
- void protobuf_RegisterTypes(const ::std::string&) {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 28);
- }
- void AddDescriptorsImpl() {
- InitDefaults();
- static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- "\n-google/protobuf/unittest_custom_option"
- "s.proto\022\021protobuf_unittest\032 google/proto"
- "buf/descriptor.proto\"\277\001\n\034TestMessageWith"
- "CustomOptions\022\036\n\006field1\030\001 \001(\tB\016\010\001\301\340\303\035-\341u"
- "\n\002\000\000\000\022\025\n\013oneof_field\030\002 \001(\005H\000\";\n\006AnEnum\022\017"
- "\n\013ANENUM_VAL1\020\001\022\026\n\013ANENUM_VAL2\020\002\032\005\260\206\372\005{\032"
- "\010\305\366\311\035\353\374\377\377:\020\010\000\340\351\302\035\310\377\377\377\377\377\377\377\377\001B\031\n\007AnOneof\022\016"
- "\370\254\303\035\235\377\377\377\377\377\377\377\377\001\"\030\n\026CustomOptionFooRequest"
- "\"\031\n\027CustomOptionFooResponse\"\036\n\034CustomOpt"
- "ionFooClientMessage\"\036\n\034CustomOptionFooSe"
- "rverMessage\"m\n\032DummyMessageContainingEnu"
- "m\"O\n\014TestEnumType\022\032\n\026TEST_OPTION_ENUM_TY"
- "PE1\020\026\022#\n\026TEST_OPTION_ENUM_TYPE2\020\351\377\377\377\377\377\377\377"
- "\377\001\"!\n\037DummyMessageInvalidAsOptionType\"\212\001"
- "\n\034CustomOptionMinIntegerValues:j\320\336\262\035\000\350\306\262"
- "\035\200\200\200\200\370\377\377\377\377\001\260\274\262\035\200\200\200\200\200\200\200\200\200\001\200\223\262\035\000\370\365\260\035\000\200\304\260\035\377"
- "\377\377\377\017\370\227\260\035\377\377\377\377\377\377\377\377\377\001\235\365\257\035\000\000\000\000\221\356\257\035\000\000\000\000\000\000\000\000\255\215"
- "\257\035\000\000\000\200\231\326\250\035\000\000\000\000\000\000\000\200\"\221\001\n\034CustomOptionMaxIn"
- "tegerValues:q\320\336\262\035\001\350\306\262\035\377\377\377\377\007\260\274\262\035\377\377\377\377\377\377\377\377\177"
- "\200\223\262\035\377\377\377\377\017\370\365\260\035\377\377\377\377\377\377\377\377\377\001\200\304\260\035\376\377\377\377\017\370\227\260\035\376\377\377\377"
- "\377\377\377\377\377\001\235\365\257\035\377\377\377\377\221\356\257\035\377\377\377\377\377\377\377\377\255\215\257\035\377\377\377\177\231\326\250\035\377\377"
- "\377\377\377\377\377\177\"n\n\027CustomOptionOtherValues:S\350\306\262\035\234"
- "\377\377\377\377\377\377\377\377\001\365\337\243\035\347\207EA\351\334\242\035\373Y\214B\312\300\363\?\252\334\242\035\016Hello,"
- " \"World\"\262\331\242\035\013Hello\000World\210\331\242\035\351\377\377\377\377\377\377\377\377\001\"4"
- "\n\034SettingRealsFromPositiveInts:\024\365\337\243\035\000\000@A"
- "\351\334\242\035\000\000\000\000\000@c@\"4\n\034SettingRealsFromNegative"
- "Ints:\024\365\337\243\035\000\000@\301\351\334\242\035\000\000\000\000\000@c\300\"U\n\022ComplexOpt"
- "ionType1\022\013\n\003foo\030\001 \001(\005\022\014\n\004foo2\030\002 \001(\005\022\014\n\004f"
- "oo3\030\003 \001(\005\022\014\n\004foo4\030\004 \003(\005*\010\010d\020\200\200\200\200\002\"\213\003\n\022Co"
- "mplexOptionType2\0222\n\003bar\030\001 \001(\0132%.protobuf"
- "_unittest.ComplexOptionType1\022\013\n\003baz\030\002 \001("
- "\005\022F\n\004fred\030\003 \001(\01328.protobuf_unittest.Comp"
- "lexOptionType2.ComplexOptionType4\022H\n\006bar"
- "ney\030\004 \003(\01328.protobuf_unittest.ComplexOpt"
- "ionType2.ComplexOptionType4\032\227\001\n\022ComplexO"
- "ptionType4\022\r\n\005waldo\030\001 \001(\0052r\n\014complex_opt"
- "4\022\037.google.protobuf.MessageOptions\030\212\365\321\003 "
- "\001(\01328.protobuf_unittest.ComplexOptionTyp"
- "e2.ComplexOptionType4*\010\010d\020\200\200\200\200\002\"\234\001\n\022Comp"
- "lexOptionType3\022\013\n\003qux\030\001 \001(\005\022T\n\022complexop"
- "tiontype5\030\002 \001(\n28.protobuf_unittest.Comp"
- "lexOptionType3.ComplexOptionType5\032#\n\022Com"
- "plexOptionType5\022\r\n\005plugh\030\003 \001(\005\"\037\n\013Comple"
- "xOpt6\022\020\n\005xyzzy\030\337\277\317\003 \001(\005\"\361\001\n\025VariousCompl"
- "exOptions:\327\001\242\342\225\035\002\010*\242\342\225\035\006\330\205\236\035\304\002\242\342\225\035\010\222\365\235\035\003"
- "\010\354\006\242\342\225\035\002 c\242\342\225\035\002 X\252\375\220\035\003\020\333\007\252\375\220\035\006\370\346\227\035\216\005\252\375\220\035"
- "\005\n\003\010\347\005\252\375\220\035\010\n\006\330\205\236\035\317\017\252\375\220\035\n\n\010\222\365\235\035\003\010\330\017\252\375\220\035\010\302"
- "\254\227\035\003\010\345\005\252\375\220\035\013\302\254\227\035\006\330\205\236\035\316\017\252\375\220\035\r\302\254\227\035\010\222\365\235\035\003\010\311"
- "\020\322\250\217\035\003\010\263\017\252\375\220\035\005\032\003\010\301\002\252\375\220\035\004\"\002\010e\252\375\220\035\005\"\003\010\324\001\372\336"
- "\220\035\002\010\t\372\336\220\035\004\023\030\026\024\343\334\374\034\370\375\373\034\030\344\334\374\034\"#\n\023Aggregate"
- "MessageSet*\010\010\004\020\377\377\377\377\007:\002\010\001\"\240\001\n\032AggregateMe"
- "ssageSetElement\022\t\n\001s\030\001 \001(\t2w\n\025message_se"
- "t_extension\022&.protobuf_unittest.Aggregat"
- "eMessageSet\030\366\353\256\007 \001(\0132-.protobuf_unittest"
- ".AggregateMessageSetElement\"\375\001\n\tAggregat"
- "e\022\t\n\001i\030\001 \001(\005\022\t\n\001s\030\002 \001(\t\022)\n\003sub\030\003 \001(\0132\034.p"
- "rotobuf_unittest.Aggregate\022*\n\004file\030\004 \001(\013"
- "2\034.google.protobuf.FileOptions\0224\n\004mset\030\005"
- " \001(\0132&.protobuf_unittest.AggregateMessag"
- "eSet2M\n\006nested\022\034.google.protobuf.FileOpt"
- "ions\030\247\321\260\007 \001(\0132\034.protobuf_unittest.Aggreg"
- "ate\"Y\n\020AggregateMessage\022)\n\tfieldname\030\001 \001"
- "(\005B\026\362\241\207;\021\022\017FieldAnnotation:\032\302\321\206;\025\010e\022\021Mes"
- "sageAnnotation\"\311\001\n\020NestedOptionType\032;\n\rN"
- "estedMessage\022\"\n\014nested_field\030\001 \001(\005B\014\301\340\303\035"
- "\352\003\000\000\000\000\000\000:\006\340\351\302\035\351\007\"5\n\nNestedEnum\022\035\n\021NESTED"
- "_ENUM_VALUE\020\001\032\006\260\206\372\005\354\007\032\010\305\366\311\035\353\003\000\0002A\n\020neste"
- "d_extension\022\034.google.protobuf.FileOption"
- "s\030\375\370\342\003 \001(\005B\006\310\213\312\035\355\007\"d\n\rOldOptionType\0228\n\005v"
- "alue\030\001 \002(\0162).protobuf_unittest.OldOption"
- "Type.TestEnum\"\031\n\010TestEnum\022\r\n\tOLD_VALUE\020\000"
- "\"s\n\rNewOptionType\0228\n\005value\030\001 \002(\0162).proto"
- "buf_unittest.NewOptionType.TestEnum\"(\n\010T"
- "estEnum\022\r\n\tOLD_VALUE\020\000\022\r\n\tNEW_VALUE\020\001\"-\n"
- "!TestMessageWithRequiredEnumOption:\010\372\350\374\224"
- "\003\002\010\000*6\n\nMethodOpt1\022\023\n\017METHODOPT1_VAL1\020\001\022"
- "\023\n\017METHODOPT1_VAL2\020\002*M\n\rAggregateEnum\022%\n"
- "\005VALUE\020\001\032\032\312\374\211;\025\022\023EnumValueAnnotation\032\025\222\225"
- "\210;\020\022\016EnumAnnotation2\216\001\n\034TestServiceWithC"
- "ustomOptions\022c\n\003Foo\022).protobuf_unittest."
- "CustomOptionFooRequest\032*.protobuf_unitte"
- "st.CustomOptionFooResponse\"\005\340\372\214\036\002\032\t\220\262\213\036\323"
- "\333\200\313I2\231\001\n\020AggregateService\022k\n\006Method\022#.pr"
- "otobuf_unittest.AggregateMessage\032#.proto"
- "buf_unittest.AggregateMessage\"\027\312\310\226;\022\022\020Me"
- "thodAnnotation\032\030\312\373\216;\023\022\021ServiceAnnotation"
- ":2\n\tfile_opt1\022\034.google.protobuf.FileOpti"
- "ons\030\216\235\330\003 \001(\004:8\n\014message_opt1\022\037.google.pr"
- "otobuf.MessageOptions\030\234\255\330\003 \001(\005:4\n\nfield_"
- "opt1\022\035.google.protobuf.FieldOptions\030\210\274\330\003"
- " \001(\006:8\n\nfield_opt2\022\035.google.protobuf.Fie"
- "ldOptions\030\271\241\331\003 \001(\005:\00242:4\n\noneof_opt1\022\035.g"
- "oogle.protobuf.OneofOptions\030\317\265\330\003 \001(\005:2\n\t"
- "enum_opt1\022\034.google.protobuf.EnumOptions\030"
- "\350\236\331\003 \001(\017:<\n\017enum_value_opt1\022!.google.pro"
- "tobuf.EnumValueOptions\030\346\240_ \001(\005:8\n\014servic"
- "e_opt1\022\037.google.protobuf.ServiceOptions\030"
- "\242\266\341\003 \001(\022:U\n\013method_opt1\022\036.google.protobu"
- "f.MethodOptions\030\254\317\341\003 \001(\0162\035.protobuf_unit"
- "test.MethodOpt1:4\n\010bool_opt\022\037.google.pro"
- "tobuf.MessageOptions\030\352\253\326\003 \001(\010:5\n\tint32_o"
- "pt\022\037.google.protobuf.MessageOptions\030\355\250\326\003"
- " \001(\005:5\n\tint64_opt\022\037.google.protobuf.Mess"
- "ageOptions\030\306\247\326\003 \001(\003:6\n\nuint32_opt\022\037.goog"
- "le.protobuf.MessageOptions\030\260\242\326\003 \001(\r:6\n\nu"
- "int64_opt\022\037.google.protobuf.MessageOptio"
- "ns\030\337\216\326\003 \001(\004:6\n\nsint32_opt\022\037.google.proto"
- "buf.MessageOptions\030\300\210\326\003 \001(\021:6\n\nsint64_op"
- "t\022\037.google.protobuf.MessageOptions\030\377\202\326\003 "
- "\001(\022:7\n\013fixed32_opt\022\037.google.protobuf.Mes"
- "sageOptions\030\323\376\325\003 \001(\007:7\n\013fixed64_opt\022\037.go"
- "ogle.protobuf.MessageOptions\030\342\375\325\003 \001(\006:8\n"
- "\014sfixed32_opt\022\037.google.protobuf.MessageO"
- "ptions\030\325\361\325\003 \001(\017:8\n\014sfixed64_opt\022\037.google"
- ".protobuf.MessageOptions\030\343\212\325\003 \001(\020:5\n\tflo"
- "at_opt\022\037.google.protobuf.MessageOptions\030"
- "\376\273\324\003 \001(\002:6\n\ndouble_opt\022\037.google.protobuf"
- ".MessageOptions\030\315\253\324\003 \001(\001:6\n\nstring_opt\022\037"
- ".google.protobuf.MessageOptions\030\305\253\324\003 \001(\t"
- ":5\n\tbytes_opt\022\037.google.protobuf.MessageO"
- "ptions\030\226\253\324\003 \001(\014:p\n\010enum_opt\022\037.google.pro"
- "tobuf.MessageOptions\030\221\253\324\003 \001(\0162:.protobuf"
- "_unittest.DummyMessageContainingEnum.Tes"
- "tEnumType:p\n\020message_type_opt\022\037.google.p"
- "rotobuf.MessageOptions\030\257\362\323\003 \001(\01322.protob"
- "uf_unittest.DummyMessageInvalidAsOptionT"
- "ype:6\n\004quux\022%.protobuf_unittest.ComplexO"
- "ptionType1\030\333\340\323\003 \001(\005:^\n\005corge\022%.protobuf_"
- "unittest.ComplexOptionType1\030\322\336\323\003 \001(\0132%.p"
- "rotobuf_unittest.ComplexOptionType3:8\n\006g"
- "rault\022%.protobuf_unittest.ComplexOptionT"
- "ype2\030\357\374\322\003 \001(\005:_\n\006garply\022%.protobuf_unitt"
- "est.ComplexOptionType2\030\310\365\322\003 \001(\0132%.protob"
- "uf_unittest.ComplexOptionType1:_\n\014comple"
- "x_opt1\022\037.google.protobuf.MessageOptions\030"
- "\244\334\322\003 \001(\0132%.protobuf_unittest.ComplexOpti"
- "onType1:_\n\014complex_opt2\022\037.google.protobu"
- "f.MessageOptions\030\325\217\322\003 \001(\0132%.protobuf_uni"
- "ttest.ComplexOptionType2:_\n\014complex_opt3"
- "\022\037.google.protobuf.MessageOptions\030\357\213\322\003 \001"
- "(\0132%.protobuf_unittest.ComplexOptionType"
- "3:W\n\013complexopt6\022\037.google.protobuf.Messa"
- "geOptions\030\314\313\317\003 \001(\n2\036.protobuf_unittest.C"
- "omplexOpt6:N\n\007fileopt\022\034.google.protobuf."
- "FileOptions\030\317\335\260\007 \001(\0132\034.protobuf_unittest"
- ".Aggregate:P\n\006msgopt\022\037.google.protobuf.M"
- "essageOptions\030\230\352\260\007 \001(\0132\034.protobuf_unitte"
- "st.Aggregate:P\n\010fieldopt\022\035.google.protob"
- "uf.FieldOptions\030\236\364\260\007 \001(\0132\034.protobuf_unit"
- "test.Aggregate:N\n\007enumopt\022\034.google.proto"
- "buf.EnumOptions\030\322\202\261\007 \001(\0132\034.protobuf_unit"
- "test.Aggregate:V\n\nenumvalopt\022!.google.pr"
- "otobuf.EnumValueOptions\030\311\237\261\007 \001(\0132\034.proto"
- "buf_unittest.Aggregate:T\n\nserviceopt\022\037.g"
- "oogle.protobuf.ServiceOptions\030\271\357\261\007 \001(\0132\034"
- ".protobuf_unittest.Aggregate:R\n\tmethodop"
- "t\022\036.google.protobuf.MethodOptions\030\211\351\262\007 \001"
- "(\0132\034.protobuf_unittest.Aggregate:_\n\021requ"
- "ired_enum_opt\022\037.google.protobuf.MessageO"
- "ptions\030\217\315\3172 \001(\0132 .protobuf_unittest.OldO"
- "ptionTypeB\207\001\200\001\001\210\001\001\220\001\001\360\350\301\035\352\255\300\345$\372\354\205;p\010d\022\016F"
- "ileAnnotation\032\026\022\024NestedFileAnnotation\"\036\372"
- "\354\205;\031\022\027FileExtensionAnnotation*$\013\020\366\353\256\007\032\033\n"
- "\031EmbeddedMessageSetElement\014"
- };
- ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
- descriptor, 6547);
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
- "google/protobuf/unittest_custom_options.proto", &protobuf_RegisterTypes);
- ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::AddDescriptors();
- }
- void AddDescriptors() {
- static ::google::protobuf::internal::once_flag once;
- ::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
- }
- // Force AddDescriptors() to be called at dynamic initialization time.
- struct StaticDescriptorInitializer {
- StaticDescriptorInitializer() {
- AddDescriptors();
- }
- } static_descriptor_initializer;
- } // namespace protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto
- namespace protobuf_unittest {
- const ::google::protobuf::EnumDescriptor* TestMessageWithCustomOptions_AnEnum_descriptor() {
- protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::protobuf_AssignDescriptorsOnce();
- return protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::file_level_enum_descriptors[0];
- }
- bool TestMessageWithCustomOptions_AnEnum_IsValid(int value) {
- switch (value) {
- case 1:
- case 2:
- return true;
- default:
- return false;
- }
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const TestMessageWithCustomOptions_AnEnum TestMessageWithCustomOptions::ANENUM_VAL1;
- const TestMessageWithCustomOptions_AnEnum TestMessageWithCustomOptions::ANENUM_VAL2;
- const TestMessageWithCustomOptions_AnEnum TestMessageWithCustomOptions::AnEnum_MIN;
- const TestMessageWithCustomOptions_AnEnum TestMessageWithCustomOptions::AnEnum_MAX;
- const int TestMessageWithCustomOptions::AnEnum_ARRAYSIZE;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- const ::google::protobuf::EnumDescriptor* DummyMessageContainingEnum_TestEnumType_descriptor() {
- protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::protobuf_AssignDescriptorsOnce();
- return protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::file_level_enum_descriptors[1];
- }
- bool DummyMessageContainingEnum_TestEnumType_IsValid(int value) {
- switch (value) {
- case -23:
- case 22:
- return true;
- default:
- return false;
- }
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const DummyMessageContainingEnum_TestEnumType DummyMessageContainingEnum::TEST_OPTION_ENUM_TYPE1;
- const DummyMessageContainingEnum_TestEnumType DummyMessageContainingEnum::TEST_OPTION_ENUM_TYPE2;
- const DummyMessageContainingEnum_TestEnumType DummyMessageContainingEnum::TestEnumType_MIN;
- const DummyMessageContainingEnum_TestEnumType DummyMessageContainingEnum::TestEnumType_MAX;
- const int DummyMessageContainingEnum::TestEnumType_ARRAYSIZE;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- const ::google::protobuf::EnumDescriptor* NestedOptionType_NestedEnum_descriptor() {
- protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::protobuf_AssignDescriptorsOnce();
- return protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::file_level_enum_descriptors[2];
- }
- bool NestedOptionType_NestedEnum_IsValid(int value) {
- switch (value) {
- case 1:
- return true;
- default:
- return false;
- }
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const NestedOptionType_NestedEnum NestedOptionType::NESTED_ENUM_VALUE;
- const NestedOptionType_NestedEnum NestedOptionType::NestedEnum_MIN;
- const NestedOptionType_NestedEnum NestedOptionType::NestedEnum_MAX;
- const int NestedOptionType::NestedEnum_ARRAYSIZE;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- const ::google::protobuf::EnumDescriptor* OldOptionType_TestEnum_descriptor() {
- protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::protobuf_AssignDescriptorsOnce();
- return protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::file_level_enum_descriptors[3];
- }
- bool OldOptionType_TestEnum_IsValid(int value) {
- switch (value) {
- case 0:
- return true;
- default:
- return false;
- }
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const OldOptionType_TestEnum OldOptionType::OLD_VALUE;
- const OldOptionType_TestEnum OldOptionType::TestEnum_MIN;
- const OldOptionType_TestEnum OldOptionType::TestEnum_MAX;
- const int OldOptionType::TestEnum_ARRAYSIZE;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- const ::google::protobuf::EnumDescriptor* NewOptionType_TestEnum_descriptor() {
- protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::protobuf_AssignDescriptorsOnce();
- return protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::file_level_enum_descriptors[4];
- }
- bool NewOptionType_TestEnum_IsValid(int value) {
- switch (value) {
- case 0:
- case 1:
- return true;
- default:
- return false;
- }
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const NewOptionType_TestEnum NewOptionType::OLD_VALUE;
- const NewOptionType_TestEnum NewOptionType::NEW_VALUE;
- const NewOptionType_TestEnum NewOptionType::TestEnum_MIN;
- const NewOptionType_TestEnum NewOptionType::TestEnum_MAX;
- const int NewOptionType::TestEnum_ARRAYSIZE;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- const ::google::protobuf::EnumDescriptor* MethodOpt1_descriptor() {
- protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::protobuf_AssignDescriptorsOnce();
- return protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::file_level_enum_descriptors[5];
- }
- bool MethodOpt1_IsValid(int value) {
- switch (value) {
- case 1:
- case 2:
- return true;
- default:
- return false;
- }
- }
- const ::google::protobuf::EnumDescriptor* AggregateEnum_descriptor() {
- protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::protobuf_AssignDescriptorsOnce();
- return protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::file_level_enum_descriptors[6];
- }
- bool AggregateEnum_IsValid(int value) {
- switch (value) {
- case 1:
- return true;
- default:
- return false;
- }
- }
- // ===================================================================
- void TestMessageWithCustomOptions::InitAsDefaultInstance() {
- ::protobuf_unittest::_TestMessageWithCustomOptions_default_instance_.oneof_field_ = 0;
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int TestMessageWithCustomOptions::kField1FieldNumber;
- const int TestMessageWithCustomOptions::kOneofFieldFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- TestMessageWithCustomOptions::TestMessageWithCustomOptions()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::scc_info_TestMessageWithCustomOptions.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:protobuf_unittest.TestMessageWithCustomOptions)
- }
- TestMessageWithCustomOptions::TestMessageWithCustomOptions(const TestMessageWithCustomOptions& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- field1_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.has_field1()) {
- field1_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.field1_);
- }
- clear_has_AnOneof();
- switch (from.AnOneof_case()) {
- case kOneofField: {
- set_oneof_field(from.oneof_field());
- break;
- }
- case ANONEOF_NOT_SET: {
- break;
- }
- }
- // @@protoc_insertion_point(copy_constructor:protobuf_unittest.TestMessageWithCustomOptions)
- }
- void TestMessageWithCustomOptions::SharedCtor() {
- field1_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- clear_has_AnOneof();
- }
- TestMessageWithCustomOptions::~TestMessageWithCustomOptions() {
- // @@protoc_insertion_point(destructor:protobuf_unittest.TestMessageWithCustomOptions)
- SharedDtor();
- }
- void TestMessageWithCustomOptions::SharedDtor() {
- field1_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (has_AnOneof()) {
- clear_AnOneof();
- }
- }
- void TestMessageWithCustomOptions::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* TestMessageWithCustomOptions::descriptor() {
- ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const TestMessageWithCustomOptions& TestMessageWithCustomOptions::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::scc_info_TestMessageWithCustomOptions.base);
- return *internal_default_instance();
- }
- void TestMessageWithCustomOptions::clear_AnOneof() {
- // @@protoc_insertion_point(one_of_clear_start:protobuf_unittest.TestMessageWithCustomOptions)
- switch (AnOneof_case()) {
- case kOneofField: {
- // No need to clear
- break;
- }
- case ANONEOF_NOT_SET: {
- break;
- }
- }
- _oneof_case_[0] = ANONEOF_NOT_SET;
- }
- void TestMessageWithCustomOptions::Clear() {
- // @@protoc_insertion_point(message_clear_start:protobuf_unittest.TestMessageWithCustomOptions)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- if (cached_has_bits & 0x00000001u) {
- field1_.ClearNonDefaultToEmptyNoArena();
- }
- clear_AnOneof();
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool TestMessageWithCustomOptions::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:protobuf_unittest.TestMessageWithCustomOptions)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // optional string field1 = 1 [ctype = CORD, (.protobuf_unittest.field_opt1) = 8765432109];
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_field1()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->field1().data(), static_cast<int>(this->field1().length()),
- ::google::protobuf::internal::WireFormat::PARSE,
- "protobuf_unittest.TestMessageWithCustomOptions.field1");
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional int32 oneof_field = 2;
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
- clear_AnOneof();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &AnOneof_.oneof_field_)));
- set_has_oneof_field();
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:protobuf_unittest.TestMessageWithCustomOptions)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:protobuf_unittest.TestMessageWithCustomOptions)
- return false;
- #undef DO_
- }
- void TestMessageWithCustomOptions::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:protobuf_unittest.TestMessageWithCustomOptions)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional string field1 = 1 [ctype = CORD, (.protobuf_unittest.field_opt1) = 8765432109];
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->field1().data(), static_cast<int>(this->field1().length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "protobuf_unittest.TestMessageWithCustomOptions.field1");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 1, this->field1(), output);
- }
- // optional int32 oneof_field = 2;
- if (has_oneof_field()) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->oneof_field(), output);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:protobuf_unittest.TestMessageWithCustomOptions)
- }
- ::google::protobuf::uint8* TestMessageWithCustomOptions::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:protobuf_unittest.TestMessageWithCustomOptions)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional string field1 = 1 [ctype = CORD, (.protobuf_unittest.field_opt1) = 8765432109];
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->field1().data(), static_cast<int>(this->field1().length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "protobuf_unittest.TestMessageWithCustomOptions.field1");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 1, this->field1(), target);
- }
- // optional int32 oneof_field = 2;
- if (has_oneof_field()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->oneof_field(), target);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf_unittest.TestMessageWithCustomOptions)
- return target;
- }
- size_t TestMessageWithCustomOptions::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:protobuf_unittest.TestMessageWithCustomOptions)
- size_t total_size = 0;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- // optional string field1 = 1 [ctype = CORD, (.protobuf_unittest.field_opt1) = 8765432109];
- if (has_field1()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->field1());
- }
- switch (AnOneof_case()) {
- // optional int32 oneof_field = 2;
- case kOneofField: {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->oneof_field());
- break;
- }
- case ANONEOF_NOT_SET: {
- break;
- }
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void TestMessageWithCustomOptions::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:protobuf_unittest.TestMessageWithCustomOptions)
- GOOGLE_DCHECK_NE(&from, this);
- const TestMessageWithCustomOptions* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const TestMessageWithCustomOptions>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:protobuf_unittest.TestMessageWithCustomOptions)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:protobuf_unittest.TestMessageWithCustomOptions)
- MergeFrom(*source);
- }
- }
- void TestMessageWithCustomOptions::MergeFrom(const TestMessageWithCustomOptions& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf_unittest.TestMessageWithCustomOptions)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (from.has_field1()) {
- set_has_field1();
- field1_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.field1_);
- }
- switch (from.AnOneof_case()) {
- case kOneofField: {
- set_oneof_field(from.oneof_field());
- break;
- }
- case ANONEOF_NOT_SET: {
- break;
- }
- }
- }
- void TestMessageWithCustomOptions::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:protobuf_unittest.TestMessageWithCustomOptions)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void TestMessageWithCustomOptions::CopyFrom(const TestMessageWithCustomOptions& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf_unittest.TestMessageWithCustomOptions)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool TestMessageWithCustomOptions::IsInitialized() const {
- return true;
- }
- void TestMessageWithCustomOptions::Swap(TestMessageWithCustomOptions* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void TestMessageWithCustomOptions::InternalSwap(TestMessageWithCustomOptions* other) {
- using std::swap;
- field1_.Swap(&other->field1_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- swap(AnOneof_, other->AnOneof_);
- swap(_oneof_case_[0], other->_oneof_case_[0]);
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata TestMessageWithCustomOptions::GetMetadata() const {
- protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void CustomOptionFooRequest::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- CustomOptionFooRequest::CustomOptionFooRequest()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::scc_info_CustomOptionFooRequest.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:protobuf_unittest.CustomOptionFooRequest)
- }
- CustomOptionFooRequest::CustomOptionFooRequest(const CustomOptionFooRequest& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- // @@protoc_insertion_point(copy_constructor:protobuf_unittest.CustomOptionFooRequest)
- }
- void CustomOptionFooRequest::SharedCtor() {
- }
- CustomOptionFooRequest::~CustomOptionFooRequest() {
- // @@protoc_insertion_point(destructor:protobuf_unittest.CustomOptionFooRequest)
- SharedDtor();
- }
- void CustomOptionFooRequest::SharedDtor() {
- }
- void CustomOptionFooRequest::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* CustomOptionFooRequest::descriptor() {
- ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const CustomOptionFooRequest& CustomOptionFooRequest::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::scc_info_CustomOptionFooRequest.base);
- return *internal_default_instance();
- }
- void CustomOptionFooRequest::Clear() {
- // @@protoc_insertion_point(message_clear_start:protobuf_unittest.CustomOptionFooRequest)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool CustomOptionFooRequest::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:protobuf_unittest.CustomOptionFooRequest)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- }
- success:
- // @@protoc_insertion_point(parse_success:protobuf_unittest.CustomOptionFooRequest)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:protobuf_unittest.CustomOptionFooRequest)
- return false;
- #undef DO_
- }
- void CustomOptionFooRequest::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:protobuf_unittest.CustomOptionFooRequest)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:protobuf_unittest.CustomOptionFooRequest)
- }
- ::google::protobuf::uint8* CustomOptionFooRequest::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:protobuf_unittest.CustomOptionFooRequest)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf_unittest.CustomOptionFooRequest)
- return target;
- }
- size_t CustomOptionFooRequest::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:protobuf_unittest.CustomOptionFooRequest)
- size_t total_size = 0;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void CustomOptionFooRequest::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:protobuf_unittest.CustomOptionFooRequest)
- GOOGLE_DCHECK_NE(&from, this);
- const CustomOptionFooRequest* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const CustomOptionFooRequest>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:protobuf_unittest.CustomOptionFooRequest)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:protobuf_unittest.CustomOptionFooRequest)
- MergeFrom(*source);
- }
- }
- void CustomOptionFooRequest::MergeFrom(const CustomOptionFooRequest& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf_unittest.CustomOptionFooRequest)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- }
- void CustomOptionFooRequest::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:protobuf_unittest.CustomOptionFooRequest)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void CustomOptionFooRequest::CopyFrom(const CustomOptionFooRequest& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf_unittest.CustomOptionFooRequest)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool CustomOptionFooRequest::IsInitialized() const {
- return true;
- }
- void CustomOptionFooRequest::Swap(CustomOptionFooRequest* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void CustomOptionFooRequest::InternalSwap(CustomOptionFooRequest* other) {
- using std::swap;
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata CustomOptionFooRequest::GetMetadata() const {
- protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void CustomOptionFooResponse::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- CustomOptionFooResponse::CustomOptionFooResponse()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::scc_info_CustomOptionFooResponse.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:protobuf_unittest.CustomOptionFooResponse)
- }
- CustomOptionFooResponse::CustomOptionFooResponse(const CustomOptionFooResponse& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- // @@protoc_insertion_point(copy_constructor:protobuf_unittest.CustomOptionFooResponse)
- }
- void CustomOptionFooResponse::SharedCtor() {
- }
- CustomOptionFooResponse::~CustomOptionFooResponse() {
- // @@protoc_insertion_point(destructor:protobuf_unittest.CustomOptionFooResponse)
- SharedDtor();
- }
- void CustomOptionFooResponse::SharedDtor() {
- }
- void CustomOptionFooResponse::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* CustomOptionFooResponse::descriptor() {
- ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const CustomOptionFooResponse& CustomOptionFooResponse::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::scc_info_CustomOptionFooResponse.base);
- return *internal_default_instance();
- }
- void CustomOptionFooResponse::Clear() {
- // @@protoc_insertion_point(message_clear_start:protobuf_unittest.CustomOptionFooResponse)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool CustomOptionFooResponse::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:protobuf_unittest.CustomOptionFooResponse)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- }
- success:
- // @@protoc_insertion_point(parse_success:protobuf_unittest.CustomOptionFooResponse)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:protobuf_unittest.CustomOptionFooResponse)
- return false;
- #undef DO_
- }
- void CustomOptionFooResponse::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:protobuf_unittest.CustomOptionFooResponse)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:protobuf_unittest.CustomOptionFooResponse)
- }
- ::google::protobuf::uint8* CustomOptionFooResponse::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:protobuf_unittest.CustomOptionFooResponse)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf_unittest.CustomOptionFooResponse)
- return target;
- }
- size_t CustomOptionFooResponse::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:protobuf_unittest.CustomOptionFooResponse)
- size_t total_size = 0;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void CustomOptionFooResponse::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:protobuf_unittest.CustomOptionFooResponse)
- GOOGLE_DCHECK_NE(&from, this);
- const CustomOptionFooResponse* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const CustomOptionFooResponse>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:protobuf_unittest.CustomOptionFooResponse)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:protobuf_unittest.CustomOptionFooResponse)
- MergeFrom(*source);
- }
- }
- void CustomOptionFooResponse::MergeFrom(const CustomOptionFooResponse& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf_unittest.CustomOptionFooResponse)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- }
- void CustomOptionFooResponse::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:protobuf_unittest.CustomOptionFooResponse)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void CustomOptionFooResponse::CopyFrom(const CustomOptionFooResponse& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf_unittest.CustomOptionFooResponse)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool CustomOptionFooResponse::IsInitialized() const {
- return true;
- }
- void CustomOptionFooResponse::Swap(CustomOptionFooResponse* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void CustomOptionFooResponse::InternalSwap(CustomOptionFooResponse* other) {
- using std::swap;
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata CustomOptionFooResponse::GetMetadata() const {
- protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void CustomOptionFooClientMessage::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- CustomOptionFooClientMessage::CustomOptionFooClientMessage()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::scc_info_CustomOptionFooClientMessage.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:protobuf_unittest.CustomOptionFooClientMessage)
- }
- CustomOptionFooClientMessage::CustomOptionFooClientMessage(const CustomOptionFooClientMessage& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- // @@protoc_insertion_point(copy_constructor:protobuf_unittest.CustomOptionFooClientMessage)
- }
- void CustomOptionFooClientMessage::SharedCtor() {
- }
- CustomOptionFooClientMessage::~CustomOptionFooClientMessage() {
- // @@protoc_insertion_point(destructor:protobuf_unittest.CustomOptionFooClientMessage)
- SharedDtor();
- }
- void CustomOptionFooClientMessage::SharedDtor() {
- }
- void CustomOptionFooClientMessage::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* CustomOptionFooClientMessage::descriptor() {
- ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const CustomOptionFooClientMessage& CustomOptionFooClientMessage::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::scc_info_CustomOptionFooClientMessage.base);
- return *internal_default_instance();
- }
- void CustomOptionFooClientMessage::Clear() {
- // @@protoc_insertion_point(message_clear_start:protobuf_unittest.CustomOptionFooClientMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool CustomOptionFooClientMessage::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:protobuf_unittest.CustomOptionFooClientMessage)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- }
- success:
- // @@protoc_insertion_point(parse_success:protobuf_unittest.CustomOptionFooClientMessage)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:protobuf_unittest.CustomOptionFooClientMessage)
- return false;
- #undef DO_
- }
- void CustomOptionFooClientMessage::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:protobuf_unittest.CustomOptionFooClientMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:protobuf_unittest.CustomOptionFooClientMessage)
- }
- ::google::protobuf::uint8* CustomOptionFooClientMessage::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:protobuf_unittest.CustomOptionFooClientMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf_unittest.CustomOptionFooClientMessage)
- return target;
- }
- size_t CustomOptionFooClientMessage::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:protobuf_unittest.CustomOptionFooClientMessage)
- size_t total_size = 0;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void CustomOptionFooClientMessage::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:protobuf_unittest.CustomOptionFooClientMessage)
- GOOGLE_DCHECK_NE(&from, this);
- const CustomOptionFooClientMessage* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const CustomOptionFooClientMessage>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:protobuf_unittest.CustomOptionFooClientMessage)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:protobuf_unittest.CustomOptionFooClientMessage)
- MergeFrom(*source);
- }
- }
- void CustomOptionFooClientMessage::MergeFrom(const CustomOptionFooClientMessage& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf_unittest.CustomOptionFooClientMessage)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- }
- void CustomOptionFooClientMessage::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:protobuf_unittest.CustomOptionFooClientMessage)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void CustomOptionFooClientMessage::CopyFrom(const CustomOptionFooClientMessage& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf_unittest.CustomOptionFooClientMessage)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool CustomOptionFooClientMessage::IsInitialized() const {
- return true;
- }
- void CustomOptionFooClientMessage::Swap(CustomOptionFooClientMessage* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void CustomOptionFooClientMessage::InternalSwap(CustomOptionFooClientMessage* other) {
- using std::swap;
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata CustomOptionFooClientMessage::GetMetadata() const {
- protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void CustomOptionFooServerMessage::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- CustomOptionFooServerMessage::CustomOptionFooServerMessage()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::scc_info_CustomOptionFooServerMessage.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:protobuf_unittest.CustomOptionFooServerMessage)
- }
- CustomOptionFooServerMessage::CustomOptionFooServerMessage(const CustomOptionFooServerMessage& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- // @@protoc_insertion_point(copy_constructor:protobuf_unittest.CustomOptionFooServerMessage)
- }
- void CustomOptionFooServerMessage::SharedCtor() {
- }
- CustomOptionFooServerMessage::~CustomOptionFooServerMessage() {
- // @@protoc_insertion_point(destructor:protobuf_unittest.CustomOptionFooServerMessage)
- SharedDtor();
- }
- void CustomOptionFooServerMessage::SharedDtor() {
- }
- void CustomOptionFooServerMessage::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* CustomOptionFooServerMessage::descriptor() {
- ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const CustomOptionFooServerMessage& CustomOptionFooServerMessage::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::scc_info_CustomOptionFooServerMessage.base);
- return *internal_default_instance();
- }
- void CustomOptionFooServerMessage::Clear() {
- // @@protoc_insertion_point(message_clear_start:protobuf_unittest.CustomOptionFooServerMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool CustomOptionFooServerMessage::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:protobuf_unittest.CustomOptionFooServerMessage)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- }
- success:
- // @@protoc_insertion_point(parse_success:protobuf_unittest.CustomOptionFooServerMessage)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:protobuf_unittest.CustomOptionFooServerMessage)
- return false;
- #undef DO_
- }
- void CustomOptionFooServerMessage::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:protobuf_unittest.CustomOptionFooServerMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:protobuf_unittest.CustomOptionFooServerMessage)
- }
- ::google::protobuf::uint8* CustomOptionFooServerMessage::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:protobuf_unittest.CustomOptionFooServerMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf_unittest.CustomOptionFooServerMessage)
- return target;
- }
- size_t CustomOptionFooServerMessage::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:protobuf_unittest.CustomOptionFooServerMessage)
- size_t total_size = 0;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void CustomOptionFooServerMessage::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:protobuf_unittest.CustomOptionFooServerMessage)
- GOOGLE_DCHECK_NE(&from, this);
- const CustomOptionFooServerMessage* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const CustomOptionFooServerMessage>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:protobuf_unittest.CustomOptionFooServerMessage)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:protobuf_unittest.CustomOptionFooServerMessage)
- MergeFrom(*source);
- }
- }
- void CustomOptionFooServerMessage::MergeFrom(const CustomOptionFooServerMessage& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf_unittest.CustomOptionFooServerMessage)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- }
- void CustomOptionFooServerMessage::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:protobuf_unittest.CustomOptionFooServerMessage)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void CustomOptionFooServerMessage::CopyFrom(const CustomOptionFooServerMessage& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf_unittest.CustomOptionFooServerMessage)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool CustomOptionFooServerMessage::IsInitialized() const {
- return true;
- }
- void CustomOptionFooServerMessage::Swap(CustomOptionFooServerMessage* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void CustomOptionFooServerMessage::InternalSwap(CustomOptionFooServerMessage* other) {
- using std::swap;
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata CustomOptionFooServerMessage::GetMetadata() const {
- protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void DummyMessageContainingEnum::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- DummyMessageContainingEnum::DummyMessageContainingEnum()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::scc_info_DummyMessageContainingEnum.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:protobuf_unittest.DummyMessageContainingEnum)
- }
- DummyMessageContainingEnum::DummyMessageContainingEnum(const DummyMessageContainingEnum& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- // @@protoc_insertion_point(copy_constructor:protobuf_unittest.DummyMessageContainingEnum)
- }
- void DummyMessageContainingEnum::SharedCtor() {
- }
- DummyMessageContainingEnum::~DummyMessageContainingEnum() {
- // @@protoc_insertion_point(destructor:protobuf_unittest.DummyMessageContainingEnum)
- SharedDtor();
- }
- void DummyMessageContainingEnum::SharedDtor() {
- }
- void DummyMessageContainingEnum::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* DummyMessageContainingEnum::descriptor() {
- ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const DummyMessageContainingEnum& DummyMessageContainingEnum::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::scc_info_DummyMessageContainingEnum.base);
- return *internal_default_instance();
- }
- void DummyMessageContainingEnum::Clear() {
- // @@protoc_insertion_point(message_clear_start:protobuf_unittest.DummyMessageContainingEnum)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool DummyMessageContainingEnum::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:protobuf_unittest.DummyMessageContainingEnum)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- }
- success:
- // @@protoc_insertion_point(parse_success:protobuf_unittest.DummyMessageContainingEnum)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:protobuf_unittest.DummyMessageContainingEnum)
- return false;
- #undef DO_
- }
- void DummyMessageContainingEnum::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:protobuf_unittest.DummyMessageContainingEnum)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:protobuf_unittest.DummyMessageContainingEnum)
- }
- ::google::protobuf::uint8* DummyMessageContainingEnum::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:protobuf_unittest.DummyMessageContainingEnum)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf_unittest.DummyMessageContainingEnum)
- return target;
- }
- size_t DummyMessageContainingEnum::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:protobuf_unittest.DummyMessageContainingEnum)
- size_t total_size = 0;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void DummyMessageContainingEnum::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:protobuf_unittest.DummyMessageContainingEnum)
- GOOGLE_DCHECK_NE(&from, this);
- const DummyMessageContainingEnum* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const DummyMessageContainingEnum>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:protobuf_unittest.DummyMessageContainingEnum)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:protobuf_unittest.DummyMessageContainingEnum)
- MergeFrom(*source);
- }
- }
- void DummyMessageContainingEnum::MergeFrom(const DummyMessageContainingEnum& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf_unittest.DummyMessageContainingEnum)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- }
- void DummyMessageContainingEnum::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:protobuf_unittest.DummyMessageContainingEnum)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void DummyMessageContainingEnum::CopyFrom(const DummyMessageContainingEnum& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf_unittest.DummyMessageContainingEnum)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool DummyMessageContainingEnum::IsInitialized() const {
- return true;
- }
- void DummyMessageContainingEnum::Swap(DummyMessageContainingEnum* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void DummyMessageContainingEnum::InternalSwap(DummyMessageContainingEnum* other) {
- using std::swap;
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata DummyMessageContainingEnum::GetMetadata() const {
- protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void DummyMessageInvalidAsOptionType::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- DummyMessageInvalidAsOptionType::DummyMessageInvalidAsOptionType()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::scc_info_DummyMessageInvalidAsOptionType.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:protobuf_unittest.DummyMessageInvalidAsOptionType)
- }
- DummyMessageInvalidAsOptionType::DummyMessageInvalidAsOptionType(const DummyMessageInvalidAsOptionType& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- // @@protoc_insertion_point(copy_constructor:protobuf_unittest.DummyMessageInvalidAsOptionType)
- }
- void DummyMessageInvalidAsOptionType::SharedCtor() {
- }
- DummyMessageInvalidAsOptionType::~DummyMessageInvalidAsOptionType() {
- // @@protoc_insertion_point(destructor:protobuf_unittest.DummyMessageInvalidAsOptionType)
- SharedDtor();
- }
- void DummyMessageInvalidAsOptionType::SharedDtor() {
- }
- void DummyMessageInvalidAsOptionType::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* DummyMessageInvalidAsOptionType::descriptor() {
- ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const DummyMessageInvalidAsOptionType& DummyMessageInvalidAsOptionType::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::scc_info_DummyMessageInvalidAsOptionType.base);
- return *internal_default_instance();
- }
- void DummyMessageInvalidAsOptionType::Clear() {
- // @@protoc_insertion_point(message_clear_start:protobuf_unittest.DummyMessageInvalidAsOptionType)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool DummyMessageInvalidAsOptionType::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:protobuf_unittest.DummyMessageInvalidAsOptionType)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- }
- success:
- // @@protoc_insertion_point(parse_success:protobuf_unittest.DummyMessageInvalidAsOptionType)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:protobuf_unittest.DummyMessageInvalidAsOptionType)
- return false;
- #undef DO_
- }
- void DummyMessageInvalidAsOptionType::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:protobuf_unittest.DummyMessageInvalidAsOptionType)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:protobuf_unittest.DummyMessageInvalidAsOptionType)
- }
- ::google::protobuf::uint8* DummyMessageInvalidAsOptionType::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:protobuf_unittest.DummyMessageInvalidAsOptionType)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf_unittest.DummyMessageInvalidAsOptionType)
- return target;
- }
- size_t DummyMessageInvalidAsOptionType::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:protobuf_unittest.DummyMessageInvalidAsOptionType)
- size_t total_size = 0;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void DummyMessageInvalidAsOptionType::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:protobuf_unittest.DummyMessageInvalidAsOptionType)
- GOOGLE_DCHECK_NE(&from, this);
- const DummyMessageInvalidAsOptionType* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const DummyMessageInvalidAsOptionType>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:protobuf_unittest.DummyMessageInvalidAsOptionType)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:protobuf_unittest.DummyMessageInvalidAsOptionType)
- MergeFrom(*source);
- }
- }
- void DummyMessageInvalidAsOptionType::MergeFrom(const DummyMessageInvalidAsOptionType& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf_unittest.DummyMessageInvalidAsOptionType)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- }
- void DummyMessageInvalidAsOptionType::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:protobuf_unittest.DummyMessageInvalidAsOptionType)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void DummyMessageInvalidAsOptionType::CopyFrom(const DummyMessageInvalidAsOptionType& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf_unittest.DummyMessageInvalidAsOptionType)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool DummyMessageInvalidAsOptionType::IsInitialized() const {
- return true;
- }
- void DummyMessageInvalidAsOptionType::Swap(DummyMessageInvalidAsOptionType* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void DummyMessageInvalidAsOptionType::InternalSwap(DummyMessageInvalidAsOptionType* other) {
- using std::swap;
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata DummyMessageInvalidAsOptionType::GetMetadata() const {
- protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void CustomOptionMinIntegerValues::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- CustomOptionMinIntegerValues::CustomOptionMinIntegerValues()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::scc_info_CustomOptionMinIntegerValues.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:protobuf_unittest.CustomOptionMinIntegerValues)
- }
- CustomOptionMinIntegerValues::CustomOptionMinIntegerValues(const CustomOptionMinIntegerValues& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- // @@protoc_insertion_point(copy_constructor:protobuf_unittest.CustomOptionMinIntegerValues)
- }
- void CustomOptionMinIntegerValues::SharedCtor() {
- }
- CustomOptionMinIntegerValues::~CustomOptionMinIntegerValues() {
- // @@protoc_insertion_point(destructor:protobuf_unittest.CustomOptionMinIntegerValues)
- SharedDtor();
- }
- void CustomOptionMinIntegerValues::SharedDtor() {
- }
- void CustomOptionMinIntegerValues::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* CustomOptionMinIntegerValues::descriptor() {
- ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const CustomOptionMinIntegerValues& CustomOptionMinIntegerValues::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::scc_info_CustomOptionMinIntegerValues.base);
- return *internal_default_instance();
- }
- void CustomOptionMinIntegerValues::Clear() {
- // @@protoc_insertion_point(message_clear_start:protobuf_unittest.CustomOptionMinIntegerValues)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool CustomOptionMinIntegerValues::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:protobuf_unittest.CustomOptionMinIntegerValues)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- }
- success:
- // @@protoc_insertion_point(parse_success:protobuf_unittest.CustomOptionMinIntegerValues)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:protobuf_unittest.CustomOptionMinIntegerValues)
- return false;
- #undef DO_
- }
- void CustomOptionMinIntegerValues::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:protobuf_unittest.CustomOptionMinIntegerValues)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:protobuf_unittest.CustomOptionMinIntegerValues)
- }
- ::google::protobuf::uint8* CustomOptionMinIntegerValues::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:protobuf_unittest.CustomOptionMinIntegerValues)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf_unittest.CustomOptionMinIntegerValues)
- return target;
- }
- size_t CustomOptionMinIntegerValues::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:protobuf_unittest.CustomOptionMinIntegerValues)
- size_t total_size = 0;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void CustomOptionMinIntegerValues::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:protobuf_unittest.CustomOptionMinIntegerValues)
- GOOGLE_DCHECK_NE(&from, this);
- const CustomOptionMinIntegerValues* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const CustomOptionMinIntegerValues>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:protobuf_unittest.CustomOptionMinIntegerValues)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:protobuf_unittest.CustomOptionMinIntegerValues)
- MergeFrom(*source);
- }
- }
- void CustomOptionMinIntegerValues::MergeFrom(const CustomOptionMinIntegerValues& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf_unittest.CustomOptionMinIntegerValues)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- }
- void CustomOptionMinIntegerValues::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:protobuf_unittest.CustomOptionMinIntegerValues)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void CustomOptionMinIntegerValues::CopyFrom(const CustomOptionMinIntegerValues& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf_unittest.CustomOptionMinIntegerValues)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool CustomOptionMinIntegerValues::IsInitialized() const {
- return true;
- }
- void CustomOptionMinIntegerValues::Swap(CustomOptionMinIntegerValues* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void CustomOptionMinIntegerValues::InternalSwap(CustomOptionMinIntegerValues* other) {
- using std::swap;
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata CustomOptionMinIntegerValues::GetMetadata() const {
- protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void CustomOptionMaxIntegerValues::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- CustomOptionMaxIntegerValues::CustomOptionMaxIntegerValues()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::scc_info_CustomOptionMaxIntegerValues.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:protobuf_unittest.CustomOptionMaxIntegerValues)
- }
- CustomOptionMaxIntegerValues::CustomOptionMaxIntegerValues(const CustomOptionMaxIntegerValues& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- // @@protoc_insertion_point(copy_constructor:protobuf_unittest.CustomOptionMaxIntegerValues)
- }
- void CustomOptionMaxIntegerValues::SharedCtor() {
- }
- CustomOptionMaxIntegerValues::~CustomOptionMaxIntegerValues() {
- // @@protoc_insertion_point(destructor:protobuf_unittest.CustomOptionMaxIntegerValues)
- SharedDtor();
- }
- void CustomOptionMaxIntegerValues::SharedDtor() {
- }
- void CustomOptionMaxIntegerValues::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* CustomOptionMaxIntegerValues::descriptor() {
- ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const CustomOptionMaxIntegerValues& CustomOptionMaxIntegerValues::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::scc_info_CustomOptionMaxIntegerValues.base);
- return *internal_default_instance();
- }
- void CustomOptionMaxIntegerValues::Clear() {
- // @@protoc_insertion_point(message_clear_start:protobuf_unittest.CustomOptionMaxIntegerValues)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool CustomOptionMaxIntegerValues::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:protobuf_unittest.CustomOptionMaxIntegerValues)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- }
- success:
- // @@protoc_insertion_point(parse_success:protobuf_unittest.CustomOptionMaxIntegerValues)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:protobuf_unittest.CustomOptionMaxIntegerValues)
- return false;
- #undef DO_
- }
- void CustomOptionMaxIntegerValues::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:protobuf_unittest.CustomOptionMaxIntegerValues)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:protobuf_unittest.CustomOptionMaxIntegerValues)
- }
- ::google::protobuf::uint8* CustomOptionMaxIntegerValues::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:protobuf_unittest.CustomOptionMaxIntegerValues)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf_unittest.CustomOptionMaxIntegerValues)
- return target;
- }
- size_t CustomOptionMaxIntegerValues::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:protobuf_unittest.CustomOptionMaxIntegerValues)
- size_t total_size = 0;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void CustomOptionMaxIntegerValues::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:protobuf_unittest.CustomOptionMaxIntegerValues)
- GOOGLE_DCHECK_NE(&from, this);
- const CustomOptionMaxIntegerValues* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const CustomOptionMaxIntegerValues>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:protobuf_unittest.CustomOptionMaxIntegerValues)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:protobuf_unittest.CustomOptionMaxIntegerValues)
- MergeFrom(*source);
- }
- }
- void CustomOptionMaxIntegerValues::MergeFrom(const CustomOptionMaxIntegerValues& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf_unittest.CustomOptionMaxIntegerValues)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- }
- void CustomOptionMaxIntegerValues::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:protobuf_unittest.CustomOptionMaxIntegerValues)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void CustomOptionMaxIntegerValues::CopyFrom(const CustomOptionMaxIntegerValues& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf_unittest.CustomOptionMaxIntegerValues)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool CustomOptionMaxIntegerValues::IsInitialized() const {
- return true;
- }
- void CustomOptionMaxIntegerValues::Swap(CustomOptionMaxIntegerValues* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void CustomOptionMaxIntegerValues::InternalSwap(CustomOptionMaxIntegerValues* other) {
- using std::swap;
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata CustomOptionMaxIntegerValues::GetMetadata() const {
- protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void CustomOptionOtherValues::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- CustomOptionOtherValues::CustomOptionOtherValues()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::scc_info_CustomOptionOtherValues.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:protobuf_unittest.CustomOptionOtherValues)
- }
- CustomOptionOtherValues::CustomOptionOtherValues(const CustomOptionOtherValues& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- // @@protoc_insertion_point(copy_constructor:protobuf_unittest.CustomOptionOtherValues)
- }
- void CustomOptionOtherValues::SharedCtor() {
- }
- CustomOptionOtherValues::~CustomOptionOtherValues() {
- // @@protoc_insertion_point(destructor:protobuf_unittest.CustomOptionOtherValues)
- SharedDtor();
- }
- void CustomOptionOtherValues::SharedDtor() {
- }
- void CustomOptionOtherValues::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* CustomOptionOtherValues::descriptor() {
- ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const CustomOptionOtherValues& CustomOptionOtherValues::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::scc_info_CustomOptionOtherValues.base);
- return *internal_default_instance();
- }
- void CustomOptionOtherValues::Clear() {
- // @@protoc_insertion_point(message_clear_start:protobuf_unittest.CustomOptionOtherValues)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool CustomOptionOtherValues::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:protobuf_unittest.CustomOptionOtherValues)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- }
- success:
- // @@protoc_insertion_point(parse_success:protobuf_unittest.CustomOptionOtherValues)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:protobuf_unittest.CustomOptionOtherValues)
- return false;
- #undef DO_
- }
- void CustomOptionOtherValues::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:protobuf_unittest.CustomOptionOtherValues)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:protobuf_unittest.CustomOptionOtherValues)
- }
- ::google::protobuf::uint8* CustomOptionOtherValues::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:protobuf_unittest.CustomOptionOtherValues)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf_unittest.CustomOptionOtherValues)
- return target;
- }
- size_t CustomOptionOtherValues::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:protobuf_unittest.CustomOptionOtherValues)
- size_t total_size = 0;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void CustomOptionOtherValues::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:protobuf_unittest.CustomOptionOtherValues)
- GOOGLE_DCHECK_NE(&from, this);
- const CustomOptionOtherValues* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const CustomOptionOtherValues>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:protobuf_unittest.CustomOptionOtherValues)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:protobuf_unittest.CustomOptionOtherValues)
- MergeFrom(*source);
- }
- }
- void CustomOptionOtherValues::MergeFrom(const CustomOptionOtherValues& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf_unittest.CustomOptionOtherValues)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- }
- void CustomOptionOtherValues::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:protobuf_unittest.CustomOptionOtherValues)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void CustomOptionOtherValues::CopyFrom(const CustomOptionOtherValues& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf_unittest.CustomOptionOtherValues)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool CustomOptionOtherValues::IsInitialized() const {
- return true;
- }
- void CustomOptionOtherValues::Swap(CustomOptionOtherValues* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void CustomOptionOtherValues::InternalSwap(CustomOptionOtherValues* other) {
- using std::swap;
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata CustomOptionOtherValues::GetMetadata() const {
- protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void SettingRealsFromPositiveInts::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- SettingRealsFromPositiveInts::SettingRealsFromPositiveInts()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::scc_info_SettingRealsFromPositiveInts.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:protobuf_unittest.SettingRealsFromPositiveInts)
- }
- SettingRealsFromPositiveInts::SettingRealsFromPositiveInts(const SettingRealsFromPositiveInts& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- // @@protoc_insertion_point(copy_constructor:protobuf_unittest.SettingRealsFromPositiveInts)
- }
- void SettingRealsFromPositiveInts::SharedCtor() {
- }
- SettingRealsFromPositiveInts::~SettingRealsFromPositiveInts() {
- // @@protoc_insertion_point(destructor:protobuf_unittest.SettingRealsFromPositiveInts)
- SharedDtor();
- }
- void SettingRealsFromPositiveInts::SharedDtor() {
- }
- void SettingRealsFromPositiveInts::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* SettingRealsFromPositiveInts::descriptor() {
- ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const SettingRealsFromPositiveInts& SettingRealsFromPositiveInts::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::scc_info_SettingRealsFromPositiveInts.base);
- return *internal_default_instance();
- }
- void SettingRealsFromPositiveInts::Clear() {
- // @@protoc_insertion_point(message_clear_start:protobuf_unittest.SettingRealsFromPositiveInts)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool SettingRealsFromPositiveInts::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:protobuf_unittest.SettingRealsFromPositiveInts)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- }
- success:
- // @@protoc_insertion_point(parse_success:protobuf_unittest.SettingRealsFromPositiveInts)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:protobuf_unittest.SettingRealsFromPositiveInts)
- return false;
- #undef DO_
- }
- void SettingRealsFromPositiveInts::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:protobuf_unittest.SettingRealsFromPositiveInts)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:protobuf_unittest.SettingRealsFromPositiveInts)
- }
- ::google::protobuf::uint8* SettingRealsFromPositiveInts::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:protobuf_unittest.SettingRealsFromPositiveInts)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf_unittest.SettingRealsFromPositiveInts)
- return target;
- }
- size_t SettingRealsFromPositiveInts::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:protobuf_unittest.SettingRealsFromPositiveInts)
- size_t total_size = 0;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void SettingRealsFromPositiveInts::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:protobuf_unittest.SettingRealsFromPositiveInts)
- GOOGLE_DCHECK_NE(&from, this);
- const SettingRealsFromPositiveInts* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const SettingRealsFromPositiveInts>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:protobuf_unittest.SettingRealsFromPositiveInts)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:protobuf_unittest.SettingRealsFromPositiveInts)
- MergeFrom(*source);
- }
- }
- void SettingRealsFromPositiveInts::MergeFrom(const SettingRealsFromPositiveInts& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf_unittest.SettingRealsFromPositiveInts)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- }
- void SettingRealsFromPositiveInts::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:protobuf_unittest.SettingRealsFromPositiveInts)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void SettingRealsFromPositiveInts::CopyFrom(const SettingRealsFromPositiveInts& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf_unittest.SettingRealsFromPositiveInts)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool SettingRealsFromPositiveInts::IsInitialized() const {
- return true;
- }
- void SettingRealsFromPositiveInts::Swap(SettingRealsFromPositiveInts* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void SettingRealsFromPositiveInts::InternalSwap(SettingRealsFromPositiveInts* other) {
- using std::swap;
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata SettingRealsFromPositiveInts::GetMetadata() const {
- protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void SettingRealsFromNegativeInts::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- SettingRealsFromNegativeInts::SettingRealsFromNegativeInts()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::scc_info_SettingRealsFromNegativeInts.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:protobuf_unittest.SettingRealsFromNegativeInts)
- }
- SettingRealsFromNegativeInts::SettingRealsFromNegativeInts(const SettingRealsFromNegativeInts& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- // @@protoc_insertion_point(copy_constructor:protobuf_unittest.SettingRealsFromNegativeInts)
- }
- void SettingRealsFromNegativeInts::SharedCtor() {
- }
- SettingRealsFromNegativeInts::~SettingRealsFromNegativeInts() {
- // @@protoc_insertion_point(destructor:protobuf_unittest.SettingRealsFromNegativeInts)
- SharedDtor();
- }
- void SettingRealsFromNegativeInts::SharedDtor() {
- }
- void SettingRealsFromNegativeInts::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* SettingRealsFromNegativeInts::descriptor() {
- ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const SettingRealsFromNegativeInts& SettingRealsFromNegativeInts::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::scc_info_SettingRealsFromNegativeInts.base);
- return *internal_default_instance();
- }
- void SettingRealsFromNegativeInts::Clear() {
- // @@protoc_insertion_point(message_clear_start:protobuf_unittest.SettingRealsFromNegativeInts)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool SettingRealsFromNegativeInts::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:protobuf_unittest.SettingRealsFromNegativeInts)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- }
- success:
- // @@protoc_insertion_point(parse_success:protobuf_unittest.SettingRealsFromNegativeInts)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:protobuf_unittest.SettingRealsFromNegativeInts)
- return false;
- #undef DO_
- }
- void SettingRealsFromNegativeInts::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:protobuf_unittest.SettingRealsFromNegativeInts)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:protobuf_unittest.SettingRealsFromNegativeInts)
- }
- ::google::protobuf::uint8* SettingRealsFromNegativeInts::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:protobuf_unittest.SettingRealsFromNegativeInts)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf_unittest.SettingRealsFromNegativeInts)
- return target;
- }
- size_t SettingRealsFromNegativeInts::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:protobuf_unittest.SettingRealsFromNegativeInts)
- size_t total_size = 0;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void SettingRealsFromNegativeInts::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:protobuf_unittest.SettingRealsFromNegativeInts)
- GOOGLE_DCHECK_NE(&from, this);
- const SettingRealsFromNegativeInts* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const SettingRealsFromNegativeInts>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:protobuf_unittest.SettingRealsFromNegativeInts)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:protobuf_unittest.SettingRealsFromNegativeInts)
- MergeFrom(*source);
- }
- }
- void SettingRealsFromNegativeInts::MergeFrom(const SettingRealsFromNegativeInts& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf_unittest.SettingRealsFromNegativeInts)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- }
- void SettingRealsFromNegativeInts::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:protobuf_unittest.SettingRealsFromNegativeInts)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void SettingRealsFromNegativeInts::CopyFrom(const SettingRealsFromNegativeInts& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf_unittest.SettingRealsFromNegativeInts)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool SettingRealsFromNegativeInts::IsInitialized() const {
- return true;
- }
- void SettingRealsFromNegativeInts::Swap(SettingRealsFromNegativeInts* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void SettingRealsFromNegativeInts::InternalSwap(SettingRealsFromNegativeInts* other) {
- using std::swap;
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata SettingRealsFromNegativeInts::GetMetadata() const {
- protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void ComplexOptionType1::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int ComplexOptionType1::kFooFieldNumber;
- const int ComplexOptionType1::kFoo2FieldNumber;
- const int ComplexOptionType1::kFoo3FieldNumber;
- const int ComplexOptionType1::kFoo4FieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- ComplexOptionType1::ComplexOptionType1()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::scc_info_ComplexOptionType1.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:protobuf_unittest.ComplexOptionType1)
- }
- ComplexOptionType1::ComplexOptionType1(const ComplexOptionType1& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_),
- foo4_(from.foo4_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- _extensions_.MergeFrom(from._extensions_);
- ::memcpy(&foo_, &from.foo_,
- static_cast<size_t>(reinterpret_cast<char*>(&foo3_) -
- reinterpret_cast<char*>(&foo_)) + sizeof(foo3_));
- // @@protoc_insertion_point(copy_constructor:protobuf_unittest.ComplexOptionType1)
- }
- void ComplexOptionType1::SharedCtor() {
- ::memset(&foo_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&foo3_) -
- reinterpret_cast<char*>(&foo_)) + sizeof(foo3_));
- }
- ComplexOptionType1::~ComplexOptionType1() {
- // @@protoc_insertion_point(destructor:protobuf_unittest.ComplexOptionType1)
- SharedDtor();
- }
- void ComplexOptionType1::SharedDtor() {
- }
- void ComplexOptionType1::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* ComplexOptionType1::descriptor() {
- ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const ComplexOptionType1& ComplexOptionType1::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::scc_info_ComplexOptionType1.base);
- return *internal_default_instance();
- }
- void ComplexOptionType1::Clear() {
- // @@protoc_insertion_point(message_clear_start:protobuf_unittest.ComplexOptionType1)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- _extensions_.Clear();
- foo4_.Clear();
- cached_has_bits = _has_bits_[0];
- if (cached_has_bits & 7u) {
- ::memset(&foo_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&foo3_) -
- reinterpret_cast<char*>(&foo_)) + sizeof(foo3_));
- }
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool ComplexOptionType1::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:protobuf_unittest.ComplexOptionType1)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // optional int32 foo = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
- set_has_foo();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &foo_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional int32 foo2 = 2;
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
- set_has_foo2();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &foo2_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional int32 foo3 = 3;
- case 3: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
- set_has_foo3();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &foo3_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // repeated int32 foo4 = 4;
- case 4: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- 1, 32u, input, this->mutable_foo4())));
- } else if (
- static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, this->mutable_foo4())));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- if ((800u <= tag)) {
- DO_(_extensions_.ParseField(tag, input,
- internal_default_instance(),
- _internal_metadata_.mutable_unknown_fields()));
- continue;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:protobuf_unittest.ComplexOptionType1)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:protobuf_unittest.ComplexOptionType1)
- return false;
- #undef DO_
- }
- void ComplexOptionType1::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:protobuf_unittest.ComplexOptionType1)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional int32 foo = 1;
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->foo(), output);
- }
- // optional int32 foo2 = 2;
- if (cached_has_bits & 0x00000002u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->foo2(), output);
- }
- // optional int32 foo3 = 3;
- if (cached_has_bits & 0x00000004u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->foo3(), output);
- }
- // repeated int32 foo4 = 4;
- for (int i = 0, n = this->foo4_size(); i < n; i++) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(
- 4, this->foo4(i), output);
- }
- // Extension range [100, 536870912)
- _extensions_.SerializeWithCachedSizes(
- 100, 536870912, output);
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:protobuf_unittest.ComplexOptionType1)
- }
- ::google::protobuf::uint8* ComplexOptionType1::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:protobuf_unittest.ComplexOptionType1)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional int32 foo = 1;
- if (cached_has_bits & 0x00000001u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->foo(), target);
- }
- // optional int32 foo2 = 2;
- if (cached_has_bits & 0x00000002u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->foo2(), target);
- }
- // optional int32 foo3 = 3;
- if (cached_has_bits & 0x00000004u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->foo3(), target);
- }
- // repeated int32 foo4 = 4;
- target = ::google::protobuf::internal::WireFormatLite::
- WriteInt32ToArray(4, this->foo4_, target);
- // Extension range [100, 536870912)
- target = _extensions_.InternalSerializeWithCachedSizesToArray(
- 100, 536870912, deterministic, target);
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf_unittest.ComplexOptionType1)
- return target;
- }
- size_t ComplexOptionType1::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:protobuf_unittest.ComplexOptionType1)
- size_t total_size = 0;
- total_size += _extensions_.ByteSize();
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- // repeated int32 foo4 = 4;
- {
- size_t data_size = ::google::protobuf::internal::WireFormatLite::
- Int32Size(this->foo4_);
- total_size += 1 *
- ::google::protobuf::internal::FromIntSize(this->foo4_size());
- total_size += data_size;
- }
- if (_has_bits_[0 / 32] & 7u) {
- // optional int32 foo = 1;
- if (has_foo()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->foo());
- }
- // optional int32 foo2 = 2;
- if (has_foo2()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->foo2());
- }
- // optional int32 foo3 = 3;
- if (has_foo3()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->foo3());
- }
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void ComplexOptionType1::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:protobuf_unittest.ComplexOptionType1)
- GOOGLE_DCHECK_NE(&from, this);
- const ComplexOptionType1* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const ComplexOptionType1>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:protobuf_unittest.ComplexOptionType1)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:protobuf_unittest.ComplexOptionType1)
- MergeFrom(*source);
- }
- }
- void ComplexOptionType1::MergeFrom(const ComplexOptionType1& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf_unittest.ComplexOptionType1)
- GOOGLE_DCHECK_NE(&from, this);
- _extensions_.MergeFrom(from._extensions_);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- foo4_.MergeFrom(from.foo4_);
- cached_has_bits = from._has_bits_[0];
- if (cached_has_bits & 7u) {
- if (cached_has_bits & 0x00000001u) {
- foo_ = from.foo_;
- }
- if (cached_has_bits & 0x00000002u) {
- foo2_ = from.foo2_;
- }
- if (cached_has_bits & 0x00000004u) {
- foo3_ = from.foo3_;
- }
- _has_bits_[0] |= cached_has_bits;
- }
- }
- void ComplexOptionType1::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:protobuf_unittest.ComplexOptionType1)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void ComplexOptionType1::CopyFrom(const ComplexOptionType1& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf_unittest.ComplexOptionType1)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool ComplexOptionType1::IsInitialized() const {
- if (!_extensions_.IsInitialized()) {
- return false;
- }
- return true;
- }
- void ComplexOptionType1::Swap(ComplexOptionType1* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void ComplexOptionType1::InternalSwap(ComplexOptionType1* other) {
- using std::swap;
- foo4_.InternalSwap(&other->foo4_);
- swap(foo_, other->foo_);
- swap(foo2_, other->foo2_);
- swap(foo3_, other->foo3_);
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- _extensions_.Swap(&other->_extensions_);
- }
- ::google::protobuf::Metadata ComplexOptionType1::GetMetadata() const {
- protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void ComplexOptionType2_ComplexOptionType4::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int ComplexOptionType2_ComplexOptionType4::kWaldoFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- ComplexOptionType2_ComplexOptionType4::ComplexOptionType2_ComplexOptionType4()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::scc_info_ComplexOptionType2_ComplexOptionType4.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:protobuf_unittest.ComplexOptionType2.ComplexOptionType4)
- }
- ComplexOptionType2_ComplexOptionType4::ComplexOptionType2_ComplexOptionType4(const ComplexOptionType2_ComplexOptionType4& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- waldo_ = from.waldo_;
- // @@protoc_insertion_point(copy_constructor:protobuf_unittest.ComplexOptionType2.ComplexOptionType4)
- }
- void ComplexOptionType2_ComplexOptionType4::SharedCtor() {
- waldo_ = 0;
- }
- ComplexOptionType2_ComplexOptionType4::~ComplexOptionType2_ComplexOptionType4() {
- // @@protoc_insertion_point(destructor:protobuf_unittest.ComplexOptionType2.ComplexOptionType4)
- SharedDtor();
- }
- void ComplexOptionType2_ComplexOptionType4::SharedDtor() {
- }
- void ComplexOptionType2_ComplexOptionType4::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* ComplexOptionType2_ComplexOptionType4::descriptor() {
- ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const ComplexOptionType2_ComplexOptionType4& ComplexOptionType2_ComplexOptionType4::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::scc_info_ComplexOptionType2_ComplexOptionType4.base);
- return *internal_default_instance();
- }
- void ComplexOptionType2_ComplexOptionType4::Clear() {
- // @@protoc_insertion_point(message_clear_start:protobuf_unittest.ComplexOptionType2.ComplexOptionType4)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- waldo_ = 0;
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool ComplexOptionType2_ComplexOptionType4::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:protobuf_unittest.ComplexOptionType2.ComplexOptionType4)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // optional int32 waldo = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
- set_has_waldo();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &waldo_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:protobuf_unittest.ComplexOptionType2.ComplexOptionType4)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:protobuf_unittest.ComplexOptionType2.ComplexOptionType4)
- return false;
- #undef DO_
- }
- void ComplexOptionType2_ComplexOptionType4::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:protobuf_unittest.ComplexOptionType2.ComplexOptionType4)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional int32 waldo = 1;
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->waldo(), output);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:protobuf_unittest.ComplexOptionType2.ComplexOptionType4)
- }
- ::google::protobuf::uint8* ComplexOptionType2_ComplexOptionType4::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:protobuf_unittest.ComplexOptionType2.ComplexOptionType4)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional int32 waldo = 1;
- if (cached_has_bits & 0x00000001u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->waldo(), target);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf_unittest.ComplexOptionType2.ComplexOptionType4)
- return target;
- }
- size_t ComplexOptionType2_ComplexOptionType4::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:protobuf_unittest.ComplexOptionType2.ComplexOptionType4)
- size_t total_size = 0;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- // optional int32 waldo = 1;
- if (has_waldo()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->waldo());
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void ComplexOptionType2_ComplexOptionType4::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:protobuf_unittest.ComplexOptionType2.ComplexOptionType4)
- GOOGLE_DCHECK_NE(&from, this);
- const ComplexOptionType2_ComplexOptionType4* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const ComplexOptionType2_ComplexOptionType4>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:protobuf_unittest.ComplexOptionType2.ComplexOptionType4)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:protobuf_unittest.ComplexOptionType2.ComplexOptionType4)
- MergeFrom(*source);
- }
- }
- void ComplexOptionType2_ComplexOptionType4::MergeFrom(const ComplexOptionType2_ComplexOptionType4& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf_unittest.ComplexOptionType2.ComplexOptionType4)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (from.has_waldo()) {
- set_waldo(from.waldo());
- }
- }
- void ComplexOptionType2_ComplexOptionType4::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:protobuf_unittest.ComplexOptionType2.ComplexOptionType4)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void ComplexOptionType2_ComplexOptionType4::CopyFrom(const ComplexOptionType2_ComplexOptionType4& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf_unittest.ComplexOptionType2.ComplexOptionType4)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool ComplexOptionType2_ComplexOptionType4::IsInitialized() const {
- return true;
- }
- void ComplexOptionType2_ComplexOptionType4::Swap(ComplexOptionType2_ComplexOptionType4* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void ComplexOptionType2_ComplexOptionType4::InternalSwap(ComplexOptionType2_ComplexOptionType4* other) {
- using std::swap;
- swap(waldo_, other->waldo_);
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata ComplexOptionType2_ComplexOptionType4::GetMetadata() const {
- protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void ComplexOptionType2::InitAsDefaultInstance() {
- ::protobuf_unittest::_ComplexOptionType2_default_instance_._instance.get_mutable()->bar_ = const_cast< ::protobuf_unittest::ComplexOptionType1*>(
- ::protobuf_unittest::ComplexOptionType1::internal_default_instance());
- ::protobuf_unittest::_ComplexOptionType2_default_instance_._instance.get_mutable()->fred_ = const_cast< ::protobuf_unittest::ComplexOptionType2_ComplexOptionType4*>(
- ::protobuf_unittest::ComplexOptionType2_ComplexOptionType4::internal_default_instance());
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int ComplexOptionType2::kBarFieldNumber;
- const int ComplexOptionType2::kBazFieldNumber;
- const int ComplexOptionType2::kFredFieldNumber;
- const int ComplexOptionType2::kBarneyFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- ComplexOptionType2::ComplexOptionType2()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::scc_info_ComplexOptionType2.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:protobuf_unittest.ComplexOptionType2)
- }
- ComplexOptionType2::ComplexOptionType2(const ComplexOptionType2& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_),
- barney_(from.barney_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- _extensions_.MergeFrom(from._extensions_);
- if (from.has_bar()) {
- bar_ = new ::protobuf_unittest::ComplexOptionType1(*from.bar_);
- } else {
- bar_ = NULL;
- }
- if (from.has_fred()) {
- fred_ = new ::protobuf_unittest::ComplexOptionType2_ComplexOptionType4(*from.fred_);
- } else {
- fred_ = NULL;
- }
- baz_ = from.baz_;
- // @@protoc_insertion_point(copy_constructor:protobuf_unittest.ComplexOptionType2)
- }
- void ComplexOptionType2::SharedCtor() {
- ::memset(&bar_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&baz_) -
- reinterpret_cast<char*>(&bar_)) + sizeof(baz_));
- }
- ComplexOptionType2::~ComplexOptionType2() {
- // @@protoc_insertion_point(destructor:protobuf_unittest.ComplexOptionType2)
- SharedDtor();
- }
- void ComplexOptionType2::SharedDtor() {
- if (this != internal_default_instance()) delete bar_;
- if (this != internal_default_instance()) delete fred_;
- }
- void ComplexOptionType2::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* ComplexOptionType2::descriptor() {
- ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const ComplexOptionType2& ComplexOptionType2::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::scc_info_ComplexOptionType2.base);
- return *internal_default_instance();
- }
- void ComplexOptionType2::Clear() {
- // @@protoc_insertion_point(message_clear_start:protobuf_unittest.ComplexOptionType2)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- _extensions_.Clear();
- barney_.Clear();
- cached_has_bits = _has_bits_[0];
- if (cached_has_bits & 3u) {
- if (cached_has_bits & 0x00000001u) {
- GOOGLE_DCHECK(bar_ != NULL);
- bar_->Clear();
- }
- if (cached_has_bits & 0x00000002u) {
- GOOGLE_DCHECK(fred_ != NULL);
- fred_->Clear();
- }
- }
- baz_ = 0;
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool ComplexOptionType2::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:protobuf_unittest.ComplexOptionType2)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // optional .protobuf_unittest.ComplexOptionType1 bar = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_bar()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional int32 baz = 2;
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
- set_has_baz();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &baz_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional .protobuf_unittest.ComplexOptionType2.ComplexOptionType4 fred = 3;
- case 3: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_fred()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // repeated .protobuf_unittest.ComplexOptionType2.ComplexOptionType4 barney = 4;
- case 4: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, add_barney()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- if ((800u <= tag)) {
- DO_(_extensions_.ParseField(tag, input,
- internal_default_instance(),
- _internal_metadata_.mutable_unknown_fields()));
- continue;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:protobuf_unittest.ComplexOptionType2)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:protobuf_unittest.ComplexOptionType2)
- return false;
- #undef DO_
- }
- void ComplexOptionType2::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:protobuf_unittest.ComplexOptionType2)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional .protobuf_unittest.ComplexOptionType1 bar = 1;
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, this->_internal_bar(), output);
- }
- // optional int32 baz = 2;
- if (cached_has_bits & 0x00000004u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->baz(), output);
- }
- // optional .protobuf_unittest.ComplexOptionType2.ComplexOptionType4 fred = 3;
- if (cached_has_bits & 0x00000002u) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 3, this->_internal_fred(), output);
- }
- // repeated .protobuf_unittest.ComplexOptionType2.ComplexOptionType4 barney = 4;
- for (unsigned int i = 0,
- n = static_cast<unsigned int>(this->barney_size()); i < n; i++) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 4,
- this->barney(static_cast<int>(i)),
- output);
- }
- // Extension range [100, 536870912)
- _extensions_.SerializeWithCachedSizes(
- 100, 536870912, output);
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:protobuf_unittest.ComplexOptionType2)
- }
- ::google::protobuf::uint8* ComplexOptionType2::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:protobuf_unittest.ComplexOptionType2)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional .protobuf_unittest.ComplexOptionType1 bar = 1;
- if (cached_has_bits & 0x00000001u) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 1, this->_internal_bar(), deterministic, target);
- }
- // optional int32 baz = 2;
- if (cached_has_bits & 0x00000004u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->baz(), target);
- }
- // optional .protobuf_unittest.ComplexOptionType2.ComplexOptionType4 fred = 3;
- if (cached_has_bits & 0x00000002u) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 3, this->_internal_fred(), deterministic, target);
- }
- // repeated .protobuf_unittest.ComplexOptionType2.ComplexOptionType4 barney = 4;
- for (unsigned int i = 0,
- n = static_cast<unsigned int>(this->barney_size()); i < n; i++) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 4, this->barney(static_cast<int>(i)), deterministic, target);
- }
- // Extension range [100, 536870912)
- target = _extensions_.InternalSerializeWithCachedSizesToArray(
- 100, 536870912, deterministic, target);
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf_unittest.ComplexOptionType2)
- return target;
- }
- size_t ComplexOptionType2::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:protobuf_unittest.ComplexOptionType2)
- size_t total_size = 0;
- total_size += _extensions_.ByteSize();
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- // repeated .protobuf_unittest.ComplexOptionType2.ComplexOptionType4 barney = 4;
- {
- unsigned int count = static_cast<unsigned int>(this->barney_size());
- total_size += 1UL * count;
- for (unsigned int i = 0; i < count; i++) {
- total_size +=
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- this->barney(static_cast<int>(i)));
- }
- }
- if (_has_bits_[0 / 32] & 7u) {
- // optional .protobuf_unittest.ComplexOptionType1 bar = 1;
- if (has_bar()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *bar_);
- }
- // optional .protobuf_unittest.ComplexOptionType2.ComplexOptionType4 fred = 3;
- if (has_fred()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *fred_);
- }
- // optional int32 baz = 2;
- if (has_baz()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->baz());
- }
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void ComplexOptionType2::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:protobuf_unittest.ComplexOptionType2)
- GOOGLE_DCHECK_NE(&from, this);
- const ComplexOptionType2* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const ComplexOptionType2>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:protobuf_unittest.ComplexOptionType2)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:protobuf_unittest.ComplexOptionType2)
- MergeFrom(*source);
- }
- }
- void ComplexOptionType2::MergeFrom(const ComplexOptionType2& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf_unittest.ComplexOptionType2)
- GOOGLE_DCHECK_NE(&from, this);
- _extensions_.MergeFrom(from._extensions_);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- barney_.MergeFrom(from.barney_);
- cached_has_bits = from._has_bits_[0];
- if (cached_has_bits & 7u) {
- if (cached_has_bits & 0x00000001u) {
- mutable_bar()->::protobuf_unittest::ComplexOptionType1::MergeFrom(from.bar());
- }
- if (cached_has_bits & 0x00000002u) {
- mutable_fred()->::protobuf_unittest::ComplexOptionType2_ComplexOptionType4::MergeFrom(from.fred());
- }
- if (cached_has_bits & 0x00000004u) {
- baz_ = from.baz_;
- }
- _has_bits_[0] |= cached_has_bits;
- }
- }
- void ComplexOptionType2::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:protobuf_unittest.ComplexOptionType2)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void ComplexOptionType2::CopyFrom(const ComplexOptionType2& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf_unittest.ComplexOptionType2)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool ComplexOptionType2::IsInitialized() const {
- if (!_extensions_.IsInitialized()) {
- return false;
- }
- if (has_bar()) {
- if (!this->bar_->IsInitialized()) return false;
- }
- return true;
- }
- void ComplexOptionType2::Swap(ComplexOptionType2* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void ComplexOptionType2::InternalSwap(ComplexOptionType2* other) {
- using std::swap;
- CastToBase(&barney_)->InternalSwap(CastToBase(&other->barney_));
- swap(bar_, other->bar_);
- swap(fred_, other->fred_);
- swap(baz_, other->baz_);
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- _extensions_.Swap(&other->_extensions_);
- }
- ::google::protobuf::Metadata ComplexOptionType2::GetMetadata() const {
- protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void ComplexOptionType3_ComplexOptionType5::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int ComplexOptionType3_ComplexOptionType5::kPlughFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- ComplexOptionType3_ComplexOptionType5::ComplexOptionType3_ComplexOptionType5()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::scc_info_ComplexOptionType3_ComplexOptionType5.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:protobuf_unittest.ComplexOptionType3.ComplexOptionType5)
- }
- ComplexOptionType3_ComplexOptionType5::ComplexOptionType3_ComplexOptionType5(const ComplexOptionType3_ComplexOptionType5& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- plugh_ = from.plugh_;
- // @@protoc_insertion_point(copy_constructor:protobuf_unittest.ComplexOptionType3.ComplexOptionType5)
- }
- void ComplexOptionType3_ComplexOptionType5::SharedCtor() {
- plugh_ = 0;
- }
- ComplexOptionType3_ComplexOptionType5::~ComplexOptionType3_ComplexOptionType5() {
- // @@protoc_insertion_point(destructor:protobuf_unittest.ComplexOptionType3.ComplexOptionType5)
- SharedDtor();
- }
- void ComplexOptionType3_ComplexOptionType5::SharedDtor() {
- }
- void ComplexOptionType3_ComplexOptionType5::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* ComplexOptionType3_ComplexOptionType5::descriptor() {
- ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const ComplexOptionType3_ComplexOptionType5& ComplexOptionType3_ComplexOptionType5::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::scc_info_ComplexOptionType3_ComplexOptionType5.base);
- return *internal_default_instance();
- }
- void ComplexOptionType3_ComplexOptionType5::Clear() {
- // @@protoc_insertion_point(message_clear_start:protobuf_unittest.ComplexOptionType3.ComplexOptionType5)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- plugh_ = 0;
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool ComplexOptionType3_ComplexOptionType5::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:protobuf_unittest.ComplexOptionType3.ComplexOptionType5)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // optional int32 plugh = 3;
- case 3: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
- set_has_plugh();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &plugh_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0 ||
- ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- input->SetLastTag(tag);
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:protobuf_unittest.ComplexOptionType3.ComplexOptionType5)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:protobuf_unittest.ComplexOptionType3.ComplexOptionType5)
- return false;
- #undef DO_
- }
- void ComplexOptionType3_ComplexOptionType5::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:protobuf_unittest.ComplexOptionType3.ComplexOptionType5)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional int32 plugh = 3;
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->plugh(), output);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:protobuf_unittest.ComplexOptionType3.ComplexOptionType5)
- }
- ::google::protobuf::uint8* ComplexOptionType3_ComplexOptionType5::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:protobuf_unittest.ComplexOptionType3.ComplexOptionType5)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional int32 plugh = 3;
- if (cached_has_bits & 0x00000001u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->plugh(), target);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf_unittest.ComplexOptionType3.ComplexOptionType5)
- return target;
- }
- size_t ComplexOptionType3_ComplexOptionType5::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:protobuf_unittest.ComplexOptionType3.ComplexOptionType5)
- size_t total_size = 0;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- // optional int32 plugh = 3;
- if (has_plugh()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->plugh());
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void ComplexOptionType3_ComplexOptionType5::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:protobuf_unittest.ComplexOptionType3.ComplexOptionType5)
- GOOGLE_DCHECK_NE(&from, this);
- const ComplexOptionType3_ComplexOptionType5* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const ComplexOptionType3_ComplexOptionType5>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:protobuf_unittest.ComplexOptionType3.ComplexOptionType5)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:protobuf_unittest.ComplexOptionType3.ComplexOptionType5)
- MergeFrom(*source);
- }
- }
- void ComplexOptionType3_ComplexOptionType5::MergeFrom(const ComplexOptionType3_ComplexOptionType5& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf_unittest.ComplexOptionType3.ComplexOptionType5)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (from.has_plugh()) {
- set_plugh(from.plugh());
- }
- }
- void ComplexOptionType3_ComplexOptionType5::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:protobuf_unittest.ComplexOptionType3.ComplexOptionType5)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void ComplexOptionType3_ComplexOptionType5::CopyFrom(const ComplexOptionType3_ComplexOptionType5& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf_unittest.ComplexOptionType3.ComplexOptionType5)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool ComplexOptionType3_ComplexOptionType5::IsInitialized() const {
- return true;
- }
- void ComplexOptionType3_ComplexOptionType5::Swap(ComplexOptionType3_ComplexOptionType5* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void ComplexOptionType3_ComplexOptionType5::InternalSwap(ComplexOptionType3_ComplexOptionType5* other) {
- using std::swap;
- swap(plugh_, other->plugh_);
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata ComplexOptionType3_ComplexOptionType5::GetMetadata() const {
- protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void ComplexOptionType3::InitAsDefaultInstance() {
- ::protobuf_unittest::_ComplexOptionType3_default_instance_._instance.get_mutable()->complexoptiontype5_ = const_cast< ::protobuf_unittest::ComplexOptionType3_ComplexOptionType5*>(
- ::protobuf_unittest::ComplexOptionType3_ComplexOptionType5::internal_default_instance());
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int ComplexOptionType3::kQuxFieldNumber;
- const int ComplexOptionType3::kComplexoptiontype5FieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- ComplexOptionType3::ComplexOptionType3()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::scc_info_ComplexOptionType3.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:protobuf_unittest.ComplexOptionType3)
- }
- ComplexOptionType3::ComplexOptionType3(const ComplexOptionType3& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- if (from.has_complexoptiontype5()) {
- complexoptiontype5_ = new ::protobuf_unittest::ComplexOptionType3_ComplexOptionType5(*from.complexoptiontype5_);
- } else {
- complexoptiontype5_ = NULL;
- }
- qux_ = from.qux_;
- // @@protoc_insertion_point(copy_constructor:protobuf_unittest.ComplexOptionType3)
- }
- void ComplexOptionType3::SharedCtor() {
- ::memset(&complexoptiontype5_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&qux_) -
- reinterpret_cast<char*>(&complexoptiontype5_)) + sizeof(qux_));
- }
- ComplexOptionType3::~ComplexOptionType3() {
- // @@protoc_insertion_point(destructor:protobuf_unittest.ComplexOptionType3)
- SharedDtor();
- }
- void ComplexOptionType3::SharedDtor() {
- if (this != internal_default_instance()) delete complexoptiontype5_;
- }
- void ComplexOptionType3::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* ComplexOptionType3::descriptor() {
- ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const ComplexOptionType3& ComplexOptionType3::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::scc_info_ComplexOptionType3.base);
- return *internal_default_instance();
- }
- void ComplexOptionType3::Clear() {
- // @@protoc_insertion_point(message_clear_start:protobuf_unittest.ComplexOptionType3)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- if (cached_has_bits & 0x00000001u) {
- GOOGLE_DCHECK(complexoptiontype5_ != NULL);
- complexoptiontype5_->Clear();
- }
- qux_ = 0;
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool ComplexOptionType3::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:protobuf_unittest.ComplexOptionType3)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // optional int32 qux = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
- set_has_qux();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &qux_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional group ComplexOptionType5 = 2 { ... };
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(19u /* 19 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadGroup(
- 2, input, mutable_complexoptiontype5()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:protobuf_unittest.ComplexOptionType3)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:protobuf_unittest.ComplexOptionType3)
- return false;
- #undef DO_
- }
- void ComplexOptionType3::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:protobuf_unittest.ComplexOptionType3)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional int32 qux = 1;
- if (cached_has_bits & 0x00000002u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->qux(), output);
- }
- // optional group ComplexOptionType5 = 2 { ... };
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormatLite::WriteGroupMaybeToArray(
- 2, this->_internal_complexoptiontype5(), output);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:protobuf_unittest.ComplexOptionType3)
- }
- ::google::protobuf::uint8* ComplexOptionType3::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:protobuf_unittest.ComplexOptionType3)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional int32 qux = 1;
- if (cached_has_bits & 0x00000002u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->qux(), target);
- }
- // optional group ComplexOptionType5 = 2 { ... };
- if (cached_has_bits & 0x00000001u) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteGroupToArray(
- 2, this->_internal_complexoptiontype5(), deterministic, target);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf_unittest.ComplexOptionType3)
- return target;
- }
- size_t ComplexOptionType3::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:protobuf_unittest.ComplexOptionType3)
- size_t total_size = 0;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- if (_has_bits_[0 / 32] & 3u) {
- // optional group ComplexOptionType5 = 2 { ... };
- if (has_complexoptiontype5()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::GroupSize(
- *complexoptiontype5_);
- }
- // optional int32 qux = 1;
- if (has_qux()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->qux());
- }
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void ComplexOptionType3::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:protobuf_unittest.ComplexOptionType3)
- GOOGLE_DCHECK_NE(&from, this);
- const ComplexOptionType3* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const ComplexOptionType3>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:protobuf_unittest.ComplexOptionType3)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:protobuf_unittest.ComplexOptionType3)
- MergeFrom(*source);
- }
- }
- void ComplexOptionType3::MergeFrom(const ComplexOptionType3& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf_unittest.ComplexOptionType3)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = from._has_bits_[0];
- if (cached_has_bits & 3u) {
- if (cached_has_bits & 0x00000001u) {
- mutable_complexoptiontype5()->::protobuf_unittest::ComplexOptionType3_ComplexOptionType5::MergeFrom(from.complexoptiontype5());
- }
- if (cached_has_bits & 0x00000002u) {
- qux_ = from.qux_;
- }
- _has_bits_[0] |= cached_has_bits;
- }
- }
- void ComplexOptionType3::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:protobuf_unittest.ComplexOptionType3)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void ComplexOptionType3::CopyFrom(const ComplexOptionType3& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf_unittest.ComplexOptionType3)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool ComplexOptionType3::IsInitialized() const {
- return true;
- }
- void ComplexOptionType3::Swap(ComplexOptionType3* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void ComplexOptionType3::InternalSwap(ComplexOptionType3* other) {
- using std::swap;
- swap(complexoptiontype5_, other->complexoptiontype5_);
- swap(qux_, other->qux_);
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata ComplexOptionType3::GetMetadata() const {
- protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void ComplexOpt6::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int ComplexOpt6::kXyzzyFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- ComplexOpt6::ComplexOpt6()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::scc_info_ComplexOpt6.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:protobuf_unittest.ComplexOpt6)
- }
- ComplexOpt6::ComplexOpt6(const ComplexOpt6& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- xyzzy_ = from.xyzzy_;
- // @@protoc_insertion_point(copy_constructor:protobuf_unittest.ComplexOpt6)
- }
- void ComplexOpt6::SharedCtor() {
- xyzzy_ = 0;
- }
- ComplexOpt6::~ComplexOpt6() {
- // @@protoc_insertion_point(destructor:protobuf_unittest.ComplexOpt6)
- SharedDtor();
- }
- void ComplexOpt6::SharedDtor() {
- }
- void ComplexOpt6::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* ComplexOpt6::descriptor() {
- ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const ComplexOpt6& ComplexOpt6::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::scc_info_ComplexOpt6.base);
- return *internal_default_instance();
- }
- void ComplexOpt6::Clear() {
- // @@protoc_insertion_point(message_clear_start:protobuf_unittest.ComplexOpt6)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- xyzzy_ = 0;
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool ComplexOpt6::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:protobuf_unittest.ComplexOpt6)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(60751613u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // optional int32 xyzzy = 7593951;
- case 7593951: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(248u /* 60751608 & 0xFF */)) {
- set_has_xyzzy();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &xyzzy_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0 ||
- ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- input->SetLastTag(tag);
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:protobuf_unittest.ComplexOpt6)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:protobuf_unittest.ComplexOpt6)
- return false;
- #undef DO_
- }
- void ComplexOpt6::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:protobuf_unittest.ComplexOpt6)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional int32 xyzzy = 7593951;
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(7593951, this->xyzzy(), output);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:protobuf_unittest.ComplexOpt6)
- }
- ::google::protobuf::uint8* ComplexOpt6::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:protobuf_unittest.ComplexOpt6)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional int32 xyzzy = 7593951;
- if (cached_has_bits & 0x00000001u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7593951, this->xyzzy(), target);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf_unittest.ComplexOpt6)
- return target;
- }
- size_t ComplexOpt6::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:protobuf_unittest.ComplexOpt6)
- size_t total_size = 0;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- // optional int32 xyzzy = 7593951;
- if (has_xyzzy()) {
- total_size += 4 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->xyzzy());
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void ComplexOpt6::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:protobuf_unittest.ComplexOpt6)
- GOOGLE_DCHECK_NE(&from, this);
- const ComplexOpt6* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const ComplexOpt6>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:protobuf_unittest.ComplexOpt6)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:protobuf_unittest.ComplexOpt6)
- MergeFrom(*source);
- }
- }
- void ComplexOpt6::MergeFrom(const ComplexOpt6& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf_unittest.ComplexOpt6)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (from.has_xyzzy()) {
- set_xyzzy(from.xyzzy());
- }
- }
- void ComplexOpt6::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:protobuf_unittest.ComplexOpt6)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void ComplexOpt6::CopyFrom(const ComplexOpt6& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf_unittest.ComplexOpt6)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool ComplexOpt6::IsInitialized() const {
- return true;
- }
- void ComplexOpt6::Swap(ComplexOpt6* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void ComplexOpt6::InternalSwap(ComplexOpt6* other) {
- using std::swap;
- swap(xyzzy_, other->xyzzy_);
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata ComplexOpt6::GetMetadata() const {
- protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void VariousComplexOptions::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- VariousComplexOptions::VariousComplexOptions()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::scc_info_VariousComplexOptions.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:protobuf_unittest.VariousComplexOptions)
- }
- VariousComplexOptions::VariousComplexOptions(const VariousComplexOptions& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- // @@protoc_insertion_point(copy_constructor:protobuf_unittest.VariousComplexOptions)
- }
- void VariousComplexOptions::SharedCtor() {
- }
- VariousComplexOptions::~VariousComplexOptions() {
- // @@protoc_insertion_point(destructor:protobuf_unittest.VariousComplexOptions)
- SharedDtor();
- }
- void VariousComplexOptions::SharedDtor() {
- }
- void VariousComplexOptions::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* VariousComplexOptions::descriptor() {
- ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const VariousComplexOptions& VariousComplexOptions::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::scc_info_VariousComplexOptions.base);
- return *internal_default_instance();
- }
- void VariousComplexOptions::Clear() {
- // @@protoc_insertion_point(message_clear_start:protobuf_unittest.VariousComplexOptions)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool VariousComplexOptions::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:protobuf_unittest.VariousComplexOptions)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- }
- success:
- // @@protoc_insertion_point(parse_success:protobuf_unittest.VariousComplexOptions)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:protobuf_unittest.VariousComplexOptions)
- return false;
- #undef DO_
- }
- void VariousComplexOptions::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:protobuf_unittest.VariousComplexOptions)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:protobuf_unittest.VariousComplexOptions)
- }
- ::google::protobuf::uint8* VariousComplexOptions::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:protobuf_unittest.VariousComplexOptions)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf_unittest.VariousComplexOptions)
- return target;
- }
- size_t VariousComplexOptions::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:protobuf_unittest.VariousComplexOptions)
- size_t total_size = 0;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void VariousComplexOptions::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:protobuf_unittest.VariousComplexOptions)
- GOOGLE_DCHECK_NE(&from, this);
- const VariousComplexOptions* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const VariousComplexOptions>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:protobuf_unittest.VariousComplexOptions)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:protobuf_unittest.VariousComplexOptions)
- MergeFrom(*source);
- }
- }
- void VariousComplexOptions::MergeFrom(const VariousComplexOptions& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf_unittest.VariousComplexOptions)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- }
- void VariousComplexOptions::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:protobuf_unittest.VariousComplexOptions)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void VariousComplexOptions::CopyFrom(const VariousComplexOptions& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf_unittest.VariousComplexOptions)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool VariousComplexOptions::IsInitialized() const {
- return true;
- }
- void VariousComplexOptions::Swap(VariousComplexOptions* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void VariousComplexOptions::InternalSwap(VariousComplexOptions* other) {
- using std::swap;
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata VariousComplexOptions::GetMetadata() const {
- protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void AggregateMessageSet::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- AggregateMessageSet::AggregateMessageSet()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::scc_info_AggregateMessageSet.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:protobuf_unittest.AggregateMessageSet)
- }
- AggregateMessageSet::AggregateMessageSet(const AggregateMessageSet& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- _extensions_.MergeFrom(from._extensions_);
- // @@protoc_insertion_point(copy_constructor:protobuf_unittest.AggregateMessageSet)
- }
- void AggregateMessageSet::SharedCtor() {
- }
- AggregateMessageSet::~AggregateMessageSet() {
- // @@protoc_insertion_point(destructor:protobuf_unittest.AggregateMessageSet)
- SharedDtor();
- }
- void AggregateMessageSet::SharedDtor() {
- }
- void AggregateMessageSet::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* AggregateMessageSet::descriptor() {
- ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const AggregateMessageSet& AggregateMessageSet::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::scc_info_AggregateMessageSet.base);
- return *internal_default_instance();
- }
- void AggregateMessageSet::Clear() {
- // @@protoc_insertion_point(message_clear_start:protobuf_unittest.AggregateMessageSet)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- _extensions_.Clear();
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool AggregateMessageSet::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- return _extensions_.ParseMessageSet(input,
- internal_default_instance(), _internal_metadata_.mutable_unknown_fields());
- }
- void AggregateMessageSet::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- _extensions_.SerializeMessageSetWithCachedSizes(output);
- ::google::protobuf::internal::WireFormat::SerializeUnknownMessageSetItems(
- _internal_metadata_.unknown_fields(), output);
- }
- ::google::protobuf::uint8* AggregateMessageSet::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- target = _extensions_.InternalSerializeMessageSetWithCachedSizesToArray(
- deterministic, target);
- target = ::google::protobuf::internal::WireFormat::
- SerializeUnknownMessageSetItemsToArray(
- _internal_metadata_.unknown_fields(), target);
- return target;
- }
- size_t AggregateMessageSet::ByteSizeLong() const {
- // @@protoc_insertion_point(message_set_byte_size_start:protobuf_unittest.AggregateMessageSet)
- size_t total_size = _extensions_.MessageSetByteSize();
- if (_internal_metadata_.have_unknown_fields()) {
- total_size += ::google::protobuf::internal::WireFormat::
- ComputeUnknownMessageSetItemsSize(_internal_metadata_.unknown_fields());
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void AggregateMessageSet::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:protobuf_unittest.AggregateMessageSet)
- GOOGLE_DCHECK_NE(&from, this);
- const AggregateMessageSet* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const AggregateMessageSet>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:protobuf_unittest.AggregateMessageSet)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:protobuf_unittest.AggregateMessageSet)
- MergeFrom(*source);
- }
- }
- void AggregateMessageSet::MergeFrom(const AggregateMessageSet& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf_unittest.AggregateMessageSet)
- GOOGLE_DCHECK_NE(&from, this);
- _extensions_.MergeFrom(from._extensions_);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- }
- void AggregateMessageSet::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:protobuf_unittest.AggregateMessageSet)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void AggregateMessageSet::CopyFrom(const AggregateMessageSet& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf_unittest.AggregateMessageSet)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool AggregateMessageSet::IsInitialized() const {
- if (!_extensions_.IsInitialized()) {
- return false;
- }
- return true;
- }
- void AggregateMessageSet::Swap(AggregateMessageSet* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void AggregateMessageSet::InternalSwap(AggregateMessageSet* other) {
- using std::swap;
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- _extensions_.Swap(&other->_extensions_);
- }
- ::google::protobuf::Metadata AggregateMessageSet::GetMetadata() const {
- protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void AggregateMessageSetElement::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int AggregateMessageSetElement::kSFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- AggregateMessageSetElement::AggregateMessageSetElement()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::scc_info_AggregateMessageSetElement.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:protobuf_unittest.AggregateMessageSetElement)
- }
- AggregateMessageSetElement::AggregateMessageSetElement(const AggregateMessageSetElement& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- s_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.has_s()) {
- s_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.s_);
- }
- // @@protoc_insertion_point(copy_constructor:protobuf_unittest.AggregateMessageSetElement)
- }
- void AggregateMessageSetElement::SharedCtor() {
- s_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- AggregateMessageSetElement::~AggregateMessageSetElement() {
- // @@protoc_insertion_point(destructor:protobuf_unittest.AggregateMessageSetElement)
- SharedDtor();
- }
- void AggregateMessageSetElement::SharedDtor() {
- s_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- void AggregateMessageSetElement::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* AggregateMessageSetElement::descriptor() {
- ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const AggregateMessageSetElement& AggregateMessageSetElement::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::scc_info_AggregateMessageSetElement.base);
- return *internal_default_instance();
- }
- void AggregateMessageSetElement::Clear() {
- // @@protoc_insertion_point(message_clear_start:protobuf_unittest.AggregateMessageSetElement)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- if (cached_has_bits & 0x00000001u) {
- s_.ClearNonDefaultToEmptyNoArena();
- }
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool AggregateMessageSetElement::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:protobuf_unittest.AggregateMessageSetElement)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // optional string s = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_s()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->s().data(), static_cast<int>(this->s().length()),
- ::google::protobuf::internal::WireFormat::PARSE,
- "protobuf_unittest.AggregateMessageSetElement.s");
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:protobuf_unittest.AggregateMessageSetElement)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:protobuf_unittest.AggregateMessageSetElement)
- return false;
- #undef DO_
- }
- void AggregateMessageSetElement::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:protobuf_unittest.AggregateMessageSetElement)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional string s = 1;
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->s().data(), static_cast<int>(this->s().length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "protobuf_unittest.AggregateMessageSetElement.s");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 1, this->s(), output);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:protobuf_unittest.AggregateMessageSetElement)
- }
- ::google::protobuf::uint8* AggregateMessageSetElement::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:protobuf_unittest.AggregateMessageSetElement)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional string s = 1;
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->s().data(), static_cast<int>(this->s().length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "protobuf_unittest.AggregateMessageSetElement.s");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 1, this->s(), target);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf_unittest.AggregateMessageSetElement)
- return target;
- }
- size_t AggregateMessageSetElement::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:protobuf_unittest.AggregateMessageSetElement)
- size_t total_size = 0;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- // optional string s = 1;
- if (has_s()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->s());
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void AggregateMessageSetElement::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:protobuf_unittest.AggregateMessageSetElement)
- GOOGLE_DCHECK_NE(&from, this);
- const AggregateMessageSetElement* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const AggregateMessageSetElement>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:protobuf_unittest.AggregateMessageSetElement)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:protobuf_unittest.AggregateMessageSetElement)
- MergeFrom(*source);
- }
- }
- void AggregateMessageSetElement::MergeFrom(const AggregateMessageSetElement& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf_unittest.AggregateMessageSetElement)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (from.has_s()) {
- set_has_s();
- s_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.s_);
- }
- }
- void AggregateMessageSetElement::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:protobuf_unittest.AggregateMessageSetElement)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void AggregateMessageSetElement::CopyFrom(const AggregateMessageSetElement& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf_unittest.AggregateMessageSetElement)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool AggregateMessageSetElement::IsInitialized() const {
- return true;
- }
- void AggregateMessageSetElement::Swap(AggregateMessageSetElement* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void AggregateMessageSetElement::InternalSwap(AggregateMessageSetElement* other) {
- using std::swap;
- s_.Swap(&other->s_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata AggregateMessageSetElement::GetMetadata() const {
- protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void Aggregate::InitAsDefaultInstance() {
- ::protobuf_unittest::_Aggregate_default_instance_._instance.get_mutable()->sub_ = const_cast< ::protobuf_unittest::Aggregate*>(
- ::protobuf_unittest::Aggregate::internal_default_instance());
- ::protobuf_unittest::_Aggregate_default_instance_._instance.get_mutable()->file_ = const_cast< ::google::protobuf::FileOptions*>(
- ::google::protobuf::FileOptions::internal_default_instance());
- ::protobuf_unittest::_Aggregate_default_instance_._instance.get_mutable()->mset_ = const_cast< ::protobuf_unittest::AggregateMessageSet*>(
- ::protobuf_unittest::AggregateMessageSet::internal_default_instance());
- }
- void Aggregate::clear_file() {
- if (file_ != NULL) file_->Clear();
- clear_has_file();
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int Aggregate::kIFieldNumber;
- const int Aggregate::kSFieldNumber;
- const int Aggregate::kSubFieldNumber;
- const int Aggregate::kFileFieldNumber;
- const int Aggregate::kMsetFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- Aggregate::Aggregate()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::scc_info_Aggregate.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:protobuf_unittest.Aggregate)
- }
- Aggregate::Aggregate(const Aggregate& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- s_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.has_s()) {
- s_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.s_);
- }
- if (from.has_sub()) {
- sub_ = new ::protobuf_unittest::Aggregate(*from.sub_);
- } else {
- sub_ = NULL;
- }
- if (from.has_file()) {
- file_ = new ::google::protobuf::FileOptions(*from.file_);
- } else {
- file_ = NULL;
- }
- if (from.has_mset()) {
- mset_ = new ::protobuf_unittest::AggregateMessageSet(*from.mset_);
- } else {
- mset_ = NULL;
- }
- i_ = from.i_;
- // @@protoc_insertion_point(copy_constructor:protobuf_unittest.Aggregate)
- }
- void Aggregate::SharedCtor() {
- s_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- ::memset(&sub_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&i_) -
- reinterpret_cast<char*>(&sub_)) + sizeof(i_));
- }
- Aggregate::~Aggregate() {
- // @@protoc_insertion_point(destructor:protobuf_unittest.Aggregate)
- SharedDtor();
- }
- void Aggregate::SharedDtor() {
- s_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (this != internal_default_instance()) delete sub_;
- if (this != internal_default_instance()) delete file_;
- if (this != internal_default_instance()) delete mset_;
- }
- void Aggregate::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* Aggregate::descriptor() {
- ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const Aggregate& Aggregate::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::scc_info_Aggregate.base);
- return *internal_default_instance();
- }
- void Aggregate::Clear() {
- // @@protoc_insertion_point(message_clear_start:protobuf_unittest.Aggregate)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- if (cached_has_bits & 15u) {
- if (cached_has_bits & 0x00000001u) {
- s_.ClearNonDefaultToEmptyNoArena();
- }
- if (cached_has_bits & 0x00000002u) {
- GOOGLE_DCHECK(sub_ != NULL);
- sub_->Clear();
- }
- if (cached_has_bits & 0x00000004u) {
- GOOGLE_DCHECK(file_ != NULL);
- file_->Clear();
- }
- if (cached_has_bits & 0x00000008u) {
- GOOGLE_DCHECK(mset_ != NULL);
- mset_->Clear();
- }
- }
- i_ = 0;
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool Aggregate::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:protobuf_unittest.Aggregate)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // optional int32 i = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
- set_has_i();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &i_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional string s = 2;
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_s()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->s().data(), static_cast<int>(this->s().length()),
- ::google::protobuf::internal::WireFormat::PARSE,
- "protobuf_unittest.Aggregate.s");
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional .protobuf_unittest.Aggregate sub = 3;
- case 3: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_sub()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional .google.protobuf.FileOptions file = 4;
- case 4: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_file()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional .protobuf_unittest.AggregateMessageSet mset = 5;
- case 5: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_mset()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:protobuf_unittest.Aggregate)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:protobuf_unittest.Aggregate)
- return false;
- #undef DO_
- }
- void Aggregate::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:protobuf_unittest.Aggregate)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional int32 i = 1;
- if (cached_has_bits & 0x00000010u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->i(), output);
- }
- // optional string s = 2;
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->s().data(), static_cast<int>(this->s().length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "protobuf_unittest.Aggregate.s");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 2, this->s(), output);
- }
- // optional .protobuf_unittest.Aggregate sub = 3;
- if (cached_has_bits & 0x00000002u) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 3, this->_internal_sub(), output);
- }
- // optional .google.protobuf.FileOptions file = 4;
- if (cached_has_bits & 0x00000004u) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 4, this->_internal_file(), output);
- }
- // optional .protobuf_unittest.AggregateMessageSet mset = 5;
- if (cached_has_bits & 0x00000008u) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 5, this->_internal_mset(), output);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:protobuf_unittest.Aggregate)
- }
- ::google::protobuf::uint8* Aggregate::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:protobuf_unittest.Aggregate)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional int32 i = 1;
- if (cached_has_bits & 0x00000010u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->i(), target);
- }
- // optional string s = 2;
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->s().data(), static_cast<int>(this->s().length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "protobuf_unittest.Aggregate.s");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 2, this->s(), target);
- }
- // optional .protobuf_unittest.Aggregate sub = 3;
- if (cached_has_bits & 0x00000002u) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 3, this->_internal_sub(), deterministic, target);
- }
- // optional .google.protobuf.FileOptions file = 4;
- if (cached_has_bits & 0x00000004u) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 4, this->_internal_file(), deterministic, target);
- }
- // optional .protobuf_unittest.AggregateMessageSet mset = 5;
- if (cached_has_bits & 0x00000008u) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 5, this->_internal_mset(), deterministic, target);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf_unittest.Aggregate)
- return target;
- }
- size_t Aggregate::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:protobuf_unittest.Aggregate)
- size_t total_size = 0;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- if (_has_bits_[0 / 32] & 31u) {
- // optional string s = 2;
- if (has_s()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->s());
- }
- // optional .protobuf_unittest.Aggregate sub = 3;
- if (has_sub()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *sub_);
- }
- // optional .google.protobuf.FileOptions file = 4;
- if (has_file()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *file_);
- }
- // optional .protobuf_unittest.AggregateMessageSet mset = 5;
- if (has_mset()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *mset_);
- }
- // optional int32 i = 1;
- if (has_i()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->i());
- }
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void Aggregate::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:protobuf_unittest.Aggregate)
- GOOGLE_DCHECK_NE(&from, this);
- const Aggregate* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const Aggregate>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:protobuf_unittest.Aggregate)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:protobuf_unittest.Aggregate)
- MergeFrom(*source);
- }
- }
- void Aggregate::MergeFrom(const Aggregate& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf_unittest.Aggregate)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = from._has_bits_[0];
- if (cached_has_bits & 31u) {
- if (cached_has_bits & 0x00000001u) {
- set_has_s();
- s_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.s_);
- }
- if (cached_has_bits & 0x00000002u) {
- mutable_sub()->::protobuf_unittest::Aggregate::MergeFrom(from.sub());
- }
- if (cached_has_bits & 0x00000004u) {
- mutable_file()->::google::protobuf::FileOptions::MergeFrom(from.file());
- }
- if (cached_has_bits & 0x00000008u) {
- mutable_mset()->::protobuf_unittest::AggregateMessageSet::MergeFrom(from.mset());
- }
- if (cached_has_bits & 0x00000010u) {
- i_ = from.i_;
- }
- _has_bits_[0] |= cached_has_bits;
- }
- }
- void Aggregate::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:protobuf_unittest.Aggregate)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void Aggregate::CopyFrom(const Aggregate& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf_unittest.Aggregate)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool Aggregate::IsInitialized() const {
- if (has_sub()) {
- if (!this->sub_->IsInitialized()) return false;
- }
- if (has_file()) {
- if (!this->file_->IsInitialized()) return false;
- }
- if (has_mset()) {
- if (!this->mset_->IsInitialized()) return false;
- }
- return true;
- }
- void Aggregate::Swap(Aggregate* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void Aggregate::InternalSwap(Aggregate* other) {
- using std::swap;
- s_.Swap(&other->s_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- swap(sub_, other->sub_);
- swap(file_, other->file_);
- swap(mset_, other->mset_);
- swap(i_, other->i_);
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata Aggregate::GetMetadata() const {
- protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void AggregateMessage::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int AggregateMessage::kFieldnameFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- AggregateMessage::AggregateMessage()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::scc_info_AggregateMessage.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:protobuf_unittest.AggregateMessage)
- }
- AggregateMessage::AggregateMessage(const AggregateMessage& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- fieldname_ = from.fieldname_;
- // @@protoc_insertion_point(copy_constructor:protobuf_unittest.AggregateMessage)
- }
- void AggregateMessage::SharedCtor() {
- fieldname_ = 0;
- }
- AggregateMessage::~AggregateMessage() {
- // @@protoc_insertion_point(destructor:protobuf_unittest.AggregateMessage)
- SharedDtor();
- }
- void AggregateMessage::SharedDtor() {
- }
- void AggregateMessage::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* AggregateMessage::descriptor() {
- ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const AggregateMessage& AggregateMessage::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::scc_info_AggregateMessage.base);
- return *internal_default_instance();
- }
- void AggregateMessage::Clear() {
- // @@protoc_insertion_point(message_clear_start:protobuf_unittest.AggregateMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- fieldname_ = 0;
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool AggregateMessage::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:protobuf_unittest.AggregateMessage)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // optional int32 fieldname = 1 [(.protobuf_unittest.fieldopt) = {
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
- set_has_fieldname();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &fieldname_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:protobuf_unittest.AggregateMessage)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:protobuf_unittest.AggregateMessage)
- return false;
- #undef DO_
- }
- void AggregateMessage::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:protobuf_unittest.AggregateMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional int32 fieldname = 1 [(.protobuf_unittest.fieldopt) = {
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->fieldname(), output);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:protobuf_unittest.AggregateMessage)
- }
- ::google::protobuf::uint8* AggregateMessage::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:protobuf_unittest.AggregateMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional int32 fieldname = 1 [(.protobuf_unittest.fieldopt) = {
- if (cached_has_bits & 0x00000001u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->fieldname(), target);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf_unittest.AggregateMessage)
- return target;
- }
- size_t AggregateMessage::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:protobuf_unittest.AggregateMessage)
- size_t total_size = 0;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- // optional int32 fieldname = 1 [(.protobuf_unittest.fieldopt) = {
- if (has_fieldname()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->fieldname());
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void AggregateMessage::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:protobuf_unittest.AggregateMessage)
- GOOGLE_DCHECK_NE(&from, this);
- const AggregateMessage* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const AggregateMessage>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:protobuf_unittest.AggregateMessage)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:protobuf_unittest.AggregateMessage)
- MergeFrom(*source);
- }
- }
- void AggregateMessage::MergeFrom(const AggregateMessage& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf_unittest.AggregateMessage)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (from.has_fieldname()) {
- set_fieldname(from.fieldname());
- }
- }
- void AggregateMessage::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:protobuf_unittest.AggregateMessage)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void AggregateMessage::CopyFrom(const AggregateMessage& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf_unittest.AggregateMessage)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool AggregateMessage::IsInitialized() const {
- return true;
- }
- void AggregateMessage::Swap(AggregateMessage* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void AggregateMessage::InternalSwap(AggregateMessage* other) {
- using std::swap;
- swap(fieldname_, other->fieldname_);
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata AggregateMessage::GetMetadata() const {
- protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void NestedOptionType_NestedMessage::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int NestedOptionType_NestedMessage::kNestedFieldFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- NestedOptionType_NestedMessage::NestedOptionType_NestedMessage()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::scc_info_NestedOptionType_NestedMessage.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:protobuf_unittest.NestedOptionType.NestedMessage)
- }
- NestedOptionType_NestedMessage::NestedOptionType_NestedMessage(const NestedOptionType_NestedMessage& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- nested_field_ = from.nested_field_;
- // @@protoc_insertion_point(copy_constructor:protobuf_unittest.NestedOptionType.NestedMessage)
- }
- void NestedOptionType_NestedMessage::SharedCtor() {
- nested_field_ = 0;
- }
- NestedOptionType_NestedMessage::~NestedOptionType_NestedMessage() {
- // @@protoc_insertion_point(destructor:protobuf_unittest.NestedOptionType.NestedMessage)
- SharedDtor();
- }
- void NestedOptionType_NestedMessage::SharedDtor() {
- }
- void NestedOptionType_NestedMessage::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* NestedOptionType_NestedMessage::descriptor() {
- ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const NestedOptionType_NestedMessage& NestedOptionType_NestedMessage::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::scc_info_NestedOptionType_NestedMessage.base);
- return *internal_default_instance();
- }
- void NestedOptionType_NestedMessage::Clear() {
- // @@protoc_insertion_point(message_clear_start:protobuf_unittest.NestedOptionType.NestedMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- nested_field_ = 0;
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool NestedOptionType_NestedMessage::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:protobuf_unittest.NestedOptionType.NestedMessage)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // optional int32 nested_field = 1 [(.protobuf_unittest.field_opt1) = 1002];
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
- set_has_nested_field();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &nested_field_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:protobuf_unittest.NestedOptionType.NestedMessage)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:protobuf_unittest.NestedOptionType.NestedMessage)
- return false;
- #undef DO_
- }
- void NestedOptionType_NestedMessage::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:protobuf_unittest.NestedOptionType.NestedMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional int32 nested_field = 1 [(.protobuf_unittest.field_opt1) = 1002];
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->nested_field(), output);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:protobuf_unittest.NestedOptionType.NestedMessage)
- }
- ::google::protobuf::uint8* NestedOptionType_NestedMessage::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:protobuf_unittest.NestedOptionType.NestedMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional int32 nested_field = 1 [(.protobuf_unittest.field_opt1) = 1002];
- if (cached_has_bits & 0x00000001u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->nested_field(), target);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf_unittest.NestedOptionType.NestedMessage)
- return target;
- }
- size_t NestedOptionType_NestedMessage::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:protobuf_unittest.NestedOptionType.NestedMessage)
- size_t total_size = 0;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- // optional int32 nested_field = 1 [(.protobuf_unittest.field_opt1) = 1002];
- if (has_nested_field()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->nested_field());
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void NestedOptionType_NestedMessage::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:protobuf_unittest.NestedOptionType.NestedMessage)
- GOOGLE_DCHECK_NE(&from, this);
- const NestedOptionType_NestedMessage* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const NestedOptionType_NestedMessage>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:protobuf_unittest.NestedOptionType.NestedMessage)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:protobuf_unittest.NestedOptionType.NestedMessage)
- MergeFrom(*source);
- }
- }
- void NestedOptionType_NestedMessage::MergeFrom(const NestedOptionType_NestedMessage& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf_unittest.NestedOptionType.NestedMessage)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (from.has_nested_field()) {
- set_nested_field(from.nested_field());
- }
- }
- void NestedOptionType_NestedMessage::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:protobuf_unittest.NestedOptionType.NestedMessage)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void NestedOptionType_NestedMessage::CopyFrom(const NestedOptionType_NestedMessage& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf_unittest.NestedOptionType.NestedMessage)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool NestedOptionType_NestedMessage::IsInitialized() const {
- return true;
- }
- void NestedOptionType_NestedMessage::Swap(NestedOptionType_NestedMessage* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void NestedOptionType_NestedMessage::InternalSwap(NestedOptionType_NestedMessage* other) {
- using std::swap;
- swap(nested_field_, other->nested_field_);
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata NestedOptionType_NestedMessage::GetMetadata() const {
- protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void NestedOptionType::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- NestedOptionType::NestedOptionType()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::scc_info_NestedOptionType.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:protobuf_unittest.NestedOptionType)
- }
- NestedOptionType::NestedOptionType(const NestedOptionType& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- // @@protoc_insertion_point(copy_constructor:protobuf_unittest.NestedOptionType)
- }
- void NestedOptionType::SharedCtor() {
- }
- NestedOptionType::~NestedOptionType() {
- // @@protoc_insertion_point(destructor:protobuf_unittest.NestedOptionType)
- SharedDtor();
- }
- void NestedOptionType::SharedDtor() {
- }
- void NestedOptionType::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* NestedOptionType::descriptor() {
- ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const NestedOptionType& NestedOptionType::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::scc_info_NestedOptionType.base);
- return *internal_default_instance();
- }
- void NestedOptionType::Clear() {
- // @@protoc_insertion_point(message_clear_start:protobuf_unittest.NestedOptionType)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool NestedOptionType::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:protobuf_unittest.NestedOptionType)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- }
- success:
- // @@protoc_insertion_point(parse_success:protobuf_unittest.NestedOptionType)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:protobuf_unittest.NestedOptionType)
- return false;
- #undef DO_
- }
- void NestedOptionType::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:protobuf_unittest.NestedOptionType)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:protobuf_unittest.NestedOptionType)
- }
- ::google::protobuf::uint8* NestedOptionType::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:protobuf_unittest.NestedOptionType)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf_unittest.NestedOptionType)
- return target;
- }
- size_t NestedOptionType::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:protobuf_unittest.NestedOptionType)
- size_t total_size = 0;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void NestedOptionType::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:protobuf_unittest.NestedOptionType)
- GOOGLE_DCHECK_NE(&from, this);
- const NestedOptionType* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const NestedOptionType>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:protobuf_unittest.NestedOptionType)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:protobuf_unittest.NestedOptionType)
- MergeFrom(*source);
- }
- }
- void NestedOptionType::MergeFrom(const NestedOptionType& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf_unittest.NestedOptionType)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- }
- void NestedOptionType::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:protobuf_unittest.NestedOptionType)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void NestedOptionType::CopyFrom(const NestedOptionType& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf_unittest.NestedOptionType)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool NestedOptionType::IsInitialized() const {
- return true;
- }
- void NestedOptionType::Swap(NestedOptionType* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void NestedOptionType::InternalSwap(NestedOptionType* other) {
- using std::swap;
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata NestedOptionType::GetMetadata() const {
- protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void OldOptionType::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int OldOptionType::kValueFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- OldOptionType::OldOptionType()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::scc_info_OldOptionType.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:protobuf_unittest.OldOptionType)
- }
- OldOptionType::OldOptionType(const OldOptionType& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- value_ = from.value_;
- // @@protoc_insertion_point(copy_constructor:protobuf_unittest.OldOptionType)
- }
- void OldOptionType::SharedCtor() {
- value_ = 0;
- }
- OldOptionType::~OldOptionType() {
- // @@protoc_insertion_point(destructor:protobuf_unittest.OldOptionType)
- SharedDtor();
- }
- void OldOptionType::SharedDtor() {
- }
- void OldOptionType::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* OldOptionType::descriptor() {
- ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const OldOptionType& OldOptionType::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::scc_info_OldOptionType.base);
- return *internal_default_instance();
- }
- void OldOptionType::Clear() {
- // @@protoc_insertion_point(message_clear_start:protobuf_unittest.OldOptionType)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- value_ = 0;
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool OldOptionType::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:protobuf_unittest.OldOptionType)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // required .protobuf_unittest.OldOptionType.TestEnum value = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
- int value;
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
- input, &value)));
- if (::protobuf_unittest::OldOptionType_TestEnum_IsValid(value)) {
- set_value(static_cast< ::protobuf_unittest::OldOptionType_TestEnum >(value));
- } else {
- mutable_unknown_fields()->AddVarint(
- 1, static_cast< ::google::protobuf::uint64>(value));
- }
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:protobuf_unittest.OldOptionType)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:protobuf_unittest.OldOptionType)
- return false;
- #undef DO_
- }
- void OldOptionType::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:protobuf_unittest.OldOptionType)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // required .protobuf_unittest.OldOptionType.TestEnum value = 1;
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormatLite::WriteEnum(
- 1, this->value(), output);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:protobuf_unittest.OldOptionType)
- }
- ::google::protobuf::uint8* OldOptionType::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:protobuf_unittest.OldOptionType)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // required .protobuf_unittest.OldOptionType.TestEnum value = 1;
- if (cached_has_bits & 0x00000001u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
- 1, this->value(), target);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf_unittest.OldOptionType)
- return target;
- }
- size_t OldOptionType::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:protobuf_unittest.OldOptionType)
- size_t total_size = 0;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- // required .protobuf_unittest.OldOptionType.TestEnum value = 1;
- if (has_value()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::EnumSize(this->value());
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void OldOptionType::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:protobuf_unittest.OldOptionType)
- GOOGLE_DCHECK_NE(&from, this);
- const OldOptionType* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const OldOptionType>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:protobuf_unittest.OldOptionType)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:protobuf_unittest.OldOptionType)
- MergeFrom(*source);
- }
- }
- void OldOptionType::MergeFrom(const OldOptionType& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf_unittest.OldOptionType)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (from.has_value()) {
- set_value(from.value());
- }
- }
- void OldOptionType::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:protobuf_unittest.OldOptionType)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void OldOptionType::CopyFrom(const OldOptionType& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf_unittest.OldOptionType)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool OldOptionType::IsInitialized() const {
- if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
- return true;
- }
- void OldOptionType::Swap(OldOptionType* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void OldOptionType::InternalSwap(OldOptionType* other) {
- using std::swap;
- swap(value_, other->value_);
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata OldOptionType::GetMetadata() const {
- protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void NewOptionType::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int NewOptionType::kValueFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- NewOptionType::NewOptionType()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::scc_info_NewOptionType.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:protobuf_unittest.NewOptionType)
- }
- NewOptionType::NewOptionType(const NewOptionType& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- value_ = from.value_;
- // @@protoc_insertion_point(copy_constructor:protobuf_unittest.NewOptionType)
- }
- void NewOptionType::SharedCtor() {
- value_ = 0;
- }
- NewOptionType::~NewOptionType() {
- // @@protoc_insertion_point(destructor:protobuf_unittest.NewOptionType)
- SharedDtor();
- }
- void NewOptionType::SharedDtor() {
- }
- void NewOptionType::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* NewOptionType::descriptor() {
- ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const NewOptionType& NewOptionType::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::scc_info_NewOptionType.base);
- return *internal_default_instance();
- }
- void NewOptionType::Clear() {
- // @@protoc_insertion_point(message_clear_start:protobuf_unittest.NewOptionType)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- value_ = 0;
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool NewOptionType::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:protobuf_unittest.NewOptionType)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // required .protobuf_unittest.NewOptionType.TestEnum value = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
- int value;
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
- input, &value)));
- if (::protobuf_unittest::NewOptionType_TestEnum_IsValid(value)) {
- set_value(static_cast< ::protobuf_unittest::NewOptionType_TestEnum >(value));
- } else {
- mutable_unknown_fields()->AddVarint(
- 1, static_cast< ::google::protobuf::uint64>(value));
- }
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:protobuf_unittest.NewOptionType)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:protobuf_unittest.NewOptionType)
- return false;
- #undef DO_
- }
- void NewOptionType::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:protobuf_unittest.NewOptionType)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // required .protobuf_unittest.NewOptionType.TestEnum value = 1;
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormatLite::WriteEnum(
- 1, this->value(), output);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:protobuf_unittest.NewOptionType)
- }
- ::google::protobuf::uint8* NewOptionType::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:protobuf_unittest.NewOptionType)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // required .protobuf_unittest.NewOptionType.TestEnum value = 1;
- if (cached_has_bits & 0x00000001u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
- 1, this->value(), target);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf_unittest.NewOptionType)
- return target;
- }
- size_t NewOptionType::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:protobuf_unittest.NewOptionType)
- size_t total_size = 0;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- // required .protobuf_unittest.NewOptionType.TestEnum value = 1;
- if (has_value()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::EnumSize(this->value());
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void NewOptionType::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:protobuf_unittest.NewOptionType)
- GOOGLE_DCHECK_NE(&from, this);
- const NewOptionType* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const NewOptionType>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:protobuf_unittest.NewOptionType)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:protobuf_unittest.NewOptionType)
- MergeFrom(*source);
- }
- }
- void NewOptionType::MergeFrom(const NewOptionType& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf_unittest.NewOptionType)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (from.has_value()) {
- set_value(from.value());
- }
- }
- void NewOptionType::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:protobuf_unittest.NewOptionType)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void NewOptionType::CopyFrom(const NewOptionType& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf_unittest.NewOptionType)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool NewOptionType::IsInitialized() const {
- if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
- return true;
- }
- void NewOptionType::Swap(NewOptionType* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void NewOptionType::InternalSwap(NewOptionType* other) {
- using std::swap;
- swap(value_, other->value_);
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata NewOptionType::GetMetadata() const {
- protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void TestMessageWithRequiredEnumOption::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- TestMessageWithRequiredEnumOption::TestMessageWithRequiredEnumOption()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::scc_info_TestMessageWithRequiredEnumOption.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:protobuf_unittest.TestMessageWithRequiredEnumOption)
- }
- TestMessageWithRequiredEnumOption::TestMessageWithRequiredEnumOption(const TestMessageWithRequiredEnumOption& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- // @@protoc_insertion_point(copy_constructor:protobuf_unittest.TestMessageWithRequiredEnumOption)
- }
- void TestMessageWithRequiredEnumOption::SharedCtor() {
- }
- TestMessageWithRequiredEnumOption::~TestMessageWithRequiredEnumOption() {
- // @@protoc_insertion_point(destructor:protobuf_unittest.TestMessageWithRequiredEnumOption)
- SharedDtor();
- }
- void TestMessageWithRequiredEnumOption::SharedDtor() {
- }
- void TestMessageWithRequiredEnumOption::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* TestMessageWithRequiredEnumOption::descriptor() {
- ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const TestMessageWithRequiredEnumOption& TestMessageWithRequiredEnumOption::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::scc_info_TestMessageWithRequiredEnumOption.base);
- return *internal_default_instance();
- }
- void TestMessageWithRequiredEnumOption::Clear() {
- // @@protoc_insertion_point(message_clear_start:protobuf_unittest.TestMessageWithRequiredEnumOption)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool TestMessageWithRequiredEnumOption::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:protobuf_unittest.TestMessageWithRequiredEnumOption)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- }
- success:
- // @@protoc_insertion_point(parse_success:protobuf_unittest.TestMessageWithRequiredEnumOption)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:protobuf_unittest.TestMessageWithRequiredEnumOption)
- return false;
- #undef DO_
- }
- void TestMessageWithRequiredEnumOption::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:protobuf_unittest.TestMessageWithRequiredEnumOption)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:protobuf_unittest.TestMessageWithRequiredEnumOption)
- }
- ::google::protobuf::uint8* TestMessageWithRequiredEnumOption::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:protobuf_unittest.TestMessageWithRequiredEnumOption)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf_unittest.TestMessageWithRequiredEnumOption)
- return target;
- }
- size_t TestMessageWithRequiredEnumOption::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:protobuf_unittest.TestMessageWithRequiredEnumOption)
- size_t total_size = 0;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void TestMessageWithRequiredEnumOption::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:protobuf_unittest.TestMessageWithRequiredEnumOption)
- GOOGLE_DCHECK_NE(&from, this);
- const TestMessageWithRequiredEnumOption* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const TestMessageWithRequiredEnumOption>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:protobuf_unittest.TestMessageWithRequiredEnumOption)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:protobuf_unittest.TestMessageWithRequiredEnumOption)
- MergeFrom(*source);
- }
- }
- void TestMessageWithRequiredEnumOption::MergeFrom(const TestMessageWithRequiredEnumOption& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf_unittest.TestMessageWithRequiredEnumOption)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- }
- void TestMessageWithRequiredEnumOption::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:protobuf_unittest.TestMessageWithRequiredEnumOption)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void TestMessageWithRequiredEnumOption::CopyFrom(const TestMessageWithRequiredEnumOption& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf_unittest.TestMessageWithRequiredEnumOption)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool TestMessageWithRequiredEnumOption::IsInitialized() const {
- return true;
- }
- void TestMessageWithRequiredEnumOption::Swap(TestMessageWithRequiredEnumOption* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void TestMessageWithRequiredEnumOption::InternalSwap(TestMessageWithRequiredEnumOption* other) {
- using std::swap;
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata TestMessageWithRequiredEnumOption::GetMetadata() const {
- protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- TestServiceWithCustomOptions::~TestServiceWithCustomOptions() {}
- const ::google::protobuf::ServiceDescriptor* TestServiceWithCustomOptions::descriptor() {
- protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::protobuf_AssignDescriptorsOnce();
- return protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::file_level_service_descriptors[0];
- }
- const ::google::protobuf::ServiceDescriptor* TestServiceWithCustomOptions::GetDescriptor() {
- return descriptor();
- }
- void TestServiceWithCustomOptions::Foo(::google::protobuf::RpcController* controller,
- const ::protobuf_unittest::CustomOptionFooRequest*,
- ::protobuf_unittest::CustomOptionFooResponse*,
- ::google::protobuf::Closure* done) {
- controller->SetFailed("Method Foo() not implemented.");
- done->Run();
- }
- void TestServiceWithCustomOptions::CallMethod(const ::google::protobuf::MethodDescriptor* method,
- ::google::protobuf::RpcController* controller,
- const ::google::protobuf::Message* request,
- ::google::protobuf::Message* response,
- ::google::protobuf::Closure* done) {
- GOOGLE_DCHECK_EQ(method->service(), protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::file_level_service_descriptors[0]);
- switch(method->index()) {
- case 0:
- Foo(controller,
- ::google::protobuf::down_cast<const ::protobuf_unittest::CustomOptionFooRequest*>(request),
- ::google::protobuf::down_cast< ::protobuf_unittest::CustomOptionFooResponse*>(response),
- done);
- break;
- default:
- GOOGLE_LOG(FATAL) << "Bad method index; this should never happen.";
- break;
- }
- }
- const ::google::protobuf::Message& TestServiceWithCustomOptions::GetRequestPrototype(
- const ::google::protobuf::MethodDescriptor* method) const {
- GOOGLE_DCHECK_EQ(method->service(), descriptor());
- switch(method->index()) {
- case 0:
- return ::protobuf_unittest::CustomOptionFooRequest::default_instance();
- default:
- GOOGLE_LOG(FATAL) << "Bad method index; this should never happen.";
- return *::google::protobuf::MessageFactory::generated_factory()
- ->GetPrototype(method->input_type());
- }
- }
- const ::google::protobuf::Message& TestServiceWithCustomOptions::GetResponsePrototype(
- const ::google::protobuf::MethodDescriptor* method) const {
- GOOGLE_DCHECK_EQ(method->service(), descriptor());
- switch(method->index()) {
- case 0:
- return ::protobuf_unittest::CustomOptionFooResponse::default_instance();
- default:
- GOOGLE_LOG(FATAL) << "Bad method index; this should never happen.";
- return *::google::protobuf::MessageFactory::generated_factory()
- ->GetPrototype(method->output_type());
- }
- }
- TestServiceWithCustomOptions_Stub::TestServiceWithCustomOptions_Stub(::google::protobuf::RpcChannel* channel)
- : channel_(channel), owns_channel_(false) {}
- TestServiceWithCustomOptions_Stub::TestServiceWithCustomOptions_Stub(
- ::google::protobuf::RpcChannel* channel,
- ::google::protobuf::Service::ChannelOwnership ownership)
- : channel_(channel),
- owns_channel_(ownership == ::google::protobuf::Service::STUB_OWNS_CHANNEL) {}
- TestServiceWithCustomOptions_Stub::~TestServiceWithCustomOptions_Stub() {
- if (owns_channel_) delete channel_;
- }
- void TestServiceWithCustomOptions_Stub::Foo(::google::protobuf::RpcController* controller,
- const ::protobuf_unittest::CustomOptionFooRequest* request,
- ::protobuf_unittest::CustomOptionFooResponse* response,
- ::google::protobuf::Closure* done) {
- channel_->CallMethod(descriptor()->method(0),
- controller, request, response, done);
- }
- // ===================================================================
- AggregateService::~AggregateService() {}
- const ::google::protobuf::ServiceDescriptor* AggregateService::descriptor() {
- protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::protobuf_AssignDescriptorsOnce();
- return protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::file_level_service_descriptors[1];
- }
- const ::google::protobuf::ServiceDescriptor* AggregateService::GetDescriptor() {
- return descriptor();
- }
- void AggregateService::Method(::google::protobuf::RpcController* controller,
- const ::protobuf_unittest::AggregateMessage*,
- ::protobuf_unittest::AggregateMessage*,
- ::google::protobuf::Closure* done) {
- controller->SetFailed("Method Method() not implemented.");
- done->Run();
- }
- void AggregateService::CallMethod(const ::google::protobuf::MethodDescriptor* method,
- ::google::protobuf::RpcController* controller,
- const ::google::protobuf::Message* request,
- ::google::protobuf::Message* response,
- ::google::protobuf::Closure* done) {
- GOOGLE_DCHECK_EQ(method->service(), protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::file_level_service_descriptors[1]);
- switch(method->index()) {
- case 0:
- Method(controller,
- ::google::protobuf::down_cast<const ::protobuf_unittest::AggregateMessage*>(request),
- ::google::protobuf::down_cast< ::protobuf_unittest::AggregateMessage*>(response),
- done);
- break;
- default:
- GOOGLE_LOG(FATAL) << "Bad method index; this should never happen.";
- break;
- }
- }
- const ::google::protobuf::Message& AggregateService::GetRequestPrototype(
- const ::google::protobuf::MethodDescriptor* method) const {
- GOOGLE_DCHECK_EQ(method->service(), descriptor());
- switch(method->index()) {
- case 0:
- return ::protobuf_unittest::AggregateMessage::default_instance();
- default:
- GOOGLE_LOG(FATAL) << "Bad method index; this should never happen.";
- return *::google::protobuf::MessageFactory::generated_factory()
- ->GetPrototype(method->input_type());
- }
- }
- const ::google::protobuf::Message& AggregateService::GetResponsePrototype(
- const ::google::protobuf::MethodDescriptor* method) const {
- GOOGLE_DCHECK_EQ(method->service(), descriptor());
- switch(method->index()) {
- case 0:
- return ::protobuf_unittest::AggregateMessage::default_instance();
- default:
- GOOGLE_LOG(FATAL) << "Bad method index; this should never happen.";
- return *::google::protobuf::MessageFactory::generated_factory()
- ->GetPrototype(method->output_type());
- }
- }
- AggregateService_Stub::AggregateService_Stub(::google::protobuf::RpcChannel* channel)
- : channel_(channel), owns_channel_(false) {}
- AggregateService_Stub::AggregateService_Stub(
- ::google::protobuf::RpcChannel* channel,
- ::google::protobuf::Service::ChannelOwnership ownership)
- : channel_(channel),
- owns_channel_(ownership == ::google::protobuf::Service::STUB_OWNS_CHANNEL) {}
- AggregateService_Stub::~AggregateService_Stub() {
- if (owns_channel_) delete channel_;
- }
- void AggregateService_Stub::Method(::google::protobuf::RpcController* controller,
- const ::protobuf_unittest::AggregateMessage* request,
- ::protobuf_unittest::AggregateMessage* response,
- ::google::protobuf::Closure* done) {
- channel_->CallMethod(descriptor()->method(0),
- controller, request, response, done);
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int ComplexOptionType2_ComplexOptionType4::kComplexOpt4FieldNumber;
- #endif
- ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
- ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::ComplexOptionType2_ComplexOptionType4 >, 11, false >
- ComplexOptionType2_ComplexOptionType4::complex_opt4(kComplexOpt4FieldNumber, *::protobuf_unittest::ComplexOptionType2_ComplexOptionType4::internal_default_instance());
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int AggregateMessageSetElement::kMessageSetExtensionFieldNumber;
- #endif
- ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::AggregateMessageSet,
- ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::AggregateMessageSetElement >, 11, false >
- AggregateMessageSetElement::message_set_extension(kMessageSetExtensionFieldNumber, *::protobuf_unittest::AggregateMessageSetElement::internal_default_instance());
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int Aggregate::kNestedFieldNumber;
- #endif
- ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::FileOptions,
- ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::Aggregate >, 11, false >
- Aggregate::nested(kNestedFieldNumber, *::protobuf_unittest::Aggregate::internal_default_instance());
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int NestedOptionType::kNestedExtensionFieldNumber;
- #endif
- ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::FileOptions,
- ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 5, false >
- NestedOptionType::nested_extension(kNestedExtensionFieldNumber, 0);
- ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::FileOptions,
- ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::uint64 >, 4, false >
- file_opt1(kFileOpt1FieldNumber, GOOGLE_ULONGLONG(0));
- ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
- ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 5, false >
- message_opt1(kMessageOpt1FieldNumber, 0);
- ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::FieldOptions,
- ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::uint64 >, 6, false >
- field_opt1(kFieldOpt1FieldNumber, GOOGLE_ULONGLONG(0));
- ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::FieldOptions,
- ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 5, false >
- field_opt2(kFieldOpt2FieldNumber, 42);
- ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::OneofOptions,
- ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 5, false >
- oneof_opt1(kOneofOpt1FieldNumber, 0);
- ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::EnumOptions,
- ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 15, false >
- enum_opt1(kEnumOpt1FieldNumber, 0);
- ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::EnumValueOptions,
- ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 5, false >
- enum_value_opt1(kEnumValueOpt1FieldNumber, 0);
- ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::ServiceOptions,
- ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int64 >, 18, false >
- service_opt1(kServiceOpt1FieldNumber, GOOGLE_LONGLONG(0));
- ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MethodOptions,
- ::google::protobuf::internal::EnumTypeTraits< ::protobuf_unittest::MethodOpt1, ::protobuf_unittest::MethodOpt1_IsValid>, 14, false >
- method_opt1(kMethodOpt1FieldNumber, static_cast< ::protobuf_unittest::MethodOpt1 >(1));
- ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
- ::google::protobuf::internal::PrimitiveTypeTraits< bool >, 8, false >
- bool_opt(kBoolOptFieldNumber, false);
- ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
- ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 5, false >
- int32_opt(kInt32OptFieldNumber, 0);
- ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
- ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int64 >, 3, false >
- int64_opt(kInt64OptFieldNumber, GOOGLE_LONGLONG(0));
- ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
- ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::uint32 >, 13, false >
- uint32_opt(kUint32OptFieldNumber, 0u);
- ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
- ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::uint64 >, 4, false >
- uint64_opt(kUint64OptFieldNumber, GOOGLE_ULONGLONG(0));
- ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
- ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 17, false >
- sint32_opt(kSint32OptFieldNumber, 0);
- ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
- ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int64 >, 18, false >
- sint64_opt(kSint64OptFieldNumber, GOOGLE_LONGLONG(0));
- ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
- ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::uint32 >, 7, false >
- fixed32_opt(kFixed32OptFieldNumber, 0u);
- ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
- ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::uint64 >, 6, false >
- fixed64_opt(kFixed64OptFieldNumber, GOOGLE_ULONGLONG(0));
- ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
- ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 15, false >
- sfixed32_opt(kSfixed32OptFieldNumber, 0);
- ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
- ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int64 >, 16, false >
- sfixed64_opt(kSfixed64OptFieldNumber, GOOGLE_LONGLONG(0));
- ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
- ::google::protobuf::internal::PrimitiveTypeTraits< float >, 2, false >
- float_opt(kFloatOptFieldNumber, 0);
- ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
- ::google::protobuf::internal::PrimitiveTypeTraits< double >, 1, false >
- double_opt(kDoubleOptFieldNumber, 0);
- const ::std::string string_opt_default("");
- ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
- ::google::protobuf::internal::StringTypeTraits, 9, false >
- string_opt(kStringOptFieldNumber, string_opt_default);
- const ::std::string bytes_opt_default("");
- ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
- ::google::protobuf::internal::StringTypeTraits, 12, false >
- bytes_opt(kBytesOptFieldNumber, bytes_opt_default);
- ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
- ::google::protobuf::internal::EnumTypeTraits< ::protobuf_unittest::DummyMessageContainingEnum_TestEnumType, ::protobuf_unittest::DummyMessageContainingEnum_TestEnumType_IsValid>, 14, false >
- enum_opt(kEnumOptFieldNumber, static_cast< ::protobuf_unittest::DummyMessageContainingEnum_TestEnumType >(22));
- ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
- ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::DummyMessageInvalidAsOptionType >, 11, false >
- message_type_opt(kMessageTypeOptFieldNumber, *::protobuf_unittest::DummyMessageInvalidAsOptionType::internal_default_instance());
- ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::ComplexOptionType1,
- ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 5, false >
- quux(kQuuxFieldNumber, 0);
- ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::ComplexOptionType1,
- ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::ComplexOptionType3 >, 11, false >
- corge(kCorgeFieldNumber, *::protobuf_unittest::ComplexOptionType3::internal_default_instance());
- ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::ComplexOptionType2,
- ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 5, false >
- grault(kGraultFieldNumber, 0);
- ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::ComplexOptionType2,
- ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::ComplexOptionType1 >, 11, false >
- garply(kGarplyFieldNumber, *::protobuf_unittest::ComplexOptionType1::internal_default_instance());
- ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
- ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::ComplexOptionType1 >, 11, false >
- complex_opt1(kComplexOpt1FieldNumber, *::protobuf_unittest::ComplexOptionType1::internal_default_instance());
- ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
- ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::ComplexOptionType2 >, 11, false >
- complex_opt2(kComplexOpt2FieldNumber, *::protobuf_unittest::ComplexOptionType2::internal_default_instance());
- ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
- ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::ComplexOptionType3 >, 11, false >
- complex_opt3(kComplexOpt3FieldNumber, *::protobuf_unittest::ComplexOptionType3::internal_default_instance());
- ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
- ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::ComplexOpt6 >, 10, false >
- complexopt6(kComplexopt6FieldNumber, *::protobuf_unittest::ComplexOpt6::internal_default_instance());
- ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::FileOptions,
- ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::Aggregate >, 11, false >
- fileopt(kFileoptFieldNumber, *::protobuf_unittest::Aggregate::internal_default_instance());
- ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
- ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::Aggregate >, 11, false >
- msgopt(kMsgoptFieldNumber, *::protobuf_unittest::Aggregate::internal_default_instance());
- ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::FieldOptions,
- ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::Aggregate >, 11, false >
- fieldopt(kFieldoptFieldNumber, *::protobuf_unittest::Aggregate::internal_default_instance());
- ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::EnumOptions,
- ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::Aggregate >, 11, false >
- enumopt(kEnumoptFieldNumber, *::protobuf_unittest::Aggregate::internal_default_instance());
- ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::EnumValueOptions,
- ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::Aggregate >, 11, false >
- enumvalopt(kEnumvaloptFieldNumber, *::protobuf_unittest::Aggregate::internal_default_instance());
- ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::ServiceOptions,
- ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::Aggregate >, 11, false >
- serviceopt(kServiceoptFieldNumber, *::protobuf_unittest::Aggregate::internal_default_instance());
- ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MethodOptions,
- ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::Aggregate >, 11, false >
- methodopt(kMethodoptFieldNumber, *::protobuf_unittest::Aggregate::internal_default_instance());
- ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
- ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::OldOptionType >, 11, false >
- required_enum_opt(kRequiredEnumOptFieldNumber, *::protobuf_unittest::OldOptionType::internal_default_instance());
- // @@protoc_insertion_point(namespace_scope)
- } // namespace protobuf_unittest
- namespace google {
- namespace protobuf {
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestMessageWithCustomOptions* Arena::CreateMaybeMessage< ::protobuf_unittest::TestMessageWithCustomOptions >(Arena* arena) {
- return Arena::CreateInternal< ::protobuf_unittest::TestMessageWithCustomOptions >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::CustomOptionFooRequest* Arena::CreateMaybeMessage< ::protobuf_unittest::CustomOptionFooRequest >(Arena* arena) {
- return Arena::CreateInternal< ::protobuf_unittest::CustomOptionFooRequest >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::CustomOptionFooResponse* Arena::CreateMaybeMessage< ::protobuf_unittest::CustomOptionFooResponse >(Arena* arena) {
- return Arena::CreateInternal< ::protobuf_unittest::CustomOptionFooResponse >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::CustomOptionFooClientMessage* Arena::CreateMaybeMessage< ::protobuf_unittest::CustomOptionFooClientMessage >(Arena* arena) {
- return Arena::CreateInternal< ::protobuf_unittest::CustomOptionFooClientMessage >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::CustomOptionFooServerMessage* Arena::CreateMaybeMessage< ::protobuf_unittest::CustomOptionFooServerMessage >(Arena* arena) {
- return Arena::CreateInternal< ::protobuf_unittest::CustomOptionFooServerMessage >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::DummyMessageContainingEnum* Arena::CreateMaybeMessage< ::protobuf_unittest::DummyMessageContainingEnum >(Arena* arena) {
- return Arena::CreateInternal< ::protobuf_unittest::DummyMessageContainingEnum >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::DummyMessageInvalidAsOptionType* Arena::CreateMaybeMessage< ::protobuf_unittest::DummyMessageInvalidAsOptionType >(Arena* arena) {
- return Arena::CreateInternal< ::protobuf_unittest::DummyMessageInvalidAsOptionType >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::CustomOptionMinIntegerValues* Arena::CreateMaybeMessage< ::protobuf_unittest::CustomOptionMinIntegerValues >(Arena* arena) {
- return Arena::CreateInternal< ::protobuf_unittest::CustomOptionMinIntegerValues >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::CustomOptionMaxIntegerValues* Arena::CreateMaybeMessage< ::protobuf_unittest::CustomOptionMaxIntegerValues >(Arena* arena) {
- return Arena::CreateInternal< ::protobuf_unittest::CustomOptionMaxIntegerValues >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::CustomOptionOtherValues* Arena::CreateMaybeMessage< ::protobuf_unittest::CustomOptionOtherValues >(Arena* arena) {
- return Arena::CreateInternal< ::protobuf_unittest::CustomOptionOtherValues >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::SettingRealsFromPositiveInts* Arena::CreateMaybeMessage< ::protobuf_unittest::SettingRealsFromPositiveInts >(Arena* arena) {
- return Arena::CreateInternal< ::protobuf_unittest::SettingRealsFromPositiveInts >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::SettingRealsFromNegativeInts* Arena::CreateMaybeMessage< ::protobuf_unittest::SettingRealsFromNegativeInts >(Arena* arena) {
- return Arena::CreateInternal< ::protobuf_unittest::SettingRealsFromNegativeInts >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::ComplexOptionType1* Arena::CreateMaybeMessage< ::protobuf_unittest::ComplexOptionType1 >(Arena* arena) {
- return Arena::CreateInternal< ::protobuf_unittest::ComplexOptionType1 >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::ComplexOptionType2_ComplexOptionType4* Arena::CreateMaybeMessage< ::protobuf_unittest::ComplexOptionType2_ComplexOptionType4 >(Arena* arena) {
- return Arena::CreateInternal< ::protobuf_unittest::ComplexOptionType2_ComplexOptionType4 >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::ComplexOptionType2* Arena::CreateMaybeMessage< ::protobuf_unittest::ComplexOptionType2 >(Arena* arena) {
- return Arena::CreateInternal< ::protobuf_unittest::ComplexOptionType2 >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::ComplexOptionType3_ComplexOptionType5* Arena::CreateMaybeMessage< ::protobuf_unittest::ComplexOptionType3_ComplexOptionType5 >(Arena* arena) {
- return Arena::CreateInternal< ::protobuf_unittest::ComplexOptionType3_ComplexOptionType5 >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::ComplexOptionType3* Arena::CreateMaybeMessage< ::protobuf_unittest::ComplexOptionType3 >(Arena* arena) {
- return Arena::CreateInternal< ::protobuf_unittest::ComplexOptionType3 >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::ComplexOpt6* Arena::CreateMaybeMessage< ::protobuf_unittest::ComplexOpt6 >(Arena* arena) {
- return Arena::CreateInternal< ::protobuf_unittest::ComplexOpt6 >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::VariousComplexOptions* Arena::CreateMaybeMessage< ::protobuf_unittest::VariousComplexOptions >(Arena* arena) {
- return Arena::CreateInternal< ::protobuf_unittest::VariousComplexOptions >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::AggregateMessageSet* Arena::CreateMaybeMessage< ::protobuf_unittest::AggregateMessageSet >(Arena* arena) {
- return Arena::CreateInternal< ::protobuf_unittest::AggregateMessageSet >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::AggregateMessageSetElement* Arena::CreateMaybeMessage< ::protobuf_unittest::AggregateMessageSetElement >(Arena* arena) {
- return Arena::CreateInternal< ::protobuf_unittest::AggregateMessageSetElement >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::Aggregate* Arena::CreateMaybeMessage< ::protobuf_unittest::Aggregate >(Arena* arena) {
- return Arena::CreateInternal< ::protobuf_unittest::Aggregate >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::AggregateMessage* Arena::CreateMaybeMessage< ::protobuf_unittest::AggregateMessage >(Arena* arena) {
- return Arena::CreateInternal< ::protobuf_unittest::AggregateMessage >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::NestedOptionType_NestedMessage* Arena::CreateMaybeMessage< ::protobuf_unittest::NestedOptionType_NestedMessage >(Arena* arena) {
- return Arena::CreateInternal< ::protobuf_unittest::NestedOptionType_NestedMessage >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::NestedOptionType* Arena::CreateMaybeMessage< ::protobuf_unittest::NestedOptionType >(Arena* arena) {
- return Arena::CreateInternal< ::protobuf_unittest::NestedOptionType >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::OldOptionType* Arena::CreateMaybeMessage< ::protobuf_unittest::OldOptionType >(Arena* arena) {
- return Arena::CreateInternal< ::protobuf_unittest::OldOptionType >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::NewOptionType* Arena::CreateMaybeMessage< ::protobuf_unittest::NewOptionType >(Arena* arena) {
- return Arena::CreateInternal< ::protobuf_unittest::NewOptionType >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestMessageWithRequiredEnumOption* Arena::CreateMaybeMessage< ::protobuf_unittest::TestMessageWithRequiredEnumOption >(Arena* arena) {
- return Arena::CreateInternal< ::protobuf_unittest::TestMessageWithRequiredEnumOption >(arena);
- }
- } // namespace protobuf
- } // namespace google
- // @@protoc_insertion_point(global_scope)
|