| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: google/protobuf/util/internal/testdata/default_value.proto
- #include <google/protobuf/util/internal/testdata/default_value.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_2fany_2eproto {
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fany_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Any;
- } // namespace protobuf_google_2fprotobuf_2fany_2eproto
- namespace protobuf_google_2fprotobuf_2fstruct_2eproto {
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fstruct_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ListValue;
- } // namespace protobuf_google_2fprotobuf_2fstruct_2eproto
- namespace protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto {
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_AnyData_MapDataEntry_DoNotUse;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_IntToStringMap_MapEntry_DoNotUse;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_MessageMap_M;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_MixedMap2_MapEntry_DoNotUse;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_MixedMap_MapEntry_DoNotUse;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_StringtoIntMap_MapEntry_DoNotUse;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_DoubleMessage;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_DoubleValueMessage;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_IntToStringMap;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ListValueMessage;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_MessageMap;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_MessageMap_MapEntry_DoNotUse;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_MixedMap2;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_MixedMap;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_StringtoIntMap;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_StructMessage;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ValueMessage;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_AnyData;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_AnyMessage;
- } // namespace protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto
- namespace protobuf_google_2fprotobuf_2fwrappers_2eproto {
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fwrappers_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_DoubleValue;
- } // namespace protobuf_google_2fprotobuf_2fwrappers_2eproto
- namespace google {
- namespace protobuf {
- namespace testing {
- class DefaultValueTestCasesDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<DefaultValueTestCases>
- _instance;
- } _DefaultValueTestCases_default_instance_;
- class DoubleMessageDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<DoubleMessage>
- _instance;
- ::google::protobuf::internal::ArenaStringPtr str_value_;
- ::google::protobuf::int64 num_value_;
- } _DoubleMessage_default_instance_;
- class StructMessageDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<StructMessage>
- _instance;
- } _StructMessage_default_instance_;
- class ValueMessageDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<ValueMessage>
- _instance;
- } _ValueMessage_default_instance_;
- class ListValueMessageDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<ListValueMessage>
- _instance;
- } _ListValueMessage_default_instance_;
- class RequestMessageDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<RequestMessage>
- _instance;
- } _RequestMessage_default_instance_;
- class AnyMessageDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<AnyMessage>
- _instance;
- } _AnyMessage_default_instance_;
- class AnyData_MapDataEntry_DoNotUseDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<AnyData_MapDataEntry_DoNotUse>
- _instance;
- } _AnyData_MapDataEntry_DoNotUse_default_instance_;
- class AnyDataDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<AnyData>
- _instance;
- } _AnyData_default_instance_;
- class StringtoIntMap_MapEntry_DoNotUseDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<StringtoIntMap_MapEntry_DoNotUse>
- _instance;
- } _StringtoIntMap_MapEntry_DoNotUse_default_instance_;
- class StringtoIntMapDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<StringtoIntMap>
- _instance;
- } _StringtoIntMap_default_instance_;
- class IntToStringMap_MapEntry_DoNotUseDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<IntToStringMap_MapEntry_DoNotUse>
- _instance;
- } _IntToStringMap_MapEntry_DoNotUse_default_instance_;
- class IntToStringMapDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<IntToStringMap>
- _instance;
- } _IntToStringMap_default_instance_;
- class MixedMap_MapEntry_DoNotUseDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<MixedMap_MapEntry_DoNotUse>
- _instance;
- } _MixedMap_MapEntry_DoNotUse_default_instance_;
- class MixedMapDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<MixedMap>
- _instance;
- } _MixedMap_default_instance_;
- class MixedMap2_MapEntry_DoNotUseDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<MixedMap2_MapEntry_DoNotUse>
- _instance;
- } _MixedMap2_MapEntry_DoNotUse_default_instance_;
- class MixedMap2DefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<MixedMap2>
- _instance;
- } _MixedMap2_default_instance_;
- class MessageMap_MDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<MessageMap_M>
- _instance;
- } _MessageMap_M_default_instance_;
- class MessageMap_MapEntry_DoNotUseDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<MessageMap_MapEntry_DoNotUse>
- _instance;
- } _MessageMap_MapEntry_DoNotUse_default_instance_;
- class MessageMapDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<MessageMap>
- _instance;
- } _MessageMap_default_instance_;
- class DoubleValueMessageDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<DoubleValueMessage>
- _instance;
- } _DoubleValueMessage_default_instance_;
- } // namespace testing
- } // namespace protobuf
- } // namespace google
- namespace protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto {
- static void InitDefaultsDefaultValueTestCases() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::google::protobuf::testing::_DefaultValueTestCases_default_instance_;
- new (ptr) ::google::protobuf::testing::DefaultValueTestCases();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::google::protobuf::testing::DefaultValueTestCases::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<13> scc_info_DefaultValueTestCases =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 13, InitDefaultsDefaultValueTestCases}, {
- &protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::scc_info_DoubleMessage.base,
- &protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::scc_info_StructMessage.base,
- &protobuf_google_2fprotobuf_2fstruct_2eproto::scc_info_ListValue.base,
- &protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::scc_info_ValueMessage.base,
- &protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::scc_info_ListValueMessage.base,
- &protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::scc_info_AnyMessage.base,
- &protobuf_google_2fprotobuf_2fany_2eproto::scc_info_Any.base,
- &protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::scc_info_StringtoIntMap.base,
- &protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::scc_info_IntToStringMap.base,
- &protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::scc_info_MixedMap.base,
- &protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::scc_info_MixedMap2.base,
- &protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::scc_info_MessageMap.base,
- &protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::scc_info_DoubleValueMessage.base,}};
- static void InitDefaultsDoubleMessage() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::google::protobuf::testing::_DoubleMessage_default_instance_;
- new (ptr) ::google::protobuf::testing::DoubleMessage();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::google::protobuf::testing::DoubleMessage::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<1> scc_info_DoubleMessage =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsDoubleMessage}, {
- &protobuf_google_2fprotobuf_2fwrappers_2eproto::scc_info_DoubleValue.base,}};
- static void InitDefaultsStructMessage() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::google::protobuf::testing::_StructMessage_default_instance_;
- new (ptr) ::google::protobuf::testing::StructMessage();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::google::protobuf::testing::StructMessage::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<1> scc_info_StructMessage =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsStructMessage}, {
- &protobuf_google_2fprotobuf_2fstruct_2eproto::scc_info_ListValue.base,}};
- static void InitDefaultsValueMessage() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::google::protobuf::testing::_ValueMessage_default_instance_;
- new (ptr) ::google::protobuf::testing::ValueMessage();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::google::protobuf::testing::ValueMessage::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<1> scc_info_ValueMessage =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsValueMessage}, {
- &protobuf_google_2fprotobuf_2fstruct_2eproto::scc_info_ListValue.base,}};
- static void InitDefaultsListValueMessage() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::google::protobuf::testing::_ListValueMessage_default_instance_;
- new (ptr) ::google::protobuf::testing::ListValueMessage();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::google::protobuf::testing::ListValueMessage::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<1> scc_info_ListValueMessage =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsListValueMessage}, {
- &protobuf_google_2fprotobuf_2fstruct_2eproto::scc_info_ListValue.base,}};
- static void InitDefaultsRequestMessage() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::google::protobuf::testing::_RequestMessage_default_instance_;
- new (ptr) ::google::protobuf::testing::RequestMessage();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::google::protobuf::testing::RequestMessage::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_RequestMessage =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsRequestMessage}, {}};
- static void InitDefaultsAnyMessage() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::google::protobuf::testing::_AnyMessage_default_instance_;
- new (ptr) ::google::protobuf::testing::AnyMessage();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::google::protobuf::testing::AnyMessage::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<2> scc_info_AnyMessage =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsAnyMessage}, {
- &protobuf_google_2fprotobuf_2fany_2eproto::scc_info_Any.base,
- &protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::scc_info_AnyData.base,}};
- static void InitDefaultsAnyData_MapDataEntry_DoNotUse() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::google::protobuf::testing::_AnyData_MapDataEntry_DoNotUse_default_instance_;
- new (ptr) ::google::protobuf::testing::AnyData_MapDataEntry_DoNotUse();
- }
- ::google::protobuf::testing::AnyData_MapDataEntry_DoNotUse::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_AnyData_MapDataEntry_DoNotUse =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsAnyData_MapDataEntry_DoNotUse}, {}};
- static void InitDefaultsAnyData() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::google::protobuf::testing::_AnyData_default_instance_;
- new (ptr) ::google::protobuf::testing::AnyData();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::google::protobuf::testing::AnyData::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<2> scc_info_AnyData =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsAnyData}, {
- &protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::scc_info_AnyData_MapDataEntry_DoNotUse.base,
- &protobuf_google_2fprotobuf_2fstruct_2eproto::scc_info_ListValue.base,}};
- static void InitDefaultsStringtoIntMap_MapEntry_DoNotUse() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::google::protobuf::testing::_StringtoIntMap_MapEntry_DoNotUse_default_instance_;
- new (ptr) ::google::protobuf::testing::StringtoIntMap_MapEntry_DoNotUse();
- }
- ::google::protobuf::testing::StringtoIntMap_MapEntry_DoNotUse::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_StringtoIntMap_MapEntry_DoNotUse =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsStringtoIntMap_MapEntry_DoNotUse}, {}};
- static void InitDefaultsStringtoIntMap() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::google::protobuf::testing::_StringtoIntMap_default_instance_;
- new (ptr) ::google::protobuf::testing::StringtoIntMap();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::google::protobuf::testing::StringtoIntMap::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<1> scc_info_StringtoIntMap =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsStringtoIntMap}, {
- &protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::scc_info_StringtoIntMap_MapEntry_DoNotUse.base,}};
- static void InitDefaultsIntToStringMap_MapEntry_DoNotUse() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::google::protobuf::testing::_IntToStringMap_MapEntry_DoNotUse_default_instance_;
- new (ptr) ::google::protobuf::testing::IntToStringMap_MapEntry_DoNotUse();
- }
- ::google::protobuf::testing::IntToStringMap_MapEntry_DoNotUse::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_IntToStringMap_MapEntry_DoNotUse =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsIntToStringMap_MapEntry_DoNotUse}, {}};
- static void InitDefaultsIntToStringMap() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::google::protobuf::testing::_IntToStringMap_default_instance_;
- new (ptr) ::google::protobuf::testing::IntToStringMap();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::google::protobuf::testing::IntToStringMap::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<1> scc_info_IntToStringMap =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsIntToStringMap}, {
- &protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::scc_info_IntToStringMap_MapEntry_DoNotUse.base,}};
- static void InitDefaultsMixedMap_MapEntry_DoNotUse() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::google::protobuf::testing::_MixedMap_MapEntry_DoNotUse_default_instance_;
- new (ptr) ::google::protobuf::testing::MixedMap_MapEntry_DoNotUse();
- }
- ::google::protobuf::testing::MixedMap_MapEntry_DoNotUse::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_MixedMap_MapEntry_DoNotUse =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsMixedMap_MapEntry_DoNotUse}, {}};
- static void InitDefaultsMixedMap() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::google::protobuf::testing::_MixedMap_default_instance_;
- new (ptr) ::google::protobuf::testing::MixedMap();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::google::protobuf::testing::MixedMap::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<1> scc_info_MixedMap =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsMixedMap}, {
- &protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::scc_info_MixedMap_MapEntry_DoNotUse.base,}};
- static void InitDefaultsMixedMap2_MapEntry_DoNotUse() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::google::protobuf::testing::_MixedMap2_MapEntry_DoNotUse_default_instance_;
- new (ptr) ::google::protobuf::testing::MixedMap2_MapEntry_DoNotUse();
- }
- ::google::protobuf::testing::MixedMap2_MapEntry_DoNotUse::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_MixedMap2_MapEntry_DoNotUse =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsMixedMap2_MapEntry_DoNotUse}, {}};
- static void InitDefaultsMixedMap2() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::google::protobuf::testing::_MixedMap2_default_instance_;
- new (ptr) ::google::protobuf::testing::MixedMap2();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::google::protobuf::testing::MixedMap2::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<1> scc_info_MixedMap2 =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsMixedMap2}, {
- &protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::scc_info_MixedMap2_MapEntry_DoNotUse.base,}};
- static void InitDefaultsMessageMap_M() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::google::protobuf::testing::_MessageMap_M_default_instance_;
- new (ptr) ::google::protobuf::testing::MessageMap_M();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::google::protobuf::testing::MessageMap_M::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_MessageMap_M =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsMessageMap_M}, {}};
- static void InitDefaultsMessageMap_MapEntry_DoNotUse() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::google::protobuf::testing::_MessageMap_MapEntry_DoNotUse_default_instance_;
- new (ptr) ::google::protobuf::testing::MessageMap_MapEntry_DoNotUse();
- }
- ::google::protobuf::testing::MessageMap_MapEntry_DoNotUse::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<1> scc_info_MessageMap_MapEntry_DoNotUse =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsMessageMap_MapEntry_DoNotUse}, {
- &protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::scc_info_MessageMap_M.base,}};
- static void InitDefaultsMessageMap() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::google::protobuf::testing::_MessageMap_default_instance_;
- new (ptr) ::google::protobuf::testing::MessageMap();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::google::protobuf::testing::MessageMap::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<1> scc_info_MessageMap =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsMessageMap}, {
- &protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::scc_info_MessageMap_MapEntry_DoNotUse.base,}};
- static void InitDefaultsDoubleValueMessage() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::google::protobuf::testing::_DoubleValueMessage_default_instance_;
- new (ptr) ::google::protobuf::testing::DoubleValueMessage();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::google::protobuf::testing::DoubleValueMessage::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<1> scc_info_DoubleValueMessage =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsDoubleValueMessage}, {
- &protobuf_google_2fprotobuf_2fwrappers_2eproto::scc_info_DoubleValue.base,}};
- void InitDefaults() {
- ::google::protobuf::internal::InitSCC(&scc_info_DefaultValueTestCases.base);
- ::google::protobuf::internal::InitSCC(&scc_info_DoubleMessage.base);
- ::google::protobuf::internal::InitSCC(&scc_info_StructMessage.base);
- ::google::protobuf::internal::InitSCC(&scc_info_ValueMessage.base);
- ::google::protobuf::internal::InitSCC(&scc_info_ListValueMessage.base);
- ::google::protobuf::internal::InitSCC(&scc_info_RequestMessage.base);
- ::google::protobuf::internal::InitSCC(&scc_info_AnyMessage.base);
- ::google::protobuf::internal::InitSCC(&scc_info_AnyData_MapDataEntry_DoNotUse.base);
- ::google::protobuf::internal::InitSCC(&scc_info_AnyData.base);
- ::google::protobuf::internal::InitSCC(&scc_info_StringtoIntMap_MapEntry_DoNotUse.base);
- ::google::protobuf::internal::InitSCC(&scc_info_StringtoIntMap.base);
- ::google::protobuf::internal::InitSCC(&scc_info_IntToStringMap_MapEntry_DoNotUse.base);
- ::google::protobuf::internal::InitSCC(&scc_info_IntToStringMap.base);
- ::google::protobuf::internal::InitSCC(&scc_info_MixedMap_MapEntry_DoNotUse.base);
- ::google::protobuf::internal::InitSCC(&scc_info_MixedMap.base);
- ::google::protobuf::internal::InitSCC(&scc_info_MixedMap2_MapEntry_DoNotUse.base);
- ::google::protobuf::internal::InitSCC(&scc_info_MixedMap2.base);
- ::google::protobuf::internal::InitSCC(&scc_info_MessageMap_M.base);
- ::google::protobuf::internal::InitSCC(&scc_info_MessageMap_MapEntry_DoNotUse.base);
- ::google::protobuf::internal::InitSCC(&scc_info_MessageMap.base);
- ::google::protobuf::internal::InitSCC(&scc_info_DoubleValueMessage.base);
- }
- ::google::protobuf::Metadata file_level_metadata[21];
- const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[1];
- const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::DefaultValueTestCases, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::DefaultValueTestCases, empty_double_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::DefaultValueTestCases, double_with_default_value_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::DefaultValueTestCases, double_with_nondefault_value_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::DefaultValueTestCases, repeated_double_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::DefaultValueTestCases, nested_message_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::DefaultValueTestCases, repeated_nested_message_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::DefaultValueTestCases, double_message_with_oneof_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::DefaultValueTestCases, empty_struct_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::DefaultValueTestCases, empty_struct2_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::DefaultValueTestCases, struct_with_null_value_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::DefaultValueTestCases, struct_with_values_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::DefaultValueTestCases, struct_with_nested_struct_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::DefaultValueTestCases, struct_with_nested_list_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::DefaultValueTestCases, struct_with_list_of_nulls_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::DefaultValueTestCases, struct_with_list_of_lists_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::DefaultValueTestCases, struct_with_list_of_structs_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::DefaultValueTestCases, top_level_struct_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::DefaultValueTestCases, value_wrapper_simple_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::DefaultValueTestCases, value_wrapper_with_struct_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::DefaultValueTestCases, value_wrapper_with_list_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::DefaultValueTestCases, list_value_wrapper_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::DefaultValueTestCases, top_level_value_simple_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::DefaultValueTestCases, top_level_value_with_struct_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::DefaultValueTestCases, top_level_value_with_list_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::DefaultValueTestCases, top_level_listvalue_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::DefaultValueTestCases, empty_any_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::DefaultValueTestCases, type_only_any_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::DefaultValueTestCases, recursive_any_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::DefaultValueTestCases, any_with_message_value_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::DefaultValueTestCases, any_with_nested_message_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::DefaultValueTestCases, any_with_message_containing_map_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::DefaultValueTestCases, any_with_message_containing_struct_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::DefaultValueTestCases, top_level_any_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::DefaultValueTestCases, empty_map_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::DefaultValueTestCases, string_to_int_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::DefaultValueTestCases, int_to_string_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::DefaultValueTestCases, mixed1_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::DefaultValueTestCases, mixed2_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::DefaultValueTestCases, empty_mixed2_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::DefaultValueTestCases, map_of_objects_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::DefaultValueTestCases, mixed_empty_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::DefaultValueTestCases, message_map_empty_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::DefaultValueTestCases, double_value_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::DefaultValueTestCases, double_value_default_),
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::DoubleMessage, _internal_metadata_),
- ~0u, // no _extensions_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::DoubleMessage, _oneof_case_[0]),
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::DoubleMessage, double_value_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::DoubleMessage, repeated_double_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::DoubleMessage, nested_message_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::DoubleMessage, repeated_nested_message_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::DoubleMessage, double_wrapper_),
- offsetof(::google::protobuf::testing::DoubleMessageDefaultTypeInternal, str_value_),
- offsetof(::google::protobuf::testing::DoubleMessageDefaultTypeInternal, num_value_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::DoubleMessage, value_),
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::StructMessage, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::StructMessage, struct__),
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::ValueMessage, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::ValueMessage, value_),
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::ListValueMessage, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::ListValueMessage, shopping_list_),
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::RequestMessage, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::RequestMessage, content_),
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::AnyMessage, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::AnyMessage, any_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::AnyMessage, data_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::AnyData_MapDataEntry_DoNotUse, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::AnyData_MapDataEntry_DoNotUse, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::AnyData_MapDataEntry_DoNotUse, key_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::AnyData_MapDataEntry_DoNotUse, value_),
- 0,
- 1,
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::AnyData, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::AnyData, attr_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::AnyData, str_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::AnyData, msgs_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::AnyData, nested_data_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::AnyData, map_data_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::AnyData, struct_data_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::AnyData, repeated_data_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::StringtoIntMap_MapEntry_DoNotUse, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::StringtoIntMap_MapEntry_DoNotUse, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::StringtoIntMap_MapEntry_DoNotUse, key_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::StringtoIntMap_MapEntry_DoNotUse, value_),
- 0,
- 1,
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::StringtoIntMap, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::StringtoIntMap, map_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::IntToStringMap_MapEntry_DoNotUse, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::IntToStringMap_MapEntry_DoNotUse, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::IntToStringMap_MapEntry_DoNotUse, key_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::IntToStringMap_MapEntry_DoNotUse, value_),
- 0,
- 1,
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::IntToStringMap, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::IntToStringMap, map_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::MixedMap_MapEntry_DoNotUse, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::MixedMap_MapEntry_DoNotUse, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::MixedMap_MapEntry_DoNotUse, key_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::MixedMap_MapEntry_DoNotUse, value_),
- 0,
- 1,
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::MixedMap, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::MixedMap, msg_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::MixedMap, map_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::MixedMap, int_value_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::MixedMap2_MapEntry_DoNotUse, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::MixedMap2_MapEntry_DoNotUse, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::MixedMap2_MapEntry_DoNotUse, key_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::MixedMap2_MapEntry_DoNotUse, value_),
- 0,
- 1,
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::MixedMap2, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::MixedMap2, map_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::MixedMap2, ee_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::MixedMap2, msg_),
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::MessageMap_M, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::MessageMap_M, inner_int_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::MessageMap_M, inner_text_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::MessageMap_MapEntry_DoNotUse, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::MessageMap_MapEntry_DoNotUse, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::MessageMap_MapEntry_DoNotUse, key_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::MessageMap_MapEntry_DoNotUse, value_),
- 0,
- 1,
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::MessageMap, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::MessageMap, map_),
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::DoubleValueMessage, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::DoubleValueMessage, double__),
- };
- static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- { 0, -1, sizeof(::google::protobuf::testing::DefaultValueTestCases)},
- { 49, -1, sizeof(::google::protobuf::testing::DoubleMessage)},
- { 62, -1, sizeof(::google::protobuf::testing::StructMessage)},
- { 68, -1, sizeof(::google::protobuf::testing::ValueMessage)},
- { 74, -1, sizeof(::google::protobuf::testing::ListValueMessage)},
- { 80, -1, sizeof(::google::protobuf::testing::RequestMessage)},
- { 86, -1, sizeof(::google::protobuf::testing::AnyMessage)},
- { 93, 100, sizeof(::google::protobuf::testing::AnyData_MapDataEntry_DoNotUse)},
- { 102, -1, sizeof(::google::protobuf::testing::AnyData)},
- { 114, 121, sizeof(::google::protobuf::testing::StringtoIntMap_MapEntry_DoNotUse)},
- { 123, -1, sizeof(::google::protobuf::testing::StringtoIntMap)},
- { 129, 136, sizeof(::google::protobuf::testing::IntToStringMap_MapEntry_DoNotUse)},
- { 138, -1, sizeof(::google::protobuf::testing::IntToStringMap)},
- { 144, 151, sizeof(::google::protobuf::testing::MixedMap_MapEntry_DoNotUse)},
- { 153, -1, sizeof(::google::protobuf::testing::MixedMap)},
- { 161, 168, sizeof(::google::protobuf::testing::MixedMap2_MapEntry_DoNotUse)},
- { 170, -1, sizeof(::google::protobuf::testing::MixedMap2)},
- { 178, -1, sizeof(::google::protobuf::testing::MessageMap_M)},
- { 185, 192, sizeof(::google::protobuf::testing::MessageMap_MapEntry_DoNotUse)},
- { 194, -1, sizeof(::google::protobuf::testing::MessageMap)},
- { 200, -1, sizeof(::google::protobuf::testing::DoubleValueMessage)},
- };
- static ::google::protobuf::Message const * const file_default_instances[] = {
- reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::testing::_DefaultValueTestCases_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::testing::_DoubleMessage_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::testing::_StructMessage_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::testing::_ValueMessage_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::testing::_ListValueMessage_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::testing::_RequestMessage_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::testing::_AnyMessage_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::testing::_AnyData_MapDataEntry_DoNotUse_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::testing::_AnyData_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::testing::_StringtoIntMap_MapEntry_DoNotUse_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::testing::_StringtoIntMap_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::testing::_IntToStringMap_MapEntry_DoNotUse_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::testing::_IntToStringMap_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::testing::_MixedMap_MapEntry_DoNotUse_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::testing::_MixedMap_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::testing::_MixedMap2_MapEntry_DoNotUse_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::testing::_MixedMap2_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::testing::_MessageMap_M_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::testing::_MessageMap_MapEntry_DoNotUse_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::testing::_MessageMap_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::testing::_DoubleValueMessage_default_instance_),
- };
- void protobuf_AssignDescriptors() {
- AddDescriptors();
- AssignDescriptors(
- "google/protobuf/util/internal/testdata/default_value.proto", schemas, file_default_instances, TableStruct::offsets,
- file_level_metadata, file_level_enum_descriptors, NULL);
- }
- 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, 21);
- }
- void AddDescriptorsImpl() {
- InitDefaults();
- static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- "\n:google/protobuf/util/internal/testdata"
- "/default_value.proto\022\027google.protobuf.te"
- "sting\032\031google/protobuf/any.proto\032\034google"
- "/protobuf/struct.proto\032\036google/protobuf/"
- "wrappers.proto\"\211\027\n\025DefaultValueTestCases"
- "\022<\n\014empty_double\030\001 \001(\0132&.google.protobuf"
- ".testing.DoubleMessage\022I\n\031double_with_de"
- "fault_value\030\002 \001(\0132&.google.protobuf.test"
- "ing.DoubleMessage\022L\n\034double_with_nondefa"
- "ult_value\030\003 \001(\0132&.google.protobuf.testin"
- "g.DoubleMessage\022\?\n\017repeated_double\030\004 \001(\013"
- "2&.google.protobuf.testing.DoubleMessage"
- "\022>\n\016nested_message\030\005 \001(\0132&.google.protob"
- "uf.testing.DoubleMessage\022G\n\027repeated_nes"
- "ted_message\030\006 \001(\0132&.google.protobuf.test"
- "ing.DoubleMessage\022I\n\031double_message_with"
- "_oneof\030\007 \001(\0132&.google.protobuf.testing.D"
- "oubleMessage\022=\n\014empty_struct\030\311\001 \001(\0132&.go"
- "ogle.protobuf.testing.StructMessage\022>\n\re"
- "mpty_struct2\030\312\001 \001(\0132&.google.protobuf.te"
- "sting.StructMessage\022G\n\026struct_with_null_"
- "value\030\313\001 \001(\0132&.google.protobuf.testing.S"
- "tructMessage\022C\n\022struct_with_values\030\314\001 \001("
- "\0132&.google.protobuf.testing.StructMessag"
- "e\022J\n\031struct_with_nested_struct\030\315\001 \001(\0132&."
- "google.protobuf.testing.StructMessage\022H\n"
- "\027struct_with_nested_list\030\316\001 \001(\0132&.google"
- ".protobuf.testing.StructMessage\022J\n\031struc"
- "t_with_list_of_nulls\030\317\001 \001(\0132&.google.pro"
- "tobuf.testing.StructMessage\022J\n\031struct_wi"
- "th_list_of_lists\030\320\001 \001(\0132&.google.protobu"
- "f.testing.StructMessage\022L\n\033struct_with_l"
- "ist_of_structs\030\321\001 \001(\0132&.google.protobuf."
- "testing.StructMessage\0222\n\020top_level_struc"
- "t\030\322\001 \001(\0132\027.google.protobuf.Struct\022D\n\024val"
- "ue_wrapper_simple\030\324\001 \001(\0132%.google.protob"
- "uf.testing.ValueMessage\022I\n\031value_wrapper"
- "_with_struct\030\325\001 \001(\0132%.google.protobuf.te"
- "sting.ValueMessage\022G\n\027value_wrapper_with"
- "_list\030\326\001 \001(\0132%.google.protobuf.testing.V"
- "alueMessage\022F\n\022list_value_wrapper\030\327\001 \001(\013"
- "2).google.protobuf.testing.ListValueMess"
- "age\0227\n\026top_level_value_simple\030\330\001 \001(\0132\026.g"
- "oogle.protobuf.Value\022<\n\033top_level_value_"
- "with_struct\030\331\001 \001(\0132\026.google.protobuf.Val"
- "ue\022:\n\031top_level_value_with_list\030\332\001 \001(\0132\026"
- ".google.protobuf.Value\0228\n\023top_level_list"
- "value\030\333\001 \001(\0132\032.google.protobuf.ListValue"
- "\0227\n\tempty_any\030\255\002 \001(\0132#.google.protobuf.t"
- "esting.AnyMessage\022;\n\rtype_only_any\030\256\002 \001("
- "\0132#.google.protobuf.testing.AnyMessage\022;"
- "\n\rrecursive_any\030\257\002 \001(\0132#.google.protobuf"
- ".testing.AnyMessage\022D\n\026any_with_message_"
- "value\030\260\002 \001(\0132#.google.protobuf.testing.A"
- "nyMessage\022E\n\027any_with_nested_message\030\261\002 "
- "\001(\0132#.google.protobuf.testing.AnyMessage"
- "\022M\n\037any_with_message_containing_map\030\262\002 \001"
- "(\0132#.google.protobuf.testing.AnyMessage\022"
- "P\n\"any_with_message_containing_struct\030\263\002"
- " \001(\0132#.google.protobuf.testing.AnyMessag"
- "e\022,\n\rtop_level_any\030\264\002 \001(\0132\024.google.proto"
- "buf.Any\022;\n\tempty_map\030\221\003 \001(\0132\'.google.pro"
- "tobuf.testing.StringtoIntMap\022\?\n\rstring_t"
- "o_int\030\222\003 \001(\0132\'.google.protobuf.testing.S"
- "tringtoIntMap\022\?\n\rint_to_string\030\223\003 \001(\0132\'."
- "google.protobuf.testing.IntToStringMap\0222"
- "\n\006mixed1\030\224\003 \001(\0132!.google.protobuf.testin"
- "g.MixedMap\0223\n\006mixed2\030\225\003 \001(\0132\".google.pro"
- "tobuf.testing.MixedMap2\0229\n\014empty_mixed2\030"
- "\226\003 \001(\0132\".google.protobuf.testing.MixedMa"
- "p2\022<\n\016map_of_objects\030\227\003 \001(\0132#.google.pro"
- "tobuf.testing.MessageMap\0227\n\013mixed_empty\030"
- "\230\003 \001(\0132!.google.protobuf.testing.MixedMa"
- "p\022\?\n\021message_map_empty\030\231\003 \001(\0132#.google.p"
- "rotobuf.testing.MessageMap\022B\n\014double_val"
- "ue\030\365\003 \001(\0132+.google.protobuf.testing.Doub"
- "leValueMessage\022J\n\024double_value_default\030\366"
- "\003 \001(\0132+.google.protobuf.testing.DoubleVa"
- "lueMessage\"\260\002\n\rDoubleMessage\022\024\n\014double_v"
- "alue\030\001 \001(\001\022\027\n\017repeated_double\030\002 \003(\001\022>\n\016n"
- "ested_message\030\003 \001(\0132&.google.protobuf.te"
- "sting.DoubleMessage\022G\n\027repeated_nested_m"
- "essage\030\004 \003(\0132&.google.protobuf.testing.D"
- "oubleMessage\0224\n\016double_wrapper\030d \001(\0132\034.g"
- "oogle.protobuf.DoubleValue\022\023\n\tstr_value\030"
- "p \001(\tH\000\022\023\n\tnum_value\030q \001(\003H\000B\007\n\005value\"8\n"
- "\rStructMessage\022\'\n\006struct\030\001 \001(\0132\027.google."
- "protobuf.Struct\"5\n\014ValueMessage\022%\n\005value"
- "\030\001 \001(\0132\026.google.protobuf.Value\"E\n\020ListVa"
- "lueMessage\0221\n\rshopping_list\030\001 \001(\0132\032.goog"
- "le.protobuf.ListValue\"!\n\016RequestMessage\022"
- "\017\n\007content\030\001 \001(\t\"_\n\nAnyMessage\022!\n\003any\030\001 "
- "\001(\0132\024.google.protobuf.Any\022.\n\004data\030\002 \001(\0132"
- " .google.protobuf.testing.AnyData\"\301\002\n\007An"
- "yData\022\014\n\004attr\030\001 \001(\005\022\013\n\003str\030\002 \001(\t\022\014\n\004msgs"
- "\030\003 \003(\t\0225\n\013nested_data\030\004 \001(\0132 .google.pro"
- "tobuf.testing.AnyData\022\?\n\010map_data\030\007 \003(\0132"
- "-.google.protobuf.testing.AnyData.MapDat"
- "aEntry\022,\n\013struct_data\030\010 \001(\0132\027.google.pro"
- "tobuf.Struct\0227\n\rrepeated_data\030\t \003(\0132 .go"
- "ogle.protobuf.testing.AnyData\032.\n\014MapData"
- "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"{\n"
- "\016StringtoIntMap\022=\n\003map\030\001 \003(\01320.google.pr"
- "otobuf.testing.StringtoIntMap.MapEntry\032*"
- "\n\010MapEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\005:\002"
- "8\001\"{\n\016IntToStringMap\022=\n\003map\030\001 \003(\01320.goog"
- "le.protobuf.testing.IntToStringMap.MapEn"
- "try\032*\n\010MapEntry\022\013\n\003key\030\001 \001(\005\022\r\n\005value\030\002 "
- "\001(\t:\0028\001\"\217\001\n\010MixedMap\022\013\n\003msg\030\001 \001(\t\0227\n\003map"
- "\030\002 \003(\0132*.google.protobuf.testing.MixedMa"
- "p.MapEntry\022\021\n\tint_value\030\003 \001(\005\032*\n\010MapEntr"
- "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\002:\0028\001\"\325\001\n\tMi"
- "xedMap2\0228\n\003map\030\001 \003(\0132+.google.protobuf.t"
- "esting.MixedMap2.MapEntry\0220\n\002ee\030\002 \001(\0162$."
- "google.protobuf.testing.MixedMap2.E\022\013\n\003m"
- "sg\030\004 \001(\t\032*\n\010MapEntry\022\013\n\003key\030\001 \001(\005\022\r\n\005val"
- "ue\030\002 \001(\010:\0028\001\"#\n\001E\022\006\n\002E0\020\000\022\006\n\002E1\020\001\022\006\n\002E2\020"
- "\002\022\006\n\002E3\020\003\"\306\001\n\nMessageMap\0229\n\003map\030\001 \003(\0132,."
- "google.protobuf.testing.MessageMap.MapEn"
- "try\032*\n\001M\022\021\n\tinner_int\030\001 \001(\005\022\022\n\ninner_tex"
- "t\030\002 \001(\t\032Q\n\010MapEntry\022\013\n\003key\030\001 \001(\t\0224\n\005valu"
- "e\030\002 \001(\0132%.google.protobuf.testing.Messag"
- "eMap.M:\0028\001\"B\n\022DoubleValueMessage\022,\n\006doub"
- "le\030\001 \001(\0132\034.google.protobuf.DoubleValue2z"
- "\n\027DefaultValueTestService\022_\n\004Call\022\'.goog"
- "le.protobuf.testing.RequestMessage\032..goo"
- "gle.protobuf.testing.DefaultValueTestCas"
- "esb\006proto3"
- };
- ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
- descriptor, 5090);
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
- "google/protobuf/util/internal/testdata/default_value.proto", &protobuf_RegisterTypes);
- ::protobuf_google_2fprotobuf_2fany_2eproto::AddDescriptors();
- ::protobuf_google_2fprotobuf_2fstruct_2eproto::AddDescriptors();
- ::protobuf_google_2fprotobuf_2fwrappers_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_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto
- namespace google {
- namespace protobuf {
- namespace testing {
- const ::google::protobuf::EnumDescriptor* MixedMap2_E_descriptor() {
- protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::protobuf_AssignDescriptorsOnce();
- return protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::file_level_enum_descriptors[0];
- }
- bool MixedMap2_E_IsValid(int value) {
- switch (value) {
- case 0:
- case 1:
- case 2:
- case 3:
- return true;
- default:
- return false;
- }
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const MixedMap2_E MixedMap2::E0;
- const MixedMap2_E MixedMap2::E1;
- const MixedMap2_E MixedMap2::E2;
- const MixedMap2_E MixedMap2::E3;
- const MixedMap2_E MixedMap2::E_MIN;
- const MixedMap2_E MixedMap2::E_MAX;
- const int MixedMap2::E_ARRAYSIZE;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- // ===================================================================
- void DefaultValueTestCases::InitAsDefaultInstance() {
- ::google::protobuf::testing::_DefaultValueTestCases_default_instance_._instance.get_mutable()->empty_double_ = const_cast< ::google::protobuf::testing::DoubleMessage*>(
- ::google::protobuf::testing::DoubleMessage::internal_default_instance());
- ::google::protobuf::testing::_DefaultValueTestCases_default_instance_._instance.get_mutable()->double_with_default_value_ = const_cast< ::google::protobuf::testing::DoubleMessage*>(
- ::google::protobuf::testing::DoubleMessage::internal_default_instance());
- ::google::protobuf::testing::_DefaultValueTestCases_default_instance_._instance.get_mutable()->double_with_nondefault_value_ = const_cast< ::google::protobuf::testing::DoubleMessage*>(
- ::google::protobuf::testing::DoubleMessage::internal_default_instance());
- ::google::protobuf::testing::_DefaultValueTestCases_default_instance_._instance.get_mutable()->repeated_double_ = const_cast< ::google::protobuf::testing::DoubleMessage*>(
- ::google::protobuf::testing::DoubleMessage::internal_default_instance());
- ::google::protobuf::testing::_DefaultValueTestCases_default_instance_._instance.get_mutable()->nested_message_ = const_cast< ::google::protobuf::testing::DoubleMessage*>(
- ::google::protobuf::testing::DoubleMessage::internal_default_instance());
- ::google::protobuf::testing::_DefaultValueTestCases_default_instance_._instance.get_mutable()->repeated_nested_message_ = const_cast< ::google::protobuf::testing::DoubleMessage*>(
- ::google::protobuf::testing::DoubleMessage::internal_default_instance());
- ::google::protobuf::testing::_DefaultValueTestCases_default_instance_._instance.get_mutable()->double_message_with_oneof_ = const_cast< ::google::protobuf::testing::DoubleMessage*>(
- ::google::protobuf::testing::DoubleMessage::internal_default_instance());
- ::google::protobuf::testing::_DefaultValueTestCases_default_instance_._instance.get_mutable()->empty_struct_ = const_cast< ::google::protobuf::testing::StructMessage*>(
- ::google::protobuf::testing::StructMessage::internal_default_instance());
- ::google::protobuf::testing::_DefaultValueTestCases_default_instance_._instance.get_mutable()->empty_struct2_ = const_cast< ::google::protobuf::testing::StructMessage*>(
- ::google::protobuf::testing::StructMessage::internal_default_instance());
- ::google::protobuf::testing::_DefaultValueTestCases_default_instance_._instance.get_mutable()->struct_with_null_value_ = const_cast< ::google::protobuf::testing::StructMessage*>(
- ::google::protobuf::testing::StructMessage::internal_default_instance());
- ::google::protobuf::testing::_DefaultValueTestCases_default_instance_._instance.get_mutable()->struct_with_values_ = const_cast< ::google::protobuf::testing::StructMessage*>(
- ::google::protobuf::testing::StructMessage::internal_default_instance());
- ::google::protobuf::testing::_DefaultValueTestCases_default_instance_._instance.get_mutable()->struct_with_nested_struct_ = const_cast< ::google::protobuf::testing::StructMessage*>(
- ::google::protobuf::testing::StructMessage::internal_default_instance());
- ::google::protobuf::testing::_DefaultValueTestCases_default_instance_._instance.get_mutable()->struct_with_nested_list_ = const_cast< ::google::protobuf::testing::StructMessage*>(
- ::google::protobuf::testing::StructMessage::internal_default_instance());
- ::google::protobuf::testing::_DefaultValueTestCases_default_instance_._instance.get_mutable()->struct_with_list_of_nulls_ = const_cast< ::google::protobuf::testing::StructMessage*>(
- ::google::protobuf::testing::StructMessage::internal_default_instance());
- ::google::protobuf::testing::_DefaultValueTestCases_default_instance_._instance.get_mutable()->struct_with_list_of_lists_ = const_cast< ::google::protobuf::testing::StructMessage*>(
- ::google::protobuf::testing::StructMessage::internal_default_instance());
- ::google::protobuf::testing::_DefaultValueTestCases_default_instance_._instance.get_mutable()->struct_with_list_of_structs_ = const_cast< ::google::protobuf::testing::StructMessage*>(
- ::google::protobuf::testing::StructMessage::internal_default_instance());
- ::google::protobuf::testing::_DefaultValueTestCases_default_instance_._instance.get_mutable()->top_level_struct_ = const_cast< ::google::protobuf::Struct*>(
- ::google::protobuf::Struct::internal_default_instance());
- ::google::protobuf::testing::_DefaultValueTestCases_default_instance_._instance.get_mutable()->value_wrapper_simple_ = const_cast< ::google::protobuf::testing::ValueMessage*>(
- ::google::protobuf::testing::ValueMessage::internal_default_instance());
- ::google::protobuf::testing::_DefaultValueTestCases_default_instance_._instance.get_mutable()->value_wrapper_with_struct_ = const_cast< ::google::protobuf::testing::ValueMessage*>(
- ::google::protobuf::testing::ValueMessage::internal_default_instance());
- ::google::protobuf::testing::_DefaultValueTestCases_default_instance_._instance.get_mutable()->value_wrapper_with_list_ = const_cast< ::google::protobuf::testing::ValueMessage*>(
- ::google::protobuf::testing::ValueMessage::internal_default_instance());
- ::google::protobuf::testing::_DefaultValueTestCases_default_instance_._instance.get_mutable()->list_value_wrapper_ = const_cast< ::google::protobuf::testing::ListValueMessage*>(
- ::google::protobuf::testing::ListValueMessage::internal_default_instance());
- ::google::protobuf::testing::_DefaultValueTestCases_default_instance_._instance.get_mutable()->top_level_value_simple_ = const_cast< ::google::protobuf::Value*>(
- ::google::protobuf::Value::internal_default_instance());
- ::google::protobuf::testing::_DefaultValueTestCases_default_instance_._instance.get_mutable()->top_level_value_with_struct_ = const_cast< ::google::protobuf::Value*>(
- ::google::protobuf::Value::internal_default_instance());
- ::google::protobuf::testing::_DefaultValueTestCases_default_instance_._instance.get_mutable()->top_level_value_with_list_ = const_cast< ::google::protobuf::Value*>(
- ::google::protobuf::Value::internal_default_instance());
- ::google::protobuf::testing::_DefaultValueTestCases_default_instance_._instance.get_mutable()->top_level_listvalue_ = const_cast< ::google::protobuf::ListValue*>(
- ::google::protobuf::ListValue::internal_default_instance());
- ::google::protobuf::testing::_DefaultValueTestCases_default_instance_._instance.get_mutable()->empty_any_ = const_cast< ::google::protobuf::testing::AnyMessage*>(
- ::google::protobuf::testing::AnyMessage::internal_default_instance());
- ::google::protobuf::testing::_DefaultValueTestCases_default_instance_._instance.get_mutable()->type_only_any_ = const_cast< ::google::protobuf::testing::AnyMessage*>(
- ::google::protobuf::testing::AnyMessage::internal_default_instance());
- ::google::protobuf::testing::_DefaultValueTestCases_default_instance_._instance.get_mutable()->recursive_any_ = const_cast< ::google::protobuf::testing::AnyMessage*>(
- ::google::protobuf::testing::AnyMessage::internal_default_instance());
- ::google::protobuf::testing::_DefaultValueTestCases_default_instance_._instance.get_mutable()->any_with_message_value_ = const_cast< ::google::protobuf::testing::AnyMessage*>(
- ::google::protobuf::testing::AnyMessage::internal_default_instance());
- ::google::protobuf::testing::_DefaultValueTestCases_default_instance_._instance.get_mutable()->any_with_nested_message_ = const_cast< ::google::protobuf::testing::AnyMessage*>(
- ::google::protobuf::testing::AnyMessage::internal_default_instance());
- ::google::protobuf::testing::_DefaultValueTestCases_default_instance_._instance.get_mutable()->any_with_message_containing_map_ = const_cast< ::google::protobuf::testing::AnyMessage*>(
- ::google::protobuf::testing::AnyMessage::internal_default_instance());
- ::google::protobuf::testing::_DefaultValueTestCases_default_instance_._instance.get_mutable()->any_with_message_containing_struct_ = const_cast< ::google::protobuf::testing::AnyMessage*>(
- ::google::protobuf::testing::AnyMessage::internal_default_instance());
- ::google::protobuf::testing::_DefaultValueTestCases_default_instance_._instance.get_mutable()->top_level_any_ = const_cast< ::google::protobuf::Any*>(
- ::google::protobuf::Any::internal_default_instance());
- ::google::protobuf::testing::_DefaultValueTestCases_default_instance_._instance.get_mutable()->empty_map_ = const_cast< ::google::protobuf::testing::StringtoIntMap*>(
- ::google::protobuf::testing::StringtoIntMap::internal_default_instance());
- ::google::protobuf::testing::_DefaultValueTestCases_default_instance_._instance.get_mutable()->string_to_int_ = const_cast< ::google::protobuf::testing::StringtoIntMap*>(
- ::google::protobuf::testing::StringtoIntMap::internal_default_instance());
- ::google::protobuf::testing::_DefaultValueTestCases_default_instance_._instance.get_mutable()->int_to_string_ = const_cast< ::google::protobuf::testing::IntToStringMap*>(
- ::google::protobuf::testing::IntToStringMap::internal_default_instance());
- ::google::protobuf::testing::_DefaultValueTestCases_default_instance_._instance.get_mutable()->mixed1_ = const_cast< ::google::protobuf::testing::MixedMap*>(
- ::google::protobuf::testing::MixedMap::internal_default_instance());
- ::google::protobuf::testing::_DefaultValueTestCases_default_instance_._instance.get_mutable()->mixed2_ = const_cast< ::google::protobuf::testing::MixedMap2*>(
- ::google::protobuf::testing::MixedMap2::internal_default_instance());
- ::google::protobuf::testing::_DefaultValueTestCases_default_instance_._instance.get_mutable()->empty_mixed2_ = const_cast< ::google::protobuf::testing::MixedMap2*>(
- ::google::protobuf::testing::MixedMap2::internal_default_instance());
- ::google::protobuf::testing::_DefaultValueTestCases_default_instance_._instance.get_mutable()->map_of_objects_ = const_cast< ::google::protobuf::testing::MessageMap*>(
- ::google::protobuf::testing::MessageMap::internal_default_instance());
- ::google::protobuf::testing::_DefaultValueTestCases_default_instance_._instance.get_mutable()->mixed_empty_ = const_cast< ::google::protobuf::testing::MixedMap*>(
- ::google::protobuf::testing::MixedMap::internal_default_instance());
- ::google::protobuf::testing::_DefaultValueTestCases_default_instance_._instance.get_mutable()->message_map_empty_ = const_cast< ::google::protobuf::testing::MessageMap*>(
- ::google::protobuf::testing::MessageMap::internal_default_instance());
- ::google::protobuf::testing::_DefaultValueTestCases_default_instance_._instance.get_mutable()->double_value_ = const_cast< ::google::protobuf::testing::DoubleValueMessage*>(
- ::google::protobuf::testing::DoubleValueMessage::internal_default_instance());
- ::google::protobuf::testing::_DefaultValueTestCases_default_instance_._instance.get_mutable()->double_value_default_ = const_cast< ::google::protobuf::testing::DoubleValueMessage*>(
- ::google::protobuf::testing::DoubleValueMessage::internal_default_instance());
- }
- void DefaultValueTestCases::clear_top_level_struct() {
- if (GetArenaNoVirtual() == NULL && top_level_struct_ != NULL) {
- delete top_level_struct_;
- }
- top_level_struct_ = NULL;
- }
- void DefaultValueTestCases::clear_top_level_value_simple() {
- if (GetArenaNoVirtual() == NULL && top_level_value_simple_ != NULL) {
- delete top_level_value_simple_;
- }
- top_level_value_simple_ = NULL;
- }
- void DefaultValueTestCases::clear_top_level_value_with_struct() {
- if (GetArenaNoVirtual() == NULL && top_level_value_with_struct_ != NULL) {
- delete top_level_value_with_struct_;
- }
- top_level_value_with_struct_ = NULL;
- }
- void DefaultValueTestCases::clear_top_level_value_with_list() {
- if (GetArenaNoVirtual() == NULL && top_level_value_with_list_ != NULL) {
- delete top_level_value_with_list_;
- }
- top_level_value_with_list_ = NULL;
- }
- void DefaultValueTestCases::clear_top_level_listvalue() {
- if (GetArenaNoVirtual() == NULL && top_level_listvalue_ != NULL) {
- delete top_level_listvalue_;
- }
- top_level_listvalue_ = NULL;
- }
- void DefaultValueTestCases::clear_top_level_any() {
- if (GetArenaNoVirtual() == NULL && top_level_any_ != NULL) {
- delete top_level_any_;
- }
- top_level_any_ = NULL;
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int DefaultValueTestCases::kEmptyDoubleFieldNumber;
- const int DefaultValueTestCases::kDoubleWithDefaultValueFieldNumber;
- const int DefaultValueTestCases::kDoubleWithNondefaultValueFieldNumber;
- const int DefaultValueTestCases::kRepeatedDoubleFieldNumber;
- const int DefaultValueTestCases::kNestedMessageFieldNumber;
- const int DefaultValueTestCases::kRepeatedNestedMessageFieldNumber;
- const int DefaultValueTestCases::kDoubleMessageWithOneofFieldNumber;
- const int DefaultValueTestCases::kEmptyStructFieldNumber;
- const int DefaultValueTestCases::kEmptyStruct2FieldNumber;
- const int DefaultValueTestCases::kStructWithNullValueFieldNumber;
- const int DefaultValueTestCases::kStructWithValuesFieldNumber;
- const int DefaultValueTestCases::kStructWithNestedStructFieldNumber;
- const int DefaultValueTestCases::kStructWithNestedListFieldNumber;
- const int DefaultValueTestCases::kStructWithListOfNullsFieldNumber;
- const int DefaultValueTestCases::kStructWithListOfListsFieldNumber;
- const int DefaultValueTestCases::kStructWithListOfStructsFieldNumber;
- const int DefaultValueTestCases::kTopLevelStructFieldNumber;
- const int DefaultValueTestCases::kValueWrapperSimpleFieldNumber;
- const int DefaultValueTestCases::kValueWrapperWithStructFieldNumber;
- const int DefaultValueTestCases::kValueWrapperWithListFieldNumber;
- const int DefaultValueTestCases::kListValueWrapperFieldNumber;
- const int DefaultValueTestCases::kTopLevelValueSimpleFieldNumber;
- const int DefaultValueTestCases::kTopLevelValueWithStructFieldNumber;
- const int DefaultValueTestCases::kTopLevelValueWithListFieldNumber;
- const int DefaultValueTestCases::kTopLevelListvalueFieldNumber;
- const int DefaultValueTestCases::kEmptyAnyFieldNumber;
- const int DefaultValueTestCases::kTypeOnlyAnyFieldNumber;
- const int DefaultValueTestCases::kRecursiveAnyFieldNumber;
- const int DefaultValueTestCases::kAnyWithMessageValueFieldNumber;
- const int DefaultValueTestCases::kAnyWithNestedMessageFieldNumber;
- const int DefaultValueTestCases::kAnyWithMessageContainingMapFieldNumber;
- const int DefaultValueTestCases::kAnyWithMessageContainingStructFieldNumber;
- const int DefaultValueTestCases::kTopLevelAnyFieldNumber;
- const int DefaultValueTestCases::kEmptyMapFieldNumber;
- const int DefaultValueTestCases::kStringToIntFieldNumber;
- const int DefaultValueTestCases::kIntToStringFieldNumber;
- const int DefaultValueTestCases::kMixed1FieldNumber;
- const int DefaultValueTestCases::kMixed2FieldNumber;
- const int DefaultValueTestCases::kEmptyMixed2FieldNumber;
- const int DefaultValueTestCases::kMapOfObjectsFieldNumber;
- const int DefaultValueTestCases::kMixedEmptyFieldNumber;
- const int DefaultValueTestCases::kMessageMapEmptyFieldNumber;
- const int DefaultValueTestCases::kDoubleValueFieldNumber;
- const int DefaultValueTestCases::kDoubleValueDefaultFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- DefaultValueTestCases::DefaultValueTestCases()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::scc_info_DefaultValueTestCases.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:google.protobuf.testing.DefaultValueTestCases)
- }
- DefaultValueTestCases::DefaultValueTestCases(const DefaultValueTestCases& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- if (from.has_empty_double()) {
- empty_double_ = new ::google::protobuf::testing::DoubleMessage(*from.empty_double_);
- } else {
- empty_double_ = NULL;
- }
- if (from.has_double_with_default_value()) {
- double_with_default_value_ = new ::google::protobuf::testing::DoubleMessage(*from.double_with_default_value_);
- } else {
- double_with_default_value_ = NULL;
- }
- if (from.has_double_with_nondefault_value()) {
- double_with_nondefault_value_ = new ::google::protobuf::testing::DoubleMessage(*from.double_with_nondefault_value_);
- } else {
- double_with_nondefault_value_ = NULL;
- }
- if (from.has_repeated_double()) {
- repeated_double_ = new ::google::protobuf::testing::DoubleMessage(*from.repeated_double_);
- } else {
- repeated_double_ = NULL;
- }
- if (from.has_nested_message()) {
- nested_message_ = new ::google::protobuf::testing::DoubleMessage(*from.nested_message_);
- } else {
- nested_message_ = NULL;
- }
- if (from.has_repeated_nested_message()) {
- repeated_nested_message_ = new ::google::protobuf::testing::DoubleMessage(*from.repeated_nested_message_);
- } else {
- repeated_nested_message_ = NULL;
- }
- if (from.has_double_message_with_oneof()) {
- double_message_with_oneof_ = new ::google::protobuf::testing::DoubleMessage(*from.double_message_with_oneof_);
- } else {
- double_message_with_oneof_ = NULL;
- }
- if (from.has_empty_struct()) {
- empty_struct_ = new ::google::protobuf::testing::StructMessage(*from.empty_struct_);
- } else {
- empty_struct_ = NULL;
- }
- if (from.has_empty_struct2()) {
- empty_struct2_ = new ::google::protobuf::testing::StructMessage(*from.empty_struct2_);
- } else {
- empty_struct2_ = NULL;
- }
- if (from.has_struct_with_null_value()) {
- struct_with_null_value_ = new ::google::protobuf::testing::StructMessage(*from.struct_with_null_value_);
- } else {
- struct_with_null_value_ = NULL;
- }
- if (from.has_struct_with_values()) {
- struct_with_values_ = new ::google::protobuf::testing::StructMessage(*from.struct_with_values_);
- } else {
- struct_with_values_ = NULL;
- }
- if (from.has_struct_with_nested_struct()) {
- struct_with_nested_struct_ = new ::google::protobuf::testing::StructMessage(*from.struct_with_nested_struct_);
- } else {
- struct_with_nested_struct_ = NULL;
- }
- if (from.has_struct_with_nested_list()) {
- struct_with_nested_list_ = new ::google::protobuf::testing::StructMessage(*from.struct_with_nested_list_);
- } else {
- struct_with_nested_list_ = NULL;
- }
- if (from.has_struct_with_list_of_nulls()) {
- struct_with_list_of_nulls_ = new ::google::protobuf::testing::StructMessage(*from.struct_with_list_of_nulls_);
- } else {
- struct_with_list_of_nulls_ = NULL;
- }
- if (from.has_struct_with_list_of_lists()) {
- struct_with_list_of_lists_ = new ::google::protobuf::testing::StructMessage(*from.struct_with_list_of_lists_);
- } else {
- struct_with_list_of_lists_ = NULL;
- }
- if (from.has_struct_with_list_of_structs()) {
- struct_with_list_of_structs_ = new ::google::protobuf::testing::StructMessage(*from.struct_with_list_of_structs_);
- } else {
- struct_with_list_of_structs_ = NULL;
- }
- if (from.has_top_level_struct()) {
- top_level_struct_ = new ::google::protobuf::Struct(*from.top_level_struct_);
- } else {
- top_level_struct_ = NULL;
- }
- if (from.has_value_wrapper_simple()) {
- value_wrapper_simple_ = new ::google::protobuf::testing::ValueMessage(*from.value_wrapper_simple_);
- } else {
- value_wrapper_simple_ = NULL;
- }
- if (from.has_value_wrapper_with_struct()) {
- value_wrapper_with_struct_ = new ::google::protobuf::testing::ValueMessage(*from.value_wrapper_with_struct_);
- } else {
- value_wrapper_with_struct_ = NULL;
- }
- if (from.has_value_wrapper_with_list()) {
- value_wrapper_with_list_ = new ::google::protobuf::testing::ValueMessage(*from.value_wrapper_with_list_);
- } else {
- value_wrapper_with_list_ = NULL;
- }
- if (from.has_list_value_wrapper()) {
- list_value_wrapper_ = new ::google::protobuf::testing::ListValueMessage(*from.list_value_wrapper_);
- } else {
- list_value_wrapper_ = NULL;
- }
- if (from.has_top_level_value_simple()) {
- top_level_value_simple_ = new ::google::protobuf::Value(*from.top_level_value_simple_);
- } else {
- top_level_value_simple_ = NULL;
- }
- if (from.has_top_level_value_with_struct()) {
- top_level_value_with_struct_ = new ::google::protobuf::Value(*from.top_level_value_with_struct_);
- } else {
- top_level_value_with_struct_ = NULL;
- }
- if (from.has_top_level_value_with_list()) {
- top_level_value_with_list_ = new ::google::protobuf::Value(*from.top_level_value_with_list_);
- } else {
- top_level_value_with_list_ = NULL;
- }
- if (from.has_top_level_listvalue()) {
- top_level_listvalue_ = new ::google::protobuf::ListValue(*from.top_level_listvalue_);
- } else {
- top_level_listvalue_ = NULL;
- }
- if (from.has_empty_any()) {
- empty_any_ = new ::google::protobuf::testing::AnyMessage(*from.empty_any_);
- } else {
- empty_any_ = NULL;
- }
- if (from.has_type_only_any()) {
- type_only_any_ = new ::google::protobuf::testing::AnyMessage(*from.type_only_any_);
- } else {
- type_only_any_ = NULL;
- }
- if (from.has_recursive_any()) {
- recursive_any_ = new ::google::protobuf::testing::AnyMessage(*from.recursive_any_);
- } else {
- recursive_any_ = NULL;
- }
- if (from.has_any_with_message_value()) {
- any_with_message_value_ = new ::google::protobuf::testing::AnyMessage(*from.any_with_message_value_);
- } else {
- any_with_message_value_ = NULL;
- }
- if (from.has_any_with_nested_message()) {
- any_with_nested_message_ = new ::google::protobuf::testing::AnyMessage(*from.any_with_nested_message_);
- } else {
- any_with_nested_message_ = NULL;
- }
- if (from.has_any_with_message_containing_map()) {
- any_with_message_containing_map_ = new ::google::protobuf::testing::AnyMessage(*from.any_with_message_containing_map_);
- } else {
- any_with_message_containing_map_ = NULL;
- }
- if (from.has_any_with_message_containing_struct()) {
- any_with_message_containing_struct_ = new ::google::protobuf::testing::AnyMessage(*from.any_with_message_containing_struct_);
- } else {
- any_with_message_containing_struct_ = NULL;
- }
- if (from.has_top_level_any()) {
- top_level_any_ = new ::google::protobuf::Any(*from.top_level_any_);
- } else {
- top_level_any_ = NULL;
- }
- if (from.has_empty_map()) {
- empty_map_ = new ::google::protobuf::testing::StringtoIntMap(*from.empty_map_);
- } else {
- empty_map_ = NULL;
- }
- if (from.has_string_to_int()) {
- string_to_int_ = new ::google::protobuf::testing::StringtoIntMap(*from.string_to_int_);
- } else {
- string_to_int_ = NULL;
- }
- if (from.has_int_to_string()) {
- int_to_string_ = new ::google::protobuf::testing::IntToStringMap(*from.int_to_string_);
- } else {
- int_to_string_ = NULL;
- }
- if (from.has_mixed1()) {
- mixed1_ = new ::google::protobuf::testing::MixedMap(*from.mixed1_);
- } else {
- mixed1_ = NULL;
- }
- if (from.has_mixed2()) {
- mixed2_ = new ::google::protobuf::testing::MixedMap2(*from.mixed2_);
- } else {
- mixed2_ = NULL;
- }
- if (from.has_empty_mixed2()) {
- empty_mixed2_ = new ::google::protobuf::testing::MixedMap2(*from.empty_mixed2_);
- } else {
- empty_mixed2_ = NULL;
- }
- if (from.has_map_of_objects()) {
- map_of_objects_ = new ::google::protobuf::testing::MessageMap(*from.map_of_objects_);
- } else {
- map_of_objects_ = NULL;
- }
- if (from.has_mixed_empty()) {
- mixed_empty_ = new ::google::protobuf::testing::MixedMap(*from.mixed_empty_);
- } else {
- mixed_empty_ = NULL;
- }
- if (from.has_message_map_empty()) {
- message_map_empty_ = new ::google::protobuf::testing::MessageMap(*from.message_map_empty_);
- } else {
- message_map_empty_ = NULL;
- }
- if (from.has_double_value()) {
- double_value_ = new ::google::protobuf::testing::DoubleValueMessage(*from.double_value_);
- } else {
- double_value_ = NULL;
- }
- if (from.has_double_value_default()) {
- double_value_default_ = new ::google::protobuf::testing::DoubleValueMessage(*from.double_value_default_);
- } else {
- double_value_default_ = NULL;
- }
- // @@protoc_insertion_point(copy_constructor:google.protobuf.testing.DefaultValueTestCases)
- }
- void DefaultValueTestCases::SharedCtor() {
- ::memset(&empty_double_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&double_value_default_) -
- reinterpret_cast<char*>(&empty_double_)) + sizeof(double_value_default_));
- }
- DefaultValueTestCases::~DefaultValueTestCases() {
- // @@protoc_insertion_point(destructor:google.protobuf.testing.DefaultValueTestCases)
- SharedDtor();
- }
- void DefaultValueTestCases::SharedDtor() {
- if (this != internal_default_instance()) delete empty_double_;
- if (this != internal_default_instance()) delete double_with_default_value_;
- if (this != internal_default_instance()) delete double_with_nondefault_value_;
- if (this != internal_default_instance()) delete repeated_double_;
- if (this != internal_default_instance()) delete nested_message_;
- if (this != internal_default_instance()) delete repeated_nested_message_;
- if (this != internal_default_instance()) delete double_message_with_oneof_;
- if (this != internal_default_instance()) delete empty_struct_;
- if (this != internal_default_instance()) delete empty_struct2_;
- if (this != internal_default_instance()) delete struct_with_null_value_;
- if (this != internal_default_instance()) delete struct_with_values_;
- if (this != internal_default_instance()) delete struct_with_nested_struct_;
- if (this != internal_default_instance()) delete struct_with_nested_list_;
- if (this != internal_default_instance()) delete struct_with_list_of_nulls_;
- if (this != internal_default_instance()) delete struct_with_list_of_lists_;
- if (this != internal_default_instance()) delete struct_with_list_of_structs_;
- if (this != internal_default_instance()) delete top_level_struct_;
- if (this != internal_default_instance()) delete value_wrapper_simple_;
- if (this != internal_default_instance()) delete value_wrapper_with_struct_;
- if (this != internal_default_instance()) delete value_wrapper_with_list_;
- if (this != internal_default_instance()) delete list_value_wrapper_;
- if (this != internal_default_instance()) delete top_level_value_simple_;
- if (this != internal_default_instance()) delete top_level_value_with_struct_;
- if (this != internal_default_instance()) delete top_level_value_with_list_;
- if (this != internal_default_instance()) delete top_level_listvalue_;
- if (this != internal_default_instance()) delete empty_any_;
- if (this != internal_default_instance()) delete type_only_any_;
- if (this != internal_default_instance()) delete recursive_any_;
- if (this != internal_default_instance()) delete any_with_message_value_;
- if (this != internal_default_instance()) delete any_with_nested_message_;
- if (this != internal_default_instance()) delete any_with_message_containing_map_;
- if (this != internal_default_instance()) delete any_with_message_containing_struct_;
- if (this != internal_default_instance()) delete top_level_any_;
- if (this != internal_default_instance()) delete empty_map_;
- if (this != internal_default_instance()) delete string_to_int_;
- if (this != internal_default_instance()) delete int_to_string_;
- if (this != internal_default_instance()) delete mixed1_;
- if (this != internal_default_instance()) delete mixed2_;
- if (this != internal_default_instance()) delete empty_mixed2_;
- if (this != internal_default_instance()) delete map_of_objects_;
- if (this != internal_default_instance()) delete mixed_empty_;
- if (this != internal_default_instance()) delete message_map_empty_;
- if (this != internal_default_instance()) delete double_value_;
- if (this != internal_default_instance()) delete double_value_default_;
- }
- void DefaultValueTestCases::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* DefaultValueTestCases::descriptor() {
- ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const DefaultValueTestCases& DefaultValueTestCases::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::scc_info_DefaultValueTestCases.base);
- return *internal_default_instance();
- }
- void DefaultValueTestCases::Clear() {
- // @@protoc_insertion_point(message_clear_start:google.protobuf.testing.DefaultValueTestCases)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- if (GetArenaNoVirtual() == NULL && empty_double_ != NULL) {
- delete empty_double_;
- }
- empty_double_ = NULL;
- if (GetArenaNoVirtual() == NULL && double_with_default_value_ != NULL) {
- delete double_with_default_value_;
- }
- double_with_default_value_ = NULL;
- if (GetArenaNoVirtual() == NULL && double_with_nondefault_value_ != NULL) {
- delete double_with_nondefault_value_;
- }
- double_with_nondefault_value_ = NULL;
- if (GetArenaNoVirtual() == NULL && repeated_double_ != NULL) {
- delete repeated_double_;
- }
- repeated_double_ = NULL;
- if (GetArenaNoVirtual() == NULL && nested_message_ != NULL) {
- delete nested_message_;
- }
- nested_message_ = NULL;
- if (GetArenaNoVirtual() == NULL && repeated_nested_message_ != NULL) {
- delete repeated_nested_message_;
- }
- repeated_nested_message_ = NULL;
- if (GetArenaNoVirtual() == NULL && double_message_with_oneof_ != NULL) {
- delete double_message_with_oneof_;
- }
- double_message_with_oneof_ = NULL;
- if (GetArenaNoVirtual() == NULL && empty_struct_ != NULL) {
- delete empty_struct_;
- }
- empty_struct_ = NULL;
- if (GetArenaNoVirtual() == NULL && empty_struct2_ != NULL) {
- delete empty_struct2_;
- }
- empty_struct2_ = NULL;
- if (GetArenaNoVirtual() == NULL && struct_with_null_value_ != NULL) {
- delete struct_with_null_value_;
- }
- struct_with_null_value_ = NULL;
- if (GetArenaNoVirtual() == NULL && struct_with_values_ != NULL) {
- delete struct_with_values_;
- }
- struct_with_values_ = NULL;
- if (GetArenaNoVirtual() == NULL && struct_with_nested_struct_ != NULL) {
- delete struct_with_nested_struct_;
- }
- struct_with_nested_struct_ = NULL;
- if (GetArenaNoVirtual() == NULL && struct_with_nested_list_ != NULL) {
- delete struct_with_nested_list_;
- }
- struct_with_nested_list_ = NULL;
- if (GetArenaNoVirtual() == NULL && struct_with_list_of_nulls_ != NULL) {
- delete struct_with_list_of_nulls_;
- }
- struct_with_list_of_nulls_ = NULL;
- if (GetArenaNoVirtual() == NULL && struct_with_list_of_lists_ != NULL) {
- delete struct_with_list_of_lists_;
- }
- struct_with_list_of_lists_ = NULL;
- if (GetArenaNoVirtual() == NULL && struct_with_list_of_structs_ != NULL) {
- delete struct_with_list_of_structs_;
- }
- struct_with_list_of_structs_ = NULL;
- if (GetArenaNoVirtual() == NULL && top_level_struct_ != NULL) {
- delete top_level_struct_;
- }
- top_level_struct_ = NULL;
- if (GetArenaNoVirtual() == NULL && value_wrapper_simple_ != NULL) {
- delete value_wrapper_simple_;
- }
- value_wrapper_simple_ = NULL;
- if (GetArenaNoVirtual() == NULL && value_wrapper_with_struct_ != NULL) {
- delete value_wrapper_with_struct_;
- }
- value_wrapper_with_struct_ = NULL;
- if (GetArenaNoVirtual() == NULL && value_wrapper_with_list_ != NULL) {
- delete value_wrapper_with_list_;
- }
- value_wrapper_with_list_ = NULL;
- if (GetArenaNoVirtual() == NULL && list_value_wrapper_ != NULL) {
- delete list_value_wrapper_;
- }
- list_value_wrapper_ = NULL;
- if (GetArenaNoVirtual() == NULL && top_level_value_simple_ != NULL) {
- delete top_level_value_simple_;
- }
- top_level_value_simple_ = NULL;
- if (GetArenaNoVirtual() == NULL && top_level_value_with_struct_ != NULL) {
- delete top_level_value_with_struct_;
- }
- top_level_value_with_struct_ = NULL;
- if (GetArenaNoVirtual() == NULL && top_level_value_with_list_ != NULL) {
- delete top_level_value_with_list_;
- }
- top_level_value_with_list_ = NULL;
- if (GetArenaNoVirtual() == NULL && top_level_listvalue_ != NULL) {
- delete top_level_listvalue_;
- }
- top_level_listvalue_ = NULL;
- if (GetArenaNoVirtual() == NULL && empty_any_ != NULL) {
- delete empty_any_;
- }
- empty_any_ = NULL;
- if (GetArenaNoVirtual() == NULL && type_only_any_ != NULL) {
- delete type_only_any_;
- }
- type_only_any_ = NULL;
- if (GetArenaNoVirtual() == NULL && recursive_any_ != NULL) {
- delete recursive_any_;
- }
- recursive_any_ = NULL;
- if (GetArenaNoVirtual() == NULL && any_with_message_value_ != NULL) {
- delete any_with_message_value_;
- }
- any_with_message_value_ = NULL;
- if (GetArenaNoVirtual() == NULL && any_with_nested_message_ != NULL) {
- delete any_with_nested_message_;
- }
- any_with_nested_message_ = NULL;
- if (GetArenaNoVirtual() == NULL && any_with_message_containing_map_ != NULL) {
- delete any_with_message_containing_map_;
- }
- any_with_message_containing_map_ = NULL;
- if (GetArenaNoVirtual() == NULL && any_with_message_containing_struct_ != NULL) {
- delete any_with_message_containing_struct_;
- }
- any_with_message_containing_struct_ = NULL;
- if (GetArenaNoVirtual() == NULL && top_level_any_ != NULL) {
- delete top_level_any_;
- }
- top_level_any_ = NULL;
- if (GetArenaNoVirtual() == NULL && empty_map_ != NULL) {
- delete empty_map_;
- }
- empty_map_ = NULL;
- if (GetArenaNoVirtual() == NULL && string_to_int_ != NULL) {
- delete string_to_int_;
- }
- string_to_int_ = NULL;
- if (GetArenaNoVirtual() == NULL && int_to_string_ != NULL) {
- delete int_to_string_;
- }
- int_to_string_ = NULL;
- if (GetArenaNoVirtual() == NULL && mixed1_ != NULL) {
- delete mixed1_;
- }
- mixed1_ = NULL;
- if (GetArenaNoVirtual() == NULL && mixed2_ != NULL) {
- delete mixed2_;
- }
- mixed2_ = NULL;
- if (GetArenaNoVirtual() == NULL && empty_mixed2_ != NULL) {
- delete empty_mixed2_;
- }
- empty_mixed2_ = NULL;
- if (GetArenaNoVirtual() == NULL && map_of_objects_ != NULL) {
- delete map_of_objects_;
- }
- map_of_objects_ = NULL;
- if (GetArenaNoVirtual() == NULL && mixed_empty_ != NULL) {
- delete mixed_empty_;
- }
- mixed_empty_ = NULL;
- if (GetArenaNoVirtual() == NULL && message_map_empty_ != NULL) {
- delete message_map_empty_;
- }
- message_map_empty_ = NULL;
- if (GetArenaNoVirtual() == NULL && double_value_ != NULL) {
- delete double_value_;
- }
- double_value_ = NULL;
- if (GetArenaNoVirtual() == NULL && double_value_default_ != NULL) {
- delete double_value_default_;
- }
- double_value_default_ = NULL;
- _internal_metadata_.Clear();
- }
- bool DefaultValueTestCases::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:google.protobuf.testing.DefaultValueTestCases)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // .google.protobuf.testing.DoubleMessage empty_double = 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_empty_double()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.DoubleMessage double_with_default_value = 2;
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_double_with_default_value()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.DoubleMessage double_with_nondefault_value = 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_double_with_nondefault_value()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.DoubleMessage repeated_double = 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_repeated_double()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.DoubleMessage nested_message = 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_nested_message()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.DoubleMessage repeated_nested_message = 6;
- case 6: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_repeated_nested_message()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.DoubleMessage double_message_with_oneof = 7;
- case 7: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_double_message_with_oneof()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.StructMessage empty_struct = 201;
- case 201: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(74u /* 1610 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_empty_struct()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.StructMessage empty_struct2 = 202;
- case 202: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(82u /* 1618 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_empty_struct2()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.StructMessage struct_with_null_value = 203;
- case 203: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(90u /* 1626 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_struct_with_null_value()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.StructMessage struct_with_values = 204;
- case 204: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(98u /* 1634 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_struct_with_values()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.StructMessage struct_with_nested_struct = 205;
- case 205: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(106u /* 1642 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_struct_with_nested_struct()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.StructMessage struct_with_nested_list = 206;
- case 206: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(114u /* 1650 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_struct_with_nested_list()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.StructMessage struct_with_list_of_nulls = 207;
- case 207: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(122u /* 1658 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_struct_with_list_of_nulls()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.StructMessage struct_with_list_of_lists = 208;
- case 208: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(130u /* 1666 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_struct_with_list_of_lists()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.StructMessage struct_with_list_of_structs = 209;
- case 209: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(138u /* 1674 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_struct_with_list_of_structs()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.Struct top_level_struct = 210;
- case 210: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(146u /* 1682 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_top_level_struct()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.ValueMessage value_wrapper_simple = 212;
- case 212: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(162u /* 1698 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_value_wrapper_simple()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.ValueMessage value_wrapper_with_struct = 213;
- case 213: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(170u /* 1706 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_value_wrapper_with_struct()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.ValueMessage value_wrapper_with_list = 214;
- case 214: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(178u /* 1714 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_value_wrapper_with_list()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.ListValueMessage list_value_wrapper = 215;
- case 215: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(186u /* 1722 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_list_value_wrapper()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.Value top_level_value_simple = 216;
- case 216: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(194u /* 1730 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_top_level_value_simple()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.Value top_level_value_with_struct = 217;
- case 217: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(202u /* 1738 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_top_level_value_with_struct()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.Value top_level_value_with_list = 218;
- case 218: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(210u /* 1746 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_top_level_value_with_list()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.ListValue top_level_listvalue = 219;
- case 219: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(218u /* 1754 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_top_level_listvalue()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.AnyMessage empty_any = 301;
- case 301: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(106u /* 2410 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_empty_any()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.AnyMessage type_only_any = 302;
- case 302: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(114u /* 2418 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_type_only_any()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.AnyMessage recursive_any = 303;
- case 303: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(122u /* 2426 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_recursive_any()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.AnyMessage any_with_message_value = 304;
- case 304: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(130u /* 2434 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_any_with_message_value()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.AnyMessage any_with_nested_message = 305;
- case 305: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(138u /* 2442 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_any_with_nested_message()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.AnyMessage any_with_message_containing_map = 306;
- case 306: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(146u /* 2450 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_any_with_message_containing_map()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.AnyMessage any_with_message_containing_struct = 307;
- case 307: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(154u /* 2458 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_any_with_message_containing_struct()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.Any top_level_any = 308;
- case 308: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(162u /* 2466 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_top_level_any()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.StringtoIntMap empty_map = 401;
- case 401: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(138u /* 3210 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_empty_map()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.StringtoIntMap string_to_int = 402;
- case 402: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(146u /* 3218 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_string_to_int()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.IntToStringMap int_to_string = 403;
- case 403: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(154u /* 3226 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_int_to_string()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.MixedMap mixed1 = 404;
- case 404: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(162u /* 3234 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_mixed1()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.MixedMap2 mixed2 = 405;
- case 405: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(170u /* 3242 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_mixed2()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.MixedMap2 empty_mixed2 = 406;
- case 406: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(178u /* 3250 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_empty_mixed2()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.MessageMap map_of_objects = 407;
- case 407: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(186u /* 3258 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_map_of_objects()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.MixedMap mixed_empty = 408;
- case 408: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(194u /* 3266 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_mixed_empty()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.MessageMap message_map_empty = 409;
- case 409: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(202u /* 3274 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_message_map_empty()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.DoubleValueMessage double_value = 501;
- case 501: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(170u /* 4010 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_double_value()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.DoubleValueMessage double_value_default = 502;
- case 502: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(178u /* 4018 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_double_value_default()));
- } 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:google.protobuf.testing.DefaultValueTestCases)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:google.protobuf.testing.DefaultValueTestCases)
- return false;
- #undef DO_
- }
- void DefaultValueTestCases::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:google.protobuf.testing.DefaultValueTestCases)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // .google.protobuf.testing.DoubleMessage empty_double = 1;
- if (this->has_empty_double()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, this->_internal_empty_double(), output);
- }
- // .google.protobuf.testing.DoubleMessage double_with_default_value = 2;
- if (this->has_double_with_default_value()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 2, this->_internal_double_with_default_value(), output);
- }
- // .google.protobuf.testing.DoubleMessage double_with_nondefault_value = 3;
- if (this->has_double_with_nondefault_value()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 3, this->_internal_double_with_nondefault_value(), output);
- }
- // .google.protobuf.testing.DoubleMessage repeated_double = 4;
- if (this->has_repeated_double()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 4, this->_internal_repeated_double(), output);
- }
- // .google.protobuf.testing.DoubleMessage nested_message = 5;
- if (this->has_nested_message()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 5, this->_internal_nested_message(), output);
- }
- // .google.protobuf.testing.DoubleMessage repeated_nested_message = 6;
- if (this->has_repeated_nested_message()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 6, this->_internal_repeated_nested_message(), output);
- }
- // .google.protobuf.testing.DoubleMessage double_message_with_oneof = 7;
- if (this->has_double_message_with_oneof()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 7, this->_internal_double_message_with_oneof(), output);
- }
- // .google.protobuf.testing.StructMessage empty_struct = 201;
- if (this->has_empty_struct()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 201, this->_internal_empty_struct(), output);
- }
- // .google.protobuf.testing.StructMessage empty_struct2 = 202;
- if (this->has_empty_struct2()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 202, this->_internal_empty_struct2(), output);
- }
- // .google.protobuf.testing.StructMessage struct_with_null_value = 203;
- if (this->has_struct_with_null_value()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 203, this->_internal_struct_with_null_value(), output);
- }
- // .google.protobuf.testing.StructMessage struct_with_values = 204;
- if (this->has_struct_with_values()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 204, this->_internal_struct_with_values(), output);
- }
- // .google.protobuf.testing.StructMessage struct_with_nested_struct = 205;
- if (this->has_struct_with_nested_struct()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 205, this->_internal_struct_with_nested_struct(), output);
- }
- // .google.protobuf.testing.StructMessage struct_with_nested_list = 206;
- if (this->has_struct_with_nested_list()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 206, this->_internal_struct_with_nested_list(), output);
- }
- // .google.protobuf.testing.StructMessage struct_with_list_of_nulls = 207;
- if (this->has_struct_with_list_of_nulls()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 207, this->_internal_struct_with_list_of_nulls(), output);
- }
- // .google.protobuf.testing.StructMessage struct_with_list_of_lists = 208;
- if (this->has_struct_with_list_of_lists()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 208, this->_internal_struct_with_list_of_lists(), output);
- }
- // .google.protobuf.testing.StructMessage struct_with_list_of_structs = 209;
- if (this->has_struct_with_list_of_structs()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 209, this->_internal_struct_with_list_of_structs(), output);
- }
- // .google.protobuf.Struct top_level_struct = 210;
- if (this->has_top_level_struct()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 210, this->_internal_top_level_struct(), output);
- }
- // .google.protobuf.testing.ValueMessage value_wrapper_simple = 212;
- if (this->has_value_wrapper_simple()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 212, this->_internal_value_wrapper_simple(), output);
- }
- // .google.protobuf.testing.ValueMessage value_wrapper_with_struct = 213;
- if (this->has_value_wrapper_with_struct()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 213, this->_internal_value_wrapper_with_struct(), output);
- }
- // .google.protobuf.testing.ValueMessage value_wrapper_with_list = 214;
- if (this->has_value_wrapper_with_list()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 214, this->_internal_value_wrapper_with_list(), output);
- }
- // .google.protobuf.testing.ListValueMessage list_value_wrapper = 215;
- if (this->has_list_value_wrapper()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 215, this->_internal_list_value_wrapper(), output);
- }
- // .google.protobuf.Value top_level_value_simple = 216;
- if (this->has_top_level_value_simple()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 216, this->_internal_top_level_value_simple(), output);
- }
- // .google.protobuf.Value top_level_value_with_struct = 217;
- if (this->has_top_level_value_with_struct()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 217, this->_internal_top_level_value_with_struct(), output);
- }
- // .google.protobuf.Value top_level_value_with_list = 218;
- if (this->has_top_level_value_with_list()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 218, this->_internal_top_level_value_with_list(), output);
- }
- // .google.protobuf.ListValue top_level_listvalue = 219;
- if (this->has_top_level_listvalue()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 219, this->_internal_top_level_listvalue(), output);
- }
- // .google.protobuf.testing.AnyMessage empty_any = 301;
- if (this->has_empty_any()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 301, this->_internal_empty_any(), output);
- }
- // .google.protobuf.testing.AnyMessage type_only_any = 302;
- if (this->has_type_only_any()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 302, this->_internal_type_only_any(), output);
- }
- // .google.protobuf.testing.AnyMessage recursive_any = 303;
- if (this->has_recursive_any()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 303, this->_internal_recursive_any(), output);
- }
- // .google.protobuf.testing.AnyMessage any_with_message_value = 304;
- if (this->has_any_with_message_value()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 304, this->_internal_any_with_message_value(), output);
- }
- // .google.protobuf.testing.AnyMessage any_with_nested_message = 305;
- if (this->has_any_with_nested_message()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 305, this->_internal_any_with_nested_message(), output);
- }
- // .google.protobuf.testing.AnyMessage any_with_message_containing_map = 306;
- if (this->has_any_with_message_containing_map()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 306, this->_internal_any_with_message_containing_map(), output);
- }
- // .google.protobuf.testing.AnyMessage any_with_message_containing_struct = 307;
- if (this->has_any_with_message_containing_struct()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 307, this->_internal_any_with_message_containing_struct(), output);
- }
- // .google.protobuf.Any top_level_any = 308;
- if (this->has_top_level_any()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 308, this->_internal_top_level_any(), output);
- }
- // .google.protobuf.testing.StringtoIntMap empty_map = 401;
- if (this->has_empty_map()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 401, this->_internal_empty_map(), output);
- }
- // .google.protobuf.testing.StringtoIntMap string_to_int = 402;
- if (this->has_string_to_int()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 402, this->_internal_string_to_int(), output);
- }
- // .google.protobuf.testing.IntToStringMap int_to_string = 403;
- if (this->has_int_to_string()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 403, this->_internal_int_to_string(), output);
- }
- // .google.protobuf.testing.MixedMap mixed1 = 404;
- if (this->has_mixed1()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 404, this->_internal_mixed1(), output);
- }
- // .google.protobuf.testing.MixedMap2 mixed2 = 405;
- if (this->has_mixed2()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 405, this->_internal_mixed2(), output);
- }
- // .google.protobuf.testing.MixedMap2 empty_mixed2 = 406;
- if (this->has_empty_mixed2()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 406, this->_internal_empty_mixed2(), output);
- }
- // .google.protobuf.testing.MessageMap map_of_objects = 407;
- if (this->has_map_of_objects()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 407, this->_internal_map_of_objects(), output);
- }
- // .google.protobuf.testing.MixedMap mixed_empty = 408;
- if (this->has_mixed_empty()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 408, this->_internal_mixed_empty(), output);
- }
- // .google.protobuf.testing.MessageMap message_map_empty = 409;
- if (this->has_message_map_empty()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 409, this->_internal_message_map_empty(), output);
- }
- // .google.protobuf.testing.DoubleValueMessage double_value = 501;
- if (this->has_double_value()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 501, this->_internal_double_value(), output);
- }
- // .google.protobuf.testing.DoubleValueMessage double_value_default = 502;
- if (this->has_double_value_default()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 502, this->_internal_double_value_default(), output);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:google.protobuf.testing.DefaultValueTestCases)
- }
- ::google::protobuf::uint8* DefaultValueTestCases::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.testing.DefaultValueTestCases)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // .google.protobuf.testing.DoubleMessage empty_double = 1;
- if (this->has_empty_double()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 1, this->_internal_empty_double(), deterministic, target);
- }
- // .google.protobuf.testing.DoubleMessage double_with_default_value = 2;
- if (this->has_double_with_default_value()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 2, this->_internal_double_with_default_value(), deterministic, target);
- }
- // .google.protobuf.testing.DoubleMessage double_with_nondefault_value = 3;
- if (this->has_double_with_nondefault_value()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 3, this->_internal_double_with_nondefault_value(), deterministic, target);
- }
- // .google.protobuf.testing.DoubleMessage repeated_double = 4;
- if (this->has_repeated_double()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 4, this->_internal_repeated_double(), deterministic, target);
- }
- // .google.protobuf.testing.DoubleMessage nested_message = 5;
- if (this->has_nested_message()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 5, this->_internal_nested_message(), deterministic, target);
- }
- // .google.protobuf.testing.DoubleMessage repeated_nested_message = 6;
- if (this->has_repeated_nested_message()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 6, this->_internal_repeated_nested_message(), deterministic, target);
- }
- // .google.protobuf.testing.DoubleMessage double_message_with_oneof = 7;
- if (this->has_double_message_with_oneof()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 7, this->_internal_double_message_with_oneof(), deterministic, target);
- }
- // .google.protobuf.testing.StructMessage empty_struct = 201;
- if (this->has_empty_struct()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 201, this->_internal_empty_struct(), deterministic, target);
- }
- // .google.protobuf.testing.StructMessage empty_struct2 = 202;
- if (this->has_empty_struct2()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 202, this->_internal_empty_struct2(), deterministic, target);
- }
- // .google.protobuf.testing.StructMessage struct_with_null_value = 203;
- if (this->has_struct_with_null_value()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 203, this->_internal_struct_with_null_value(), deterministic, target);
- }
- // .google.protobuf.testing.StructMessage struct_with_values = 204;
- if (this->has_struct_with_values()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 204, this->_internal_struct_with_values(), deterministic, target);
- }
- // .google.protobuf.testing.StructMessage struct_with_nested_struct = 205;
- if (this->has_struct_with_nested_struct()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 205, this->_internal_struct_with_nested_struct(), deterministic, target);
- }
- // .google.protobuf.testing.StructMessage struct_with_nested_list = 206;
- if (this->has_struct_with_nested_list()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 206, this->_internal_struct_with_nested_list(), deterministic, target);
- }
- // .google.protobuf.testing.StructMessage struct_with_list_of_nulls = 207;
- if (this->has_struct_with_list_of_nulls()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 207, this->_internal_struct_with_list_of_nulls(), deterministic, target);
- }
- // .google.protobuf.testing.StructMessage struct_with_list_of_lists = 208;
- if (this->has_struct_with_list_of_lists()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 208, this->_internal_struct_with_list_of_lists(), deterministic, target);
- }
- // .google.protobuf.testing.StructMessage struct_with_list_of_structs = 209;
- if (this->has_struct_with_list_of_structs()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 209, this->_internal_struct_with_list_of_structs(), deterministic, target);
- }
- // .google.protobuf.Struct top_level_struct = 210;
- if (this->has_top_level_struct()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 210, this->_internal_top_level_struct(), deterministic, target);
- }
- // .google.protobuf.testing.ValueMessage value_wrapper_simple = 212;
- if (this->has_value_wrapper_simple()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 212, this->_internal_value_wrapper_simple(), deterministic, target);
- }
- // .google.protobuf.testing.ValueMessage value_wrapper_with_struct = 213;
- if (this->has_value_wrapper_with_struct()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 213, this->_internal_value_wrapper_with_struct(), deterministic, target);
- }
- // .google.protobuf.testing.ValueMessage value_wrapper_with_list = 214;
- if (this->has_value_wrapper_with_list()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 214, this->_internal_value_wrapper_with_list(), deterministic, target);
- }
- // .google.protobuf.testing.ListValueMessage list_value_wrapper = 215;
- if (this->has_list_value_wrapper()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 215, this->_internal_list_value_wrapper(), deterministic, target);
- }
- // .google.protobuf.Value top_level_value_simple = 216;
- if (this->has_top_level_value_simple()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 216, this->_internal_top_level_value_simple(), deterministic, target);
- }
- // .google.protobuf.Value top_level_value_with_struct = 217;
- if (this->has_top_level_value_with_struct()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 217, this->_internal_top_level_value_with_struct(), deterministic, target);
- }
- // .google.protobuf.Value top_level_value_with_list = 218;
- if (this->has_top_level_value_with_list()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 218, this->_internal_top_level_value_with_list(), deterministic, target);
- }
- // .google.protobuf.ListValue top_level_listvalue = 219;
- if (this->has_top_level_listvalue()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 219, this->_internal_top_level_listvalue(), deterministic, target);
- }
- // .google.protobuf.testing.AnyMessage empty_any = 301;
- if (this->has_empty_any()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 301, this->_internal_empty_any(), deterministic, target);
- }
- // .google.protobuf.testing.AnyMessage type_only_any = 302;
- if (this->has_type_only_any()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 302, this->_internal_type_only_any(), deterministic, target);
- }
- // .google.protobuf.testing.AnyMessage recursive_any = 303;
- if (this->has_recursive_any()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 303, this->_internal_recursive_any(), deterministic, target);
- }
- // .google.protobuf.testing.AnyMessage any_with_message_value = 304;
- if (this->has_any_with_message_value()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 304, this->_internal_any_with_message_value(), deterministic, target);
- }
- // .google.protobuf.testing.AnyMessage any_with_nested_message = 305;
- if (this->has_any_with_nested_message()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 305, this->_internal_any_with_nested_message(), deterministic, target);
- }
- // .google.protobuf.testing.AnyMessage any_with_message_containing_map = 306;
- if (this->has_any_with_message_containing_map()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 306, this->_internal_any_with_message_containing_map(), deterministic, target);
- }
- // .google.protobuf.testing.AnyMessage any_with_message_containing_struct = 307;
- if (this->has_any_with_message_containing_struct()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 307, this->_internal_any_with_message_containing_struct(), deterministic, target);
- }
- // .google.protobuf.Any top_level_any = 308;
- if (this->has_top_level_any()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 308, this->_internal_top_level_any(), deterministic, target);
- }
- // .google.protobuf.testing.StringtoIntMap empty_map = 401;
- if (this->has_empty_map()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 401, this->_internal_empty_map(), deterministic, target);
- }
- // .google.protobuf.testing.StringtoIntMap string_to_int = 402;
- if (this->has_string_to_int()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 402, this->_internal_string_to_int(), deterministic, target);
- }
- // .google.protobuf.testing.IntToStringMap int_to_string = 403;
- if (this->has_int_to_string()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 403, this->_internal_int_to_string(), deterministic, target);
- }
- // .google.protobuf.testing.MixedMap mixed1 = 404;
- if (this->has_mixed1()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 404, this->_internal_mixed1(), deterministic, target);
- }
- // .google.protobuf.testing.MixedMap2 mixed2 = 405;
- if (this->has_mixed2()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 405, this->_internal_mixed2(), deterministic, target);
- }
- // .google.protobuf.testing.MixedMap2 empty_mixed2 = 406;
- if (this->has_empty_mixed2()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 406, this->_internal_empty_mixed2(), deterministic, target);
- }
- // .google.protobuf.testing.MessageMap map_of_objects = 407;
- if (this->has_map_of_objects()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 407, this->_internal_map_of_objects(), deterministic, target);
- }
- // .google.protobuf.testing.MixedMap mixed_empty = 408;
- if (this->has_mixed_empty()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 408, this->_internal_mixed_empty(), deterministic, target);
- }
- // .google.protobuf.testing.MessageMap message_map_empty = 409;
- if (this->has_message_map_empty()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 409, this->_internal_message_map_empty(), deterministic, target);
- }
- // .google.protobuf.testing.DoubleValueMessage double_value = 501;
- if (this->has_double_value()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 501, this->_internal_double_value(), deterministic, target);
- }
- // .google.protobuf.testing.DoubleValueMessage double_value_default = 502;
- if (this->has_double_value_default()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 502, this->_internal_double_value_default(), deterministic, target);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.testing.DefaultValueTestCases)
- return target;
- }
- size_t DefaultValueTestCases::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:google.protobuf.testing.DefaultValueTestCases)
- size_t total_size = 0;
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // .google.protobuf.testing.DoubleMessage empty_double = 1;
- if (this->has_empty_double()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *empty_double_);
- }
- // .google.protobuf.testing.DoubleMessage double_with_default_value = 2;
- if (this->has_double_with_default_value()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *double_with_default_value_);
- }
- // .google.protobuf.testing.DoubleMessage double_with_nondefault_value = 3;
- if (this->has_double_with_nondefault_value()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *double_with_nondefault_value_);
- }
- // .google.protobuf.testing.DoubleMessage repeated_double = 4;
- if (this->has_repeated_double()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *repeated_double_);
- }
- // .google.protobuf.testing.DoubleMessage nested_message = 5;
- if (this->has_nested_message()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *nested_message_);
- }
- // .google.protobuf.testing.DoubleMessage repeated_nested_message = 6;
- if (this->has_repeated_nested_message()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *repeated_nested_message_);
- }
- // .google.protobuf.testing.DoubleMessage double_message_with_oneof = 7;
- if (this->has_double_message_with_oneof()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *double_message_with_oneof_);
- }
- // .google.protobuf.testing.StructMessage empty_struct = 201;
- if (this->has_empty_struct()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *empty_struct_);
- }
- // .google.protobuf.testing.StructMessage empty_struct2 = 202;
- if (this->has_empty_struct2()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *empty_struct2_);
- }
- // .google.protobuf.testing.StructMessage struct_with_null_value = 203;
- if (this->has_struct_with_null_value()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *struct_with_null_value_);
- }
- // .google.protobuf.testing.StructMessage struct_with_values = 204;
- if (this->has_struct_with_values()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *struct_with_values_);
- }
- // .google.protobuf.testing.StructMessage struct_with_nested_struct = 205;
- if (this->has_struct_with_nested_struct()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *struct_with_nested_struct_);
- }
- // .google.protobuf.testing.StructMessage struct_with_nested_list = 206;
- if (this->has_struct_with_nested_list()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *struct_with_nested_list_);
- }
- // .google.protobuf.testing.StructMessage struct_with_list_of_nulls = 207;
- if (this->has_struct_with_list_of_nulls()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *struct_with_list_of_nulls_);
- }
- // .google.protobuf.testing.StructMessage struct_with_list_of_lists = 208;
- if (this->has_struct_with_list_of_lists()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *struct_with_list_of_lists_);
- }
- // .google.protobuf.testing.StructMessage struct_with_list_of_structs = 209;
- if (this->has_struct_with_list_of_structs()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *struct_with_list_of_structs_);
- }
- // .google.protobuf.Struct top_level_struct = 210;
- if (this->has_top_level_struct()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *top_level_struct_);
- }
- // .google.protobuf.testing.ValueMessage value_wrapper_simple = 212;
- if (this->has_value_wrapper_simple()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *value_wrapper_simple_);
- }
- // .google.protobuf.testing.ValueMessage value_wrapper_with_struct = 213;
- if (this->has_value_wrapper_with_struct()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *value_wrapper_with_struct_);
- }
- // .google.protobuf.testing.ValueMessage value_wrapper_with_list = 214;
- if (this->has_value_wrapper_with_list()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *value_wrapper_with_list_);
- }
- // .google.protobuf.testing.ListValueMessage list_value_wrapper = 215;
- if (this->has_list_value_wrapper()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *list_value_wrapper_);
- }
- // .google.protobuf.Value top_level_value_simple = 216;
- if (this->has_top_level_value_simple()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *top_level_value_simple_);
- }
- // .google.protobuf.Value top_level_value_with_struct = 217;
- if (this->has_top_level_value_with_struct()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *top_level_value_with_struct_);
- }
- // .google.protobuf.Value top_level_value_with_list = 218;
- if (this->has_top_level_value_with_list()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *top_level_value_with_list_);
- }
- // .google.protobuf.ListValue top_level_listvalue = 219;
- if (this->has_top_level_listvalue()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *top_level_listvalue_);
- }
- // .google.protobuf.testing.AnyMessage empty_any = 301;
- if (this->has_empty_any()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *empty_any_);
- }
- // .google.protobuf.testing.AnyMessage type_only_any = 302;
- if (this->has_type_only_any()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *type_only_any_);
- }
- // .google.protobuf.testing.AnyMessage recursive_any = 303;
- if (this->has_recursive_any()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *recursive_any_);
- }
- // .google.protobuf.testing.AnyMessage any_with_message_value = 304;
- if (this->has_any_with_message_value()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *any_with_message_value_);
- }
- // .google.protobuf.testing.AnyMessage any_with_nested_message = 305;
- if (this->has_any_with_nested_message()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *any_with_nested_message_);
- }
- // .google.protobuf.testing.AnyMessage any_with_message_containing_map = 306;
- if (this->has_any_with_message_containing_map()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *any_with_message_containing_map_);
- }
- // .google.protobuf.testing.AnyMessage any_with_message_containing_struct = 307;
- if (this->has_any_with_message_containing_struct()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *any_with_message_containing_struct_);
- }
- // .google.protobuf.Any top_level_any = 308;
- if (this->has_top_level_any()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *top_level_any_);
- }
- // .google.protobuf.testing.StringtoIntMap empty_map = 401;
- if (this->has_empty_map()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *empty_map_);
- }
- // .google.protobuf.testing.StringtoIntMap string_to_int = 402;
- if (this->has_string_to_int()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *string_to_int_);
- }
- // .google.protobuf.testing.IntToStringMap int_to_string = 403;
- if (this->has_int_to_string()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *int_to_string_);
- }
- // .google.protobuf.testing.MixedMap mixed1 = 404;
- if (this->has_mixed1()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *mixed1_);
- }
- // .google.protobuf.testing.MixedMap2 mixed2 = 405;
- if (this->has_mixed2()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *mixed2_);
- }
- // .google.protobuf.testing.MixedMap2 empty_mixed2 = 406;
- if (this->has_empty_mixed2()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *empty_mixed2_);
- }
- // .google.protobuf.testing.MessageMap map_of_objects = 407;
- if (this->has_map_of_objects()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *map_of_objects_);
- }
- // .google.protobuf.testing.MixedMap mixed_empty = 408;
- if (this->has_mixed_empty()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *mixed_empty_);
- }
- // .google.protobuf.testing.MessageMap message_map_empty = 409;
- if (this->has_message_map_empty()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *message_map_empty_);
- }
- // .google.protobuf.testing.DoubleValueMessage double_value = 501;
- if (this->has_double_value()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *double_value_);
- }
- // .google.protobuf.testing.DoubleValueMessage double_value_default = 502;
- if (this->has_double_value_default()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *double_value_default_);
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void DefaultValueTestCases::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.testing.DefaultValueTestCases)
- GOOGLE_DCHECK_NE(&from, this);
- const DefaultValueTestCases* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const DefaultValueTestCases>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.testing.DefaultValueTestCases)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.testing.DefaultValueTestCases)
- MergeFrom(*source);
- }
- }
- void DefaultValueTestCases::MergeFrom(const DefaultValueTestCases& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.testing.DefaultValueTestCases)
- 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_empty_double()) {
- mutable_empty_double()->::google::protobuf::testing::DoubleMessage::MergeFrom(from.empty_double());
- }
- if (from.has_double_with_default_value()) {
- mutable_double_with_default_value()->::google::protobuf::testing::DoubleMessage::MergeFrom(from.double_with_default_value());
- }
- if (from.has_double_with_nondefault_value()) {
- mutable_double_with_nondefault_value()->::google::protobuf::testing::DoubleMessage::MergeFrom(from.double_with_nondefault_value());
- }
- if (from.has_repeated_double()) {
- mutable_repeated_double()->::google::protobuf::testing::DoubleMessage::MergeFrom(from.repeated_double());
- }
- if (from.has_nested_message()) {
- mutable_nested_message()->::google::protobuf::testing::DoubleMessage::MergeFrom(from.nested_message());
- }
- if (from.has_repeated_nested_message()) {
- mutable_repeated_nested_message()->::google::protobuf::testing::DoubleMessage::MergeFrom(from.repeated_nested_message());
- }
- if (from.has_double_message_with_oneof()) {
- mutable_double_message_with_oneof()->::google::protobuf::testing::DoubleMessage::MergeFrom(from.double_message_with_oneof());
- }
- if (from.has_empty_struct()) {
- mutable_empty_struct()->::google::protobuf::testing::StructMessage::MergeFrom(from.empty_struct());
- }
- if (from.has_empty_struct2()) {
- mutable_empty_struct2()->::google::protobuf::testing::StructMessage::MergeFrom(from.empty_struct2());
- }
- if (from.has_struct_with_null_value()) {
- mutable_struct_with_null_value()->::google::protobuf::testing::StructMessage::MergeFrom(from.struct_with_null_value());
- }
- if (from.has_struct_with_values()) {
- mutable_struct_with_values()->::google::protobuf::testing::StructMessage::MergeFrom(from.struct_with_values());
- }
- if (from.has_struct_with_nested_struct()) {
- mutable_struct_with_nested_struct()->::google::protobuf::testing::StructMessage::MergeFrom(from.struct_with_nested_struct());
- }
- if (from.has_struct_with_nested_list()) {
- mutable_struct_with_nested_list()->::google::protobuf::testing::StructMessage::MergeFrom(from.struct_with_nested_list());
- }
- if (from.has_struct_with_list_of_nulls()) {
- mutable_struct_with_list_of_nulls()->::google::protobuf::testing::StructMessage::MergeFrom(from.struct_with_list_of_nulls());
- }
- if (from.has_struct_with_list_of_lists()) {
- mutable_struct_with_list_of_lists()->::google::protobuf::testing::StructMessage::MergeFrom(from.struct_with_list_of_lists());
- }
- if (from.has_struct_with_list_of_structs()) {
- mutable_struct_with_list_of_structs()->::google::protobuf::testing::StructMessage::MergeFrom(from.struct_with_list_of_structs());
- }
- if (from.has_top_level_struct()) {
- mutable_top_level_struct()->::google::protobuf::Struct::MergeFrom(from.top_level_struct());
- }
- if (from.has_value_wrapper_simple()) {
- mutable_value_wrapper_simple()->::google::protobuf::testing::ValueMessage::MergeFrom(from.value_wrapper_simple());
- }
- if (from.has_value_wrapper_with_struct()) {
- mutable_value_wrapper_with_struct()->::google::protobuf::testing::ValueMessage::MergeFrom(from.value_wrapper_with_struct());
- }
- if (from.has_value_wrapper_with_list()) {
- mutable_value_wrapper_with_list()->::google::protobuf::testing::ValueMessage::MergeFrom(from.value_wrapper_with_list());
- }
- if (from.has_list_value_wrapper()) {
- mutable_list_value_wrapper()->::google::protobuf::testing::ListValueMessage::MergeFrom(from.list_value_wrapper());
- }
- if (from.has_top_level_value_simple()) {
- mutable_top_level_value_simple()->::google::protobuf::Value::MergeFrom(from.top_level_value_simple());
- }
- if (from.has_top_level_value_with_struct()) {
- mutable_top_level_value_with_struct()->::google::protobuf::Value::MergeFrom(from.top_level_value_with_struct());
- }
- if (from.has_top_level_value_with_list()) {
- mutable_top_level_value_with_list()->::google::protobuf::Value::MergeFrom(from.top_level_value_with_list());
- }
- if (from.has_top_level_listvalue()) {
- mutable_top_level_listvalue()->::google::protobuf::ListValue::MergeFrom(from.top_level_listvalue());
- }
- if (from.has_empty_any()) {
- mutable_empty_any()->::google::protobuf::testing::AnyMessage::MergeFrom(from.empty_any());
- }
- if (from.has_type_only_any()) {
- mutable_type_only_any()->::google::protobuf::testing::AnyMessage::MergeFrom(from.type_only_any());
- }
- if (from.has_recursive_any()) {
- mutable_recursive_any()->::google::protobuf::testing::AnyMessage::MergeFrom(from.recursive_any());
- }
- if (from.has_any_with_message_value()) {
- mutable_any_with_message_value()->::google::protobuf::testing::AnyMessage::MergeFrom(from.any_with_message_value());
- }
- if (from.has_any_with_nested_message()) {
- mutable_any_with_nested_message()->::google::protobuf::testing::AnyMessage::MergeFrom(from.any_with_nested_message());
- }
- if (from.has_any_with_message_containing_map()) {
- mutable_any_with_message_containing_map()->::google::protobuf::testing::AnyMessage::MergeFrom(from.any_with_message_containing_map());
- }
- if (from.has_any_with_message_containing_struct()) {
- mutable_any_with_message_containing_struct()->::google::protobuf::testing::AnyMessage::MergeFrom(from.any_with_message_containing_struct());
- }
- if (from.has_top_level_any()) {
- mutable_top_level_any()->::google::protobuf::Any::MergeFrom(from.top_level_any());
- }
- if (from.has_empty_map()) {
- mutable_empty_map()->::google::protobuf::testing::StringtoIntMap::MergeFrom(from.empty_map());
- }
- if (from.has_string_to_int()) {
- mutable_string_to_int()->::google::protobuf::testing::StringtoIntMap::MergeFrom(from.string_to_int());
- }
- if (from.has_int_to_string()) {
- mutable_int_to_string()->::google::protobuf::testing::IntToStringMap::MergeFrom(from.int_to_string());
- }
- if (from.has_mixed1()) {
- mutable_mixed1()->::google::protobuf::testing::MixedMap::MergeFrom(from.mixed1());
- }
- if (from.has_mixed2()) {
- mutable_mixed2()->::google::protobuf::testing::MixedMap2::MergeFrom(from.mixed2());
- }
- if (from.has_empty_mixed2()) {
- mutable_empty_mixed2()->::google::protobuf::testing::MixedMap2::MergeFrom(from.empty_mixed2());
- }
- if (from.has_map_of_objects()) {
- mutable_map_of_objects()->::google::protobuf::testing::MessageMap::MergeFrom(from.map_of_objects());
- }
- if (from.has_mixed_empty()) {
- mutable_mixed_empty()->::google::protobuf::testing::MixedMap::MergeFrom(from.mixed_empty());
- }
- if (from.has_message_map_empty()) {
- mutable_message_map_empty()->::google::protobuf::testing::MessageMap::MergeFrom(from.message_map_empty());
- }
- if (from.has_double_value()) {
- mutable_double_value()->::google::protobuf::testing::DoubleValueMessage::MergeFrom(from.double_value());
- }
- if (from.has_double_value_default()) {
- mutable_double_value_default()->::google::protobuf::testing::DoubleValueMessage::MergeFrom(from.double_value_default());
- }
- }
- void DefaultValueTestCases::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.testing.DefaultValueTestCases)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void DefaultValueTestCases::CopyFrom(const DefaultValueTestCases& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.testing.DefaultValueTestCases)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool DefaultValueTestCases::IsInitialized() const {
- return true;
- }
- void DefaultValueTestCases::Swap(DefaultValueTestCases* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void DefaultValueTestCases::InternalSwap(DefaultValueTestCases* other) {
- using std::swap;
- swap(empty_double_, other->empty_double_);
- swap(double_with_default_value_, other->double_with_default_value_);
- swap(double_with_nondefault_value_, other->double_with_nondefault_value_);
- swap(repeated_double_, other->repeated_double_);
- swap(nested_message_, other->nested_message_);
- swap(repeated_nested_message_, other->repeated_nested_message_);
- swap(double_message_with_oneof_, other->double_message_with_oneof_);
- swap(empty_struct_, other->empty_struct_);
- swap(empty_struct2_, other->empty_struct2_);
- swap(struct_with_null_value_, other->struct_with_null_value_);
- swap(struct_with_values_, other->struct_with_values_);
- swap(struct_with_nested_struct_, other->struct_with_nested_struct_);
- swap(struct_with_nested_list_, other->struct_with_nested_list_);
- swap(struct_with_list_of_nulls_, other->struct_with_list_of_nulls_);
- swap(struct_with_list_of_lists_, other->struct_with_list_of_lists_);
- swap(struct_with_list_of_structs_, other->struct_with_list_of_structs_);
- swap(top_level_struct_, other->top_level_struct_);
- swap(value_wrapper_simple_, other->value_wrapper_simple_);
- swap(value_wrapper_with_struct_, other->value_wrapper_with_struct_);
- swap(value_wrapper_with_list_, other->value_wrapper_with_list_);
- swap(list_value_wrapper_, other->list_value_wrapper_);
- swap(top_level_value_simple_, other->top_level_value_simple_);
- swap(top_level_value_with_struct_, other->top_level_value_with_struct_);
- swap(top_level_value_with_list_, other->top_level_value_with_list_);
- swap(top_level_listvalue_, other->top_level_listvalue_);
- swap(empty_any_, other->empty_any_);
- swap(type_only_any_, other->type_only_any_);
- swap(recursive_any_, other->recursive_any_);
- swap(any_with_message_value_, other->any_with_message_value_);
- swap(any_with_nested_message_, other->any_with_nested_message_);
- swap(any_with_message_containing_map_, other->any_with_message_containing_map_);
- swap(any_with_message_containing_struct_, other->any_with_message_containing_struct_);
- swap(top_level_any_, other->top_level_any_);
- swap(empty_map_, other->empty_map_);
- swap(string_to_int_, other->string_to_int_);
- swap(int_to_string_, other->int_to_string_);
- swap(mixed1_, other->mixed1_);
- swap(mixed2_, other->mixed2_);
- swap(empty_mixed2_, other->empty_mixed2_);
- swap(map_of_objects_, other->map_of_objects_);
- swap(mixed_empty_, other->mixed_empty_);
- swap(message_map_empty_, other->message_map_empty_);
- swap(double_value_, other->double_value_);
- swap(double_value_default_, other->double_value_default_);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata DefaultValueTestCases::GetMetadata() const {
- protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void DoubleMessage::InitAsDefaultInstance() {
- ::google::protobuf::testing::_DoubleMessage_default_instance_._instance.get_mutable()->nested_message_ = const_cast< ::google::protobuf::testing::DoubleMessage*>(
- ::google::protobuf::testing::DoubleMessage::internal_default_instance());
- ::google::protobuf::testing::_DoubleMessage_default_instance_._instance.get_mutable()->double_wrapper_ = const_cast< ::google::protobuf::DoubleValue*>(
- ::google::protobuf::DoubleValue::internal_default_instance());
- ::google::protobuf::testing::_DoubleMessage_default_instance_.str_value_.UnsafeSetDefault(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited());
- ::google::protobuf::testing::_DoubleMessage_default_instance_.num_value_ = GOOGLE_LONGLONG(0);
- }
- void DoubleMessage::clear_double_wrapper() {
- if (GetArenaNoVirtual() == NULL && double_wrapper_ != NULL) {
- delete double_wrapper_;
- }
- double_wrapper_ = NULL;
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int DoubleMessage::kDoubleValueFieldNumber;
- const int DoubleMessage::kRepeatedDoubleFieldNumber;
- const int DoubleMessage::kNestedMessageFieldNumber;
- const int DoubleMessage::kRepeatedNestedMessageFieldNumber;
- const int DoubleMessage::kDoubleWrapperFieldNumber;
- const int DoubleMessage::kStrValueFieldNumber;
- const int DoubleMessage::kNumValueFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- DoubleMessage::DoubleMessage()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::scc_info_DoubleMessage.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:google.protobuf.testing.DoubleMessage)
- }
- DoubleMessage::DoubleMessage(const DoubleMessage& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- repeated_double_(from.repeated_double_),
- repeated_nested_message_(from.repeated_nested_message_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- if (from.has_nested_message()) {
- nested_message_ = new ::google::protobuf::testing::DoubleMessage(*from.nested_message_);
- } else {
- nested_message_ = NULL;
- }
- if (from.has_double_wrapper()) {
- double_wrapper_ = new ::google::protobuf::DoubleValue(*from.double_wrapper_);
- } else {
- double_wrapper_ = NULL;
- }
- double_value_ = from.double_value_;
- clear_has_value();
- switch (from.value_case()) {
- case kStrValue: {
- set_str_value(from.str_value());
- break;
- }
- case kNumValue: {
- set_num_value(from.num_value());
- break;
- }
- case VALUE_NOT_SET: {
- break;
- }
- }
- // @@protoc_insertion_point(copy_constructor:google.protobuf.testing.DoubleMessage)
- }
- void DoubleMessage::SharedCtor() {
- ::memset(&nested_message_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&double_value_) -
- reinterpret_cast<char*>(&nested_message_)) + sizeof(double_value_));
- clear_has_value();
- }
- DoubleMessage::~DoubleMessage() {
- // @@protoc_insertion_point(destructor:google.protobuf.testing.DoubleMessage)
- SharedDtor();
- }
- void DoubleMessage::SharedDtor() {
- if (this != internal_default_instance()) delete nested_message_;
- if (this != internal_default_instance()) delete double_wrapper_;
- if (has_value()) {
- clear_value();
- }
- }
- void DoubleMessage::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* DoubleMessage::descriptor() {
- ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const DoubleMessage& DoubleMessage::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::scc_info_DoubleMessage.base);
- return *internal_default_instance();
- }
- void DoubleMessage::clear_value() {
- // @@protoc_insertion_point(one_of_clear_start:google.protobuf.testing.DoubleMessage)
- switch (value_case()) {
- case kStrValue: {
- value_.str_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- break;
- }
- case kNumValue: {
- // No need to clear
- break;
- }
- case VALUE_NOT_SET: {
- break;
- }
- }
- _oneof_case_[0] = VALUE_NOT_SET;
- }
- void DoubleMessage::Clear() {
- // @@protoc_insertion_point(message_clear_start:google.protobuf.testing.DoubleMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- repeated_double_.Clear();
- repeated_nested_message_.Clear();
- if (GetArenaNoVirtual() == NULL && nested_message_ != NULL) {
- delete nested_message_;
- }
- nested_message_ = NULL;
- if (GetArenaNoVirtual() == NULL && double_wrapper_ != NULL) {
- delete double_wrapper_;
- }
- double_wrapper_ = NULL;
- double_value_ = 0;
- clear_value();
- _internal_metadata_.Clear();
- }
- bool DoubleMessage::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:google.protobuf.testing.DoubleMessage)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // double double_value = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(9u /* 9 & 0xFF */)) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
- input, &double_value_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // repeated double repeated_double = 2;
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
- double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
- input, this->mutable_repeated_double())));
- } else if (
- static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(17u /* 17 & 0xFF */)) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
- double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
- 1, 18u, input, this->mutable_repeated_double())));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.DoubleMessage nested_message = 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_nested_message()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // repeated .google.protobuf.testing.DoubleMessage repeated_nested_message = 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_repeated_nested_message()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.DoubleValue double_wrapper = 100;
- case 100: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(34u /* 802 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_double_wrapper()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // string str_value = 112;
- case 112: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(130u /* 898 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_str_value()));
- DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->str_value().data(), static_cast<int>(this->str_value().length()),
- ::google::protobuf::internal::WireFormatLite::PARSE,
- "google.protobuf.testing.DoubleMessage.str_value"));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // int64 num_value = 113;
- case 113: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(136u /* 904 & 0xFF */)) {
- clear_value();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
- input, &value_.num_value_)));
- set_has_num_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:google.protobuf.testing.DoubleMessage)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:google.protobuf.testing.DoubleMessage)
- return false;
- #undef DO_
- }
- void DoubleMessage::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:google.protobuf.testing.DoubleMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // double double_value = 1;
- if (this->double_value() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteDouble(1, this->double_value(), output);
- }
- // repeated double repeated_double = 2;
- if (this->repeated_double_size() > 0) {
- ::google::protobuf::internal::WireFormatLite::WriteTag(2, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
- output->WriteVarint32(static_cast< ::google::protobuf::uint32>(
- _repeated_double_cached_byte_size_));
- ::google::protobuf::internal::WireFormatLite::WriteDoubleArray(
- this->repeated_double().data(), this->repeated_double_size(), output);
- }
- // .google.protobuf.testing.DoubleMessage nested_message = 3;
- if (this->has_nested_message()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 3, this->_internal_nested_message(), output);
- }
- // repeated .google.protobuf.testing.DoubleMessage repeated_nested_message = 4;
- for (unsigned int i = 0,
- n = static_cast<unsigned int>(this->repeated_nested_message_size()); i < n; i++) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 4,
- this->repeated_nested_message(static_cast<int>(i)),
- output);
- }
- // .google.protobuf.DoubleValue double_wrapper = 100;
- if (this->has_double_wrapper()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 100, this->_internal_double_wrapper(), output);
- }
- // string str_value = 112;
- if (has_str_value()) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->str_value().data(), static_cast<int>(this->str_value().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "google.protobuf.testing.DoubleMessage.str_value");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 112, this->str_value(), output);
- }
- // int64 num_value = 113;
- if (has_num_value()) {
- ::google::protobuf::internal::WireFormatLite::WriteInt64(113, this->num_value(), output);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:google.protobuf.testing.DoubleMessage)
- }
- ::google::protobuf::uint8* DoubleMessage::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.testing.DoubleMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // double double_value = 1;
- if (this->double_value() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(1, this->double_value(), target);
- }
- // repeated double repeated_double = 2;
- if (this->repeated_double_size() > 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
- 2,
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
- target);
- target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
- static_cast< ::google::protobuf::int32>(
- _repeated_double_cached_byte_size_), target);
- target = ::google::protobuf::internal::WireFormatLite::
- WriteDoubleNoTagToArray(this->repeated_double_, target);
- }
- // .google.protobuf.testing.DoubleMessage nested_message = 3;
- if (this->has_nested_message()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 3, this->_internal_nested_message(), deterministic, target);
- }
- // repeated .google.protobuf.testing.DoubleMessage repeated_nested_message = 4;
- for (unsigned int i = 0,
- n = static_cast<unsigned int>(this->repeated_nested_message_size()); i < n; i++) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 4, this->repeated_nested_message(static_cast<int>(i)), deterministic, target);
- }
- // .google.protobuf.DoubleValue double_wrapper = 100;
- if (this->has_double_wrapper()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 100, this->_internal_double_wrapper(), deterministic, target);
- }
- // string str_value = 112;
- if (has_str_value()) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->str_value().data(), static_cast<int>(this->str_value().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "google.protobuf.testing.DoubleMessage.str_value");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 112, this->str_value(), target);
- }
- // int64 num_value = 113;
- if (has_num_value()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(113, this->num_value(), target);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.testing.DoubleMessage)
- return target;
- }
- size_t DoubleMessage::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:google.protobuf.testing.DoubleMessage)
- size_t total_size = 0;
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // repeated double repeated_double = 2;
- {
- unsigned int count = static_cast<unsigned int>(this->repeated_double_size());
- size_t data_size = 8UL * count;
- if (data_size > 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- static_cast< ::google::protobuf::int32>(data_size));
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _repeated_double_cached_byte_size_ = cached_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- total_size += data_size;
- }
- // repeated .google.protobuf.testing.DoubleMessage repeated_nested_message = 4;
- {
- unsigned int count = static_cast<unsigned int>(this->repeated_nested_message_size());
- total_size += 1UL * count;
- for (unsigned int i = 0; i < count; i++) {
- total_size +=
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- this->repeated_nested_message(static_cast<int>(i)));
- }
- }
- // .google.protobuf.testing.DoubleMessage nested_message = 3;
- if (this->has_nested_message()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *nested_message_);
- }
- // .google.protobuf.DoubleValue double_wrapper = 100;
- if (this->has_double_wrapper()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *double_wrapper_);
- }
- // double double_value = 1;
- if (this->double_value() != 0) {
- total_size += 1 + 8;
- }
- switch (value_case()) {
- // string str_value = 112;
- case kStrValue: {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->str_value());
- break;
- }
- // int64 num_value = 113;
- case kNumValue: {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::Int64Size(
- this->num_value());
- break;
- }
- case VALUE_NOT_SET: {
- break;
- }
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void DoubleMessage::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.testing.DoubleMessage)
- GOOGLE_DCHECK_NE(&from, this);
- const DoubleMessage* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const DoubleMessage>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.testing.DoubleMessage)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.testing.DoubleMessage)
- MergeFrom(*source);
- }
- }
- void DoubleMessage::MergeFrom(const DoubleMessage& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.testing.DoubleMessage)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- repeated_double_.MergeFrom(from.repeated_double_);
- repeated_nested_message_.MergeFrom(from.repeated_nested_message_);
- if (from.has_nested_message()) {
- mutable_nested_message()->::google::protobuf::testing::DoubleMessage::MergeFrom(from.nested_message());
- }
- if (from.has_double_wrapper()) {
- mutable_double_wrapper()->::google::protobuf::DoubleValue::MergeFrom(from.double_wrapper());
- }
- if (from.double_value() != 0) {
- set_double_value(from.double_value());
- }
- switch (from.value_case()) {
- case kStrValue: {
- set_str_value(from.str_value());
- break;
- }
- case kNumValue: {
- set_num_value(from.num_value());
- break;
- }
- case VALUE_NOT_SET: {
- break;
- }
- }
- }
- void DoubleMessage::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.testing.DoubleMessage)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void DoubleMessage::CopyFrom(const DoubleMessage& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.testing.DoubleMessage)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool DoubleMessage::IsInitialized() const {
- return true;
- }
- void DoubleMessage::Swap(DoubleMessage* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void DoubleMessage::InternalSwap(DoubleMessage* other) {
- using std::swap;
- repeated_double_.InternalSwap(&other->repeated_double_);
- CastToBase(&repeated_nested_message_)->InternalSwap(CastToBase(&other->repeated_nested_message_));
- swap(nested_message_, other->nested_message_);
- swap(double_wrapper_, other->double_wrapper_);
- swap(double_value_, other->double_value_);
- swap(value_, other->value_);
- swap(_oneof_case_[0], other->_oneof_case_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata DoubleMessage::GetMetadata() const {
- protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void StructMessage::InitAsDefaultInstance() {
- ::google::protobuf::testing::_StructMessage_default_instance_._instance.get_mutable()->struct__ = const_cast< ::google::protobuf::Struct*>(
- ::google::protobuf::Struct::internal_default_instance());
- }
- void StructMessage::clear_struct_() {
- if (GetArenaNoVirtual() == NULL && struct__ != NULL) {
- delete struct__;
- }
- struct__ = NULL;
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int StructMessage::kStructFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- StructMessage::StructMessage()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::scc_info_StructMessage.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:google.protobuf.testing.StructMessage)
- }
- StructMessage::StructMessage(const StructMessage& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- if (from.has_struct_()) {
- struct__ = new ::google::protobuf::Struct(*from.struct__);
- } else {
- struct__ = NULL;
- }
- // @@protoc_insertion_point(copy_constructor:google.protobuf.testing.StructMessage)
- }
- void StructMessage::SharedCtor() {
- struct__ = NULL;
- }
- StructMessage::~StructMessage() {
- // @@protoc_insertion_point(destructor:google.protobuf.testing.StructMessage)
- SharedDtor();
- }
- void StructMessage::SharedDtor() {
- if (this != internal_default_instance()) delete struct__;
- }
- void StructMessage::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* StructMessage::descriptor() {
- ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const StructMessage& StructMessage::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::scc_info_StructMessage.base);
- return *internal_default_instance();
- }
- void StructMessage::Clear() {
- // @@protoc_insertion_point(message_clear_start:google.protobuf.testing.StructMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- if (GetArenaNoVirtual() == NULL && struct__ != NULL) {
- delete struct__;
- }
- struct__ = NULL;
- _internal_metadata_.Clear();
- }
- bool StructMessage::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:google.protobuf.testing.StructMessage)
- 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)) {
- // .google.protobuf.Struct struct = 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_struct_()));
- } 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:google.protobuf.testing.StructMessage)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:google.protobuf.testing.StructMessage)
- return false;
- #undef DO_
- }
- void StructMessage::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:google.protobuf.testing.StructMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // .google.protobuf.Struct struct = 1;
- if (this->has_struct_()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, this->_internal_struct_(), output);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:google.protobuf.testing.StructMessage)
- }
- ::google::protobuf::uint8* StructMessage::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.testing.StructMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // .google.protobuf.Struct struct = 1;
- if (this->has_struct_()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 1, this->_internal_struct_(), deterministic, target);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.testing.StructMessage)
- return target;
- }
- size_t StructMessage::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:google.protobuf.testing.StructMessage)
- size_t total_size = 0;
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // .google.protobuf.Struct struct = 1;
- if (this->has_struct_()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *struct__);
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void StructMessage::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.testing.StructMessage)
- GOOGLE_DCHECK_NE(&from, this);
- const StructMessage* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const StructMessage>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.testing.StructMessage)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.testing.StructMessage)
- MergeFrom(*source);
- }
- }
- void StructMessage::MergeFrom(const StructMessage& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.testing.StructMessage)
- 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_struct_()) {
- mutable_struct_()->::google::protobuf::Struct::MergeFrom(from.struct_());
- }
- }
- void StructMessage::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.testing.StructMessage)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void StructMessage::CopyFrom(const StructMessage& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.testing.StructMessage)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool StructMessage::IsInitialized() const {
- return true;
- }
- void StructMessage::Swap(StructMessage* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void StructMessage::InternalSwap(StructMessage* other) {
- using std::swap;
- swap(struct__, other->struct__);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata StructMessage::GetMetadata() const {
- protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void ValueMessage::InitAsDefaultInstance() {
- ::google::protobuf::testing::_ValueMessage_default_instance_._instance.get_mutable()->value_ = const_cast< ::google::protobuf::Value*>(
- ::google::protobuf::Value::internal_default_instance());
- }
- void ValueMessage::clear_value() {
- if (GetArenaNoVirtual() == NULL && value_ != NULL) {
- delete value_;
- }
- value_ = NULL;
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int ValueMessage::kValueFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- ValueMessage::ValueMessage()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::scc_info_ValueMessage.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:google.protobuf.testing.ValueMessage)
- }
- ValueMessage::ValueMessage(const ValueMessage& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- if (from.has_value()) {
- value_ = new ::google::protobuf::Value(*from.value_);
- } else {
- value_ = NULL;
- }
- // @@protoc_insertion_point(copy_constructor:google.protobuf.testing.ValueMessage)
- }
- void ValueMessage::SharedCtor() {
- value_ = NULL;
- }
- ValueMessage::~ValueMessage() {
- // @@protoc_insertion_point(destructor:google.protobuf.testing.ValueMessage)
- SharedDtor();
- }
- void ValueMessage::SharedDtor() {
- if (this != internal_default_instance()) delete value_;
- }
- void ValueMessage::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* ValueMessage::descriptor() {
- ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const ValueMessage& ValueMessage::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::scc_info_ValueMessage.base);
- return *internal_default_instance();
- }
- void ValueMessage::Clear() {
- // @@protoc_insertion_point(message_clear_start:google.protobuf.testing.ValueMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- if (GetArenaNoVirtual() == NULL && value_ != NULL) {
- delete value_;
- }
- value_ = NULL;
- _internal_metadata_.Clear();
- }
- bool ValueMessage::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:google.protobuf.testing.ValueMessage)
- 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)) {
- // .google.protobuf.Value value = 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_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:google.protobuf.testing.ValueMessage)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:google.protobuf.testing.ValueMessage)
- return false;
- #undef DO_
- }
- void ValueMessage::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:google.protobuf.testing.ValueMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // .google.protobuf.Value value = 1;
- if (this->has_value()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, this->_internal_value(), output);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:google.protobuf.testing.ValueMessage)
- }
- ::google::protobuf::uint8* ValueMessage::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.testing.ValueMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // .google.protobuf.Value value = 1;
- if (this->has_value()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 1, this->_internal_value(), deterministic, target);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.testing.ValueMessage)
- return target;
- }
- size_t ValueMessage::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:google.protobuf.testing.ValueMessage)
- size_t total_size = 0;
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // .google.protobuf.Value value = 1;
- if (this->has_value()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *value_);
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void ValueMessage::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.testing.ValueMessage)
- GOOGLE_DCHECK_NE(&from, this);
- const ValueMessage* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const ValueMessage>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.testing.ValueMessage)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.testing.ValueMessage)
- MergeFrom(*source);
- }
- }
- void ValueMessage::MergeFrom(const ValueMessage& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.testing.ValueMessage)
- 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()) {
- mutable_value()->::google::protobuf::Value::MergeFrom(from.value());
- }
- }
- void ValueMessage::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.testing.ValueMessage)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void ValueMessage::CopyFrom(const ValueMessage& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.testing.ValueMessage)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool ValueMessage::IsInitialized() const {
- return true;
- }
- void ValueMessage::Swap(ValueMessage* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void ValueMessage::InternalSwap(ValueMessage* other) {
- using std::swap;
- swap(value_, other->value_);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata ValueMessage::GetMetadata() const {
- protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void ListValueMessage::InitAsDefaultInstance() {
- ::google::protobuf::testing::_ListValueMessage_default_instance_._instance.get_mutable()->shopping_list_ = const_cast< ::google::protobuf::ListValue*>(
- ::google::protobuf::ListValue::internal_default_instance());
- }
- void ListValueMessage::clear_shopping_list() {
- if (GetArenaNoVirtual() == NULL && shopping_list_ != NULL) {
- delete shopping_list_;
- }
- shopping_list_ = NULL;
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int ListValueMessage::kShoppingListFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- ListValueMessage::ListValueMessage()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::scc_info_ListValueMessage.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:google.protobuf.testing.ListValueMessage)
- }
- ListValueMessage::ListValueMessage(const ListValueMessage& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- if (from.has_shopping_list()) {
- shopping_list_ = new ::google::protobuf::ListValue(*from.shopping_list_);
- } else {
- shopping_list_ = NULL;
- }
- // @@protoc_insertion_point(copy_constructor:google.protobuf.testing.ListValueMessage)
- }
- void ListValueMessage::SharedCtor() {
- shopping_list_ = NULL;
- }
- ListValueMessage::~ListValueMessage() {
- // @@protoc_insertion_point(destructor:google.protobuf.testing.ListValueMessage)
- SharedDtor();
- }
- void ListValueMessage::SharedDtor() {
- if (this != internal_default_instance()) delete shopping_list_;
- }
- void ListValueMessage::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* ListValueMessage::descriptor() {
- ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const ListValueMessage& ListValueMessage::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::scc_info_ListValueMessage.base);
- return *internal_default_instance();
- }
- void ListValueMessage::Clear() {
- // @@protoc_insertion_point(message_clear_start:google.protobuf.testing.ListValueMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- if (GetArenaNoVirtual() == NULL && shopping_list_ != NULL) {
- delete shopping_list_;
- }
- shopping_list_ = NULL;
- _internal_metadata_.Clear();
- }
- bool ListValueMessage::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:google.protobuf.testing.ListValueMessage)
- 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)) {
- // .google.protobuf.ListValue shopping_list = 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_shopping_list()));
- } 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:google.protobuf.testing.ListValueMessage)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:google.protobuf.testing.ListValueMessage)
- return false;
- #undef DO_
- }
- void ListValueMessage::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:google.protobuf.testing.ListValueMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // .google.protobuf.ListValue shopping_list = 1;
- if (this->has_shopping_list()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, this->_internal_shopping_list(), output);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:google.protobuf.testing.ListValueMessage)
- }
- ::google::protobuf::uint8* ListValueMessage::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.testing.ListValueMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // .google.protobuf.ListValue shopping_list = 1;
- if (this->has_shopping_list()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 1, this->_internal_shopping_list(), deterministic, target);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.testing.ListValueMessage)
- return target;
- }
- size_t ListValueMessage::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:google.protobuf.testing.ListValueMessage)
- size_t total_size = 0;
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // .google.protobuf.ListValue shopping_list = 1;
- if (this->has_shopping_list()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *shopping_list_);
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void ListValueMessage::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.testing.ListValueMessage)
- GOOGLE_DCHECK_NE(&from, this);
- const ListValueMessage* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const ListValueMessage>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.testing.ListValueMessage)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.testing.ListValueMessage)
- MergeFrom(*source);
- }
- }
- void ListValueMessage::MergeFrom(const ListValueMessage& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.testing.ListValueMessage)
- 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_shopping_list()) {
- mutable_shopping_list()->::google::protobuf::ListValue::MergeFrom(from.shopping_list());
- }
- }
- void ListValueMessage::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.testing.ListValueMessage)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void ListValueMessage::CopyFrom(const ListValueMessage& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.testing.ListValueMessage)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool ListValueMessage::IsInitialized() const {
- return true;
- }
- void ListValueMessage::Swap(ListValueMessage* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void ListValueMessage::InternalSwap(ListValueMessage* other) {
- using std::swap;
- swap(shopping_list_, other->shopping_list_);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata ListValueMessage::GetMetadata() const {
- protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void RequestMessage::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int RequestMessage::kContentFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- RequestMessage::RequestMessage()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::scc_info_RequestMessage.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:google.protobuf.testing.RequestMessage)
- }
- RequestMessage::RequestMessage(const RequestMessage& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- content_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.content().size() > 0) {
- content_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.content_);
- }
- // @@protoc_insertion_point(copy_constructor:google.protobuf.testing.RequestMessage)
- }
- void RequestMessage::SharedCtor() {
- content_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- RequestMessage::~RequestMessage() {
- // @@protoc_insertion_point(destructor:google.protobuf.testing.RequestMessage)
- SharedDtor();
- }
- void RequestMessage::SharedDtor() {
- content_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- void RequestMessage::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* RequestMessage::descriptor() {
- ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const RequestMessage& RequestMessage::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::scc_info_RequestMessage.base);
- return *internal_default_instance();
- }
- void RequestMessage::Clear() {
- // @@protoc_insertion_point(message_clear_start:google.protobuf.testing.RequestMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- content_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- _internal_metadata_.Clear();
- }
- bool RequestMessage::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:google.protobuf.testing.RequestMessage)
- 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)) {
- // string content = 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_content()));
- DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->content().data(), static_cast<int>(this->content().length()),
- ::google::protobuf::internal::WireFormatLite::PARSE,
- "google.protobuf.testing.RequestMessage.content"));
- } 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:google.protobuf.testing.RequestMessage)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:google.protobuf.testing.RequestMessage)
- return false;
- #undef DO_
- }
- void RequestMessage::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:google.protobuf.testing.RequestMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // string content = 1;
- if (this->content().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->content().data(), static_cast<int>(this->content().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "google.protobuf.testing.RequestMessage.content");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 1, this->content(), output);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:google.protobuf.testing.RequestMessage)
- }
- ::google::protobuf::uint8* RequestMessage::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.testing.RequestMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // string content = 1;
- if (this->content().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->content().data(), static_cast<int>(this->content().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "google.protobuf.testing.RequestMessage.content");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 1, this->content(), target);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.testing.RequestMessage)
- return target;
- }
- size_t RequestMessage::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:google.protobuf.testing.RequestMessage)
- size_t total_size = 0;
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // string content = 1;
- if (this->content().size() > 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->content());
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void RequestMessage::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.testing.RequestMessage)
- GOOGLE_DCHECK_NE(&from, this);
- const RequestMessage* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const RequestMessage>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.testing.RequestMessage)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.testing.RequestMessage)
- MergeFrom(*source);
- }
- }
- void RequestMessage::MergeFrom(const RequestMessage& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.testing.RequestMessage)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (from.content().size() > 0) {
- content_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.content_);
- }
- }
- void RequestMessage::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.testing.RequestMessage)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void RequestMessage::CopyFrom(const RequestMessage& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.testing.RequestMessage)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool RequestMessage::IsInitialized() const {
- return true;
- }
- void RequestMessage::Swap(RequestMessage* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void RequestMessage::InternalSwap(RequestMessage* other) {
- using std::swap;
- content_.Swap(&other->content_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata RequestMessage::GetMetadata() const {
- protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void AnyMessage::InitAsDefaultInstance() {
- ::google::protobuf::testing::_AnyMessage_default_instance_._instance.get_mutable()->any_ = const_cast< ::google::protobuf::Any*>(
- ::google::protobuf::Any::internal_default_instance());
- ::google::protobuf::testing::_AnyMessage_default_instance_._instance.get_mutable()->data_ = const_cast< ::google::protobuf::testing::AnyData*>(
- ::google::protobuf::testing::AnyData::internal_default_instance());
- }
- void AnyMessage::clear_any() {
- if (GetArenaNoVirtual() == NULL && any_ != NULL) {
- delete any_;
- }
- any_ = NULL;
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int AnyMessage::kAnyFieldNumber;
- const int AnyMessage::kDataFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- AnyMessage::AnyMessage()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::scc_info_AnyMessage.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:google.protobuf.testing.AnyMessage)
- }
- AnyMessage::AnyMessage(const AnyMessage& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- if (from.has_any()) {
- any_ = new ::google::protobuf::Any(*from.any_);
- } else {
- any_ = NULL;
- }
- if (from.has_data()) {
- data_ = new ::google::protobuf::testing::AnyData(*from.data_);
- } else {
- data_ = NULL;
- }
- // @@protoc_insertion_point(copy_constructor:google.protobuf.testing.AnyMessage)
- }
- void AnyMessage::SharedCtor() {
- ::memset(&any_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&data_) -
- reinterpret_cast<char*>(&any_)) + sizeof(data_));
- }
- AnyMessage::~AnyMessage() {
- // @@protoc_insertion_point(destructor:google.protobuf.testing.AnyMessage)
- SharedDtor();
- }
- void AnyMessage::SharedDtor() {
- if (this != internal_default_instance()) delete any_;
- if (this != internal_default_instance()) delete data_;
- }
- void AnyMessage::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* AnyMessage::descriptor() {
- ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const AnyMessage& AnyMessage::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::scc_info_AnyMessage.base);
- return *internal_default_instance();
- }
- void AnyMessage::Clear() {
- // @@protoc_insertion_point(message_clear_start:google.protobuf.testing.AnyMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- if (GetArenaNoVirtual() == NULL && any_ != NULL) {
- delete any_;
- }
- any_ = NULL;
- if (GetArenaNoVirtual() == NULL && data_ != NULL) {
- delete data_;
- }
- data_ = NULL;
- _internal_metadata_.Clear();
- }
- bool AnyMessage::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:google.protobuf.testing.AnyMessage)
- 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)) {
- // .google.protobuf.Any any = 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_any()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.AnyData data = 2;
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_data()));
- } 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:google.protobuf.testing.AnyMessage)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:google.protobuf.testing.AnyMessage)
- return false;
- #undef DO_
- }
- void AnyMessage::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:google.protobuf.testing.AnyMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // .google.protobuf.Any any = 1;
- if (this->has_any()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, this->_internal_any(), output);
- }
- // .google.protobuf.testing.AnyData data = 2;
- if (this->has_data()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 2, this->_internal_data(), output);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:google.protobuf.testing.AnyMessage)
- }
- ::google::protobuf::uint8* AnyMessage::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.testing.AnyMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // .google.protobuf.Any any = 1;
- if (this->has_any()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 1, this->_internal_any(), deterministic, target);
- }
- // .google.protobuf.testing.AnyData data = 2;
- if (this->has_data()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 2, this->_internal_data(), deterministic, target);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.testing.AnyMessage)
- return target;
- }
- size_t AnyMessage::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:google.protobuf.testing.AnyMessage)
- size_t total_size = 0;
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // .google.protobuf.Any any = 1;
- if (this->has_any()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *any_);
- }
- // .google.protobuf.testing.AnyData data = 2;
- if (this->has_data()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *data_);
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void AnyMessage::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.testing.AnyMessage)
- GOOGLE_DCHECK_NE(&from, this);
- const AnyMessage* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const AnyMessage>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.testing.AnyMessage)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.testing.AnyMessage)
- MergeFrom(*source);
- }
- }
- void AnyMessage::MergeFrom(const AnyMessage& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.testing.AnyMessage)
- 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_any()) {
- mutable_any()->::google::protobuf::Any::MergeFrom(from.any());
- }
- if (from.has_data()) {
- mutable_data()->::google::protobuf::testing::AnyData::MergeFrom(from.data());
- }
- }
- void AnyMessage::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.testing.AnyMessage)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void AnyMessage::CopyFrom(const AnyMessage& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.testing.AnyMessage)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool AnyMessage::IsInitialized() const {
- return true;
- }
- void AnyMessage::Swap(AnyMessage* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void AnyMessage::InternalSwap(AnyMessage* other) {
- using std::swap;
- swap(any_, other->any_);
- swap(data_, other->data_);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata AnyMessage::GetMetadata() const {
- protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- AnyData_MapDataEntry_DoNotUse::AnyData_MapDataEntry_DoNotUse() {}
- AnyData_MapDataEntry_DoNotUse::AnyData_MapDataEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
- void AnyData_MapDataEntry_DoNotUse::MergeFrom(const AnyData_MapDataEntry_DoNotUse& other) {
- MergeFromInternal(other);
- }
- ::google::protobuf::Metadata AnyData_MapDataEntry_DoNotUse::GetMetadata() const {
- ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::file_level_metadata[7];
- }
- void AnyData_MapDataEntry_DoNotUse::MergeFrom(
- const ::google::protobuf::Message& other) {
- ::google::protobuf::Message::MergeFrom(other);
- }
- // ===================================================================
- void AnyData::InitAsDefaultInstance() {
- ::google::protobuf::testing::_AnyData_default_instance_._instance.get_mutable()->nested_data_ = const_cast< ::google::protobuf::testing::AnyData*>(
- ::google::protobuf::testing::AnyData::internal_default_instance());
- ::google::protobuf::testing::_AnyData_default_instance_._instance.get_mutable()->struct_data_ = const_cast< ::google::protobuf::Struct*>(
- ::google::protobuf::Struct::internal_default_instance());
- }
- void AnyData::clear_struct_data() {
- if (GetArenaNoVirtual() == NULL && struct_data_ != NULL) {
- delete struct_data_;
- }
- struct_data_ = NULL;
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int AnyData::kAttrFieldNumber;
- const int AnyData::kStrFieldNumber;
- const int AnyData::kMsgsFieldNumber;
- const int AnyData::kNestedDataFieldNumber;
- const int AnyData::kMapDataFieldNumber;
- const int AnyData::kStructDataFieldNumber;
- const int AnyData::kRepeatedDataFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- AnyData::AnyData()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::scc_info_AnyData.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:google.protobuf.testing.AnyData)
- }
- AnyData::AnyData(const AnyData& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- msgs_(from.msgs_),
- repeated_data_(from.repeated_data_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- map_data_.MergeFrom(from.map_data_);
- str_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.str().size() > 0) {
- str_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.str_);
- }
- if (from.has_nested_data()) {
- nested_data_ = new ::google::protobuf::testing::AnyData(*from.nested_data_);
- } else {
- nested_data_ = NULL;
- }
- if (from.has_struct_data()) {
- struct_data_ = new ::google::protobuf::Struct(*from.struct_data_);
- } else {
- struct_data_ = NULL;
- }
- attr_ = from.attr_;
- // @@protoc_insertion_point(copy_constructor:google.protobuf.testing.AnyData)
- }
- void AnyData::SharedCtor() {
- str_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- ::memset(&nested_data_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&attr_) -
- reinterpret_cast<char*>(&nested_data_)) + sizeof(attr_));
- }
- AnyData::~AnyData() {
- // @@protoc_insertion_point(destructor:google.protobuf.testing.AnyData)
- SharedDtor();
- }
- void AnyData::SharedDtor() {
- str_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (this != internal_default_instance()) delete nested_data_;
- if (this != internal_default_instance()) delete struct_data_;
- }
- void AnyData::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* AnyData::descriptor() {
- ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const AnyData& AnyData::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::scc_info_AnyData.base);
- return *internal_default_instance();
- }
- void AnyData::Clear() {
- // @@protoc_insertion_point(message_clear_start:google.protobuf.testing.AnyData)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- msgs_.Clear();
- map_data_.Clear();
- repeated_data_.Clear();
- str_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (GetArenaNoVirtual() == NULL && nested_data_ != NULL) {
- delete nested_data_;
- }
- nested_data_ = NULL;
- if (GetArenaNoVirtual() == NULL && struct_data_ != NULL) {
- delete struct_data_;
- }
- struct_data_ = NULL;
- attr_ = 0;
- _internal_metadata_.Clear();
- }
- bool AnyData::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:google.protobuf.testing.AnyData)
- 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)) {
- // int32 attr = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &attr_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // string str = 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_str()));
- DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->str().data(), static_cast<int>(this->str().length()),
- ::google::protobuf::internal::WireFormatLite::PARSE,
- "google.protobuf.testing.AnyData.str"));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // repeated string msgs = 3;
- case 3: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->add_msgs()));
- DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->msgs(this->msgs_size() - 1).data(),
- static_cast<int>(this->msgs(this->msgs_size() - 1).length()),
- ::google::protobuf::internal::WireFormatLite::PARSE,
- "google.protobuf.testing.AnyData.msgs"));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.AnyData nested_data = 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_nested_data()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // map<string, string> map_data = 7;
- case 7: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
- AnyData_MapDataEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
- AnyData_MapDataEntry_DoNotUse,
- ::std::string, ::std::string,
- ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
- ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
- 0 >,
- ::google::protobuf::Map< ::std::string, ::std::string > > parser(&map_data_);
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
- input, &parser));
- DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- parser.key().data(), static_cast<int>(parser.key().length()),
- ::google::protobuf::internal::WireFormatLite::PARSE,
- "google.protobuf.testing.AnyData.MapDataEntry.key"));
- DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- parser.value().data(), static_cast<int>(parser.value().length()),
- ::google::protobuf::internal::WireFormatLite::PARSE,
- "google.protobuf.testing.AnyData.MapDataEntry.value"));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.Struct struct_data = 8;
- case 8: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_struct_data()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // repeated .google.protobuf.testing.AnyData repeated_data = 9;
- case 9: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, add_repeated_data()));
- } 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:google.protobuf.testing.AnyData)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:google.protobuf.testing.AnyData)
- return false;
- #undef DO_
- }
- void AnyData::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:google.protobuf.testing.AnyData)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // int32 attr = 1;
- if (this->attr() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->attr(), output);
- }
- // string str = 2;
- if (this->str().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->str().data(), static_cast<int>(this->str().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "google.protobuf.testing.AnyData.str");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 2, this->str(), output);
- }
- // repeated string msgs = 3;
- for (int i = 0, n = this->msgs_size(); i < n; i++) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->msgs(i).data(), static_cast<int>(this->msgs(i).length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "google.protobuf.testing.AnyData.msgs");
- ::google::protobuf::internal::WireFormatLite::WriteString(
- 3, this->msgs(i), output);
- }
- // .google.protobuf.testing.AnyData nested_data = 4;
- if (this->has_nested_data()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 4, this->_internal_nested_data(), output);
- }
- // map<string, string> map_data = 7;
- if (!this->map_data().empty()) {
- typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer
- ConstPtr;
- typedef ConstPtr SortItem;
- typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
- struct Utf8Check {
- static void Check(ConstPtr p) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- p->first.data(), static_cast<int>(p->first.length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "google.protobuf.testing.AnyData.MapDataEntry.key");
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- p->second.data(), static_cast<int>(p->second.length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "google.protobuf.testing.AnyData.MapDataEntry.value");
- }
- };
- if (output->IsSerializationDeterministic() &&
- this->map_data().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_data().size()]);
- typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator
- it = this->map_data().begin();
- it != this->map_data().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<AnyData_MapDataEntry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_data_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 7, *entry, output);
- Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);
- }
- } else {
- ::std::unique_ptr<AnyData_MapDataEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator
- it = this->map_data().begin();
- it != this->map_data().end(); ++it) {
- entry.reset(map_data_.NewEntryWrapper(
- it->first, it->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 7, *entry, output);
- Utf8Check::Check(&*it);
- }
- }
- }
- // .google.protobuf.Struct struct_data = 8;
- if (this->has_struct_data()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 8, this->_internal_struct_data(), output);
- }
- // repeated .google.protobuf.testing.AnyData repeated_data = 9;
- for (unsigned int i = 0,
- n = static_cast<unsigned int>(this->repeated_data_size()); i < n; i++) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 9,
- this->repeated_data(static_cast<int>(i)),
- output);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:google.protobuf.testing.AnyData)
- }
- ::google::protobuf::uint8* AnyData::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.testing.AnyData)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // int32 attr = 1;
- if (this->attr() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->attr(), target);
- }
- // string str = 2;
- if (this->str().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->str().data(), static_cast<int>(this->str().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "google.protobuf.testing.AnyData.str");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 2, this->str(), target);
- }
- // repeated string msgs = 3;
- for (int i = 0, n = this->msgs_size(); i < n; i++) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->msgs(i).data(), static_cast<int>(this->msgs(i).length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "google.protobuf.testing.AnyData.msgs");
- target = ::google::protobuf::internal::WireFormatLite::
- WriteStringToArray(3, this->msgs(i), target);
- }
- // .google.protobuf.testing.AnyData nested_data = 4;
- if (this->has_nested_data()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 4, this->_internal_nested_data(), deterministic, target);
- }
- // map<string, string> map_data = 7;
- if (!this->map_data().empty()) {
- typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer
- ConstPtr;
- typedef ConstPtr SortItem;
- typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
- struct Utf8Check {
- static void Check(ConstPtr p) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- p->first.data(), static_cast<int>(p->first.length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "google.protobuf.testing.AnyData.MapDataEntry.key");
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- p->second.data(), static_cast<int>(p->second.length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "google.protobuf.testing.AnyData.MapDataEntry.value");
- }
- };
- if (deterministic &&
- this->map_data().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_data().size()]);
- typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator
- it = this->map_data().begin();
- it != this->map_data().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<AnyData_MapDataEntry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_data_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 7, *entry, deterministic, target);
- ;
- Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);
- }
- } else {
- ::std::unique_ptr<AnyData_MapDataEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator
- it = this->map_data().begin();
- it != this->map_data().end(); ++it) {
- entry.reset(map_data_.NewEntryWrapper(
- it->first, it->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 7, *entry, deterministic, target);
- ;
- Utf8Check::Check(&*it);
- }
- }
- }
- // .google.protobuf.Struct struct_data = 8;
- if (this->has_struct_data()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 8, this->_internal_struct_data(), deterministic, target);
- }
- // repeated .google.protobuf.testing.AnyData repeated_data = 9;
- for (unsigned int i = 0,
- n = static_cast<unsigned int>(this->repeated_data_size()); i < n; i++) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 9, this->repeated_data(static_cast<int>(i)), deterministic, target);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.testing.AnyData)
- return target;
- }
- size_t AnyData::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:google.protobuf.testing.AnyData)
- size_t total_size = 0;
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // repeated string msgs = 3;
- total_size += 1 *
- ::google::protobuf::internal::FromIntSize(this->msgs_size());
- for (int i = 0, n = this->msgs_size(); i < n; i++) {
- total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
- this->msgs(i));
- }
- // map<string, string> map_data = 7;
- total_size += 1 *
- ::google::protobuf::internal::FromIntSize(this->map_data_size());
- {
- ::std::unique_ptr<AnyData_MapDataEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator
- it = this->map_data().begin();
- it != this->map_data().end(); ++it) {
- entry.reset(map_data_.NewEntryWrapper(it->first, it->second));
- total_size += ::google::protobuf::internal::WireFormatLite::
- MessageSizeNoVirtual(*entry);
- }
- }
- // repeated .google.protobuf.testing.AnyData repeated_data = 9;
- {
- unsigned int count = static_cast<unsigned int>(this->repeated_data_size());
- total_size += 1UL * count;
- for (unsigned int i = 0; i < count; i++) {
- total_size +=
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- this->repeated_data(static_cast<int>(i)));
- }
- }
- // string str = 2;
- if (this->str().size() > 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->str());
- }
- // .google.protobuf.testing.AnyData nested_data = 4;
- if (this->has_nested_data()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *nested_data_);
- }
- // .google.protobuf.Struct struct_data = 8;
- if (this->has_struct_data()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *struct_data_);
- }
- // int32 attr = 1;
- if (this->attr() != 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->attr());
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void AnyData::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.testing.AnyData)
- GOOGLE_DCHECK_NE(&from, this);
- const AnyData* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const AnyData>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.testing.AnyData)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.testing.AnyData)
- MergeFrom(*source);
- }
- }
- void AnyData::MergeFrom(const AnyData& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.testing.AnyData)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- msgs_.MergeFrom(from.msgs_);
- map_data_.MergeFrom(from.map_data_);
- repeated_data_.MergeFrom(from.repeated_data_);
- if (from.str().size() > 0) {
- str_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.str_);
- }
- if (from.has_nested_data()) {
- mutable_nested_data()->::google::protobuf::testing::AnyData::MergeFrom(from.nested_data());
- }
- if (from.has_struct_data()) {
- mutable_struct_data()->::google::protobuf::Struct::MergeFrom(from.struct_data());
- }
- if (from.attr() != 0) {
- set_attr(from.attr());
- }
- }
- void AnyData::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.testing.AnyData)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void AnyData::CopyFrom(const AnyData& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.testing.AnyData)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool AnyData::IsInitialized() const {
- return true;
- }
- void AnyData::Swap(AnyData* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void AnyData::InternalSwap(AnyData* other) {
- using std::swap;
- msgs_.InternalSwap(CastToBase(&other->msgs_));
- map_data_.Swap(&other->map_data_);
- CastToBase(&repeated_data_)->InternalSwap(CastToBase(&other->repeated_data_));
- str_.Swap(&other->str_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- swap(nested_data_, other->nested_data_);
- swap(struct_data_, other->struct_data_);
- swap(attr_, other->attr_);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata AnyData::GetMetadata() const {
- protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- StringtoIntMap_MapEntry_DoNotUse::StringtoIntMap_MapEntry_DoNotUse() {}
- StringtoIntMap_MapEntry_DoNotUse::StringtoIntMap_MapEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
- void StringtoIntMap_MapEntry_DoNotUse::MergeFrom(const StringtoIntMap_MapEntry_DoNotUse& other) {
- MergeFromInternal(other);
- }
- ::google::protobuf::Metadata StringtoIntMap_MapEntry_DoNotUse::GetMetadata() const {
- ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::file_level_metadata[9];
- }
- void StringtoIntMap_MapEntry_DoNotUse::MergeFrom(
- const ::google::protobuf::Message& other) {
- ::google::protobuf::Message::MergeFrom(other);
- }
- // ===================================================================
- void StringtoIntMap::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int StringtoIntMap::kMapFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- StringtoIntMap::StringtoIntMap()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::scc_info_StringtoIntMap.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:google.protobuf.testing.StringtoIntMap)
- }
- StringtoIntMap::StringtoIntMap(const StringtoIntMap& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- map_.MergeFrom(from.map_);
- // @@protoc_insertion_point(copy_constructor:google.protobuf.testing.StringtoIntMap)
- }
- void StringtoIntMap::SharedCtor() {
- }
- StringtoIntMap::~StringtoIntMap() {
- // @@protoc_insertion_point(destructor:google.protobuf.testing.StringtoIntMap)
- SharedDtor();
- }
- void StringtoIntMap::SharedDtor() {
- }
- void StringtoIntMap::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* StringtoIntMap::descriptor() {
- ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const StringtoIntMap& StringtoIntMap::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::scc_info_StringtoIntMap.base);
- return *internal_default_instance();
- }
- void StringtoIntMap::Clear() {
- // @@protoc_insertion_point(message_clear_start:google.protobuf.testing.StringtoIntMap)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- map_.Clear();
- _internal_metadata_.Clear();
- }
- bool StringtoIntMap::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:google.protobuf.testing.StringtoIntMap)
- 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)) {
- // map<string, int32> map = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
- StringtoIntMap_MapEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
- StringtoIntMap_MapEntry_DoNotUse,
- ::std::string, ::google::protobuf::int32,
- ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
- ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
- 0 >,
- ::google::protobuf::Map< ::std::string, ::google::protobuf::int32 > > parser(&map_);
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
- input, &parser));
- DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- parser.key().data(), static_cast<int>(parser.key().length()),
- ::google::protobuf::internal::WireFormatLite::PARSE,
- "google.protobuf.testing.StringtoIntMap.MapEntry.key"));
- } 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:google.protobuf.testing.StringtoIntMap)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:google.protobuf.testing.StringtoIntMap)
- return false;
- #undef DO_
- }
- void StringtoIntMap::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:google.protobuf.testing.StringtoIntMap)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // map<string, int32> map = 1;
- if (!this->map().empty()) {
- typedef ::google::protobuf::Map< ::std::string, ::google::protobuf::int32 >::const_pointer
- ConstPtr;
- typedef ConstPtr SortItem;
- typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
- struct Utf8Check {
- static void Check(ConstPtr p) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- p->first.data(), static_cast<int>(p->first.length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "google.protobuf.testing.StringtoIntMap.MapEntry.key");
- }
- };
- if (output->IsSerializationDeterministic() &&
- this->map().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map().size()]);
- typedef ::google::protobuf::Map< ::std::string, ::google::protobuf::int32 >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::std::string, ::google::protobuf::int32 >::const_iterator
- it = this->map().begin();
- it != this->map().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<StringtoIntMap_MapEntry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, *entry, output);
- Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);
- }
- } else {
- ::std::unique_ptr<StringtoIntMap_MapEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::std::string, ::google::protobuf::int32 >::const_iterator
- it = this->map().begin();
- it != this->map().end(); ++it) {
- entry.reset(map_.NewEntryWrapper(
- it->first, it->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, *entry, output);
- Utf8Check::Check(&*it);
- }
- }
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:google.protobuf.testing.StringtoIntMap)
- }
- ::google::protobuf::uint8* StringtoIntMap::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.testing.StringtoIntMap)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // map<string, int32> map = 1;
- if (!this->map().empty()) {
- typedef ::google::protobuf::Map< ::std::string, ::google::protobuf::int32 >::const_pointer
- ConstPtr;
- typedef ConstPtr SortItem;
- typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
- struct Utf8Check {
- static void Check(ConstPtr p) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- p->first.data(), static_cast<int>(p->first.length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "google.protobuf.testing.StringtoIntMap.MapEntry.key");
- }
- };
- if (deterministic &&
- this->map().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map().size()]);
- typedef ::google::protobuf::Map< ::std::string, ::google::protobuf::int32 >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::std::string, ::google::protobuf::int32 >::const_iterator
- it = this->map().begin();
- it != this->map().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<StringtoIntMap_MapEntry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 1, *entry, deterministic, target);
- ;
- Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);
- }
- } else {
- ::std::unique_ptr<StringtoIntMap_MapEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::std::string, ::google::protobuf::int32 >::const_iterator
- it = this->map().begin();
- it != this->map().end(); ++it) {
- entry.reset(map_.NewEntryWrapper(
- it->first, it->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 1, *entry, deterministic, target);
- ;
- Utf8Check::Check(&*it);
- }
- }
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.testing.StringtoIntMap)
- return target;
- }
- size_t StringtoIntMap::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:google.protobuf.testing.StringtoIntMap)
- size_t total_size = 0;
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // map<string, int32> map = 1;
- total_size += 1 *
- ::google::protobuf::internal::FromIntSize(this->map_size());
- {
- ::std::unique_ptr<StringtoIntMap_MapEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::std::string, ::google::protobuf::int32 >::const_iterator
- it = this->map().begin();
- it != this->map().end(); ++it) {
- entry.reset(map_.NewEntryWrapper(it->first, it->second));
- total_size += ::google::protobuf::internal::WireFormatLite::
- MessageSizeNoVirtual(*entry);
- }
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void StringtoIntMap::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.testing.StringtoIntMap)
- GOOGLE_DCHECK_NE(&from, this);
- const StringtoIntMap* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const StringtoIntMap>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.testing.StringtoIntMap)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.testing.StringtoIntMap)
- MergeFrom(*source);
- }
- }
- void StringtoIntMap::MergeFrom(const StringtoIntMap& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.testing.StringtoIntMap)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- map_.MergeFrom(from.map_);
- }
- void StringtoIntMap::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.testing.StringtoIntMap)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void StringtoIntMap::CopyFrom(const StringtoIntMap& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.testing.StringtoIntMap)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool StringtoIntMap::IsInitialized() const {
- return true;
- }
- void StringtoIntMap::Swap(StringtoIntMap* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void StringtoIntMap::InternalSwap(StringtoIntMap* other) {
- using std::swap;
- map_.Swap(&other->map_);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata StringtoIntMap::GetMetadata() const {
- protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- IntToStringMap_MapEntry_DoNotUse::IntToStringMap_MapEntry_DoNotUse() {}
- IntToStringMap_MapEntry_DoNotUse::IntToStringMap_MapEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
- void IntToStringMap_MapEntry_DoNotUse::MergeFrom(const IntToStringMap_MapEntry_DoNotUse& other) {
- MergeFromInternal(other);
- }
- ::google::protobuf::Metadata IntToStringMap_MapEntry_DoNotUse::GetMetadata() const {
- ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::file_level_metadata[11];
- }
- void IntToStringMap_MapEntry_DoNotUse::MergeFrom(
- const ::google::protobuf::Message& other) {
- ::google::protobuf::Message::MergeFrom(other);
- }
- // ===================================================================
- void IntToStringMap::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int IntToStringMap::kMapFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- IntToStringMap::IntToStringMap()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::scc_info_IntToStringMap.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:google.protobuf.testing.IntToStringMap)
- }
- IntToStringMap::IntToStringMap(const IntToStringMap& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- map_.MergeFrom(from.map_);
- // @@protoc_insertion_point(copy_constructor:google.protobuf.testing.IntToStringMap)
- }
- void IntToStringMap::SharedCtor() {
- }
- IntToStringMap::~IntToStringMap() {
- // @@protoc_insertion_point(destructor:google.protobuf.testing.IntToStringMap)
- SharedDtor();
- }
- void IntToStringMap::SharedDtor() {
- }
- void IntToStringMap::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* IntToStringMap::descriptor() {
- ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const IntToStringMap& IntToStringMap::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::scc_info_IntToStringMap.base);
- return *internal_default_instance();
- }
- void IntToStringMap::Clear() {
- // @@protoc_insertion_point(message_clear_start:google.protobuf.testing.IntToStringMap)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- map_.Clear();
- _internal_metadata_.Clear();
- }
- bool IntToStringMap::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:google.protobuf.testing.IntToStringMap)
- 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)) {
- // map<int32, string> map = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
- IntToStringMap_MapEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
- IntToStringMap_MapEntry_DoNotUse,
- ::google::protobuf::int32, ::std::string,
- ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
- ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
- 0 >,
- ::google::protobuf::Map< ::google::protobuf::int32, ::std::string > > parser(&map_);
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
- input, &parser));
- DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- parser.value().data(), static_cast<int>(parser.value().length()),
- ::google::protobuf::internal::WireFormatLite::PARSE,
- "google.protobuf.testing.IntToStringMap.MapEntry.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:google.protobuf.testing.IntToStringMap)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:google.protobuf.testing.IntToStringMap)
- return false;
- #undef DO_
- }
- void IntToStringMap::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:google.protobuf.testing.IntToStringMap)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // map<int32, string> map = 1;
- if (!this->map().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::std::string >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- struct Utf8Check {
- static void Check(ConstPtr p) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- p->second.data(), static_cast<int>(p->second.length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "google.protobuf.testing.IntToStringMap.MapEntry.value");
- }
- };
- if (output->IsSerializationDeterministic() &&
- this->map().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::std::string >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::std::string >::const_iterator
- it = this->map().begin();
- it != this->map().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<IntToStringMap_MapEntry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, *entry, output);
- Utf8Check::Check(items[static_cast<ptrdiff_t>(i)].second);
- }
- } else {
- ::std::unique_ptr<IntToStringMap_MapEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::std::string >::const_iterator
- it = this->map().begin();
- it != this->map().end(); ++it) {
- entry.reset(map_.NewEntryWrapper(
- it->first, it->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, *entry, output);
- Utf8Check::Check(&*it);
- }
- }
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:google.protobuf.testing.IntToStringMap)
- }
- ::google::protobuf::uint8* IntToStringMap::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.testing.IntToStringMap)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // map<int32, string> map = 1;
- if (!this->map().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::std::string >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- struct Utf8Check {
- static void Check(ConstPtr p) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- p->second.data(), static_cast<int>(p->second.length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "google.protobuf.testing.IntToStringMap.MapEntry.value");
- }
- };
- if (deterministic &&
- this->map().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::std::string >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::std::string >::const_iterator
- it = this->map().begin();
- it != this->map().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<IntToStringMap_MapEntry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 1, *entry, deterministic, target);
- ;
- Utf8Check::Check(items[static_cast<ptrdiff_t>(i)].second);
- }
- } else {
- ::std::unique_ptr<IntToStringMap_MapEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::std::string >::const_iterator
- it = this->map().begin();
- it != this->map().end(); ++it) {
- entry.reset(map_.NewEntryWrapper(
- it->first, it->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 1, *entry, deterministic, target);
- ;
- Utf8Check::Check(&*it);
- }
- }
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.testing.IntToStringMap)
- return target;
- }
- size_t IntToStringMap::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:google.protobuf.testing.IntToStringMap)
- size_t total_size = 0;
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // map<int32, string> map = 1;
- total_size += 1 *
- ::google::protobuf::internal::FromIntSize(this->map_size());
- {
- ::std::unique_ptr<IntToStringMap_MapEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::std::string >::const_iterator
- it = this->map().begin();
- it != this->map().end(); ++it) {
- entry.reset(map_.NewEntryWrapper(it->first, it->second));
- total_size += ::google::protobuf::internal::WireFormatLite::
- MessageSizeNoVirtual(*entry);
- }
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void IntToStringMap::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.testing.IntToStringMap)
- GOOGLE_DCHECK_NE(&from, this);
- const IntToStringMap* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const IntToStringMap>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.testing.IntToStringMap)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.testing.IntToStringMap)
- MergeFrom(*source);
- }
- }
- void IntToStringMap::MergeFrom(const IntToStringMap& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.testing.IntToStringMap)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- map_.MergeFrom(from.map_);
- }
- void IntToStringMap::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.testing.IntToStringMap)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void IntToStringMap::CopyFrom(const IntToStringMap& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.testing.IntToStringMap)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool IntToStringMap::IsInitialized() const {
- return true;
- }
- void IntToStringMap::Swap(IntToStringMap* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void IntToStringMap::InternalSwap(IntToStringMap* other) {
- using std::swap;
- map_.Swap(&other->map_);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata IntToStringMap::GetMetadata() const {
- protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- MixedMap_MapEntry_DoNotUse::MixedMap_MapEntry_DoNotUse() {}
- MixedMap_MapEntry_DoNotUse::MixedMap_MapEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
- void MixedMap_MapEntry_DoNotUse::MergeFrom(const MixedMap_MapEntry_DoNotUse& other) {
- MergeFromInternal(other);
- }
- ::google::protobuf::Metadata MixedMap_MapEntry_DoNotUse::GetMetadata() const {
- ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::file_level_metadata[13];
- }
- void MixedMap_MapEntry_DoNotUse::MergeFrom(
- const ::google::protobuf::Message& other) {
- ::google::protobuf::Message::MergeFrom(other);
- }
- // ===================================================================
- void MixedMap::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int MixedMap::kMsgFieldNumber;
- const int MixedMap::kMapFieldNumber;
- const int MixedMap::kIntValueFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- MixedMap::MixedMap()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::scc_info_MixedMap.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:google.protobuf.testing.MixedMap)
- }
- MixedMap::MixedMap(const MixedMap& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- map_.MergeFrom(from.map_);
- msg_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.msg().size() > 0) {
- msg_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.msg_);
- }
- int_value_ = from.int_value_;
- // @@protoc_insertion_point(copy_constructor:google.protobuf.testing.MixedMap)
- }
- void MixedMap::SharedCtor() {
- msg_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- int_value_ = 0;
- }
- MixedMap::~MixedMap() {
- // @@protoc_insertion_point(destructor:google.protobuf.testing.MixedMap)
- SharedDtor();
- }
- void MixedMap::SharedDtor() {
- msg_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- void MixedMap::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* MixedMap::descriptor() {
- ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const MixedMap& MixedMap::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::scc_info_MixedMap.base);
- return *internal_default_instance();
- }
- void MixedMap::Clear() {
- // @@protoc_insertion_point(message_clear_start:google.protobuf.testing.MixedMap)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- map_.Clear();
- msg_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- int_value_ = 0;
- _internal_metadata_.Clear();
- }
- bool MixedMap::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:google.protobuf.testing.MixedMap)
- 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)) {
- // string msg = 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_msg()));
- DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->msg().data(), static_cast<int>(this->msg().length()),
- ::google::protobuf::internal::WireFormatLite::PARSE,
- "google.protobuf.testing.MixedMap.msg"));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // map<string, float> map = 2;
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
- MixedMap_MapEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
- MixedMap_MapEntry_DoNotUse,
- ::std::string, float,
- ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
- ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT,
- 0 >,
- ::google::protobuf::Map< ::std::string, float > > parser(&map_);
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
- input, &parser));
- DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- parser.key().data(), static_cast<int>(parser.key().length()),
- ::google::protobuf::internal::WireFormatLite::PARSE,
- "google.protobuf.testing.MixedMap.MapEntry.key"));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // int32 int_value = 3;
- case 3: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &int_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:google.protobuf.testing.MixedMap)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:google.protobuf.testing.MixedMap)
- return false;
- #undef DO_
- }
- void MixedMap::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:google.protobuf.testing.MixedMap)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // string msg = 1;
- if (this->msg().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->msg().data(), static_cast<int>(this->msg().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "google.protobuf.testing.MixedMap.msg");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 1, this->msg(), output);
- }
- // map<string, float> map = 2;
- if (!this->map().empty()) {
- typedef ::google::protobuf::Map< ::std::string, float >::const_pointer
- ConstPtr;
- typedef ConstPtr SortItem;
- typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
- struct Utf8Check {
- static void Check(ConstPtr p) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- p->first.data(), static_cast<int>(p->first.length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "google.protobuf.testing.MixedMap.MapEntry.key");
- }
- };
- if (output->IsSerializationDeterministic() &&
- this->map().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map().size()]);
- typedef ::google::protobuf::Map< ::std::string, float >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::std::string, float >::const_iterator
- it = this->map().begin();
- it != this->map().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<MixedMap_MapEntry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 2, *entry, output);
- Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);
- }
- } else {
- ::std::unique_ptr<MixedMap_MapEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::std::string, float >::const_iterator
- it = this->map().begin();
- it != this->map().end(); ++it) {
- entry.reset(map_.NewEntryWrapper(
- it->first, it->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 2, *entry, output);
- Utf8Check::Check(&*it);
- }
- }
- }
- // int32 int_value = 3;
- if (this->int_value() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->int_value(), output);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:google.protobuf.testing.MixedMap)
- }
- ::google::protobuf::uint8* MixedMap::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.testing.MixedMap)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // string msg = 1;
- if (this->msg().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->msg().data(), static_cast<int>(this->msg().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "google.protobuf.testing.MixedMap.msg");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 1, this->msg(), target);
- }
- // map<string, float> map = 2;
- if (!this->map().empty()) {
- typedef ::google::protobuf::Map< ::std::string, float >::const_pointer
- ConstPtr;
- typedef ConstPtr SortItem;
- typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
- struct Utf8Check {
- static void Check(ConstPtr p) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- p->first.data(), static_cast<int>(p->first.length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "google.protobuf.testing.MixedMap.MapEntry.key");
- }
- };
- if (deterministic &&
- this->map().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map().size()]);
- typedef ::google::protobuf::Map< ::std::string, float >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::std::string, float >::const_iterator
- it = this->map().begin();
- it != this->map().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<MixedMap_MapEntry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 2, *entry, deterministic, target);
- ;
- Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);
- }
- } else {
- ::std::unique_ptr<MixedMap_MapEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::std::string, float >::const_iterator
- it = this->map().begin();
- it != this->map().end(); ++it) {
- entry.reset(map_.NewEntryWrapper(
- it->first, it->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 2, *entry, deterministic, target);
- ;
- Utf8Check::Check(&*it);
- }
- }
- }
- // int32 int_value = 3;
- if (this->int_value() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->int_value(), target);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.testing.MixedMap)
- return target;
- }
- size_t MixedMap::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:google.protobuf.testing.MixedMap)
- size_t total_size = 0;
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // map<string, float> map = 2;
- total_size += 1 *
- ::google::protobuf::internal::FromIntSize(this->map_size());
- {
- ::std::unique_ptr<MixedMap_MapEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::std::string, float >::const_iterator
- it = this->map().begin();
- it != this->map().end(); ++it) {
- entry.reset(map_.NewEntryWrapper(it->first, it->second));
- total_size += ::google::protobuf::internal::WireFormatLite::
- MessageSizeNoVirtual(*entry);
- }
- }
- // string msg = 1;
- if (this->msg().size() > 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->msg());
- }
- // int32 int_value = 3;
- if (this->int_value() != 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->int_value());
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void MixedMap::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.testing.MixedMap)
- GOOGLE_DCHECK_NE(&from, this);
- const MixedMap* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const MixedMap>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.testing.MixedMap)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.testing.MixedMap)
- MergeFrom(*source);
- }
- }
- void MixedMap::MergeFrom(const MixedMap& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.testing.MixedMap)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- map_.MergeFrom(from.map_);
- if (from.msg().size() > 0) {
- msg_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.msg_);
- }
- if (from.int_value() != 0) {
- set_int_value(from.int_value());
- }
- }
- void MixedMap::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.testing.MixedMap)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void MixedMap::CopyFrom(const MixedMap& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.testing.MixedMap)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool MixedMap::IsInitialized() const {
- return true;
- }
- void MixedMap::Swap(MixedMap* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void MixedMap::InternalSwap(MixedMap* other) {
- using std::swap;
- map_.Swap(&other->map_);
- msg_.Swap(&other->msg_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- swap(int_value_, other->int_value_);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata MixedMap::GetMetadata() const {
- protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- MixedMap2_MapEntry_DoNotUse::MixedMap2_MapEntry_DoNotUse() {}
- MixedMap2_MapEntry_DoNotUse::MixedMap2_MapEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
- void MixedMap2_MapEntry_DoNotUse::MergeFrom(const MixedMap2_MapEntry_DoNotUse& other) {
- MergeFromInternal(other);
- }
- ::google::protobuf::Metadata MixedMap2_MapEntry_DoNotUse::GetMetadata() const {
- ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::file_level_metadata[15];
- }
- void MixedMap2_MapEntry_DoNotUse::MergeFrom(
- const ::google::protobuf::Message& other) {
- ::google::protobuf::Message::MergeFrom(other);
- }
- // ===================================================================
- void MixedMap2::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int MixedMap2::kMapFieldNumber;
- const int MixedMap2::kEeFieldNumber;
- const int MixedMap2::kMsgFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- MixedMap2::MixedMap2()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::scc_info_MixedMap2.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:google.protobuf.testing.MixedMap2)
- }
- MixedMap2::MixedMap2(const MixedMap2& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- map_.MergeFrom(from.map_);
- msg_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.msg().size() > 0) {
- msg_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.msg_);
- }
- ee_ = from.ee_;
- // @@protoc_insertion_point(copy_constructor:google.protobuf.testing.MixedMap2)
- }
- void MixedMap2::SharedCtor() {
- msg_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- ee_ = 0;
- }
- MixedMap2::~MixedMap2() {
- // @@protoc_insertion_point(destructor:google.protobuf.testing.MixedMap2)
- SharedDtor();
- }
- void MixedMap2::SharedDtor() {
- msg_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- void MixedMap2::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* MixedMap2::descriptor() {
- ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const MixedMap2& MixedMap2::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::scc_info_MixedMap2.base);
- return *internal_default_instance();
- }
- void MixedMap2::Clear() {
- // @@protoc_insertion_point(message_clear_start:google.protobuf.testing.MixedMap2)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- map_.Clear();
- msg_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- ee_ = 0;
- _internal_metadata_.Clear();
- }
- bool MixedMap2::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:google.protobuf.testing.MixedMap2)
- 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)) {
- // map<int32, bool> map = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
- MixedMap2_MapEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
- MixedMap2_MapEntry_DoNotUse,
- ::google::protobuf::int32, bool,
- ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
- ::google::protobuf::internal::WireFormatLite::TYPE_BOOL,
- 0 >,
- ::google::protobuf::Map< ::google::protobuf::int32, bool > > parser(&map_);
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
- input, &parser));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.MixedMap2.E ee = 2;
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
- int value;
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
- input, &value)));
- set_ee(static_cast< ::google::protobuf::testing::MixedMap2_E >(value));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // string msg = 4;
- case 4: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_msg()));
- DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->msg().data(), static_cast<int>(this->msg().length()),
- ::google::protobuf::internal::WireFormatLite::PARSE,
- "google.protobuf.testing.MixedMap2.msg"));
- } 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:google.protobuf.testing.MixedMap2)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:google.protobuf.testing.MixedMap2)
- return false;
- #undef DO_
- }
- void MixedMap2::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:google.protobuf.testing.MixedMap2)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // map<int32, bool> map = 1;
- if (!this->map().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::int32, bool >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (output->IsSerializationDeterministic() &&
- this->map().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::int32, bool >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::int32, bool >::const_iterator
- it = this->map().begin();
- it != this->map().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<MixedMap2_MapEntry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, *entry, output);
- }
- } else {
- ::std::unique_ptr<MixedMap2_MapEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, bool >::const_iterator
- it = this->map().begin();
- it != this->map().end(); ++it) {
- entry.reset(map_.NewEntryWrapper(
- it->first, it->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, *entry, output);
- }
- }
- }
- // .google.protobuf.testing.MixedMap2.E ee = 2;
- if (this->ee() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteEnum(
- 2, this->ee(), output);
- }
- // string msg = 4;
- if (this->msg().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->msg().data(), static_cast<int>(this->msg().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "google.protobuf.testing.MixedMap2.msg");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 4, this->msg(), output);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:google.protobuf.testing.MixedMap2)
- }
- ::google::protobuf::uint8* MixedMap2::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.testing.MixedMap2)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // map<int32, bool> map = 1;
- if (!this->map().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::int32, bool >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (deterministic &&
- this->map().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::int32, bool >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::int32, bool >::const_iterator
- it = this->map().begin();
- it != this->map().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<MixedMap2_MapEntry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 1, *entry, deterministic, target);
- ;
- }
- } else {
- ::std::unique_ptr<MixedMap2_MapEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, bool >::const_iterator
- it = this->map().begin();
- it != this->map().end(); ++it) {
- entry.reset(map_.NewEntryWrapper(
- it->first, it->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 1, *entry, deterministic, target);
- ;
- }
- }
- }
- // .google.protobuf.testing.MixedMap2.E ee = 2;
- if (this->ee() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
- 2, this->ee(), target);
- }
- // string msg = 4;
- if (this->msg().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->msg().data(), static_cast<int>(this->msg().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "google.protobuf.testing.MixedMap2.msg");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 4, this->msg(), target);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.testing.MixedMap2)
- return target;
- }
- size_t MixedMap2::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:google.protobuf.testing.MixedMap2)
- size_t total_size = 0;
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // map<int32, bool> map = 1;
- total_size += 1 *
- ::google::protobuf::internal::FromIntSize(this->map_size());
- {
- ::std::unique_ptr<MixedMap2_MapEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, bool >::const_iterator
- it = this->map().begin();
- it != this->map().end(); ++it) {
- entry.reset(map_.NewEntryWrapper(it->first, it->second));
- total_size += ::google::protobuf::internal::WireFormatLite::
- MessageSizeNoVirtual(*entry);
- }
- }
- // string msg = 4;
- if (this->msg().size() > 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->msg());
- }
- // .google.protobuf.testing.MixedMap2.E ee = 2;
- if (this->ee() != 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::EnumSize(this->ee());
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void MixedMap2::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.testing.MixedMap2)
- GOOGLE_DCHECK_NE(&from, this);
- const MixedMap2* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const MixedMap2>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.testing.MixedMap2)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.testing.MixedMap2)
- MergeFrom(*source);
- }
- }
- void MixedMap2::MergeFrom(const MixedMap2& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.testing.MixedMap2)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- map_.MergeFrom(from.map_);
- if (from.msg().size() > 0) {
- msg_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.msg_);
- }
- if (from.ee() != 0) {
- set_ee(from.ee());
- }
- }
- void MixedMap2::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.testing.MixedMap2)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void MixedMap2::CopyFrom(const MixedMap2& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.testing.MixedMap2)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool MixedMap2::IsInitialized() const {
- return true;
- }
- void MixedMap2::Swap(MixedMap2* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void MixedMap2::InternalSwap(MixedMap2* other) {
- using std::swap;
- map_.Swap(&other->map_);
- msg_.Swap(&other->msg_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- swap(ee_, other->ee_);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata MixedMap2::GetMetadata() const {
- protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void MessageMap_M::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int MessageMap_M::kInnerIntFieldNumber;
- const int MessageMap_M::kInnerTextFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- MessageMap_M::MessageMap_M()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::scc_info_MessageMap_M.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:google.protobuf.testing.MessageMap.M)
- }
- MessageMap_M::MessageMap_M(const MessageMap_M& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- inner_text_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.inner_text().size() > 0) {
- inner_text_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.inner_text_);
- }
- inner_int_ = from.inner_int_;
- // @@protoc_insertion_point(copy_constructor:google.protobuf.testing.MessageMap.M)
- }
- void MessageMap_M::SharedCtor() {
- inner_text_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- inner_int_ = 0;
- }
- MessageMap_M::~MessageMap_M() {
- // @@protoc_insertion_point(destructor:google.protobuf.testing.MessageMap.M)
- SharedDtor();
- }
- void MessageMap_M::SharedDtor() {
- inner_text_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- void MessageMap_M::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* MessageMap_M::descriptor() {
- ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const MessageMap_M& MessageMap_M::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::scc_info_MessageMap_M.base);
- return *internal_default_instance();
- }
- void MessageMap_M::Clear() {
- // @@protoc_insertion_point(message_clear_start:google.protobuf.testing.MessageMap.M)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- inner_text_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- inner_int_ = 0;
- _internal_metadata_.Clear();
- }
- bool MessageMap_M::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:google.protobuf.testing.MessageMap.M)
- 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)) {
- // int32 inner_int = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &inner_int_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // string inner_text = 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_inner_text()));
- DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->inner_text().data(), static_cast<int>(this->inner_text().length()),
- ::google::protobuf::internal::WireFormatLite::PARSE,
- "google.protobuf.testing.MessageMap.M.inner_text"));
- } 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:google.protobuf.testing.MessageMap.M)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:google.protobuf.testing.MessageMap.M)
- return false;
- #undef DO_
- }
- void MessageMap_M::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:google.protobuf.testing.MessageMap.M)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // int32 inner_int = 1;
- if (this->inner_int() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->inner_int(), output);
- }
- // string inner_text = 2;
- if (this->inner_text().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->inner_text().data(), static_cast<int>(this->inner_text().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "google.protobuf.testing.MessageMap.M.inner_text");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 2, this->inner_text(), output);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:google.protobuf.testing.MessageMap.M)
- }
- ::google::protobuf::uint8* MessageMap_M::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.testing.MessageMap.M)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // int32 inner_int = 1;
- if (this->inner_int() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->inner_int(), target);
- }
- // string inner_text = 2;
- if (this->inner_text().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->inner_text().data(), static_cast<int>(this->inner_text().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "google.protobuf.testing.MessageMap.M.inner_text");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 2, this->inner_text(), target);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.testing.MessageMap.M)
- return target;
- }
- size_t MessageMap_M::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:google.protobuf.testing.MessageMap.M)
- size_t total_size = 0;
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // string inner_text = 2;
- if (this->inner_text().size() > 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->inner_text());
- }
- // int32 inner_int = 1;
- if (this->inner_int() != 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->inner_int());
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void MessageMap_M::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.testing.MessageMap.M)
- GOOGLE_DCHECK_NE(&from, this);
- const MessageMap_M* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const MessageMap_M>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.testing.MessageMap.M)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.testing.MessageMap.M)
- MergeFrom(*source);
- }
- }
- void MessageMap_M::MergeFrom(const MessageMap_M& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.testing.MessageMap.M)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (from.inner_text().size() > 0) {
- inner_text_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.inner_text_);
- }
- if (from.inner_int() != 0) {
- set_inner_int(from.inner_int());
- }
- }
- void MessageMap_M::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.testing.MessageMap.M)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void MessageMap_M::CopyFrom(const MessageMap_M& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.testing.MessageMap.M)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool MessageMap_M::IsInitialized() const {
- return true;
- }
- void MessageMap_M::Swap(MessageMap_M* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void MessageMap_M::InternalSwap(MessageMap_M* other) {
- using std::swap;
- inner_text_.Swap(&other->inner_text_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- swap(inner_int_, other->inner_int_);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata MessageMap_M::GetMetadata() const {
- protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- MessageMap_MapEntry_DoNotUse::MessageMap_MapEntry_DoNotUse() {}
- MessageMap_MapEntry_DoNotUse::MessageMap_MapEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
- void MessageMap_MapEntry_DoNotUse::MergeFrom(const MessageMap_MapEntry_DoNotUse& other) {
- MergeFromInternal(other);
- }
- ::google::protobuf::Metadata MessageMap_MapEntry_DoNotUse::GetMetadata() const {
- ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::file_level_metadata[18];
- }
- void MessageMap_MapEntry_DoNotUse::MergeFrom(
- const ::google::protobuf::Message& other) {
- ::google::protobuf::Message::MergeFrom(other);
- }
- // ===================================================================
- void MessageMap::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int MessageMap::kMapFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- MessageMap::MessageMap()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::scc_info_MessageMap.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:google.protobuf.testing.MessageMap)
- }
- MessageMap::MessageMap(const MessageMap& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- map_.MergeFrom(from.map_);
- // @@protoc_insertion_point(copy_constructor:google.protobuf.testing.MessageMap)
- }
- void MessageMap::SharedCtor() {
- }
- MessageMap::~MessageMap() {
- // @@protoc_insertion_point(destructor:google.protobuf.testing.MessageMap)
- SharedDtor();
- }
- void MessageMap::SharedDtor() {
- }
- void MessageMap::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* MessageMap::descriptor() {
- ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const MessageMap& MessageMap::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::scc_info_MessageMap.base);
- return *internal_default_instance();
- }
- void MessageMap::Clear() {
- // @@protoc_insertion_point(message_clear_start:google.protobuf.testing.MessageMap)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- map_.Clear();
- _internal_metadata_.Clear();
- }
- bool MessageMap::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:google.protobuf.testing.MessageMap)
- 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)) {
- // map<string, .google.protobuf.testing.MessageMap.M> map = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
- MessageMap_MapEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
- MessageMap_MapEntry_DoNotUse,
- ::std::string, ::google::protobuf::testing::MessageMap_M,
- ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
- ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
- 0 >,
- ::google::protobuf::Map< ::std::string, ::google::protobuf::testing::MessageMap_M > > parser(&map_);
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
- input, &parser));
- DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- parser.key().data(), static_cast<int>(parser.key().length()),
- ::google::protobuf::internal::WireFormatLite::PARSE,
- "google.protobuf.testing.MessageMap.MapEntry.key"));
- } 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:google.protobuf.testing.MessageMap)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:google.protobuf.testing.MessageMap)
- return false;
- #undef DO_
- }
- void MessageMap::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:google.protobuf.testing.MessageMap)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // map<string, .google.protobuf.testing.MessageMap.M> map = 1;
- if (!this->map().empty()) {
- typedef ::google::protobuf::Map< ::std::string, ::google::protobuf::testing::MessageMap_M >::const_pointer
- ConstPtr;
- typedef ConstPtr SortItem;
- typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
- struct Utf8Check {
- static void Check(ConstPtr p) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- p->first.data(), static_cast<int>(p->first.length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "google.protobuf.testing.MessageMap.MapEntry.key");
- }
- };
- if (output->IsSerializationDeterministic() &&
- this->map().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map().size()]);
- typedef ::google::protobuf::Map< ::std::string, ::google::protobuf::testing::MessageMap_M >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::std::string, ::google::protobuf::testing::MessageMap_M >::const_iterator
- it = this->map().begin();
- it != this->map().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<MessageMap_MapEntry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, *entry, output);
- Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);
- }
- } else {
- ::std::unique_ptr<MessageMap_MapEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::std::string, ::google::protobuf::testing::MessageMap_M >::const_iterator
- it = this->map().begin();
- it != this->map().end(); ++it) {
- entry.reset(map_.NewEntryWrapper(
- it->first, it->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, *entry, output);
- Utf8Check::Check(&*it);
- }
- }
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:google.protobuf.testing.MessageMap)
- }
- ::google::protobuf::uint8* MessageMap::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.testing.MessageMap)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // map<string, .google.protobuf.testing.MessageMap.M> map = 1;
- if (!this->map().empty()) {
- typedef ::google::protobuf::Map< ::std::string, ::google::protobuf::testing::MessageMap_M >::const_pointer
- ConstPtr;
- typedef ConstPtr SortItem;
- typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
- struct Utf8Check {
- static void Check(ConstPtr p) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- p->first.data(), static_cast<int>(p->first.length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "google.protobuf.testing.MessageMap.MapEntry.key");
- }
- };
- if (deterministic &&
- this->map().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map().size()]);
- typedef ::google::protobuf::Map< ::std::string, ::google::protobuf::testing::MessageMap_M >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::std::string, ::google::protobuf::testing::MessageMap_M >::const_iterator
- it = this->map().begin();
- it != this->map().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<MessageMap_MapEntry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 1, *entry, deterministic, target);
- ;
- Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);
- }
- } else {
- ::std::unique_ptr<MessageMap_MapEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::std::string, ::google::protobuf::testing::MessageMap_M >::const_iterator
- it = this->map().begin();
- it != this->map().end(); ++it) {
- entry.reset(map_.NewEntryWrapper(
- it->first, it->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 1, *entry, deterministic, target);
- ;
- Utf8Check::Check(&*it);
- }
- }
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.testing.MessageMap)
- return target;
- }
- size_t MessageMap::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:google.protobuf.testing.MessageMap)
- size_t total_size = 0;
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // map<string, .google.protobuf.testing.MessageMap.M> map = 1;
- total_size += 1 *
- ::google::protobuf::internal::FromIntSize(this->map_size());
- {
- ::std::unique_ptr<MessageMap_MapEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::std::string, ::google::protobuf::testing::MessageMap_M >::const_iterator
- it = this->map().begin();
- it != this->map().end(); ++it) {
- entry.reset(map_.NewEntryWrapper(it->first, it->second));
- total_size += ::google::protobuf::internal::WireFormatLite::
- MessageSizeNoVirtual(*entry);
- }
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void MessageMap::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.testing.MessageMap)
- GOOGLE_DCHECK_NE(&from, this);
- const MessageMap* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const MessageMap>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.testing.MessageMap)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.testing.MessageMap)
- MergeFrom(*source);
- }
- }
- void MessageMap::MergeFrom(const MessageMap& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.testing.MessageMap)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- map_.MergeFrom(from.map_);
- }
- void MessageMap::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.testing.MessageMap)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void MessageMap::CopyFrom(const MessageMap& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.testing.MessageMap)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool MessageMap::IsInitialized() const {
- return true;
- }
- void MessageMap::Swap(MessageMap* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void MessageMap::InternalSwap(MessageMap* other) {
- using std::swap;
- map_.Swap(&other->map_);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata MessageMap::GetMetadata() const {
- protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void DoubleValueMessage::InitAsDefaultInstance() {
- ::google::protobuf::testing::_DoubleValueMessage_default_instance_._instance.get_mutable()->double__ = const_cast< ::google::protobuf::DoubleValue*>(
- ::google::protobuf::DoubleValue::internal_default_instance());
- }
- void DoubleValueMessage::clear_double_() {
- if (GetArenaNoVirtual() == NULL && double__ != NULL) {
- delete double__;
- }
- double__ = NULL;
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int DoubleValueMessage::kDoubleFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- DoubleValueMessage::DoubleValueMessage()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::scc_info_DoubleValueMessage.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:google.protobuf.testing.DoubleValueMessage)
- }
- DoubleValueMessage::DoubleValueMessage(const DoubleValueMessage& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- if (from.has_double_()) {
- double__ = new ::google::protobuf::DoubleValue(*from.double__);
- } else {
- double__ = NULL;
- }
- // @@protoc_insertion_point(copy_constructor:google.protobuf.testing.DoubleValueMessage)
- }
- void DoubleValueMessage::SharedCtor() {
- double__ = NULL;
- }
- DoubleValueMessage::~DoubleValueMessage() {
- // @@protoc_insertion_point(destructor:google.protobuf.testing.DoubleValueMessage)
- SharedDtor();
- }
- void DoubleValueMessage::SharedDtor() {
- if (this != internal_default_instance()) delete double__;
- }
- void DoubleValueMessage::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* DoubleValueMessage::descriptor() {
- ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const DoubleValueMessage& DoubleValueMessage::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::scc_info_DoubleValueMessage.base);
- return *internal_default_instance();
- }
- void DoubleValueMessage::Clear() {
- // @@protoc_insertion_point(message_clear_start:google.protobuf.testing.DoubleValueMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- if (GetArenaNoVirtual() == NULL && double__ != NULL) {
- delete double__;
- }
- double__ = NULL;
- _internal_metadata_.Clear();
- }
- bool DoubleValueMessage::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:google.protobuf.testing.DoubleValueMessage)
- 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)) {
- // .google.protobuf.DoubleValue double = 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_double_()));
- } 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:google.protobuf.testing.DoubleValueMessage)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:google.protobuf.testing.DoubleValueMessage)
- return false;
- #undef DO_
- }
- void DoubleValueMessage::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:google.protobuf.testing.DoubleValueMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // .google.protobuf.DoubleValue double = 1;
- if (this->has_double_()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, this->_internal_double_(), output);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:google.protobuf.testing.DoubleValueMessage)
- }
- ::google::protobuf::uint8* DoubleValueMessage::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.testing.DoubleValueMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // .google.protobuf.DoubleValue double = 1;
- if (this->has_double_()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 1, this->_internal_double_(), deterministic, target);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.testing.DoubleValueMessage)
- return target;
- }
- size_t DoubleValueMessage::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:google.protobuf.testing.DoubleValueMessage)
- size_t total_size = 0;
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // .google.protobuf.DoubleValue double = 1;
- if (this->has_double_()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *double__);
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void DoubleValueMessage::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.testing.DoubleValueMessage)
- GOOGLE_DCHECK_NE(&from, this);
- const DoubleValueMessage* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const DoubleValueMessage>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.testing.DoubleValueMessage)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.testing.DoubleValueMessage)
- MergeFrom(*source);
- }
- }
- void DoubleValueMessage::MergeFrom(const DoubleValueMessage& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.testing.DoubleValueMessage)
- 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_double_()) {
- mutable_double_()->::google::protobuf::DoubleValue::MergeFrom(from.double_());
- }
- }
- void DoubleValueMessage::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.testing.DoubleValueMessage)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void DoubleValueMessage::CopyFrom(const DoubleValueMessage& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.testing.DoubleValueMessage)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool DoubleValueMessage::IsInitialized() const {
- return true;
- }
- void DoubleValueMessage::Swap(DoubleValueMessage* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void DoubleValueMessage::InternalSwap(DoubleValueMessage* other) {
- using std::swap;
- swap(double__, other->double__);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata DoubleValueMessage::GetMetadata() const {
- protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // @@protoc_insertion_point(namespace_scope)
- } // namespace testing
- } // namespace protobuf
- } // namespace google
- namespace google {
- namespace protobuf {
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::google::protobuf::testing::DefaultValueTestCases* Arena::CreateMaybeMessage< ::google::protobuf::testing::DefaultValueTestCases >(Arena* arena) {
- return Arena::CreateInternal< ::google::protobuf::testing::DefaultValueTestCases >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::google::protobuf::testing::DoubleMessage* Arena::CreateMaybeMessage< ::google::protobuf::testing::DoubleMessage >(Arena* arena) {
- return Arena::CreateInternal< ::google::protobuf::testing::DoubleMessage >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::google::protobuf::testing::StructMessage* Arena::CreateMaybeMessage< ::google::protobuf::testing::StructMessage >(Arena* arena) {
- return Arena::CreateInternal< ::google::protobuf::testing::StructMessage >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::google::protobuf::testing::ValueMessage* Arena::CreateMaybeMessage< ::google::protobuf::testing::ValueMessage >(Arena* arena) {
- return Arena::CreateInternal< ::google::protobuf::testing::ValueMessage >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::google::protobuf::testing::ListValueMessage* Arena::CreateMaybeMessage< ::google::protobuf::testing::ListValueMessage >(Arena* arena) {
- return Arena::CreateInternal< ::google::protobuf::testing::ListValueMessage >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::google::protobuf::testing::RequestMessage* Arena::CreateMaybeMessage< ::google::protobuf::testing::RequestMessage >(Arena* arena) {
- return Arena::CreateInternal< ::google::protobuf::testing::RequestMessage >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::google::protobuf::testing::AnyMessage* Arena::CreateMaybeMessage< ::google::protobuf::testing::AnyMessage >(Arena* arena) {
- return Arena::CreateInternal< ::google::protobuf::testing::AnyMessage >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::google::protobuf::testing::AnyData_MapDataEntry_DoNotUse* Arena::CreateMaybeMessage< ::google::protobuf::testing::AnyData_MapDataEntry_DoNotUse >(Arena* arena) {
- return Arena::CreateInternal< ::google::protobuf::testing::AnyData_MapDataEntry_DoNotUse >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::google::protobuf::testing::AnyData* Arena::CreateMaybeMessage< ::google::protobuf::testing::AnyData >(Arena* arena) {
- return Arena::CreateInternal< ::google::protobuf::testing::AnyData >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::google::protobuf::testing::StringtoIntMap_MapEntry_DoNotUse* Arena::CreateMaybeMessage< ::google::protobuf::testing::StringtoIntMap_MapEntry_DoNotUse >(Arena* arena) {
- return Arena::CreateInternal< ::google::protobuf::testing::StringtoIntMap_MapEntry_DoNotUse >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::google::protobuf::testing::StringtoIntMap* Arena::CreateMaybeMessage< ::google::protobuf::testing::StringtoIntMap >(Arena* arena) {
- return Arena::CreateInternal< ::google::protobuf::testing::StringtoIntMap >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::google::protobuf::testing::IntToStringMap_MapEntry_DoNotUse* Arena::CreateMaybeMessage< ::google::protobuf::testing::IntToStringMap_MapEntry_DoNotUse >(Arena* arena) {
- return Arena::CreateInternal< ::google::protobuf::testing::IntToStringMap_MapEntry_DoNotUse >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::google::protobuf::testing::IntToStringMap* Arena::CreateMaybeMessage< ::google::protobuf::testing::IntToStringMap >(Arena* arena) {
- return Arena::CreateInternal< ::google::protobuf::testing::IntToStringMap >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::google::protobuf::testing::MixedMap_MapEntry_DoNotUse* Arena::CreateMaybeMessage< ::google::protobuf::testing::MixedMap_MapEntry_DoNotUse >(Arena* arena) {
- return Arena::CreateInternal< ::google::protobuf::testing::MixedMap_MapEntry_DoNotUse >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::google::protobuf::testing::MixedMap* Arena::CreateMaybeMessage< ::google::protobuf::testing::MixedMap >(Arena* arena) {
- return Arena::CreateInternal< ::google::protobuf::testing::MixedMap >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::google::protobuf::testing::MixedMap2_MapEntry_DoNotUse* Arena::CreateMaybeMessage< ::google::protobuf::testing::MixedMap2_MapEntry_DoNotUse >(Arena* arena) {
- return Arena::CreateInternal< ::google::protobuf::testing::MixedMap2_MapEntry_DoNotUse >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::google::protobuf::testing::MixedMap2* Arena::CreateMaybeMessage< ::google::protobuf::testing::MixedMap2 >(Arena* arena) {
- return Arena::CreateInternal< ::google::protobuf::testing::MixedMap2 >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::google::protobuf::testing::MessageMap_M* Arena::CreateMaybeMessage< ::google::protobuf::testing::MessageMap_M >(Arena* arena) {
- return Arena::CreateInternal< ::google::protobuf::testing::MessageMap_M >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::google::protobuf::testing::MessageMap_MapEntry_DoNotUse* Arena::CreateMaybeMessage< ::google::protobuf::testing::MessageMap_MapEntry_DoNotUse >(Arena* arena) {
- return Arena::CreateInternal< ::google::protobuf::testing::MessageMap_MapEntry_DoNotUse >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::google::protobuf::testing::MessageMap* Arena::CreateMaybeMessage< ::google::protobuf::testing::MessageMap >(Arena* arena) {
- return Arena::CreateInternal< ::google::protobuf::testing::MessageMap >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::google::protobuf::testing::DoubleValueMessage* Arena::CreateMaybeMessage< ::google::protobuf::testing::DoubleValueMessage >(Arena* arena) {
- return Arena::CreateInternal< ::google::protobuf::testing::DoubleValueMessage >(arena);
- }
- } // namespace protobuf
- } // namespace google
- // @@protoc_insertion_point(global_scope)
|