1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: google/protobuf/unittest.proto
- #ifndef PROTOBUF_INCLUDED_google_2fprotobuf_2funittest_2eproto
- #define PROTOBUF_INCLUDED_google_2fprotobuf_2funittest_2eproto
- #include <string>
- #include <google/protobuf/stubs/common.h>
- #if GOOGLE_PROTOBUF_VERSION < 3006001
- #error This file was generated by a newer version of protoc which is
- #error incompatible with your Protocol Buffer headers. Please update
- #error your headers.
- #endif
- #if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
- #error This file was generated by an older version of protoc which is
- #error incompatible with your Protocol Buffer headers. Please
- #error regenerate this file with a newer version of protoc.
- #endif
- #include <google/protobuf/io/coded_stream.h>
- #include <google/protobuf/arena.h>
- #include <google/protobuf/arenastring.h>
- #include <google/protobuf/generated_message_table_driven.h>
- #include <google/protobuf/generated_message_util.h>
- #include <google/protobuf/inlined_string_field.h>
- #include <google/protobuf/metadata.h>
- #include <google/protobuf/message.h>
- #include <google/protobuf/repeated_field.h> // IWYU pragma: export
- #include <google/protobuf/extension_set.h> // IWYU pragma: export
- #include <google/protobuf/map.h> // IWYU pragma: export
- #include <google/protobuf/map_entry.h>
- #include <google/protobuf/map_field_inl.h>
- #include <google/protobuf/generated_enum_reflection.h>
- #include <google/protobuf/service.h>
- #include <google/protobuf/unknown_field_set.h>
- #include <google/protobuf/unittest_import.pb.h>
- // @@protoc_insertion_point(includes)
- #define PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2funittest_2eproto
- namespace protobuf_google_2fprotobuf_2funittest_2eproto {
- // Internal implementation detail -- do not use these members.
- struct TableStruct {
- static const ::google::protobuf::internal::ParseTableField entries[];
- static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
- static const ::google::protobuf::internal::ParseTable schema[91];
- static const ::google::protobuf::internal::FieldMetadata field_metadata[];
- static const ::google::protobuf::internal::SerializationTable serialization_table[];
- static const ::google::protobuf::uint32 offsets[];
- };
- void AddDescriptors();
- } // namespace protobuf_google_2fprotobuf_2funittest_2eproto
- namespace protobuf_unittest {
- class BarRequest;
- class BarRequestDefaultTypeInternal;
- extern BarRequestDefaultTypeInternal _BarRequest_default_instance_;
- class BarResponse;
- class BarResponseDefaultTypeInternal;
- extern BarResponseDefaultTypeInternal _BarResponse_default_instance_;
- class BoolMessage;
- class BoolMessageDefaultTypeInternal;
- extern BoolMessageDefaultTypeInternal _BoolMessage_default_instance_;
- class FooClientMessage;
- class FooClientMessageDefaultTypeInternal;
- extern FooClientMessageDefaultTypeInternal _FooClientMessage_default_instance_;
- class FooRequest;
- class FooRequestDefaultTypeInternal;
- extern FooRequestDefaultTypeInternal _FooRequest_default_instance_;
- class FooResponse;
- class FooResponseDefaultTypeInternal;
- extern FooResponseDefaultTypeInternal _FooResponse_default_instance_;
- class FooServerMessage;
- class FooServerMessageDefaultTypeInternal;
- extern FooServerMessageDefaultTypeInternal _FooServerMessage_default_instance_;
- class ForeignMessage;
- class ForeignMessageDefaultTypeInternal;
- extern ForeignMessageDefaultTypeInternal _ForeignMessage_default_instance_;
- class Int32Message;
- class Int32MessageDefaultTypeInternal;
- extern Int32MessageDefaultTypeInternal _Int32Message_default_instance_;
- class Int64Message;
- class Int64MessageDefaultTypeInternal;
- extern Int64MessageDefaultTypeInternal _Int64Message_default_instance_;
- class MoreBytes;
- class MoreBytesDefaultTypeInternal;
- extern MoreBytesDefaultTypeInternal _MoreBytes_default_instance_;
- class MoreString;
- class MoreStringDefaultTypeInternal;
- extern MoreStringDefaultTypeInternal _MoreString_default_instance_;
- class NestedTestAllTypes;
- class NestedTestAllTypesDefaultTypeInternal;
- extern NestedTestAllTypesDefaultTypeInternal _NestedTestAllTypes_default_instance_;
- class OneBytes;
- class OneBytesDefaultTypeInternal;
- extern OneBytesDefaultTypeInternal _OneBytes_default_instance_;
- class OneString;
- class OneStringDefaultTypeInternal;
- extern OneStringDefaultTypeInternal _OneString_default_instance_;
- class OptionalGroup_extension;
- class OptionalGroup_extensionDefaultTypeInternal;
- extern OptionalGroup_extensionDefaultTypeInternal _OptionalGroup_extension_default_instance_;
- class RepeatedGroup_extension;
- class RepeatedGroup_extensionDefaultTypeInternal;
- extern RepeatedGroup_extensionDefaultTypeInternal _RepeatedGroup_extension_default_instance_;
- class SparseEnumMessage;
- class SparseEnumMessageDefaultTypeInternal;
- extern SparseEnumMessageDefaultTypeInternal _SparseEnumMessage_default_instance_;
- class TestAllExtensions;
- class TestAllExtensionsDefaultTypeInternal;
- extern TestAllExtensionsDefaultTypeInternal _TestAllExtensions_default_instance_;
- class TestAllTypes;
- class TestAllTypesDefaultTypeInternal;
- extern TestAllTypesDefaultTypeInternal _TestAllTypes_default_instance_;
- class TestAllTypes_NestedMessage;
- class TestAllTypes_NestedMessageDefaultTypeInternal;
- extern TestAllTypes_NestedMessageDefaultTypeInternal _TestAllTypes_NestedMessage_default_instance_;
- class TestAllTypes_OptionalGroup;
- class TestAllTypes_OptionalGroupDefaultTypeInternal;
- extern TestAllTypes_OptionalGroupDefaultTypeInternal _TestAllTypes_OptionalGroup_default_instance_;
- class TestAllTypes_RepeatedGroup;
- class TestAllTypes_RepeatedGroupDefaultTypeInternal;
- extern TestAllTypes_RepeatedGroupDefaultTypeInternal _TestAllTypes_RepeatedGroup_default_instance_;
- class TestCamelCaseFieldNames;
- class TestCamelCaseFieldNamesDefaultTypeInternal;
- extern TestCamelCaseFieldNamesDefaultTypeInternal _TestCamelCaseFieldNames_default_instance_;
- class TestCommentInjectionMessage;
- class TestCommentInjectionMessageDefaultTypeInternal;
- extern TestCommentInjectionMessageDefaultTypeInternal _TestCommentInjectionMessage_default_instance_;
- class TestDeprecatedFields;
- class TestDeprecatedFieldsDefaultTypeInternal;
- extern TestDeprecatedFieldsDefaultTypeInternal _TestDeprecatedFields_default_instance_;
- class TestDeprecatedMessage;
- class TestDeprecatedMessageDefaultTypeInternal;
- extern TestDeprecatedMessageDefaultTypeInternal _TestDeprecatedMessage_default_instance_;
- class TestDupFieldNumber;
- class TestDupFieldNumberDefaultTypeInternal;
- extern TestDupFieldNumberDefaultTypeInternal _TestDupFieldNumber_default_instance_;
- class TestDupFieldNumber_Bar;
- class TestDupFieldNumber_BarDefaultTypeInternal;
- extern TestDupFieldNumber_BarDefaultTypeInternal _TestDupFieldNumber_Bar_default_instance_;
- class TestDupFieldNumber_Foo;
- class TestDupFieldNumber_FooDefaultTypeInternal;
- extern TestDupFieldNumber_FooDefaultTypeInternal _TestDupFieldNumber_Foo_default_instance_;
- class TestDynamicExtensions;
- class TestDynamicExtensionsDefaultTypeInternal;
- extern TestDynamicExtensionsDefaultTypeInternal _TestDynamicExtensions_default_instance_;
- class TestDynamicExtensions_DynamicMessageType;
- class TestDynamicExtensions_DynamicMessageTypeDefaultTypeInternal;
- extern TestDynamicExtensions_DynamicMessageTypeDefaultTypeInternal _TestDynamicExtensions_DynamicMessageType_default_instance_;
- class TestEagerMessage;
- class TestEagerMessageDefaultTypeInternal;
- extern TestEagerMessageDefaultTypeInternal _TestEagerMessage_default_instance_;
- class TestEmptyMessage;
- class TestEmptyMessageDefaultTypeInternal;
- extern TestEmptyMessageDefaultTypeInternal _TestEmptyMessage_default_instance_;
- class TestEmptyMessageWithExtensions;
- class TestEmptyMessageWithExtensionsDefaultTypeInternal;
- extern TestEmptyMessageWithExtensionsDefaultTypeInternal _TestEmptyMessageWithExtensions_default_instance_;
- class TestExtensionInsideTable;
- class TestExtensionInsideTableDefaultTypeInternal;
- extern TestExtensionInsideTableDefaultTypeInternal _TestExtensionInsideTable_default_instance_;
- class TestExtensionOrderings1;
- class TestExtensionOrderings1DefaultTypeInternal;
- extern TestExtensionOrderings1DefaultTypeInternal _TestExtensionOrderings1_default_instance_;
- class TestExtensionOrderings2;
- class TestExtensionOrderings2DefaultTypeInternal;
- extern TestExtensionOrderings2DefaultTypeInternal _TestExtensionOrderings2_default_instance_;
- class TestExtensionOrderings2_TestExtensionOrderings3;
- class TestExtensionOrderings2_TestExtensionOrderings3DefaultTypeInternal;
- extern TestExtensionOrderings2_TestExtensionOrderings3DefaultTypeInternal _TestExtensionOrderings2_TestExtensionOrderings3_default_instance_;
- class TestExtremeDefaultValues;
- class TestExtremeDefaultValuesDefaultTypeInternal;
- extern TestExtremeDefaultValuesDefaultTypeInternal _TestExtremeDefaultValues_default_instance_;
- class TestFieldOrderings;
- class TestFieldOrderingsDefaultTypeInternal;
- extern TestFieldOrderingsDefaultTypeInternal _TestFieldOrderings_default_instance_;
- class TestFieldOrderings_NestedMessage;
- class TestFieldOrderings_NestedMessageDefaultTypeInternal;
- extern TestFieldOrderings_NestedMessageDefaultTypeInternal _TestFieldOrderings_NestedMessage_default_instance_;
- class TestForeignNested;
- class TestForeignNestedDefaultTypeInternal;
- extern TestForeignNestedDefaultTypeInternal _TestForeignNested_default_instance_;
- class TestGroup;
- class TestGroupDefaultTypeInternal;
- extern TestGroupDefaultTypeInternal _TestGroup_default_instance_;
- class TestGroupExtension;
- class TestGroupExtensionDefaultTypeInternal;
- extern TestGroupExtensionDefaultTypeInternal _TestGroupExtension_default_instance_;
- class TestGroup_OptionalGroup;
- class TestGroup_OptionalGroupDefaultTypeInternal;
- extern TestGroup_OptionalGroupDefaultTypeInternal _TestGroup_OptionalGroup_default_instance_;
- class TestHugeFieldNumbers;
- class TestHugeFieldNumbersDefaultTypeInternal;
- extern TestHugeFieldNumbersDefaultTypeInternal _TestHugeFieldNumbers_default_instance_;
- class TestHugeFieldNumbers_OptionalGroup;
- class TestHugeFieldNumbers_OptionalGroupDefaultTypeInternal;
- extern TestHugeFieldNumbers_OptionalGroupDefaultTypeInternal _TestHugeFieldNumbers_OptionalGroup_default_instance_;
- class TestHugeFieldNumbers_StringStringMapEntry_DoNotUse;
- class TestHugeFieldNumbers_StringStringMapEntry_DoNotUseDefaultTypeInternal;
- extern TestHugeFieldNumbers_StringStringMapEntry_DoNotUseDefaultTypeInternal _TestHugeFieldNumbers_StringStringMapEntry_DoNotUse_default_instance_;
- class TestIsInitialized;
- class TestIsInitializedDefaultTypeInternal;
- extern TestIsInitializedDefaultTypeInternal _TestIsInitialized_default_instance_;
- class TestIsInitialized_SubMessage;
- class TestIsInitialized_SubMessageDefaultTypeInternal;
- extern TestIsInitialized_SubMessageDefaultTypeInternal _TestIsInitialized_SubMessage_default_instance_;
- class TestIsInitialized_SubMessage_SubGroup;
- class TestIsInitialized_SubMessage_SubGroupDefaultTypeInternal;
- extern TestIsInitialized_SubMessage_SubGroupDefaultTypeInternal _TestIsInitialized_SubMessage_SubGroup_default_instance_;
- class TestJsonName;
- class TestJsonNameDefaultTypeInternal;
- extern TestJsonNameDefaultTypeInternal _TestJsonName_default_instance_;
- class TestLazyMessage;
- class TestLazyMessageDefaultTypeInternal;
- extern TestLazyMessageDefaultTypeInternal _TestLazyMessage_default_instance_;
- class TestMultipleExtensionRanges;
- class TestMultipleExtensionRangesDefaultTypeInternal;
- extern TestMultipleExtensionRangesDefaultTypeInternal _TestMultipleExtensionRanges_default_instance_;
- class TestMutualRecursionA;
- class TestMutualRecursionADefaultTypeInternal;
- extern TestMutualRecursionADefaultTypeInternal _TestMutualRecursionA_default_instance_;
- class TestMutualRecursionA_SubGroup;
- class TestMutualRecursionA_SubGroupDefaultTypeInternal;
- extern TestMutualRecursionA_SubGroupDefaultTypeInternal _TestMutualRecursionA_SubGroup_default_instance_;
- class TestMutualRecursionA_SubMessage;
- class TestMutualRecursionA_SubMessageDefaultTypeInternal;
- extern TestMutualRecursionA_SubMessageDefaultTypeInternal _TestMutualRecursionA_SubMessage_default_instance_;
- class TestMutualRecursionB;
- class TestMutualRecursionBDefaultTypeInternal;
- extern TestMutualRecursionBDefaultTypeInternal _TestMutualRecursionB_default_instance_;
- class TestNestedExtension;
- class TestNestedExtensionDefaultTypeInternal;
- extern TestNestedExtensionDefaultTypeInternal _TestNestedExtension_default_instance_;
- class TestNestedExtension_OptionalGroup_extension;
- class TestNestedExtension_OptionalGroup_extensionDefaultTypeInternal;
- extern TestNestedExtension_OptionalGroup_extensionDefaultTypeInternal _TestNestedExtension_OptionalGroup_extension_default_instance_;
- class TestNestedMessageHasBits;
- class TestNestedMessageHasBitsDefaultTypeInternal;
- extern TestNestedMessageHasBitsDefaultTypeInternal _TestNestedMessageHasBits_default_instance_;
- class TestNestedMessageHasBits_NestedMessage;
- class TestNestedMessageHasBits_NestedMessageDefaultTypeInternal;
- extern TestNestedMessageHasBits_NestedMessageDefaultTypeInternal _TestNestedMessageHasBits_NestedMessage_default_instance_;
- class TestOneof;
- class TestOneofDefaultTypeInternal;
- extern TestOneofDefaultTypeInternal _TestOneof_default_instance_;
- class TestOneof2;
- class TestOneof2DefaultTypeInternal;
- extern TestOneof2DefaultTypeInternal _TestOneof2_default_instance_;
- class TestOneof2_FooGroup;
- class TestOneof2_FooGroupDefaultTypeInternal;
- extern TestOneof2_FooGroupDefaultTypeInternal _TestOneof2_FooGroup_default_instance_;
- class TestOneof2_NestedMessage;
- class TestOneof2_NestedMessageDefaultTypeInternal;
- extern TestOneof2_NestedMessageDefaultTypeInternal _TestOneof2_NestedMessage_default_instance_;
- class TestOneofBackwardsCompatible;
- class TestOneofBackwardsCompatibleDefaultTypeInternal;
- extern TestOneofBackwardsCompatibleDefaultTypeInternal _TestOneofBackwardsCompatible_default_instance_;
- class TestOneofBackwardsCompatible_FooGroup;
- class TestOneofBackwardsCompatible_FooGroupDefaultTypeInternal;
- extern TestOneofBackwardsCompatible_FooGroupDefaultTypeInternal _TestOneofBackwardsCompatible_FooGroup_default_instance_;
- class TestOneof_FooGroup;
- class TestOneof_FooGroupDefaultTypeInternal;
- extern TestOneof_FooGroupDefaultTypeInternal _TestOneof_FooGroup_default_instance_;
- class TestPackedExtensions;
- class TestPackedExtensionsDefaultTypeInternal;
- extern TestPackedExtensionsDefaultTypeInternal _TestPackedExtensions_default_instance_;
- class TestPackedTypes;
- class TestPackedTypesDefaultTypeInternal;
- extern TestPackedTypesDefaultTypeInternal _TestPackedTypes_default_instance_;
- class TestParsingMerge;
- class TestParsingMergeDefaultTypeInternal;
- extern TestParsingMergeDefaultTypeInternal _TestParsingMerge_default_instance_;
- class TestParsingMerge_OptionalGroup;
- class TestParsingMerge_OptionalGroupDefaultTypeInternal;
- extern TestParsingMerge_OptionalGroupDefaultTypeInternal _TestParsingMerge_OptionalGroup_default_instance_;
- class TestParsingMerge_RepeatedFieldsGenerator;
- class TestParsingMerge_RepeatedFieldsGeneratorDefaultTypeInternal;
- extern TestParsingMerge_RepeatedFieldsGeneratorDefaultTypeInternal _TestParsingMerge_RepeatedFieldsGenerator_default_instance_;
- class TestParsingMerge_RepeatedFieldsGenerator_Group1;
- class TestParsingMerge_RepeatedFieldsGenerator_Group1DefaultTypeInternal;
- extern TestParsingMerge_RepeatedFieldsGenerator_Group1DefaultTypeInternal _TestParsingMerge_RepeatedFieldsGenerator_Group1_default_instance_;
- class TestParsingMerge_RepeatedFieldsGenerator_Group2;
- class TestParsingMerge_RepeatedFieldsGenerator_Group2DefaultTypeInternal;
- extern TestParsingMerge_RepeatedFieldsGenerator_Group2DefaultTypeInternal _TestParsingMerge_RepeatedFieldsGenerator_Group2_default_instance_;
- class TestParsingMerge_RepeatedGroup;
- class TestParsingMerge_RepeatedGroupDefaultTypeInternal;
- extern TestParsingMerge_RepeatedGroupDefaultTypeInternal _TestParsingMerge_RepeatedGroup_default_instance_;
- class TestReallyLargeTagNumber;
- class TestReallyLargeTagNumberDefaultTypeInternal;
- extern TestReallyLargeTagNumberDefaultTypeInternal _TestReallyLargeTagNumber_default_instance_;
- class TestRecursiveMessage;
- class TestRecursiveMessageDefaultTypeInternal;
- extern TestRecursiveMessageDefaultTypeInternal _TestRecursiveMessage_default_instance_;
- class TestRepeatedScalarDifferentTagSizes;
- class TestRepeatedScalarDifferentTagSizesDefaultTypeInternal;
- extern TestRepeatedScalarDifferentTagSizesDefaultTypeInternal _TestRepeatedScalarDifferentTagSizes_default_instance_;
- class TestRequired;
- class TestRequiredDefaultTypeInternal;
- extern TestRequiredDefaultTypeInternal _TestRequired_default_instance_;
- class TestRequiredForeign;
- class TestRequiredForeignDefaultTypeInternal;
- extern TestRequiredForeignDefaultTypeInternal _TestRequiredForeign_default_instance_;
- class TestRequiredMessage;
- class TestRequiredMessageDefaultTypeInternal;
- extern TestRequiredMessageDefaultTypeInternal _TestRequiredMessage_default_instance_;
- class TestRequiredOneof;
- class TestRequiredOneofDefaultTypeInternal;
- extern TestRequiredOneofDefaultTypeInternal _TestRequiredOneof_default_instance_;
- class TestRequiredOneof_NestedMessage;
- class TestRequiredOneof_NestedMessageDefaultTypeInternal;
- extern TestRequiredOneof_NestedMessageDefaultTypeInternal _TestRequiredOneof_NestedMessage_default_instance_;
- class TestReservedFields;
- class TestReservedFieldsDefaultTypeInternal;
- extern TestReservedFieldsDefaultTypeInternal _TestReservedFields_default_instance_;
- class TestUnpackedExtensions;
- class TestUnpackedExtensionsDefaultTypeInternal;
- extern TestUnpackedExtensionsDefaultTypeInternal _TestUnpackedExtensions_default_instance_;
- class TestUnpackedTypes;
- class TestUnpackedTypesDefaultTypeInternal;
- extern TestUnpackedTypesDefaultTypeInternal _TestUnpackedTypes_default_instance_;
- class Uint32Message;
- class Uint32MessageDefaultTypeInternal;
- extern Uint32MessageDefaultTypeInternal _Uint32Message_default_instance_;
- class Uint64Message;
- class Uint64MessageDefaultTypeInternal;
- extern Uint64MessageDefaultTypeInternal _Uint64Message_default_instance_;
- } // namespace protobuf_unittest
- namespace google {
- namespace protobuf {
- template<> ::protobuf_unittest::BarRequest* Arena::CreateMaybeMessage<::protobuf_unittest::BarRequest>(Arena*);
- template<> ::protobuf_unittest::BarResponse* Arena::CreateMaybeMessage<::protobuf_unittest::BarResponse>(Arena*);
- template<> ::protobuf_unittest::BoolMessage* Arena::CreateMaybeMessage<::protobuf_unittest::BoolMessage>(Arena*);
- template<> ::protobuf_unittest::FooClientMessage* Arena::CreateMaybeMessage<::protobuf_unittest::FooClientMessage>(Arena*);
- template<> ::protobuf_unittest::FooRequest* Arena::CreateMaybeMessage<::protobuf_unittest::FooRequest>(Arena*);
- template<> ::protobuf_unittest::FooResponse* Arena::CreateMaybeMessage<::protobuf_unittest::FooResponse>(Arena*);
- template<> ::protobuf_unittest::FooServerMessage* Arena::CreateMaybeMessage<::protobuf_unittest::FooServerMessage>(Arena*);
- template<> ::protobuf_unittest::ForeignMessage* Arena::CreateMaybeMessage<::protobuf_unittest::ForeignMessage>(Arena*);
- template<> ::protobuf_unittest::Int32Message* Arena::CreateMaybeMessage<::protobuf_unittest::Int32Message>(Arena*);
- template<> ::protobuf_unittest::Int64Message* Arena::CreateMaybeMessage<::protobuf_unittest::Int64Message>(Arena*);
- template<> ::protobuf_unittest::MoreBytes* Arena::CreateMaybeMessage<::protobuf_unittest::MoreBytes>(Arena*);
- template<> ::protobuf_unittest::MoreString* Arena::CreateMaybeMessage<::protobuf_unittest::MoreString>(Arena*);
- template<> ::protobuf_unittest::NestedTestAllTypes* Arena::CreateMaybeMessage<::protobuf_unittest::NestedTestAllTypes>(Arena*);
- template<> ::protobuf_unittest::OneBytes* Arena::CreateMaybeMessage<::protobuf_unittest::OneBytes>(Arena*);
- template<> ::protobuf_unittest::OneString* Arena::CreateMaybeMessage<::protobuf_unittest::OneString>(Arena*);
- template<> ::protobuf_unittest::OptionalGroup_extension* Arena::CreateMaybeMessage<::protobuf_unittest::OptionalGroup_extension>(Arena*);
- template<> ::protobuf_unittest::RepeatedGroup_extension* Arena::CreateMaybeMessage<::protobuf_unittest::RepeatedGroup_extension>(Arena*);
- template<> ::protobuf_unittest::SparseEnumMessage* Arena::CreateMaybeMessage<::protobuf_unittest::SparseEnumMessage>(Arena*);
- template<> ::protobuf_unittest::TestAllExtensions* Arena::CreateMaybeMessage<::protobuf_unittest::TestAllExtensions>(Arena*);
- template<> ::protobuf_unittest::TestAllTypes* Arena::CreateMaybeMessage<::protobuf_unittest::TestAllTypes>(Arena*);
- template<> ::protobuf_unittest::TestAllTypes_NestedMessage* Arena::CreateMaybeMessage<::protobuf_unittest::TestAllTypes_NestedMessage>(Arena*);
- template<> ::protobuf_unittest::TestAllTypes_OptionalGroup* Arena::CreateMaybeMessage<::protobuf_unittest::TestAllTypes_OptionalGroup>(Arena*);
- template<> ::protobuf_unittest::TestAllTypes_RepeatedGroup* Arena::CreateMaybeMessage<::protobuf_unittest::TestAllTypes_RepeatedGroup>(Arena*);
- template<> ::protobuf_unittest::TestCamelCaseFieldNames* Arena::CreateMaybeMessage<::protobuf_unittest::TestCamelCaseFieldNames>(Arena*);
- template<> ::protobuf_unittest::TestCommentInjectionMessage* Arena::CreateMaybeMessage<::protobuf_unittest::TestCommentInjectionMessage>(Arena*);
- template<> ::protobuf_unittest::TestDeprecatedFields* Arena::CreateMaybeMessage<::protobuf_unittest::TestDeprecatedFields>(Arena*);
- template<> ::protobuf_unittest::TestDeprecatedMessage* Arena::CreateMaybeMessage<::protobuf_unittest::TestDeprecatedMessage>(Arena*);
- template<> ::protobuf_unittest::TestDupFieldNumber* Arena::CreateMaybeMessage<::protobuf_unittest::TestDupFieldNumber>(Arena*);
- template<> ::protobuf_unittest::TestDupFieldNumber_Bar* Arena::CreateMaybeMessage<::protobuf_unittest::TestDupFieldNumber_Bar>(Arena*);
- template<> ::protobuf_unittest::TestDupFieldNumber_Foo* Arena::CreateMaybeMessage<::protobuf_unittest::TestDupFieldNumber_Foo>(Arena*);
- template<> ::protobuf_unittest::TestDynamicExtensions* Arena::CreateMaybeMessage<::protobuf_unittest::TestDynamicExtensions>(Arena*);
- template<> ::protobuf_unittest::TestDynamicExtensions_DynamicMessageType* Arena::CreateMaybeMessage<::protobuf_unittest::TestDynamicExtensions_DynamicMessageType>(Arena*);
- template<> ::protobuf_unittest::TestEagerMessage* Arena::CreateMaybeMessage<::protobuf_unittest::TestEagerMessage>(Arena*);
- template<> ::protobuf_unittest::TestEmptyMessage* Arena::CreateMaybeMessage<::protobuf_unittest::TestEmptyMessage>(Arena*);
- template<> ::protobuf_unittest::TestEmptyMessageWithExtensions* Arena::CreateMaybeMessage<::protobuf_unittest::TestEmptyMessageWithExtensions>(Arena*);
- template<> ::protobuf_unittest::TestExtensionInsideTable* Arena::CreateMaybeMessage<::protobuf_unittest::TestExtensionInsideTable>(Arena*);
- template<> ::protobuf_unittest::TestExtensionOrderings1* Arena::CreateMaybeMessage<::protobuf_unittest::TestExtensionOrderings1>(Arena*);
- template<> ::protobuf_unittest::TestExtensionOrderings2* Arena::CreateMaybeMessage<::protobuf_unittest::TestExtensionOrderings2>(Arena*);
- template<> ::protobuf_unittest::TestExtensionOrderings2_TestExtensionOrderings3* Arena::CreateMaybeMessage<::protobuf_unittest::TestExtensionOrderings2_TestExtensionOrderings3>(Arena*);
- template<> ::protobuf_unittest::TestExtremeDefaultValues* Arena::CreateMaybeMessage<::protobuf_unittest::TestExtremeDefaultValues>(Arena*);
- template<> ::protobuf_unittest::TestFieldOrderings* Arena::CreateMaybeMessage<::protobuf_unittest::TestFieldOrderings>(Arena*);
- template<> ::protobuf_unittest::TestFieldOrderings_NestedMessage* Arena::CreateMaybeMessage<::protobuf_unittest::TestFieldOrderings_NestedMessage>(Arena*);
- template<> ::protobuf_unittest::TestForeignNested* Arena::CreateMaybeMessage<::protobuf_unittest::TestForeignNested>(Arena*);
- template<> ::protobuf_unittest::TestGroup* Arena::CreateMaybeMessage<::protobuf_unittest::TestGroup>(Arena*);
- template<> ::protobuf_unittest::TestGroupExtension* Arena::CreateMaybeMessage<::protobuf_unittest::TestGroupExtension>(Arena*);
- template<> ::protobuf_unittest::TestGroup_OptionalGroup* Arena::CreateMaybeMessage<::protobuf_unittest::TestGroup_OptionalGroup>(Arena*);
- template<> ::protobuf_unittest::TestHugeFieldNumbers* Arena::CreateMaybeMessage<::protobuf_unittest::TestHugeFieldNumbers>(Arena*);
- template<> ::protobuf_unittest::TestHugeFieldNumbers_OptionalGroup* Arena::CreateMaybeMessage<::protobuf_unittest::TestHugeFieldNumbers_OptionalGroup>(Arena*);
- template<> ::protobuf_unittest::TestHugeFieldNumbers_StringStringMapEntry_DoNotUse* Arena::CreateMaybeMessage<::protobuf_unittest::TestHugeFieldNumbers_StringStringMapEntry_DoNotUse>(Arena*);
- template<> ::protobuf_unittest::TestIsInitialized* Arena::CreateMaybeMessage<::protobuf_unittest::TestIsInitialized>(Arena*);
- template<> ::protobuf_unittest::TestIsInitialized_SubMessage* Arena::CreateMaybeMessage<::protobuf_unittest::TestIsInitialized_SubMessage>(Arena*);
- template<> ::protobuf_unittest::TestIsInitialized_SubMessage_SubGroup* Arena::CreateMaybeMessage<::protobuf_unittest::TestIsInitialized_SubMessage_SubGroup>(Arena*);
- template<> ::protobuf_unittest::TestJsonName* Arena::CreateMaybeMessage<::protobuf_unittest::TestJsonName>(Arena*);
- template<> ::protobuf_unittest::TestLazyMessage* Arena::CreateMaybeMessage<::protobuf_unittest::TestLazyMessage>(Arena*);
- template<> ::protobuf_unittest::TestMultipleExtensionRanges* Arena::CreateMaybeMessage<::protobuf_unittest::TestMultipleExtensionRanges>(Arena*);
- template<> ::protobuf_unittest::TestMutualRecursionA* Arena::CreateMaybeMessage<::protobuf_unittest::TestMutualRecursionA>(Arena*);
- template<> ::protobuf_unittest::TestMutualRecursionA_SubGroup* Arena::CreateMaybeMessage<::protobuf_unittest::TestMutualRecursionA_SubGroup>(Arena*);
- template<> ::protobuf_unittest::TestMutualRecursionA_SubMessage* Arena::CreateMaybeMessage<::protobuf_unittest::TestMutualRecursionA_SubMessage>(Arena*);
- template<> ::protobuf_unittest::TestMutualRecursionB* Arena::CreateMaybeMessage<::protobuf_unittest::TestMutualRecursionB>(Arena*);
- template<> ::protobuf_unittest::TestNestedExtension* Arena::CreateMaybeMessage<::protobuf_unittest::TestNestedExtension>(Arena*);
- template<> ::protobuf_unittest::TestNestedExtension_OptionalGroup_extension* Arena::CreateMaybeMessage<::protobuf_unittest::TestNestedExtension_OptionalGroup_extension>(Arena*);
- template<> ::protobuf_unittest::TestNestedMessageHasBits* Arena::CreateMaybeMessage<::protobuf_unittest::TestNestedMessageHasBits>(Arena*);
- template<> ::protobuf_unittest::TestNestedMessageHasBits_NestedMessage* Arena::CreateMaybeMessage<::protobuf_unittest::TestNestedMessageHasBits_NestedMessage>(Arena*);
- template<> ::protobuf_unittest::TestOneof* Arena::CreateMaybeMessage<::protobuf_unittest::TestOneof>(Arena*);
- template<> ::protobuf_unittest::TestOneof2* Arena::CreateMaybeMessage<::protobuf_unittest::TestOneof2>(Arena*);
- template<> ::protobuf_unittest::TestOneof2_FooGroup* Arena::CreateMaybeMessage<::protobuf_unittest::TestOneof2_FooGroup>(Arena*);
- template<> ::protobuf_unittest::TestOneof2_NestedMessage* Arena::CreateMaybeMessage<::protobuf_unittest::TestOneof2_NestedMessage>(Arena*);
- template<> ::protobuf_unittest::TestOneofBackwardsCompatible* Arena::CreateMaybeMessage<::protobuf_unittest::TestOneofBackwardsCompatible>(Arena*);
- template<> ::protobuf_unittest::TestOneofBackwardsCompatible_FooGroup* Arena::CreateMaybeMessage<::protobuf_unittest::TestOneofBackwardsCompatible_FooGroup>(Arena*);
- template<> ::protobuf_unittest::TestOneof_FooGroup* Arena::CreateMaybeMessage<::protobuf_unittest::TestOneof_FooGroup>(Arena*);
- template<> ::protobuf_unittest::TestPackedExtensions* Arena::CreateMaybeMessage<::protobuf_unittest::TestPackedExtensions>(Arena*);
- template<> ::protobuf_unittest::TestPackedTypes* Arena::CreateMaybeMessage<::protobuf_unittest::TestPackedTypes>(Arena*);
- template<> ::protobuf_unittest::TestParsingMerge* Arena::CreateMaybeMessage<::protobuf_unittest::TestParsingMerge>(Arena*);
- template<> ::protobuf_unittest::TestParsingMerge_OptionalGroup* Arena::CreateMaybeMessage<::protobuf_unittest::TestParsingMerge_OptionalGroup>(Arena*);
- template<> ::protobuf_unittest::TestParsingMerge_RepeatedFieldsGenerator* Arena::CreateMaybeMessage<::protobuf_unittest::TestParsingMerge_RepeatedFieldsGenerator>(Arena*);
- template<> ::protobuf_unittest::TestParsingMerge_RepeatedFieldsGenerator_Group1* Arena::CreateMaybeMessage<::protobuf_unittest::TestParsingMerge_RepeatedFieldsGenerator_Group1>(Arena*);
- template<> ::protobuf_unittest::TestParsingMerge_RepeatedFieldsGenerator_Group2* Arena::CreateMaybeMessage<::protobuf_unittest::TestParsingMerge_RepeatedFieldsGenerator_Group2>(Arena*);
- template<> ::protobuf_unittest::TestParsingMerge_RepeatedGroup* Arena::CreateMaybeMessage<::protobuf_unittest::TestParsingMerge_RepeatedGroup>(Arena*);
- template<> ::protobuf_unittest::TestReallyLargeTagNumber* Arena::CreateMaybeMessage<::protobuf_unittest::TestReallyLargeTagNumber>(Arena*);
- template<> ::protobuf_unittest::TestRecursiveMessage* Arena::CreateMaybeMessage<::protobuf_unittest::TestRecursiveMessage>(Arena*);
- template<> ::protobuf_unittest::TestRepeatedScalarDifferentTagSizes* Arena::CreateMaybeMessage<::protobuf_unittest::TestRepeatedScalarDifferentTagSizes>(Arena*);
- template<> ::protobuf_unittest::TestRequired* Arena::CreateMaybeMessage<::protobuf_unittest::TestRequired>(Arena*);
- template<> ::protobuf_unittest::TestRequiredForeign* Arena::CreateMaybeMessage<::protobuf_unittest::TestRequiredForeign>(Arena*);
- template<> ::protobuf_unittest::TestRequiredMessage* Arena::CreateMaybeMessage<::protobuf_unittest::TestRequiredMessage>(Arena*);
- template<> ::protobuf_unittest::TestRequiredOneof* Arena::CreateMaybeMessage<::protobuf_unittest::TestRequiredOneof>(Arena*);
- template<> ::protobuf_unittest::TestRequiredOneof_NestedMessage* Arena::CreateMaybeMessage<::protobuf_unittest::TestRequiredOneof_NestedMessage>(Arena*);
- template<> ::protobuf_unittest::TestReservedFields* Arena::CreateMaybeMessage<::protobuf_unittest::TestReservedFields>(Arena*);
- template<> ::protobuf_unittest::TestUnpackedExtensions* Arena::CreateMaybeMessage<::protobuf_unittest::TestUnpackedExtensions>(Arena*);
- template<> ::protobuf_unittest::TestUnpackedTypes* Arena::CreateMaybeMessage<::protobuf_unittest::TestUnpackedTypes>(Arena*);
- template<> ::protobuf_unittest::Uint32Message* Arena::CreateMaybeMessage<::protobuf_unittest::Uint32Message>(Arena*);
- template<> ::protobuf_unittest::Uint64Message* Arena::CreateMaybeMessage<::protobuf_unittest::Uint64Message>(Arena*);
- } // namespace protobuf
- } // namespace google
- namespace protobuf_unittest {
- enum TestAllTypes_NestedEnum {
- TestAllTypes_NestedEnum_FOO = 1,
- TestAllTypes_NestedEnum_BAR = 2,
- TestAllTypes_NestedEnum_BAZ = 3,
- TestAllTypes_NestedEnum_NEG = -1
- };
- bool TestAllTypes_NestedEnum_IsValid(int value);
- const TestAllTypes_NestedEnum TestAllTypes_NestedEnum_NestedEnum_MIN = TestAllTypes_NestedEnum_NEG;
- const TestAllTypes_NestedEnum TestAllTypes_NestedEnum_NestedEnum_MAX = TestAllTypes_NestedEnum_BAZ;
- const int TestAllTypes_NestedEnum_NestedEnum_ARRAYSIZE = TestAllTypes_NestedEnum_NestedEnum_MAX + 1;
- const ::google::protobuf::EnumDescriptor* TestAllTypes_NestedEnum_descriptor();
- inline const ::std::string& TestAllTypes_NestedEnum_Name(TestAllTypes_NestedEnum value) {
- return ::google::protobuf::internal::NameOfEnum(
- TestAllTypes_NestedEnum_descriptor(), value);
- }
- inline bool TestAllTypes_NestedEnum_Parse(
- const ::std::string& name, TestAllTypes_NestedEnum* value) {
- return ::google::protobuf::internal::ParseNamedEnum<TestAllTypes_NestedEnum>(
- TestAllTypes_NestedEnum_descriptor(), name, value);
- }
- enum TestOneof2_NestedEnum {
- TestOneof2_NestedEnum_FOO = 1,
- TestOneof2_NestedEnum_BAR = 2,
- TestOneof2_NestedEnum_BAZ = 3
- };
- bool TestOneof2_NestedEnum_IsValid(int value);
- const TestOneof2_NestedEnum TestOneof2_NestedEnum_NestedEnum_MIN = TestOneof2_NestedEnum_FOO;
- const TestOneof2_NestedEnum TestOneof2_NestedEnum_NestedEnum_MAX = TestOneof2_NestedEnum_BAZ;
- const int TestOneof2_NestedEnum_NestedEnum_ARRAYSIZE = TestOneof2_NestedEnum_NestedEnum_MAX + 1;
- const ::google::protobuf::EnumDescriptor* TestOneof2_NestedEnum_descriptor();
- inline const ::std::string& TestOneof2_NestedEnum_Name(TestOneof2_NestedEnum value) {
- return ::google::protobuf::internal::NameOfEnum(
- TestOneof2_NestedEnum_descriptor(), value);
- }
- inline bool TestOneof2_NestedEnum_Parse(
- const ::std::string& name, TestOneof2_NestedEnum* value) {
- return ::google::protobuf::internal::ParseNamedEnum<TestOneof2_NestedEnum>(
- TestOneof2_NestedEnum_descriptor(), name, value);
- }
- enum TestDynamicExtensions_DynamicEnumType {
- TestDynamicExtensions_DynamicEnumType_DYNAMIC_FOO = 2200,
- TestDynamicExtensions_DynamicEnumType_DYNAMIC_BAR = 2201,
- TestDynamicExtensions_DynamicEnumType_DYNAMIC_BAZ = 2202
- };
- bool TestDynamicExtensions_DynamicEnumType_IsValid(int value);
- const TestDynamicExtensions_DynamicEnumType TestDynamicExtensions_DynamicEnumType_DynamicEnumType_MIN = TestDynamicExtensions_DynamicEnumType_DYNAMIC_FOO;
- const TestDynamicExtensions_DynamicEnumType TestDynamicExtensions_DynamicEnumType_DynamicEnumType_MAX = TestDynamicExtensions_DynamicEnumType_DYNAMIC_BAZ;
- const int TestDynamicExtensions_DynamicEnumType_DynamicEnumType_ARRAYSIZE = TestDynamicExtensions_DynamicEnumType_DynamicEnumType_MAX + 1;
- const ::google::protobuf::EnumDescriptor* TestDynamicExtensions_DynamicEnumType_descriptor();
- inline const ::std::string& TestDynamicExtensions_DynamicEnumType_Name(TestDynamicExtensions_DynamicEnumType value) {
- return ::google::protobuf::internal::NameOfEnum(
- TestDynamicExtensions_DynamicEnumType_descriptor(), value);
- }
- inline bool TestDynamicExtensions_DynamicEnumType_Parse(
- const ::std::string& name, TestDynamicExtensions_DynamicEnumType* value) {
- return ::google::protobuf::internal::ParseNamedEnum<TestDynamicExtensions_DynamicEnumType>(
- TestDynamicExtensions_DynamicEnumType_descriptor(), name, value);
- }
- enum ForeignEnum {
- FOREIGN_FOO = 4,
- FOREIGN_BAR = 5,
- FOREIGN_BAZ = 6
- };
- bool ForeignEnum_IsValid(int value);
- const ForeignEnum ForeignEnum_MIN = FOREIGN_FOO;
- const ForeignEnum ForeignEnum_MAX = FOREIGN_BAZ;
- const int ForeignEnum_ARRAYSIZE = ForeignEnum_MAX + 1;
- const ::google::protobuf::EnumDescriptor* ForeignEnum_descriptor();
- inline const ::std::string& ForeignEnum_Name(ForeignEnum value) {
- return ::google::protobuf::internal::NameOfEnum(
- ForeignEnum_descriptor(), value);
- }
- inline bool ForeignEnum_Parse(
- const ::std::string& name, ForeignEnum* value) {
- return ::google::protobuf::internal::ParseNamedEnum<ForeignEnum>(
- ForeignEnum_descriptor(), name, value);
- }
- enum TestEnumWithDupValue {
- FOO1 = 1,
- BAR1 = 2,
- BAZ = 3,
- FOO2 = 1,
- BAR2 = 2
- };
- bool TestEnumWithDupValue_IsValid(int value);
- const TestEnumWithDupValue TestEnumWithDupValue_MIN = FOO1;
- const TestEnumWithDupValue TestEnumWithDupValue_MAX = BAZ;
- const int TestEnumWithDupValue_ARRAYSIZE = TestEnumWithDupValue_MAX + 1;
- const ::google::protobuf::EnumDescriptor* TestEnumWithDupValue_descriptor();
- inline const ::std::string& TestEnumWithDupValue_Name(TestEnumWithDupValue value) {
- return ::google::protobuf::internal::NameOfEnum(
- TestEnumWithDupValue_descriptor(), value);
- }
- inline bool TestEnumWithDupValue_Parse(
- const ::std::string& name, TestEnumWithDupValue* value) {
- return ::google::protobuf::internal::ParseNamedEnum<TestEnumWithDupValue>(
- TestEnumWithDupValue_descriptor(), name, value);
- }
- enum TestSparseEnum {
- SPARSE_A = 123,
- SPARSE_B = 62374,
- SPARSE_C = 12589234,
- SPARSE_D = -15,
- SPARSE_E = -53452,
- SPARSE_F = 0,
- SPARSE_G = 2
- };
- bool TestSparseEnum_IsValid(int value);
- const TestSparseEnum TestSparseEnum_MIN = SPARSE_E;
- const TestSparseEnum TestSparseEnum_MAX = SPARSE_C;
- const int TestSparseEnum_ARRAYSIZE = TestSparseEnum_MAX + 1;
- const ::google::protobuf::EnumDescriptor* TestSparseEnum_descriptor();
- inline const ::std::string& TestSparseEnum_Name(TestSparseEnum value) {
- return ::google::protobuf::internal::NameOfEnum(
- TestSparseEnum_descriptor(), value);
- }
- inline bool TestSparseEnum_Parse(
- const ::std::string& name, TestSparseEnum* value) {
- return ::google::protobuf::internal::ParseNamedEnum<TestSparseEnum>(
- TestSparseEnum_descriptor(), name, value);
- }
- // ===================================================================
- class TestAllTypes_NestedMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestAllTypes.NestedMessage) */ {
- public:
- TestAllTypes_NestedMessage();
- virtual ~TestAllTypes_NestedMessage();
- TestAllTypes_NestedMessage(const TestAllTypes_NestedMessage& from);
- inline TestAllTypes_NestedMessage& operator=(const TestAllTypes_NestedMessage& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestAllTypes_NestedMessage(TestAllTypes_NestedMessage&& from) noexcept
- : TestAllTypes_NestedMessage() {
- *this = ::std::move(from);
- }
- inline TestAllTypes_NestedMessage& operator=(TestAllTypes_NestedMessage&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const TestAllTypes_NestedMessage& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestAllTypes_NestedMessage* internal_default_instance() {
- return reinterpret_cast<const TestAllTypes_NestedMessage*>(
- &_TestAllTypes_NestedMessage_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 0;
- void UnsafeArenaSwap(TestAllTypes_NestedMessage* other);
- void Swap(TestAllTypes_NestedMessage* other);
- friend void swap(TestAllTypes_NestedMessage& a, TestAllTypes_NestedMessage& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestAllTypes_NestedMessage* New() const final {
- return CreateMaybeMessage<TestAllTypes_NestedMessage>(NULL);
- }
- TestAllTypes_NestedMessage* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestAllTypes_NestedMessage>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestAllTypes_NestedMessage& from);
- void MergeFrom(const TestAllTypes_NestedMessage& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestAllTypes_NestedMessage* other);
- protected:
- explicit TestAllTypes_NestedMessage(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // optional int32 bb = 1;
- bool has_bb() const;
- void clear_bb();
- static const int kBbFieldNumber = 1;
- ::google::protobuf::int32 bb() const;
- void set_bb(::google::protobuf::int32 value);
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestAllTypes.NestedMessage)
- private:
- void set_has_bb();
- void clear_has_bb();
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- ::google::protobuf::int32 bb_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class TestAllTypes_OptionalGroup : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestAllTypes.OptionalGroup) */ {
- public:
- TestAllTypes_OptionalGroup();
- virtual ~TestAllTypes_OptionalGroup();
- TestAllTypes_OptionalGroup(const TestAllTypes_OptionalGroup& from);
- inline TestAllTypes_OptionalGroup& operator=(const TestAllTypes_OptionalGroup& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestAllTypes_OptionalGroup(TestAllTypes_OptionalGroup&& from) noexcept
- : TestAllTypes_OptionalGroup() {
- *this = ::std::move(from);
- }
- inline TestAllTypes_OptionalGroup& operator=(TestAllTypes_OptionalGroup&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const TestAllTypes_OptionalGroup& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestAllTypes_OptionalGroup* internal_default_instance() {
- return reinterpret_cast<const TestAllTypes_OptionalGroup*>(
- &_TestAllTypes_OptionalGroup_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 1;
- void UnsafeArenaSwap(TestAllTypes_OptionalGroup* other);
- void Swap(TestAllTypes_OptionalGroup* other);
- friend void swap(TestAllTypes_OptionalGroup& a, TestAllTypes_OptionalGroup& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestAllTypes_OptionalGroup* New() const final {
- return CreateMaybeMessage<TestAllTypes_OptionalGroup>(NULL);
- }
- TestAllTypes_OptionalGroup* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestAllTypes_OptionalGroup>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestAllTypes_OptionalGroup& from);
- void MergeFrom(const TestAllTypes_OptionalGroup& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestAllTypes_OptionalGroup* other);
- protected:
- explicit TestAllTypes_OptionalGroup(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // optional int32 a = 17;
- bool has_a() const;
- void clear_a();
- static const int kAFieldNumber = 17;
- ::google::protobuf::int32 a() const;
- void set_a(::google::protobuf::int32 value);
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestAllTypes.OptionalGroup)
- private:
- void set_has_a();
- void clear_has_a();
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- ::google::protobuf::int32 a_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class TestAllTypes_RepeatedGroup : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestAllTypes.RepeatedGroup) */ {
- public:
- TestAllTypes_RepeatedGroup();
- virtual ~TestAllTypes_RepeatedGroup();
- TestAllTypes_RepeatedGroup(const TestAllTypes_RepeatedGroup& from);
- inline TestAllTypes_RepeatedGroup& operator=(const TestAllTypes_RepeatedGroup& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestAllTypes_RepeatedGroup(TestAllTypes_RepeatedGroup&& from) noexcept
- : TestAllTypes_RepeatedGroup() {
- *this = ::std::move(from);
- }
- inline TestAllTypes_RepeatedGroup& operator=(TestAllTypes_RepeatedGroup&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const TestAllTypes_RepeatedGroup& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestAllTypes_RepeatedGroup* internal_default_instance() {
- return reinterpret_cast<const TestAllTypes_RepeatedGroup*>(
- &_TestAllTypes_RepeatedGroup_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 2;
- void UnsafeArenaSwap(TestAllTypes_RepeatedGroup* other);
- void Swap(TestAllTypes_RepeatedGroup* other);
- friend void swap(TestAllTypes_RepeatedGroup& a, TestAllTypes_RepeatedGroup& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestAllTypes_RepeatedGroup* New() const final {
- return CreateMaybeMessage<TestAllTypes_RepeatedGroup>(NULL);
- }
- TestAllTypes_RepeatedGroup* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestAllTypes_RepeatedGroup>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestAllTypes_RepeatedGroup& from);
- void MergeFrom(const TestAllTypes_RepeatedGroup& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestAllTypes_RepeatedGroup* other);
- protected:
- explicit TestAllTypes_RepeatedGroup(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // optional int32 a = 47;
- bool has_a() const;
- void clear_a();
- static const int kAFieldNumber = 47;
- ::google::protobuf::int32 a() const;
- void set_a(::google::protobuf::int32 value);
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestAllTypes.RepeatedGroup)
- private:
- void set_has_a();
- void clear_has_a();
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- ::google::protobuf::int32 a_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class TestAllTypes : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestAllTypes) */ {
- public:
- TestAllTypes();
- virtual ~TestAllTypes();
- TestAllTypes(const TestAllTypes& from);
- inline TestAllTypes& operator=(const TestAllTypes& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestAllTypes(TestAllTypes&& from) noexcept
- : TestAllTypes() {
- *this = ::std::move(from);
- }
- inline TestAllTypes& operator=(TestAllTypes&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const TestAllTypes& default_instance();
- enum OneofFieldCase {
- kOneofUint32 = 111,
- kOneofNestedMessage = 112,
- kOneofString = 113,
- kOneofBytes = 114,
- ONEOF_FIELD_NOT_SET = 0,
- };
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestAllTypes* internal_default_instance() {
- return reinterpret_cast<const TestAllTypes*>(
- &_TestAllTypes_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 3;
- void UnsafeArenaSwap(TestAllTypes* other);
- void Swap(TestAllTypes* other);
- friend void swap(TestAllTypes& a, TestAllTypes& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestAllTypes* New() const final {
- return CreateMaybeMessage<TestAllTypes>(NULL);
- }
- TestAllTypes* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestAllTypes>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestAllTypes& from);
- void MergeFrom(const TestAllTypes& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestAllTypes* other);
- protected:
- explicit TestAllTypes(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- typedef TestAllTypes_NestedMessage NestedMessage;
- typedef TestAllTypes_OptionalGroup OptionalGroup;
- typedef TestAllTypes_RepeatedGroup RepeatedGroup;
- typedef TestAllTypes_NestedEnum NestedEnum;
- static const NestedEnum FOO =
- TestAllTypes_NestedEnum_FOO;
- static const NestedEnum BAR =
- TestAllTypes_NestedEnum_BAR;
- static const NestedEnum BAZ =
- TestAllTypes_NestedEnum_BAZ;
- static const NestedEnum NEG =
- TestAllTypes_NestedEnum_NEG;
- static inline bool NestedEnum_IsValid(int value) {
- return TestAllTypes_NestedEnum_IsValid(value);
- }
- static const NestedEnum NestedEnum_MIN =
- TestAllTypes_NestedEnum_NestedEnum_MIN;
- static const NestedEnum NestedEnum_MAX =
- TestAllTypes_NestedEnum_NestedEnum_MAX;
- static const int NestedEnum_ARRAYSIZE =
- TestAllTypes_NestedEnum_NestedEnum_ARRAYSIZE;
- static inline const ::google::protobuf::EnumDescriptor*
- NestedEnum_descriptor() {
- return TestAllTypes_NestedEnum_descriptor();
- }
- static inline const ::std::string& NestedEnum_Name(NestedEnum value) {
- return TestAllTypes_NestedEnum_Name(value);
- }
- static inline bool NestedEnum_Parse(const ::std::string& name,
- NestedEnum* value) {
- return TestAllTypes_NestedEnum_Parse(name, value);
- }
- // accessors -------------------------------------------------------
- // repeated int32 repeated_int32 = 31;
- int repeated_int32_size() const;
- void clear_repeated_int32();
- static const int kRepeatedInt32FieldNumber = 31;
- ::google::protobuf::int32 repeated_int32(int index) const;
- void set_repeated_int32(int index, ::google::protobuf::int32 value);
- void add_repeated_int32(::google::protobuf::int32 value);
- const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
- repeated_int32() const;
- ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
- mutable_repeated_int32();
- // repeated int64 repeated_int64 = 32;
- int repeated_int64_size() const;
- void clear_repeated_int64();
- static const int kRepeatedInt64FieldNumber = 32;
- ::google::protobuf::int64 repeated_int64(int index) const;
- void set_repeated_int64(int index, ::google::protobuf::int64 value);
- void add_repeated_int64(::google::protobuf::int64 value);
- const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
- repeated_int64() const;
- ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
- mutable_repeated_int64();
- // repeated uint32 repeated_uint32 = 33;
- int repeated_uint32_size() const;
- void clear_repeated_uint32();
- static const int kRepeatedUint32FieldNumber = 33;
- ::google::protobuf::uint32 repeated_uint32(int index) const;
- void set_repeated_uint32(int index, ::google::protobuf::uint32 value);
- void add_repeated_uint32(::google::protobuf::uint32 value);
- const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
- repeated_uint32() const;
- ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
- mutable_repeated_uint32();
- // repeated uint64 repeated_uint64 = 34;
- int repeated_uint64_size() const;
- void clear_repeated_uint64();
- static const int kRepeatedUint64FieldNumber = 34;
- ::google::protobuf::uint64 repeated_uint64(int index) const;
- void set_repeated_uint64(int index, ::google::protobuf::uint64 value);
- void add_repeated_uint64(::google::protobuf::uint64 value);
- const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
- repeated_uint64() const;
- ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
- mutable_repeated_uint64();
- // repeated sint32 repeated_sint32 = 35;
- int repeated_sint32_size() const;
- void clear_repeated_sint32();
- static const int kRepeatedSint32FieldNumber = 35;
- ::google::protobuf::int32 repeated_sint32(int index) const;
- void set_repeated_sint32(int index, ::google::protobuf::int32 value);
- void add_repeated_sint32(::google::protobuf::int32 value);
- const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
- repeated_sint32() const;
- ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
- mutable_repeated_sint32();
- // repeated sint64 repeated_sint64 = 36;
- int repeated_sint64_size() const;
- void clear_repeated_sint64();
- static const int kRepeatedSint64FieldNumber = 36;
- ::google::protobuf::int64 repeated_sint64(int index) const;
- void set_repeated_sint64(int index, ::google::protobuf::int64 value);
- void add_repeated_sint64(::google::protobuf::int64 value);
- const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
- repeated_sint64() const;
- ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
- mutable_repeated_sint64();
- // repeated fixed32 repeated_fixed32 = 37;
- int repeated_fixed32_size() const;
- void clear_repeated_fixed32();
- static const int kRepeatedFixed32FieldNumber = 37;
- ::google::protobuf::uint32 repeated_fixed32(int index) const;
- void set_repeated_fixed32(int index, ::google::protobuf::uint32 value);
- void add_repeated_fixed32(::google::protobuf::uint32 value);
- const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
- repeated_fixed32() const;
- ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
- mutable_repeated_fixed32();
- // repeated fixed64 repeated_fixed64 = 38;
- int repeated_fixed64_size() const;
- void clear_repeated_fixed64();
- static const int kRepeatedFixed64FieldNumber = 38;
- ::google::protobuf::uint64 repeated_fixed64(int index) const;
- void set_repeated_fixed64(int index, ::google::protobuf::uint64 value);
- void add_repeated_fixed64(::google::protobuf::uint64 value);
- const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
- repeated_fixed64() const;
- ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
- mutable_repeated_fixed64();
- // repeated sfixed32 repeated_sfixed32 = 39;
- int repeated_sfixed32_size() const;
- void clear_repeated_sfixed32();
- static const int kRepeatedSfixed32FieldNumber = 39;
- ::google::protobuf::int32 repeated_sfixed32(int index) const;
- void set_repeated_sfixed32(int index, ::google::protobuf::int32 value);
- void add_repeated_sfixed32(::google::protobuf::int32 value);
- const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
- repeated_sfixed32() const;
- ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
- mutable_repeated_sfixed32();
- // repeated sfixed64 repeated_sfixed64 = 40;
- int repeated_sfixed64_size() const;
- void clear_repeated_sfixed64();
- static const int kRepeatedSfixed64FieldNumber = 40;
- ::google::protobuf::int64 repeated_sfixed64(int index) const;
- void set_repeated_sfixed64(int index, ::google::protobuf::int64 value);
- void add_repeated_sfixed64(::google::protobuf::int64 value);
- const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
- repeated_sfixed64() const;
- ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
- mutable_repeated_sfixed64();
- // repeated float repeated_float = 41;
- int repeated_float_size() const;
- void clear_repeated_float();
- static const int kRepeatedFloatFieldNumber = 41;
- float repeated_float(int index) const;
- void set_repeated_float(int index, float value);
- void add_repeated_float(float value);
- const ::google::protobuf::RepeatedField< float >&
- repeated_float() const;
- ::google::protobuf::RepeatedField< float >*
- mutable_repeated_float();
- // repeated double repeated_double = 42;
- int repeated_double_size() const;
- void clear_repeated_double();
- static const int kRepeatedDoubleFieldNumber = 42;
- double repeated_double(int index) const;
- void set_repeated_double(int index, double value);
- void add_repeated_double(double value);
- const ::google::protobuf::RepeatedField< double >&
- repeated_double() const;
- ::google::protobuf::RepeatedField< double >*
- mutable_repeated_double();
- // repeated bool repeated_bool = 43;
- int repeated_bool_size() const;
- void clear_repeated_bool();
- static const int kRepeatedBoolFieldNumber = 43;
- bool repeated_bool(int index) const;
- void set_repeated_bool(int index, bool value);
- void add_repeated_bool(bool value);
- const ::google::protobuf::RepeatedField< bool >&
- repeated_bool() const;
- ::google::protobuf::RepeatedField< bool >*
- mutable_repeated_bool();
- // repeated string repeated_string = 44;
- int repeated_string_size() const;
- void clear_repeated_string();
- static const int kRepeatedStringFieldNumber = 44;
- const ::std::string& repeated_string(int index) const;
- ::std::string* mutable_repeated_string(int index);
- void set_repeated_string(int index, const ::std::string& value);
- #if LANG_CXX11
- void set_repeated_string(int index, ::std::string&& value);
- #endif
- void set_repeated_string(int index, const char* value);
- void set_repeated_string(int index, const char* value, size_t size);
- ::std::string* add_repeated_string();
- void add_repeated_string(const ::std::string& value);
- #if LANG_CXX11
- void add_repeated_string(::std::string&& value);
- #endif
- void add_repeated_string(const char* value);
- void add_repeated_string(const char* value, size_t size);
- const ::google::protobuf::RepeatedPtrField< ::std::string>& repeated_string() const;
- ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_repeated_string();
- // repeated bytes repeated_bytes = 45;
- int repeated_bytes_size() const;
- void clear_repeated_bytes();
- static const int kRepeatedBytesFieldNumber = 45;
- const ::std::string& repeated_bytes(int index) const;
- ::std::string* mutable_repeated_bytes(int index);
- void set_repeated_bytes(int index, const ::std::string& value);
- #if LANG_CXX11
- void set_repeated_bytes(int index, ::std::string&& value);
- #endif
- void set_repeated_bytes(int index, const char* value);
- void set_repeated_bytes(int index, const void* value, size_t size);
- ::std::string* add_repeated_bytes();
- void add_repeated_bytes(const ::std::string& value);
- #if LANG_CXX11
- void add_repeated_bytes(::std::string&& value);
- #endif
- void add_repeated_bytes(const char* value);
- void add_repeated_bytes(const void* value, size_t size);
- const ::google::protobuf::RepeatedPtrField< ::std::string>& repeated_bytes() const;
- ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_repeated_bytes();
- // repeated group RepeatedGroup = 46 { ... };
- int repeatedgroup_size() const;
- void clear_repeatedgroup();
- static const int kRepeatedgroupFieldNumber = 46;
- ::protobuf_unittest::TestAllTypes_RepeatedGroup* mutable_repeatedgroup(int index);
- ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes_RepeatedGroup >*
- mutable_repeatedgroup();
- const ::protobuf_unittest::TestAllTypes_RepeatedGroup& repeatedgroup(int index) const;
- ::protobuf_unittest::TestAllTypes_RepeatedGroup* add_repeatedgroup();
- const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes_RepeatedGroup >&
- repeatedgroup() const;
- // repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48;
- int repeated_nested_message_size() const;
- void clear_repeated_nested_message();
- static const int kRepeatedNestedMessageFieldNumber = 48;
- ::protobuf_unittest::TestAllTypes_NestedMessage* mutable_repeated_nested_message(int index);
- ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes_NestedMessage >*
- mutable_repeated_nested_message();
- const ::protobuf_unittest::TestAllTypes_NestedMessage& repeated_nested_message(int index) const;
- ::protobuf_unittest::TestAllTypes_NestedMessage* add_repeated_nested_message();
- const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes_NestedMessage >&
- repeated_nested_message() const;
- // repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49;
- int repeated_foreign_message_size() const;
- void clear_repeated_foreign_message();
- static const int kRepeatedForeignMessageFieldNumber = 49;
- ::protobuf_unittest::ForeignMessage* mutable_repeated_foreign_message(int index);
- ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::ForeignMessage >*
- mutable_repeated_foreign_message();
- const ::protobuf_unittest::ForeignMessage& repeated_foreign_message(int index) const;
- ::protobuf_unittest::ForeignMessage* add_repeated_foreign_message();
- const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::ForeignMessage >&
- repeated_foreign_message() const;
- // repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50;
- int repeated_import_message_size() const;
- void clear_repeated_import_message();
- static const int kRepeatedImportMessageFieldNumber = 50;
- ::protobuf_unittest_import::ImportMessage* mutable_repeated_import_message(int index);
- ::google::protobuf::RepeatedPtrField< ::protobuf_unittest_import::ImportMessage >*
- mutable_repeated_import_message();
- const ::protobuf_unittest_import::ImportMessage& repeated_import_message(int index) const;
- ::protobuf_unittest_import::ImportMessage* add_repeated_import_message();
- const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest_import::ImportMessage >&
- repeated_import_message() const;
- // repeated .protobuf_unittest.TestAllTypes.NestedEnum repeated_nested_enum = 51;
- int repeated_nested_enum_size() const;
- void clear_repeated_nested_enum();
- static const int kRepeatedNestedEnumFieldNumber = 51;
- ::protobuf_unittest::TestAllTypes_NestedEnum repeated_nested_enum(int index) const;
- void set_repeated_nested_enum(int index, ::protobuf_unittest::TestAllTypes_NestedEnum value);
- void add_repeated_nested_enum(::protobuf_unittest::TestAllTypes_NestedEnum value);
- const ::google::protobuf::RepeatedField<int>& repeated_nested_enum() const;
- ::google::protobuf::RepeatedField<int>* mutable_repeated_nested_enum();
- // repeated .protobuf_unittest.ForeignEnum repeated_foreign_enum = 52;
- int repeated_foreign_enum_size() const;
- void clear_repeated_foreign_enum();
- static const int kRepeatedForeignEnumFieldNumber = 52;
- ::protobuf_unittest::ForeignEnum repeated_foreign_enum(int index) const;
- void set_repeated_foreign_enum(int index, ::protobuf_unittest::ForeignEnum value);
- void add_repeated_foreign_enum(::protobuf_unittest::ForeignEnum value);
- const ::google::protobuf::RepeatedField<int>& repeated_foreign_enum() const;
- ::google::protobuf::RepeatedField<int>* mutable_repeated_foreign_enum();
- // repeated .protobuf_unittest_import.ImportEnum repeated_import_enum = 53;
- int repeated_import_enum_size() const;
- void clear_repeated_import_enum();
- static const int kRepeatedImportEnumFieldNumber = 53;
- ::protobuf_unittest_import::ImportEnum repeated_import_enum(int index) const;
- void set_repeated_import_enum(int index, ::protobuf_unittest_import::ImportEnum value);
- void add_repeated_import_enum(::protobuf_unittest_import::ImportEnum value);
- const ::google::protobuf::RepeatedField<int>& repeated_import_enum() const;
- ::google::protobuf::RepeatedField<int>* mutable_repeated_import_enum();
- // repeated string repeated_string_piece = 54 [ctype = STRING_PIECE];
- int repeated_string_piece_size() const;
- void clear_repeated_string_piece();
- static const int kRepeatedStringPieceFieldNumber = 54;
- private:
- // Hidden due to unknown ctype option.
- const ::std::string& repeated_string_piece(int index) const;
- ::std::string* mutable_repeated_string_piece(int index);
- void set_repeated_string_piece(int index, const ::std::string& value);
- #if LANG_CXX11
- void set_repeated_string_piece(int index, ::std::string&& value);
- #endif
- void set_repeated_string_piece(int index, const char* value);
- void set_repeated_string_piece(int index, const char* value, size_t size);
- ::std::string* add_repeated_string_piece();
- void add_repeated_string_piece(const ::std::string& value);
- #if LANG_CXX11
- void add_repeated_string_piece(::std::string&& value);
- #endif
- void add_repeated_string_piece(const char* value);
- void add_repeated_string_piece(const char* value, size_t size);
- const ::google::protobuf::RepeatedPtrField< ::std::string>& repeated_string_piece() const;
- ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_repeated_string_piece();
- public:
- // repeated string repeated_cord = 55 [ctype = CORD];
- int repeated_cord_size() const;
- void clear_repeated_cord();
- static const int kRepeatedCordFieldNumber = 55;
- private:
- // Hidden due to unknown ctype option.
- const ::std::string& repeated_cord(int index) const;
- ::std::string* mutable_repeated_cord(int index);
- void set_repeated_cord(int index, const ::std::string& value);
- #if LANG_CXX11
- void set_repeated_cord(int index, ::std::string&& value);
- #endif
- void set_repeated_cord(int index, const char* value);
- void set_repeated_cord(int index, const char* value, size_t size);
- ::std::string* add_repeated_cord();
- void add_repeated_cord(const ::std::string& value);
- #if LANG_CXX11
- void add_repeated_cord(::std::string&& value);
- #endif
- void add_repeated_cord(const char* value);
- void add_repeated_cord(const char* value, size_t size);
- const ::google::protobuf::RepeatedPtrField< ::std::string>& repeated_cord() const;
- ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_repeated_cord();
- public:
- // repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_lazy_message = 57 [lazy = true];
- int repeated_lazy_message_size() const;
- void clear_repeated_lazy_message();
- static const int kRepeatedLazyMessageFieldNumber = 57;
- ::protobuf_unittest::TestAllTypes_NestedMessage* mutable_repeated_lazy_message(int index);
- ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes_NestedMessage >*
- mutable_repeated_lazy_message();
- const ::protobuf_unittest::TestAllTypes_NestedMessage& repeated_lazy_message(int index) const;
- ::protobuf_unittest::TestAllTypes_NestedMessage* add_repeated_lazy_message();
- const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes_NestedMessage >&
- repeated_lazy_message() const;
- // optional string optional_string = 14;
- bool has_optional_string() const;
- void clear_optional_string();
- static const int kOptionalStringFieldNumber = 14;
- const ::std::string& optional_string() const;
- void set_optional_string(const ::std::string& value);
- #if LANG_CXX11
- void set_optional_string(::std::string&& value);
- #endif
- void set_optional_string(const char* value);
- void set_optional_string(const char* value, size_t size);
- ::std::string* mutable_optional_string();
- ::std::string* release_optional_string();
- void set_allocated_optional_string(::std::string* optional_string);
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- ::std::string* unsafe_arena_release_optional_string();
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- void unsafe_arena_set_allocated_optional_string(
- ::std::string* optional_string);
- // optional bytes optional_bytes = 15;
- bool has_optional_bytes() const;
- void clear_optional_bytes();
- static const int kOptionalBytesFieldNumber = 15;
- const ::std::string& optional_bytes() const;
- void set_optional_bytes(const ::std::string& value);
- #if LANG_CXX11
- void set_optional_bytes(::std::string&& value);
- #endif
- void set_optional_bytes(const char* value);
- void set_optional_bytes(const void* value, size_t size);
- ::std::string* mutable_optional_bytes();
- ::std::string* release_optional_bytes();
- void set_allocated_optional_bytes(::std::string* optional_bytes);
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- ::std::string* unsafe_arena_release_optional_bytes();
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- void unsafe_arena_set_allocated_optional_bytes(
- ::std::string* optional_bytes);
- // optional string optional_string_piece = 24 [ctype = STRING_PIECE];
- bool has_optional_string_piece() const;
- void clear_optional_string_piece();
- static const int kOptionalStringPieceFieldNumber = 24;
- private:
- // Hidden due to unknown ctype option.
- const ::std::string& optional_string_piece() const;
- void set_optional_string_piece(const ::std::string& value);
- #if LANG_CXX11
- void set_optional_string_piece(::std::string&& value);
- #endif
- void set_optional_string_piece(const char* value);
- void set_optional_string_piece(const char* value, size_t size);
- ::std::string* mutable_optional_string_piece();
- ::std::string* release_optional_string_piece();
- void set_allocated_optional_string_piece(::std::string* optional_string_piece);
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- ::std::string* unsafe_arena_release_optional_string_piece();
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- void unsafe_arena_set_allocated_optional_string_piece(
- ::std::string* optional_string_piece);
- public:
- // optional string optional_cord = 25 [ctype = CORD];
- bool has_optional_cord() const;
- void clear_optional_cord();
- static const int kOptionalCordFieldNumber = 25;
- private:
- // Hidden due to unknown ctype option.
- const ::std::string& optional_cord() const;
- void set_optional_cord(const ::std::string& value);
- #if LANG_CXX11
- void set_optional_cord(::std::string&& value);
- #endif
- void set_optional_cord(const char* value);
- void set_optional_cord(const char* value, size_t size);
- ::std::string* mutable_optional_cord();
- ::std::string* release_optional_cord();
- void set_allocated_optional_cord(::std::string* optional_cord);
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- ::std::string* unsafe_arena_release_optional_cord();
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- void unsafe_arena_set_allocated_optional_cord(
- ::std::string* optional_cord);
- public:
- // optional string default_string = 74 [default = "hello"];
- bool has_default_string() const;
- void clear_default_string();
- static const int kDefaultStringFieldNumber = 74;
- const ::std::string& default_string() const;
- void set_default_string(const ::std::string& value);
- #if LANG_CXX11
- void set_default_string(::std::string&& value);
- #endif
- void set_default_string(const char* value);
- void set_default_string(const char* value, size_t size);
- ::std::string* mutable_default_string();
- ::std::string* release_default_string();
- void set_allocated_default_string(::std::string* default_string);
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- ::std::string* unsafe_arena_release_default_string();
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- void unsafe_arena_set_allocated_default_string(
- ::std::string* default_string);
- // optional bytes default_bytes = 75 [default = "world"];
- bool has_default_bytes() const;
- void clear_default_bytes();
- static const int kDefaultBytesFieldNumber = 75;
- const ::std::string& default_bytes() const;
- void set_default_bytes(const ::std::string& value);
- #if LANG_CXX11
- void set_default_bytes(::std::string&& value);
- #endif
- void set_default_bytes(const char* value);
- void set_default_bytes(const void* value, size_t size);
- ::std::string* mutable_default_bytes();
- ::std::string* release_default_bytes();
- void set_allocated_default_bytes(::std::string* default_bytes);
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- ::std::string* unsafe_arena_release_default_bytes();
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- void unsafe_arena_set_allocated_default_bytes(
- ::std::string* default_bytes);
- // optional string default_string_piece = 84 [default = "abc", ctype = STRING_PIECE];
- bool has_default_string_piece() const;
- void clear_default_string_piece();
- static const int kDefaultStringPieceFieldNumber = 84;
- private:
- // Hidden due to unknown ctype option.
- const ::std::string& default_string_piece() const;
- void set_default_string_piece(const ::std::string& value);
- #if LANG_CXX11
- void set_default_string_piece(::std::string&& value);
- #endif
- void set_default_string_piece(const char* value);
- void set_default_string_piece(const char* value, size_t size);
- ::std::string* mutable_default_string_piece();
- ::std::string* release_default_string_piece();
- void set_allocated_default_string_piece(::std::string* default_string_piece);
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- ::std::string* unsafe_arena_release_default_string_piece();
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- void unsafe_arena_set_allocated_default_string_piece(
- ::std::string* default_string_piece);
- public:
- // optional string default_cord = 85 [default = "123", ctype = CORD];
- bool has_default_cord() const;
- void clear_default_cord();
- static const int kDefaultCordFieldNumber = 85;
- private:
- // Hidden due to unknown ctype option.
- const ::std::string& default_cord() const;
- void set_default_cord(const ::std::string& value);
- #if LANG_CXX11
- void set_default_cord(::std::string&& value);
- #endif
- void set_default_cord(const char* value);
- void set_default_cord(const char* value, size_t size);
- ::std::string* mutable_default_cord();
- ::std::string* release_default_cord();
- void set_allocated_default_cord(::std::string* default_cord);
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- ::std::string* unsafe_arena_release_default_cord();
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- void unsafe_arena_set_allocated_default_cord(
- ::std::string* default_cord);
- public:
- // optional group OptionalGroup = 16 { ... };
- bool has_optionalgroup() const;
- void clear_optionalgroup();
- static const int kOptionalgroupFieldNumber = 16;
- private:
- const ::protobuf_unittest::TestAllTypes_OptionalGroup& _internal_optionalgroup() const;
- public:
- const ::protobuf_unittest::TestAllTypes_OptionalGroup& optionalgroup() const;
- ::protobuf_unittest::TestAllTypes_OptionalGroup* release_optionalgroup();
- ::protobuf_unittest::TestAllTypes_OptionalGroup* mutable_optionalgroup();
- void set_allocated_optionalgroup(::protobuf_unittest::TestAllTypes_OptionalGroup* optionalgroup);
- void unsafe_arena_set_allocated_optionalgroup(
- ::protobuf_unittest::TestAllTypes_OptionalGroup* optionalgroup);
- ::protobuf_unittest::TestAllTypes_OptionalGroup* unsafe_arena_release_optionalgroup();
- // optional .protobuf_unittest.TestAllTypes.NestedMessage optional_nested_message = 18;
- bool has_optional_nested_message() const;
- void clear_optional_nested_message();
- static const int kOptionalNestedMessageFieldNumber = 18;
- private:
- const ::protobuf_unittest::TestAllTypes_NestedMessage& _internal_optional_nested_message() const;
- public:
- const ::protobuf_unittest::TestAllTypes_NestedMessage& optional_nested_message() const;
- ::protobuf_unittest::TestAllTypes_NestedMessage* release_optional_nested_message();
- ::protobuf_unittest::TestAllTypes_NestedMessage* mutable_optional_nested_message();
- void set_allocated_optional_nested_message(::protobuf_unittest::TestAllTypes_NestedMessage* optional_nested_message);
- void unsafe_arena_set_allocated_optional_nested_message(
- ::protobuf_unittest::TestAllTypes_NestedMessage* optional_nested_message);
- ::protobuf_unittest::TestAllTypes_NestedMessage* unsafe_arena_release_optional_nested_message();
- // optional .protobuf_unittest.ForeignMessage optional_foreign_message = 19;
- bool has_optional_foreign_message() const;
- void clear_optional_foreign_message();
- static const int kOptionalForeignMessageFieldNumber = 19;
- private:
- const ::protobuf_unittest::ForeignMessage& _internal_optional_foreign_message() const;
- public:
- const ::protobuf_unittest::ForeignMessage& optional_foreign_message() const;
- ::protobuf_unittest::ForeignMessage* release_optional_foreign_message();
- ::protobuf_unittest::ForeignMessage* mutable_optional_foreign_message();
- void set_allocated_optional_foreign_message(::protobuf_unittest::ForeignMessage* optional_foreign_message);
- void unsafe_arena_set_allocated_optional_foreign_message(
- ::protobuf_unittest::ForeignMessage* optional_foreign_message);
- ::protobuf_unittest::ForeignMessage* unsafe_arena_release_optional_foreign_message();
- // optional .protobuf_unittest_import.ImportMessage optional_import_message = 20;
- bool has_optional_import_message() const;
- void clear_optional_import_message();
- static const int kOptionalImportMessageFieldNumber = 20;
- private:
- const ::protobuf_unittest_import::ImportMessage& _internal_optional_import_message() const;
- public:
- const ::protobuf_unittest_import::ImportMessage& optional_import_message() const;
- ::protobuf_unittest_import::ImportMessage* release_optional_import_message();
- ::protobuf_unittest_import::ImportMessage* mutable_optional_import_message();
- void set_allocated_optional_import_message(::protobuf_unittest_import::ImportMessage* optional_import_message);
- void unsafe_arena_set_allocated_optional_import_message(
- ::protobuf_unittest_import::ImportMessage* optional_import_message);
- ::protobuf_unittest_import::ImportMessage* unsafe_arena_release_optional_import_message();
- // optional .protobuf_unittest_import.PublicImportMessage optional_public_import_message = 26;
- bool has_optional_public_import_message() const;
- void clear_optional_public_import_message();
- static const int kOptionalPublicImportMessageFieldNumber = 26;
- private:
- const ::protobuf_unittest_import::PublicImportMessage& _internal_optional_public_import_message() const;
- public:
- const ::protobuf_unittest_import::PublicImportMessage& optional_public_import_message() const;
- ::protobuf_unittest_import::PublicImportMessage* release_optional_public_import_message();
- ::protobuf_unittest_import::PublicImportMessage* mutable_optional_public_import_message();
- void set_allocated_optional_public_import_message(::protobuf_unittest_import::PublicImportMessage* optional_public_import_message);
- void unsafe_arena_set_allocated_optional_public_import_message(
- ::protobuf_unittest_import::PublicImportMessage* optional_public_import_message);
- ::protobuf_unittest_import::PublicImportMessage* unsafe_arena_release_optional_public_import_message();
- // optional .protobuf_unittest.TestAllTypes.NestedMessage optional_lazy_message = 27 [lazy = true];
- bool has_optional_lazy_message() const;
- void clear_optional_lazy_message();
- static const int kOptionalLazyMessageFieldNumber = 27;
- private:
- const ::protobuf_unittest::TestAllTypes_NestedMessage& _internal_optional_lazy_message() const;
- public:
- const ::protobuf_unittest::TestAllTypes_NestedMessage& optional_lazy_message() const;
- ::protobuf_unittest::TestAllTypes_NestedMessage* release_optional_lazy_message();
- ::protobuf_unittest::TestAllTypes_NestedMessage* mutable_optional_lazy_message();
- void set_allocated_optional_lazy_message(::protobuf_unittest::TestAllTypes_NestedMessage* optional_lazy_message);
- void unsafe_arena_set_allocated_optional_lazy_message(
- ::protobuf_unittest::TestAllTypes_NestedMessage* optional_lazy_message);
- ::protobuf_unittest::TestAllTypes_NestedMessage* unsafe_arena_release_optional_lazy_message();
- // optional int64 optional_int64 = 2;
- bool has_optional_int64() const;
- void clear_optional_int64();
- static const int kOptionalInt64FieldNumber = 2;
- ::google::protobuf::int64 optional_int64() const;
- void set_optional_int64(::google::protobuf::int64 value);
- // optional int32 optional_int32 = 1;
- bool has_optional_int32() const;
- void clear_optional_int32();
- static const int kOptionalInt32FieldNumber = 1;
- ::google::protobuf::int32 optional_int32() const;
- void set_optional_int32(::google::protobuf::int32 value);
- // optional uint32 optional_uint32 = 3;
- bool has_optional_uint32() const;
- void clear_optional_uint32();
- static const int kOptionalUint32FieldNumber = 3;
- ::google::protobuf::uint32 optional_uint32() const;
- void set_optional_uint32(::google::protobuf::uint32 value);
- // optional uint64 optional_uint64 = 4;
- bool has_optional_uint64() const;
- void clear_optional_uint64();
- static const int kOptionalUint64FieldNumber = 4;
- ::google::protobuf::uint64 optional_uint64() const;
- void set_optional_uint64(::google::protobuf::uint64 value);
- // optional sint64 optional_sint64 = 6;
- bool has_optional_sint64() const;
- void clear_optional_sint64();
- static const int kOptionalSint64FieldNumber = 6;
- ::google::protobuf::int64 optional_sint64() const;
- void set_optional_sint64(::google::protobuf::int64 value);
- // optional sint32 optional_sint32 = 5;
- bool has_optional_sint32() const;
- void clear_optional_sint32();
- static const int kOptionalSint32FieldNumber = 5;
- ::google::protobuf::int32 optional_sint32() const;
- void set_optional_sint32(::google::protobuf::int32 value);
- // optional fixed32 optional_fixed32 = 7;
- bool has_optional_fixed32() const;
- void clear_optional_fixed32();
- static const int kOptionalFixed32FieldNumber = 7;
- ::google::protobuf::uint32 optional_fixed32() const;
- void set_optional_fixed32(::google::protobuf::uint32 value);
- // optional fixed64 optional_fixed64 = 8;
- bool has_optional_fixed64() const;
- void clear_optional_fixed64();
- static const int kOptionalFixed64FieldNumber = 8;
- ::google::protobuf::uint64 optional_fixed64() const;
- void set_optional_fixed64(::google::protobuf::uint64 value);
- // optional sfixed64 optional_sfixed64 = 10;
- bool has_optional_sfixed64() const;
- void clear_optional_sfixed64();
- static const int kOptionalSfixed64FieldNumber = 10;
- ::google::protobuf::int64 optional_sfixed64() const;
- void set_optional_sfixed64(::google::protobuf::int64 value);
- // optional sfixed32 optional_sfixed32 = 9;
- bool has_optional_sfixed32() const;
- void clear_optional_sfixed32();
- static const int kOptionalSfixed32FieldNumber = 9;
- ::google::protobuf::int32 optional_sfixed32() const;
- void set_optional_sfixed32(::google::protobuf::int32 value);
- // optional float optional_float = 11;
- bool has_optional_float() const;
- void clear_optional_float();
- static const int kOptionalFloatFieldNumber = 11;
- float optional_float() const;
- void set_optional_float(float value);
- // optional double optional_double = 12;
- bool has_optional_double() const;
- void clear_optional_double();
- static const int kOptionalDoubleFieldNumber = 12;
- double optional_double() const;
- void set_optional_double(double value);
- // optional bool optional_bool = 13;
- bool has_optional_bool() const;
- void clear_optional_bool();
- static const int kOptionalBoolFieldNumber = 13;
- bool optional_bool() const;
- void set_optional_bool(bool value);
- // optional .protobuf_unittest_import.ImportEnum default_import_enum = 83 [default = IMPORT_BAR];
- bool has_default_import_enum() const;
- void clear_default_import_enum();
- static const int kDefaultImportEnumFieldNumber = 83;
- ::protobuf_unittest_import::ImportEnum default_import_enum() const;
- void set_default_import_enum(::protobuf_unittest_import::ImportEnum value);
- // optional .protobuf_unittest.TestAllTypes.NestedEnum optional_nested_enum = 21;
- bool has_optional_nested_enum() const;
- void clear_optional_nested_enum();
- static const int kOptionalNestedEnumFieldNumber = 21;
- ::protobuf_unittest::TestAllTypes_NestedEnum optional_nested_enum() const;
- void set_optional_nested_enum(::protobuf_unittest::TestAllTypes_NestedEnum value);
- // optional .protobuf_unittest.ForeignEnum optional_foreign_enum = 22;
- bool has_optional_foreign_enum() const;
- void clear_optional_foreign_enum();
- static const int kOptionalForeignEnumFieldNumber = 22;
- ::protobuf_unittest::ForeignEnum optional_foreign_enum() const;
- void set_optional_foreign_enum(::protobuf_unittest::ForeignEnum value);
- // optional .protobuf_unittest_import.ImportEnum optional_import_enum = 23;
- bool has_optional_import_enum() const;
- void clear_optional_import_enum();
- static const int kOptionalImportEnumFieldNumber = 23;
- ::protobuf_unittest_import::ImportEnum optional_import_enum() const;
- void set_optional_import_enum(::protobuf_unittest_import::ImportEnum value);
- // optional int32 default_int32 = 61 [default = 41];
- bool has_default_int32() const;
- void clear_default_int32();
- static const int kDefaultInt32FieldNumber = 61;
- ::google::protobuf::int32 default_int32() const;
- void set_default_int32(::google::protobuf::int32 value);
- // optional int64 default_int64 = 62 [default = 42];
- bool has_default_int64() const;
- void clear_default_int64();
- static const int kDefaultInt64FieldNumber = 62;
- ::google::protobuf::int64 default_int64() const;
- void set_default_int64(::google::protobuf::int64 value);
- // optional uint64 default_uint64 = 64 [default = 44];
- bool has_default_uint64() const;
- void clear_default_uint64();
- static const int kDefaultUint64FieldNumber = 64;
- ::google::protobuf::uint64 default_uint64() const;
- void set_default_uint64(::google::protobuf::uint64 value);
- // optional uint32 default_uint32 = 63 [default = 43];
- bool has_default_uint32() const;
- void clear_default_uint32();
- static const int kDefaultUint32FieldNumber = 63;
- ::google::protobuf::uint32 default_uint32() const;
- void set_default_uint32(::google::protobuf::uint32 value);
- // optional sint32 default_sint32 = 65 [default = -45];
- bool has_default_sint32() const;
- void clear_default_sint32();
- static const int kDefaultSint32FieldNumber = 65;
- ::google::protobuf::int32 default_sint32() const;
- void set_default_sint32(::google::protobuf::int32 value);
- // optional sint64 default_sint64 = 66 [default = 46];
- bool has_default_sint64() const;
- void clear_default_sint64();
- static const int kDefaultSint64FieldNumber = 66;
- ::google::protobuf::int64 default_sint64() const;
- void set_default_sint64(::google::protobuf::int64 value);
- // optional fixed64 default_fixed64 = 68 [default = 48];
- bool has_default_fixed64() const;
- void clear_default_fixed64();
- static const int kDefaultFixed64FieldNumber = 68;
- ::google::protobuf::uint64 default_fixed64() const;
- void set_default_fixed64(::google::protobuf::uint64 value);
- // optional fixed32 default_fixed32 = 67 [default = 47];
- bool has_default_fixed32() const;
- void clear_default_fixed32();
- static const int kDefaultFixed32FieldNumber = 67;
- ::google::protobuf::uint32 default_fixed32() const;
- void set_default_fixed32(::google::protobuf::uint32 value);
- // optional sfixed32 default_sfixed32 = 69 [default = 49];
- bool has_default_sfixed32() const;
- void clear_default_sfixed32();
- static const int kDefaultSfixed32FieldNumber = 69;
- ::google::protobuf::int32 default_sfixed32() const;
- void set_default_sfixed32(::google::protobuf::int32 value);
- // optional sfixed64 default_sfixed64 = 70 [default = -50];
- bool has_default_sfixed64() const;
- void clear_default_sfixed64();
- static const int kDefaultSfixed64FieldNumber = 70;
- ::google::protobuf::int64 default_sfixed64() const;
- void set_default_sfixed64(::google::protobuf::int64 value);
- // optional double default_double = 72 [default = 52000];
- bool has_default_double() const;
- void clear_default_double();
- static const int kDefaultDoubleFieldNumber = 72;
- double default_double() const;
- void set_default_double(double value);
- // optional float default_float = 71 [default = 51.5];
- bool has_default_float() const;
- void clear_default_float();
- static const int kDefaultFloatFieldNumber = 71;
- float default_float() const;
- void set_default_float(float value);
- // optional bool default_bool = 73 [default = true];
- bool has_default_bool() const;
- void clear_default_bool();
- static const int kDefaultBoolFieldNumber = 73;
- bool default_bool() const;
- void set_default_bool(bool value);
- // optional .protobuf_unittest.TestAllTypes.NestedEnum default_nested_enum = 81 [default = BAR];
- bool has_default_nested_enum() const;
- void clear_default_nested_enum();
- static const int kDefaultNestedEnumFieldNumber = 81;
- ::protobuf_unittest::TestAllTypes_NestedEnum default_nested_enum() const;
- void set_default_nested_enum(::protobuf_unittest::TestAllTypes_NestedEnum value);
- // optional .protobuf_unittest.ForeignEnum default_foreign_enum = 82 [default = FOREIGN_BAR];
- bool has_default_foreign_enum() const;
- void clear_default_foreign_enum();
- static const int kDefaultForeignEnumFieldNumber = 82;
- ::protobuf_unittest::ForeignEnum default_foreign_enum() const;
- void set_default_foreign_enum(::protobuf_unittest::ForeignEnum value);
- // optional uint32 oneof_uint32 = 111;
- bool has_oneof_uint32() const;
- void clear_oneof_uint32();
- static const int kOneofUint32FieldNumber = 111;
- ::google::protobuf::uint32 oneof_uint32() const;
- void set_oneof_uint32(::google::protobuf::uint32 value);
- // optional .protobuf_unittest.TestAllTypes.NestedMessage oneof_nested_message = 112;
- bool has_oneof_nested_message() const;
- void clear_oneof_nested_message();
- static const int kOneofNestedMessageFieldNumber = 112;
- private:
- const ::protobuf_unittest::TestAllTypes_NestedMessage& _internal_oneof_nested_message() const;
- public:
- const ::protobuf_unittest::TestAllTypes_NestedMessage& oneof_nested_message() const;
- ::protobuf_unittest::TestAllTypes_NestedMessage* release_oneof_nested_message();
- ::protobuf_unittest::TestAllTypes_NestedMessage* mutable_oneof_nested_message();
- void set_allocated_oneof_nested_message(::protobuf_unittest::TestAllTypes_NestedMessage* oneof_nested_message);
- void unsafe_arena_set_allocated_oneof_nested_message(
- ::protobuf_unittest::TestAllTypes_NestedMessage* oneof_nested_message);
- ::protobuf_unittest::TestAllTypes_NestedMessage* unsafe_arena_release_oneof_nested_message();
- // optional string oneof_string = 113;
- bool has_oneof_string() const;
- void clear_oneof_string();
- static const int kOneofStringFieldNumber = 113;
- const ::std::string& oneof_string() const;
- void set_oneof_string(const ::std::string& value);
- #if LANG_CXX11
- void set_oneof_string(::std::string&& value);
- #endif
- void set_oneof_string(const char* value);
- void set_oneof_string(const char* value, size_t size);
- ::std::string* mutable_oneof_string();
- ::std::string* release_oneof_string();
- void set_allocated_oneof_string(::std::string* oneof_string);
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- ::std::string* unsafe_arena_release_oneof_string();
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- void unsafe_arena_set_allocated_oneof_string(
- ::std::string* oneof_string);
- // optional bytes oneof_bytes = 114;
- bool has_oneof_bytes() const;
- void clear_oneof_bytes();
- static const int kOneofBytesFieldNumber = 114;
- const ::std::string& oneof_bytes() const;
- void set_oneof_bytes(const ::std::string& value);
- #if LANG_CXX11
- void set_oneof_bytes(::std::string&& value);
- #endif
- void set_oneof_bytes(const char* value);
- void set_oneof_bytes(const void* value, size_t size);
- ::std::string* mutable_oneof_bytes();
- ::std::string* release_oneof_bytes();
- void set_allocated_oneof_bytes(::std::string* oneof_bytes);
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- ::std::string* unsafe_arena_release_oneof_bytes();
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- void unsafe_arena_set_allocated_oneof_bytes(
- ::std::string* oneof_bytes);
- void clear_oneof_field();
- OneofFieldCase oneof_field_case() const;
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestAllTypes)
- private:
- void set_has_optional_int32();
- void clear_has_optional_int32();
- void set_has_optional_int64();
- void clear_has_optional_int64();
- void set_has_optional_uint32();
- void clear_has_optional_uint32();
- void set_has_optional_uint64();
- void clear_has_optional_uint64();
- void set_has_optional_sint32();
- void clear_has_optional_sint32();
- void set_has_optional_sint64();
- void clear_has_optional_sint64();
- void set_has_optional_fixed32();
- void clear_has_optional_fixed32();
- void set_has_optional_fixed64();
- void clear_has_optional_fixed64();
- void set_has_optional_sfixed32();
- void clear_has_optional_sfixed32();
- void set_has_optional_sfixed64();
- void clear_has_optional_sfixed64();
- void set_has_optional_float();
- void clear_has_optional_float();
- void set_has_optional_double();
- void clear_has_optional_double();
- void set_has_optional_bool();
- void clear_has_optional_bool();
- void set_has_optional_string();
- void clear_has_optional_string();
- void set_has_optional_bytes();
- void clear_has_optional_bytes();
- void set_has_optionalgroup();
- void clear_has_optionalgroup();
- void set_has_optional_nested_message();
- void clear_has_optional_nested_message();
- void set_has_optional_foreign_message();
- void clear_has_optional_foreign_message();
- void set_has_optional_import_message();
- void clear_has_optional_import_message();
- void set_has_optional_nested_enum();
- void clear_has_optional_nested_enum();
- void set_has_optional_foreign_enum();
- void clear_has_optional_foreign_enum();
- void set_has_optional_import_enum();
- void clear_has_optional_import_enum();
- void set_has_optional_string_piece();
- void clear_has_optional_string_piece();
- void set_has_optional_cord();
- void clear_has_optional_cord();
- void set_has_optional_public_import_message();
- void clear_has_optional_public_import_message();
- void set_has_optional_lazy_message();
- void clear_has_optional_lazy_message();
- void set_has_default_int32();
- void clear_has_default_int32();
- void set_has_default_int64();
- void clear_has_default_int64();
- void set_has_default_uint32();
- void clear_has_default_uint32();
- void set_has_default_uint64();
- void clear_has_default_uint64();
- void set_has_default_sint32();
- void clear_has_default_sint32();
- void set_has_default_sint64();
- void clear_has_default_sint64();
- void set_has_default_fixed32();
- void clear_has_default_fixed32();
- void set_has_default_fixed64();
- void clear_has_default_fixed64();
- void set_has_default_sfixed32();
- void clear_has_default_sfixed32();
- void set_has_default_sfixed64();
- void clear_has_default_sfixed64();
- void set_has_default_float();
- void clear_has_default_float();
- void set_has_default_double();
- void clear_has_default_double();
- void set_has_default_bool();
- void clear_has_default_bool();
- void set_has_default_string();
- void clear_has_default_string();
- void set_has_default_bytes();
- void clear_has_default_bytes();
- void set_has_default_nested_enum();
- void clear_has_default_nested_enum();
- void set_has_default_foreign_enum();
- void clear_has_default_foreign_enum();
- void set_has_default_import_enum();
- void clear_has_default_import_enum();
- void set_has_default_string_piece();
- void clear_has_default_string_piece();
- void set_has_default_cord();
- void clear_has_default_cord();
- void set_has_oneof_uint32();
- void set_has_oneof_nested_message();
- void set_has_oneof_string();
- void set_has_oneof_bytes();
- inline bool has_oneof_field() const;
- inline void clear_has_oneof_field();
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<2> _has_bits_;
- ::google::protobuf::RepeatedField< ::google::protobuf::int32 > repeated_int32_;
- ::google::protobuf::RepeatedField< ::google::protobuf::int64 > repeated_int64_;
- ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > repeated_uint32_;
- ::google::protobuf::RepeatedField< ::google::protobuf::uint64 > repeated_uint64_;
- ::google::protobuf::RepeatedField< ::google::protobuf::int32 > repeated_sint32_;
- ::google::protobuf::RepeatedField< ::google::protobuf::int64 > repeated_sint64_;
- ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > repeated_fixed32_;
- ::google::protobuf::RepeatedField< ::google::protobuf::uint64 > repeated_fixed64_;
- ::google::protobuf::RepeatedField< ::google::protobuf::int32 > repeated_sfixed32_;
- ::google::protobuf::RepeatedField< ::google::protobuf::int64 > repeated_sfixed64_;
- ::google::protobuf::RepeatedField< float > repeated_float_;
- ::google::protobuf::RepeatedField< double > repeated_double_;
- ::google::protobuf::RepeatedField< bool > repeated_bool_;
- ::google::protobuf::RepeatedPtrField< ::std::string> repeated_string_;
- ::google::protobuf::RepeatedPtrField< ::std::string> repeated_bytes_;
- ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes_RepeatedGroup > repeatedgroup_;
- ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes_NestedMessage > repeated_nested_message_;
- ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::ForeignMessage > repeated_foreign_message_;
- ::google::protobuf::RepeatedPtrField< ::protobuf_unittest_import::ImportMessage > repeated_import_message_;
- ::google::protobuf::RepeatedField<int> repeated_nested_enum_;
- ::google::protobuf::RepeatedField<int> repeated_foreign_enum_;
- ::google::protobuf::RepeatedField<int> repeated_import_enum_;
- ::google::protobuf::RepeatedPtrField< ::std::string> repeated_string_piece_;
- ::google::protobuf::RepeatedPtrField< ::std::string> repeated_cord_;
- ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes_NestedMessage > repeated_lazy_message_;
- ::google::protobuf::internal::ArenaStringPtr optional_string_;
- ::google::protobuf::internal::ArenaStringPtr optional_bytes_;
- ::google::protobuf::internal::ArenaStringPtr optional_string_piece_;
- ::google::protobuf::internal::ArenaStringPtr optional_cord_;
- public:
- static ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> _i_give_permission_to_break_this_code_default_default_string_;
- private:
- ::google::protobuf::internal::ArenaStringPtr default_string_;
- public:
- static ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> _i_give_permission_to_break_this_code_default_default_bytes_;
- private:
- ::google::protobuf::internal::ArenaStringPtr default_bytes_;
- public:
- static ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> _i_give_permission_to_break_this_code_default_default_string_piece_;
- private:
- ::google::protobuf::internal::ArenaStringPtr default_string_piece_;
- public:
- static ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> _i_give_permission_to_break_this_code_default_default_cord_;
- private:
- ::google::protobuf::internal::ArenaStringPtr default_cord_;
- ::protobuf_unittest::TestAllTypes_OptionalGroup* optionalgroup_;
- ::protobuf_unittest::TestAllTypes_NestedMessage* optional_nested_message_;
- ::protobuf_unittest::ForeignMessage* optional_foreign_message_;
- ::protobuf_unittest_import::ImportMessage* optional_import_message_;
- ::protobuf_unittest_import::PublicImportMessage* optional_public_import_message_;
- ::protobuf_unittest::TestAllTypes_NestedMessage* optional_lazy_message_;
- ::google::protobuf::int64 optional_int64_;
- ::google::protobuf::int32 optional_int32_;
- ::google::protobuf::uint32 optional_uint32_;
- ::google::protobuf::uint64 optional_uint64_;
- ::google::protobuf::int64 optional_sint64_;
- ::google::protobuf::int32 optional_sint32_;
- ::google::protobuf::uint32 optional_fixed32_;
- ::google::protobuf::uint64 optional_fixed64_;
- ::google::protobuf::int64 optional_sfixed64_;
- ::google::protobuf::int32 optional_sfixed32_;
- float optional_float_;
- double optional_double_;
- bool optional_bool_;
- int default_import_enum_;
- int optional_nested_enum_;
- int optional_foreign_enum_;
- int optional_import_enum_;
- ::google::protobuf::int32 default_int32_;
- ::google::protobuf::int64 default_int64_;
- ::google::protobuf::uint64 default_uint64_;
- ::google::protobuf::uint32 default_uint32_;
- ::google::protobuf::int32 default_sint32_;
- ::google::protobuf::int64 default_sint64_;
- ::google::protobuf::uint64 default_fixed64_;
- ::google::protobuf::uint32 default_fixed32_;
- ::google::protobuf::int32 default_sfixed32_;
- ::google::protobuf::int64 default_sfixed64_;
- double default_double_;
- float default_float_;
- bool default_bool_;
- int default_nested_enum_;
- int default_foreign_enum_;
- union OneofFieldUnion {
- OneofFieldUnion() {}
- ::google::protobuf::uint32 oneof_uint32_;
- ::protobuf_unittest::TestAllTypes_NestedMessage* oneof_nested_message_;
- ::google::protobuf::internal::ArenaStringPtr oneof_string_;
- ::google::protobuf::internal::ArenaStringPtr oneof_bytes_;
- } oneof_field_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- ::google::protobuf::uint32 _oneof_case_[1];
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class NestedTestAllTypes : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.NestedTestAllTypes) */ {
- public:
- NestedTestAllTypes();
- virtual ~NestedTestAllTypes();
- NestedTestAllTypes(const NestedTestAllTypes& from);
- inline NestedTestAllTypes& operator=(const NestedTestAllTypes& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- NestedTestAllTypes(NestedTestAllTypes&& from) noexcept
- : NestedTestAllTypes() {
- *this = ::std::move(from);
- }
- inline NestedTestAllTypes& operator=(NestedTestAllTypes&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const NestedTestAllTypes& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const NestedTestAllTypes* internal_default_instance() {
- return reinterpret_cast<const NestedTestAllTypes*>(
- &_NestedTestAllTypes_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 4;
- void UnsafeArenaSwap(NestedTestAllTypes* other);
- void Swap(NestedTestAllTypes* other);
- friend void swap(NestedTestAllTypes& a, NestedTestAllTypes& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline NestedTestAllTypes* New() const final {
- return CreateMaybeMessage<NestedTestAllTypes>(NULL);
- }
- NestedTestAllTypes* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<NestedTestAllTypes>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const NestedTestAllTypes& from);
- void MergeFrom(const NestedTestAllTypes& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(NestedTestAllTypes* other);
- protected:
- explicit NestedTestAllTypes(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // repeated .protobuf_unittest.NestedTestAllTypes repeated_child = 3;
- int repeated_child_size() const;
- void clear_repeated_child();
- static const int kRepeatedChildFieldNumber = 3;
- ::protobuf_unittest::NestedTestAllTypes* mutable_repeated_child(int index);
- ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::NestedTestAllTypes >*
- mutable_repeated_child();
- const ::protobuf_unittest::NestedTestAllTypes& repeated_child(int index) const;
- ::protobuf_unittest::NestedTestAllTypes* add_repeated_child();
- const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::NestedTestAllTypes >&
- repeated_child() const;
- // optional .protobuf_unittest.NestedTestAllTypes child = 1;
- bool has_child() const;
- void clear_child();
- static const int kChildFieldNumber = 1;
- private:
- const ::protobuf_unittest::NestedTestAllTypes& _internal_child() const;
- public:
- const ::protobuf_unittest::NestedTestAllTypes& child() const;
- ::protobuf_unittest::NestedTestAllTypes* release_child();
- ::protobuf_unittest::NestedTestAllTypes* mutable_child();
- void set_allocated_child(::protobuf_unittest::NestedTestAllTypes* child);
- void unsafe_arena_set_allocated_child(
- ::protobuf_unittest::NestedTestAllTypes* child);
- ::protobuf_unittest::NestedTestAllTypes* unsafe_arena_release_child();
- // optional .protobuf_unittest.TestAllTypes payload = 2;
- bool has_payload() const;
- void clear_payload();
- static const int kPayloadFieldNumber = 2;
- private:
- const ::protobuf_unittest::TestAllTypes& _internal_payload() const;
- public:
- const ::protobuf_unittest::TestAllTypes& payload() const;
- ::protobuf_unittest::TestAllTypes* release_payload();
- ::protobuf_unittest::TestAllTypes* mutable_payload();
- void set_allocated_payload(::protobuf_unittest::TestAllTypes* payload);
- void unsafe_arena_set_allocated_payload(
- ::protobuf_unittest::TestAllTypes* payload);
- ::protobuf_unittest::TestAllTypes* unsafe_arena_release_payload();
- // @@protoc_insertion_point(class_scope:protobuf_unittest.NestedTestAllTypes)
- private:
- void set_has_child();
- void clear_has_child();
- void set_has_payload();
- void clear_has_payload();
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::NestedTestAllTypes > repeated_child_;
- ::protobuf_unittest::NestedTestAllTypes* child_;
- ::protobuf_unittest::TestAllTypes* payload_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class TestDeprecatedFields : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestDeprecatedFields) */ {
- public:
- TestDeprecatedFields();
- virtual ~TestDeprecatedFields();
- TestDeprecatedFields(const TestDeprecatedFields& from);
- inline TestDeprecatedFields& operator=(const TestDeprecatedFields& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestDeprecatedFields(TestDeprecatedFields&& from) noexcept
- : TestDeprecatedFields() {
- *this = ::std::move(from);
- }
- inline TestDeprecatedFields& operator=(TestDeprecatedFields&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const TestDeprecatedFields& default_instance();
- enum OneofFieldsCase {
- kDeprecatedInt32InOneof = 2,
- ONEOF_FIELDS_NOT_SET = 0,
- };
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestDeprecatedFields* internal_default_instance() {
- return reinterpret_cast<const TestDeprecatedFields*>(
- &_TestDeprecatedFields_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 5;
- void UnsafeArenaSwap(TestDeprecatedFields* other);
- void Swap(TestDeprecatedFields* other);
- friend void swap(TestDeprecatedFields& a, TestDeprecatedFields& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestDeprecatedFields* New() const final {
- return CreateMaybeMessage<TestDeprecatedFields>(NULL);
- }
- TestDeprecatedFields* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestDeprecatedFields>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestDeprecatedFields& from);
- void MergeFrom(const TestDeprecatedFields& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestDeprecatedFields* other);
- protected:
- explicit TestDeprecatedFields(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // optional int32 deprecated_int32 = 1 [deprecated = true];
- GOOGLE_PROTOBUF_DEPRECATED_ATTR bool has_deprecated_int32() const;
- GOOGLE_PROTOBUF_DEPRECATED_ATTR void clear_deprecated_int32();
- GOOGLE_PROTOBUF_DEPRECATED_ATTR static const int kDeprecatedInt32FieldNumber = 1;
- GOOGLE_PROTOBUF_DEPRECATED_ATTR ::google::protobuf::int32 deprecated_int32() const;
- GOOGLE_PROTOBUF_DEPRECATED_ATTR void set_deprecated_int32(::google::protobuf::int32 value);
- // optional int32 deprecated_int32_in_oneof = 2 [deprecated = true];
- GOOGLE_PROTOBUF_DEPRECATED_ATTR bool has_deprecated_int32_in_oneof() const;
- GOOGLE_PROTOBUF_DEPRECATED_ATTR void clear_deprecated_int32_in_oneof();
- GOOGLE_PROTOBUF_DEPRECATED_ATTR static const int kDeprecatedInt32InOneofFieldNumber = 2;
- GOOGLE_PROTOBUF_DEPRECATED_ATTR ::google::protobuf::int32 deprecated_int32_in_oneof() const;
- GOOGLE_PROTOBUF_DEPRECATED_ATTR void set_deprecated_int32_in_oneof(::google::protobuf::int32 value);
- void clear_oneof_fields();
- OneofFieldsCase oneof_fields_case() const;
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestDeprecatedFields)
- private:
- void set_has_deprecated_int32();
- void clear_has_deprecated_int32();
- void set_has_deprecated_int32_in_oneof();
- inline bool has_oneof_fields() const;
- inline void clear_has_oneof_fields();
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- ::google::protobuf::int32 deprecated_int32_;
- union OneofFieldsUnion {
- OneofFieldsUnion() {}
- ::google::protobuf::int32 deprecated_int32_in_oneof_;
- } oneof_fields_;
- ::google::protobuf::uint32 _oneof_case_[1];
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class TestDeprecatedMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestDeprecatedMessage) */ {
- public:
- TestDeprecatedMessage();
- virtual ~TestDeprecatedMessage();
- TestDeprecatedMessage(const TestDeprecatedMessage& from);
- inline TestDeprecatedMessage& operator=(const TestDeprecatedMessage& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestDeprecatedMessage(TestDeprecatedMessage&& from) noexcept
- : TestDeprecatedMessage() {
- *this = ::std::move(from);
- }
- inline TestDeprecatedMessage& operator=(TestDeprecatedMessage&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const TestDeprecatedMessage& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestDeprecatedMessage* internal_default_instance() {
- return reinterpret_cast<const TestDeprecatedMessage*>(
- &_TestDeprecatedMessage_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 6;
- void UnsafeArenaSwap(TestDeprecatedMessage* other);
- void Swap(TestDeprecatedMessage* other);
- friend void swap(TestDeprecatedMessage& a, TestDeprecatedMessage& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestDeprecatedMessage* New() const final {
- return CreateMaybeMessage<TestDeprecatedMessage>(NULL);
- }
- TestDeprecatedMessage* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestDeprecatedMessage>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestDeprecatedMessage& from);
- void MergeFrom(const TestDeprecatedMessage& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestDeprecatedMessage* other);
- protected:
- explicit TestDeprecatedMessage(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestDeprecatedMessage)
- private:
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class ForeignMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.ForeignMessage) */ {
- public:
- ForeignMessage();
- virtual ~ForeignMessage();
- ForeignMessage(const ForeignMessage& from);
- inline ForeignMessage& operator=(const ForeignMessage& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- ForeignMessage(ForeignMessage&& from) noexcept
- : ForeignMessage() {
- *this = ::std::move(from);
- }
- inline ForeignMessage& operator=(ForeignMessage&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const ForeignMessage& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const ForeignMessage* internal_default_instance() {
- return reinterpret_cast<const ForeignMessage*>(
- &_ForeignMessage_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 7;
- void UnsafeArenaSwap(ForeignMessage* other);
- void Swap(ForeignMessage* other);
- friend void swap(ForeignMessage& a, ForeignMessage& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline ForeignMessage* New() const final {
- return CreateMaybeMessage<ForeignMessage>(NULL);
- }
- ForeignMessage* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<ForeignMessage>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const ForeignMessage& from);
- void MergeFrom(const ForeignMessage& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(ForeignMessage* other);
- protected:
- explicit ForeignMessage(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // optional int32 c = 1;
- bool has_c() const;
- void clear_c();
- static const int kCFieldNumber = 1;
- ::google::protobuf::int32 c() const;
- void set_c(::google::protobuf::int32 value);
- // optional int32 d = 2;
- bool has_d() const;
- void clear_d();
- static const int kDFieldNumber = 2;
- ::google::protobuf::int32 d() const;
- void set_d(::google::protobuf::int32 value);
- // @@protoc_insertion_point(class_scope:protobuf_unittest.ForeignMessage)
- private:
- void set_has_c();
- void clear_has_c();
- void set_has_d();
- void clear_has_d();
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- ::google::protobuf::int32 c_;
- ::google::protobuf::int32 d_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class TestReservedFields : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestReservedFields) */ {
- public:
- TestReservedFields();
- virtual ~TestReservedFields();
- TestReservedFields(const TestReservedFields& from);
- inline TestReservedFields& operator=(const TestReservedFields& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestReservedFields(TestReservedFields&& from) noexcept
- : TestReservedFields() {
- *this = ::std::move(from);
- }
- inline TestReservedFields& operator=(TestReservedFields&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const TestReservedFields& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestReservedFields* internal_default_instance() {
- return reinterpret_cast<const TestReservedFields*>(
- &_TestReservedFields_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 8;
- void UnsafeArenaSwap(TestReservedFields* other);
- void Swap(TestReservedFields* other);
- friend void swap(TestReservedFields& a, TestReservedFields& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestReservedFields* New() const final {
- return CreateMaybeMessage<TestReservedFields>(NULL);
- }
- TestReservedFields* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestReservedFields>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestReservedFields& from);
- void MergeFrom(const TestReservedFields& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestReservedFields* other);
- protected:
- explicit TestReservedFields(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestReservedFields)
- private:
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class TestAllExtensions : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestAllExtensions) */ {
- public:
- TestAllExtensions();
- virtual ~TestAllExtensions();
- TestAllExtensions(const TestAllExtensions& from);
- inline TestAllExtensions& operator=(const TestAllExtensions& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestAllExtensions(TestAllExtensions&& from) noexcept
- : TestAllExtensions() {
- *this = ::std::move(from);
- }
- inline TestAllExtensions& operator=(TestAllExtensions&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const TestAllExtensions& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestAllExtensions* internal_default_instance() {
- return reinterpret_cast<const TestAllExtensions*>(
- &_TestAllExtensions_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 9;
- void UnsafeArenaSwap(TestAllExtensions* other);
- void Swap(TestAllExtensions* other);
- friend void swap(TestAllExtensions& a, TestAllExtensions& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestAllExtensions* New() const final {
- return CreateMaybeMessage<TestAllExtensions>(NULL);
- }
- TestAllExtensions* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestAllExtensions>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestAllExtensions& from);
- void MergeFrom(const TestAllExtensions& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestAllExtensions* other);
- protected:
- explicit TestAllExtensions(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(TestAllExtensions)
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestAllExtensions)
- private:
- ::google::protobuf::internal::ExtensionSet _extensions_;
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class OptionalGroup_extension : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.OptionalGroup_extension) */ {
- public:
- OptionalGroup_extension();
- virtual ~OptionalGroup_extension();
- OptionalGroup_extension(const OptionalGroup_extension& from);
- inline OptionalGroup_extension& operator=(const OptionalGroup_extension& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- OptionalGroup_extension(OptionalGroup_extension&& from) noexcept
- : OptionalGroup_extension() {
- *this = ::std::move(from);
- }
- inline OptionalGroup_extension& operator=(OptionalGroup_extension&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const OptionalGroup_extension& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const OptionalGroup_extension* internal_default_instance() {
- return reinterpret_cast<const OptionalGroup_extension*>(
- &_OptionalGroup_extension_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 10;
- void UnsafeArenaSwap(OptionalGroup_extension* other);
- void Swap(OptionalGroup_extension* other);
- friend void swap(OptionalGroup_extension& a, OptionalGroup_extension& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline OptionalGroup_extension* New() const final {
- return CreateMaybeMessage<OptionalGroup_extension>(NULL);
- }
- OptionalGroup_extension* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<OptionalGroup_extension>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const OptionalGroup_extension& from);
- void MergeFrom(const OptionalGroup_extension& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(OptionalGroup_extension* other);
- protected:
- explicit OptionalGroup_extension(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // optional int32 a = 17;
- bool has_a() const;
- void clear_a();
- static const int kAFieldNumber = 17;
- ::google::protobuf::int32 a() const;
- void set_a(::google::protobuf::int32 value);
- // @@protoc_insertion_point(class_scope:protobuf_unittest.OptionalGroup_extension)
- private:
- void set_has_a();
- void clear_has_a();
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- ::google::protobuf::int32 a_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class RepeatedGroup_extension : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.RepeatedGroup_extension) */ {
- public:
- RepeatedGroup_extension();
- virtual ~RepeatedGroup_extension();
- RepeatedGroup_extension(const RepeatedGroup_extension& from);
- inline RepeatedGroup_extension& operator=(const RepeatedGroup_extension& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- RepeatedGroup_extension(RepeatedGroup_extension&& from) noexcept
- : RepeatedGroup_extension() {
- *this = ::std::move(from);
- }
- inline RepeatedGroup_extension& operator=(RepeatedGroup_extension&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const RepeatedGroup_extension& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const RepeatedGroup_extension* internal_default_instance() {
- return reinterpret_cast<const RepeatedGroup_extension*>(
- &_RepeatedGroup_extension_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 11;
- void UnsafeArenaSwap(RepeatedGroup_extension* other);
- void Swap(RepeatedGroup_extension* other);
- friend void swap(RepeatedGroup_extension& a, RepeatedGroup_extension& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline RepeatedGroup_extension* New() const final {
- return CreateMaybeMessage<RepeatedGroup_extension>(NULL);
- }
- RepeatedGroup_extension* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<RepeatedGroup_extension>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const RepeatedGroup_extension& from);
- void MergeFrom(const RepeatedGroup_extension& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(RepeatedGroup_extension* other);
- protected:
- explicit RepeatedGroup_extension(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // optional int32 a = 47;
- bool has_a() const;
- void clear_a();
- static const int kAFieldNumber = 47;
- ::google::protobuf::int32 a() const;
- void set_a(::google::protobuf::int32 value);
- // @@protoc_insertion_point(class_scope:protobuf_unittest.RepeatedGroup_extension)
- private:
- void set_has_a();
- void clear_has_a();
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- ::google::protobuf::int32 a_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class TestGroup_OptionalGroup : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestGroup.OptionalGroup) */ {
- public:
- TestGroup_OptionalGroup();
- virtual ~TestGroup_OptionalGroup();
- TestGroup_OptionalGroup(const TestGroup_OptionalGroup& from);
- inline TestGroup_OptionalGroup& operator=(const TestGroup_OptionalGroup& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestGroup_OptionalGroup(TestGroup_OptionalGroup&& from) noexcept
- : TestGroup_OptionalGroup() {
- *this = ::std::move(from);
- }
- inline TestGroup_OptionalGroup& operator=(TestGroup_OptionalGroup&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const TestGroup_OptionalGroup& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestGroup_OptionalGroup* internal_default_instance() {
- return reinterpret_cast<const TestGroup_OptionalGroup*>(
- &_TestGroup_OptionalGroup_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 12;
- void UnsafeArenaSwap(TestGroup_OptionalGroup* other);
- void Swap(TestGroup_OptionalGroup* other);
- friend void swap(TestGroup_OptionalGroup& a, TestGroup_OptionalGroup& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestGroup_OptionalGroup* New() const final {
- return CreateMaybeMessage<TestGroup_OptionalGroup>(NULL);
- }
- TestGroup_OptionalGroup* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestGroup_OptionalGroup>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestGroup_OptionalGroup& from);
- void MergeFrom(const TestGroup_OptionalGroup& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestGroup_OptionalGroup* other);
- protected:
- explicit TestGroup_OptionalGroup(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // optional int32 a = 17;
- bool has_a() const;
- void clear_a();
- static const int kAFieldNumber = 17;
- ::google::protobuf::int32 a() const;
- void set_a(::google::protobuf::int32 value);
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestGroup.OptionalGroup)
- private:
- void set_has_a();
- void clear_has_a();
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- ::google::protobuf::int32 a_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class TestGroup : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestGroup) */ {
- public:
- TestGroup();
- virtual ~TestGroup();
- TestGroup(const TestGroup& from);
- inline TestGroup& operator=(const TestGroup& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestGroup(TestGroup&& from) noexcept
- : TestGroup() {
- *this = ::std::move(from);
- }
- inline TestGroup& operator=(TestGroup&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const TestGroup& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestGroup* internal_default_instance() {
- return reinterpret_cast<const TestGroup*>(
- &_TestGroup_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 13;
- void UnsafeArenaSwap(TestGroup* other);
- void Swap(TestGroup* other);
- friend void swap(TestGroup& a, TestGroup& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestGroup* New() const final {
- return CreateMaybeMessage<TestGroup>(NULL);
- }
- TestGroup* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestGroup>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestGroup& from);
- void MergeFrom(const TestGroup& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestGroup* other);
- protected:
- explicit TestGroup(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- typedef TestGroup_OptionalGroup OptionalGroup;
- // accessors -------------------------------------------------------
- // optional group OptionalGroup = 16 { ... };
- bool has_optionalgroup() const;
- void clear_optionalgroup();
- static const int kOptionalgroupFieldNumber = 16;
- private:
- const ::protobuf_unittest::TestGroup_OptionalGroup& _internal_optionalgroup() const;
- public:
- const ::protobuf_unittest::TestGroup_OptionalGroup& optionalgroup() const;
- ::protobuf_unittest::TestGroup_OptionalGroup* release_optionalgroup();
- ::protobuf_unittest::TestGroup_OptionalGroup* mutable_optionalgroup();
- void set_allocated_optionalgroup(::protobuf_unittest::TestGroup_OptionalGroup* optionalgroup);
- void unsafe_arena_set_allocated_optionalgroup(
- ::protobuf_unittest::TestGroup_OptionalGroup* optionalgroup);
- ::protobuf_unittest::TestGroup_OptionalGroup* unsafe_arena_release_optionalgroup();
- // optional .protobuf_unittest.ForeignEnum optional_foreign_enum = 22;
- bool has_optional_foreign_enum() const;
- void clear_optional_foreign_enum();
- static const int kOptionalForeignEnumFieldNumber = 22;
- ::protobuf_unittest::ForeignEnum optional_foreign_enum() const;
- void set_optional_foreign_enum(::protobuf_unittest::ForeignEnum value);
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestGroup)
- private:
- void set_has_optionalgroup();
- void clear_has_optionalgroup();
- void set_has_optional_foreign_enum();
- void clear_has_optional_foreign_enum();
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- ::protobuf_unittest::TestGroup_OptionalGroup* optionalgroup_;
- int optional_foreign_enum_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class TestGroupExtension : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestGroupExtension) */ {
- public:
- TestGroupExtension();
- virtual ~TestGroupExtension();
- TestGroupExtension(const TestGroupExtension& from);
- inline TestGroupExtension& operator=(const TestGroupExtension& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestGroupExtension(TestGroupExtension&& from) noexcept
- : TestGroupExtension() {
- *this = ::std::move(from);
- }
- inline TestGroupExtension& operator=(TestGroupExtension&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const TestGroupExtension& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestGroupExtension* internal_default_instance() {
- return reinterpret_cast<const TestGroupExtension*>(
- &_TestGroupExtension_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 14;
- void UnsafeArenaSwap(TestGroupExtension* other);
- void Swap(TestGroupExtension* other);
- friend void swap(TestGroupExtension& a, TestGroupExtension& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestGroupExtension* New() const final {
- return CreateMaybeMessage<TestGroupExtension>(NULL);
- }
- TestGroupExtension* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestGroupExtension>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestGroupExtension& from);
- void MergeFrom(const TestGroupExtension& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestGroupExtension* other);
- protected:
- explicit TestGroupExtension(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(TestGroupExtension)
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestGroupExtension)
- private:
- ::google::protobuf::internal::ExtensionSet _extensions_;
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class TestNestedExtension_OptionalGroup_extension : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestNestedExtension.OptionalGroup_extension) */ {
- public:
- TestNestedExtension_OptionalGroup_extension();
- virtual ~TestNestedExtension_OptionalGroup_extension();
- TestNestedExtension_OptionalGroup_extension(const TestNestedExtension_OptionalGroup_extension& from);
- inline TestNestedExtension_OptionalGroup_extension& operator=(const TestNestedExtension_OptionalGroup_extension& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestNestedExtension_OptionalGroup_extension(TestNestedExtension_OptionalGroup_extension&& from) noexcept
- : TestNestedExtension_OptionalGroup_extension() {
- *this = ::std::move(from);
- }
- inline TestNestedExtension_OptionalGroup_extension& operator=(TestNestedExtension_OptionalGroup_extension&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const TestNestedExtension_OptionalGroup_extension& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestNestedExtension_OptionalGroup_extension* internal_default_instance() {
- return reinterpret_cast<const TestNestedExtension_OptionalGroup_extension*>(
- &_TestNestedExtension_OptionalGroup_extension_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 15;
- void UnsafeArenaSwap(TestNestedExtension_OptionalGroup_extension* other);
- void Swap(TestNestedExtension_OptionalGroup_extension* other);
- friend void swap(TestNestedExtension_OptionalGroup_extension& a, TestNestedExtension_OptionalGroup_extension& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestNestedExtension_OptionalGroup_extension* New() const final {
- return CreateMaybeMessage<TestNestedExtension_OptionalGroup_extension>(NULL);
- }
- TestNestedExtension_OptionalGroup_extension* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestNestedExtension_OptionalGroup_extension>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestNestedExtension_OptionalGroup_extension& from);
- void MergeFrom(const TestNestedExtension_OptionalGroup_extension& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestNestedExtension_OptionalGroup_extension* other);
- protected:
- explicit TestNestedExtension_OptionalGroup_extension(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // optional int32 a = 17;
- bool has_a() const;
- void clear_a();
- static const int kAFieldNumber = 17;
- ::google::protobuf::int32 a() const;
- void set_a(::google::protobuf::int32 value);
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestNestedExtension.OptionalGroup_extension)
- private:
- void set_has_a();
- void clear_has_a();
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- ::google::protobuf::int32 a_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class TestNestedExtension : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestNestedExtension) */ {
- public:
- TestNestedExtension();
- virtual ~TestNestedExtension();
- TestNestedExtension(const TestNestedExtension& from);
- inline TestNestedExtension& operator=(const TestNestedExtension& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestNestedExtension(TestNestedExtension&& from) noexcept
- : TestNestedExtension() {
- *this = ::std::move(from);
- }
- inline TestNestedExtension& operator=(TestNestedExtension&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const TestNestedExtension& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestNestedExtension* internal_default_instance() {
- return reinterpret_cast<const TestNestedExtension*>(
- &_TestNestedExtension_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 16;
- void UnsafeArenaSwap(TestNestedExtension* other);
- void Swap(TestNestedExtension* other);
- friend void swap(TestNestedExtension& a, TestNestedExtension& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestNestedExtension* New() const final {
- return CreateMaybeMessage<TestNestedExtension>(NULL);
- }
- TestNestedExtension* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestNestedExtension>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestNestedExtension& from);
- void MergeFrom(const TestNestedExtension& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestNestedExtension* other);
- protected:
- explicit TestNestedExtension(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- typedef TestNestedExtension_OptionalGroup_extension OptionalGroup_extension;
- // accessors -------------------------------------------------------
- static const int kTestFieldNumber = 1002;
- static ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::StringTypeTraits, 9, false >
- test;
- static const int kNestedStringExtensionFieldNumber = 1003;
- static ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::StringTypeTraits, 9, false >
- nested_string_extension;
- static const int kOptionalgroupExtensionFieldNumber = 16;
- static ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestGroupExtension,
- ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::TestNestedExtension_OptionalGroup_extension >, 10, false >
- optionalgroup_extension;
- static const int kOptionalForeignEnumExtensionFieldNumber = 22;
- static ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestGroupExtension,
- ::google::protobuf::internal::EnumTypeTraits< ::protobuf_unittest::ForeignEnum, ::protobuf_unittest::ForeignEnum_IsValid>, 14, false >
- optional_foreign_enum_extension;
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestNestedExtension)
- private:
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class TestRequired : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestRequired) */ {
- public:
- TestRequired();
- virtual ~TestRequired();
- TestRequired(const TestRequired& from);
- inline TestRequired& operator=(const TestRequired& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestRequired(TestRequired&& from) noexcept
- : TestRequired() {
- *this = ::std::move(from);
- }
- inline TestRequired& operator=(TestRequired&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const TestRequired& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestRequired* internal_default_instance() {
- return reinterpret_cast<const TestRequired*>(
- &_TestRequired_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 17;
- void UnsafeArenaSwap(TestRequired* other);
- void Swap(TestRequired* other);
- friend void swap(TestRequired& a, TestRequired& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestRequired* New() const final {
- return CreateMaybeMessage<TestRequired>(NULL);
- }
- TestRequired* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestRequired>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestRequired& from);
- void MergeFrom(const TestRequired& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestRequired* other);
- protected:
- explicit TestRequired(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // required int32 a = 1;
- bool has_a() const;
- void clear_a();
- static const int kAFieldNumber = 1;
- ::google::protobuf::int32 a() const;
- void set_a(::google::protobuf::int32 value);
- // optional int32 dummy2 = 2;
- bool has_dummy2() const;
- void clear_dummy2();
- static const int kDummy2FieldNumber = 2;
- ::google::protobuf::int32 dummy2() const;
- void set_dummy2(::google::protobuf::int32 value);
- // required int32 b = 3;
- bool has_b() const;
- void clear_b();
- static const int kBFieldNumber = 3;
- ::google::protobuf::int32 b() const;
- void set_b(::google::protobuf::int32 value);
- // optional int32 dummy4 = 4;
- bool has_dummy4() const;
- void clear_dummy4();
- static const int kDummy4FieldNumber = 4;
- ::google::protobuf::int32 dummy4() const;
- void set_dummy4(::google::protobuf::int32 value);
- // optional int32 dummy5 = 5;
- bool has_dummy5() const;
- void clear_dummy5();
- static const int kDummy5FieldNumber = 5;
- ::google::protobuf::int32 dummy5() const;
- void set_dummy5(::google::protobuf::int32 value);
- // optional int32 dummy6 = 6;
- bool has_dummy6() const;
- void clear_dummy6();
- static const int kDummy6FieldNumber = 6;
- ::google::protobuf::int32 dummy6() const;
- void set_dummy6(::google::protobuf::int32 value);
- // optional int32 dummy7 = 7;
- bool has_dummy7() const;
- void clear_dummy7();
- static const int kDummy7FieldNumber = 7;
- ::google::protobuf::int32 dummy7() const;
- void set_dummy7(::google::protobuf::int32 value);
- // optional int32 dummy8 = 8;
- bool has_dummy8() const;
- void clear_dummy8();
- static const int kDummy8FieldNumber = 8;
- ::google::protobuf::int32 dummy8() const;
- void set_dummy8(::google::protobuf::int32 value);
- // optional int32 dummy9 = 9;
- bool has_dummy9() const;
- void clear_dummy9();
- static const int kDummy9FieldNumber = 9;
- ::google::protobuf::int32 dummy9() const;
- void set_dummy9(::google::protobuf::int32 value);
- // optional int32 dummy10 = 10;
- bool has_dummy10() const;
- void clear_dummy10();
- static const int kDummy10FieldNumber = 10;
- ::google::protobuf::int32 dummy10() const;
- void set_dummy10(::google::protobuf::int32 value);
- // optional int32 dummy11 = 11;
- bool has_dummy11() const;
- void clear_dummy11();
- static const int kDummy11FieldNumber = 11;
- ::google::protobuf::int32 dummy11() const;
- void set_dummy11(::google::protobuf::int32 value);
- // optional int32 dummy12 = 12;
- bool has_dummy12() const;
- void clear_dummy12();
- static const int kDummy12FieldNumber = 12;
- ::google::protobuf::int32 dummy12() const;
- void set_dummy12(::google::protobuf::int32 value);
- // optional int32 dummy13 = 13;
- bool has_dummy13() const;
- void clear_dummy13();
- static const int kDummy13FieldNumber = 13;
- ::google::protobuf::int32 dummy13() const;
- void set_dummy13(::google::protobuf::int32 value);
- // optional int32 dummy14 = 14;
- bool has_dummy14() const;
- void clear_dummy14();
- static const int kDummy14FieldNumber = 14;
- ::google::protobuf::int32 dummy14() const;
- void set_dummy14(::google::protobuf::int32 value);
- // optional int32 dummy15 = 15;
- bool has_dummy15() const;
- void clear_dummy15();
- static const int kDummy15FieldNumber = 15;
- ::google::protobuf::int32 dummy15() const;
- void set_dummy15(::google::protobuf::int32 value);
- // optional int32 dummy16 = 16;
- bool has_dummy16() const;
- void clear_dummy16();
- static const int kDummy16FieldNumber = 16;
- ::google::protobuf::int32 dummy16() const;
- void set_dummy16(::google::protobuf::int32 value);
- // optional int32 dummy17 = 17;
- bool has_dummy17() const;
- void clear_dummy17();
- static const int kDummy17FieldNumber = 17;
- ::google::protobuf::int32 dummy17() const;
- void set_dummy17(::google::protobuf::int32 value);
- // optional int32 dummy18 = 18;
- bool has_dummy18() const;
- void clear_dummy18();
- static const int kDummy18FieldNumber = 18;
- ::google::protobuf::int32 dummy18() const;
- void set_dummy18(::google::protobuf::int32 value);
- // optional int32 dummy19 = 19;
- bool has_dummy19() const;
- void clear_dummy19();
- static const int kDummy19FieldNumber = 19;
- ::google::protobuf::int32 dummy19() const;
- void set_dummy19(::google::protobuf::int32 value);
- // optional int32 dummy20 = 20;
- bool has_dummy20() const;
- void clear_dummy20();
- static const int kDummy20FieldNumber = 20;
- ::google::protobuf::int32 dummy20() const;
- void set_dummy20(::google::protobuf::int32 value);
- // optional int32 dummy21 = 21;
- bool has_dummy21() const;
- void clear_dummy21();
- static const int kDummy21FieldNumber = 21;
- ::google::protobuf::int32 dummy21() const;
- void set_dummy21(::google::protobuf::int32 value);
- // optional int32 dummy22 = 22;
- bool has_dummy22() const;
- void clear_dummy22();
- static const int kDummy22FieldNumber = 22;
- ::google::protobuf::int32 dummy22() const;
- void set_dummy22(::google::protobuf::int32 value);
- // optional int32 dummy23 = 23;
- bool has_dummy23() const;
- void clear_dummy23();
- static const int kDummy23FieldNumber = 23;
- ::google::protobuf::int32 dummy23() const;
- void set_dummy23(::google::protobuf::int32 value);
- // optional int32 dummy24 = 24;
- bool has_dummy24() const;
- void clear_dummy24();
- static const int kDummy24FieldNumber = 24;
- ::google::protobuf::int32 dummy24() const;
- void set_dummy24(::google::protobuf::int32 value);
- // optional int32 dummy25 = 25;
- bool has_dummy25() const;
- void clear_dummy25();
- static const int kDummy25FieldNumber = 25;
- ::google::protobuf::int32 dummy25() const;
- void set_dummy25(::google::protobuf::int32 value);
- // optional int32 dummy26 = 26;
- bool has_dummy26() const;
- void clear_dummy26();
- static const int kDummy26FieldNumber = 26;
- ::google::protobuf::int32 dummy26() const;
- void set_dummy26(::google::protobuf::int32 value);
- // optional int32 dummy27 = 27;
- bool has_dummy27() const;
- void clear_dummy27();
- static const int kDummy27FieldNumber = 27;
- ::google::protobuf::int32 dummy27() const;
- void set_dummy27(::google::protobuf::int32 value);
- // optional int32 dummy28 = 28;
- bool has_dummy28() const;
- void clear_dummy28();
- static const int kDummy28FieldNumber = 28;
- ::google::protobuf::int32 dummy28() const;
- void set_dummy28(::google::protobuf::int32 value);
- // optional int32 dummy29 = 29;
- bool has_dummy29() const;
- void clear_dummy29();
- static const int kDummy29FieldNumber = 29;
- ::google::protobuf::int32 dummy29() const;
- void set_dummy29(::google::protobuf::int32 value);
- // optional int32 dummy30 = 30;
- bool has_dummy30() const;
- void clear_dummy30();
- static const int kDummy30FieldNumber = 30;
- ::google::protobuf::int32 dummy30() const;
- void set_dummy30(::google::protobuf::int32 value);
- // optional int32 dummy31 = 31;
- bool has_dummy31() const;
- void clear_dummy31();
- static const int kDummy31FieldNumber = 31;
- ::google::protobuf::int32 dummy31() const;
- void set_dummy31(::google::protobuf::int32 value);
- // optional int32 dummy32 = 32;
- bool has_dummy32() const;
- void clear_dummy32();
- static const int kDummy32FieldNumber = 32;
- ::google::protobuf::int32 dummy32() const;
- void set_dummy32(::google::protobuf::int32 value);
- // required int32 c = 33;
- bool has_c() const;
- void clear_c();
- static const int kCFieldNumber = 33;
- ::google::protobuf::int32 c() const;
- void set_c(::google::protobuf::int32 value);
- static const int kSingleFieldNumber = 1000;
- static ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::TestRequired >, 11, false >
- single;
- static const int kMultiFieldNumber = 1001;
- static ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::RepeatedMessageTypeTraits< ::protobuf_unittest::TestRequired >, 11, false >
- multi;
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestRequired)
- private:
- void set_has_a();
- void clear_has_a();
- void set_has_dummy2();
- void clear_has_dummy2();
- void set_has_b();
- void clear_has_b();
- void set_has_dummy4();
- void clear_has_dummy4();
- void set_has_dummy5();
- void clear_has_dummy5();
- void set_has_dummy6();
- void clear_has_dummy6();
- void set_has_dummy7();
- void clear_has_dummy7();
- void set_has_dummy8();
- void clear_has_dummy8();
- void set_has_dummy9();
- void clear_has_dummy9();
- void set_has_dummy10();
- void clear_has_dummy10();
- void set_has_dummy11();
- void clear_has_dummy11();
- void set_has_dummy12();
- void clear_has_dummy12();
- void set_has_dummy13();
- void clear_has_dummy13();
- void set_has_dummy14();
- void clear_has_dummy14();
- void set_has_dummy15();
- void clear_has_dummy15();
- void set_has_dummy16();
- void clear_has_dummy16();
- void set_has_dummy17();
- void clear_has_dummy17();
- void set_has_dummy18();
- void clear_has_dummy18();
- void set_has_dummy19();
- void clear_has_dummy19();
- void set_has_dummy20();
- void clear_has_dummy20();
- void set_has_dummy21();
- void clear_has_dummy21();
- void set_has_dummy22();
- void clear_has_dummy22();
- void set_has_dummy23();
- void clear_has_dummy23();
- void set_has_dummy24();
- void clear_has_dummy24();
- void set_has_dummy25();
- void clear_has_dummy25();
- void set_has_dummy26();
- void clear_has_dummy26();
- void set_has_dummy27();
- void clear_has_dummy27();
- void set_has_dummy28();
- void clear_has_dummy28();
- void set_has_dummy29();
- void clear_has_dummy29();
- void set_has_dummy30();
- void clear_has_dummy30();
- void set_has_dummy31();
- void clear_has_dummy31();
- void set_has_dummy32();
- void clear_has_dummy32();
- void set_has_c();
- void clear_has_c();
- // helper for ByteSizeLong()
- size_t RequiredFieldsByteSizeFallback() const;
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<2> _has_bits_;
- ::google::protobuf::int32 a_;
- ::google::protobuf::int32 dummy2_;
- ::google::protobuf::int32 b_;
- ::google::protobuf::int32 dummy4_;
- ::google::protobuf::int32 dummy5_;
- ::google::protobuf::int32 dummy6_;
- ::google::protobuf::int32 dummy7_;
- ::google::protobuf::int32 dummy8_;
- ::google::protobuf::int32 dummy9_;
- ::google::protobuf::int32 dummy10_;
- ::google::protobuf::int32 dummy11_;
- ::google::protobuf::int32 dummy12_;
- ::google::protobuf::int32 dummy13_;
- ::google::protobuf::int32 dummy14_;
- ::google::protobuf::int32 dummy15_;
- ::google::protobuf::int32 dummy16_;
- ::google::protobuf::int32 dummy17_;
- ::google::protobuf::int32 dummy18_;
- ::google::protobuf::int32 dummy19_;
- ::google::protobuf::int32 dummy20_;
- ::google::protobuf::int32 dummy21_;
- ::google::protobuf::int32 dummy22_;
- ::google::protobuf::int32 dummy23_;
- ::google::protobuf::int32 dummy24_;
- ::google::protobuf::int32 dummy25_;
- ::google::protobuf::int32 dummy26_;
- ::google::protobuf::int32 dummy27_;
- ::google::protobuf::int32 dummy28_;
- ::google::protobuf::int32 dummy29_;
- ::google::protobuf::int32 dummy30_;
- ::google::protobuf::int32 dummy31_;
- ::google::protobuf::int32 dummy32_;
- ::google::protobuf::int32 c_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class TestRequiredForeign : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestRequiredForeign) */ {
- public:
- TestRequiredForeign();
- virtual ~TestRequiredForeign();
- TestRequiredForeign(const TestRequiredForeign& from);
- inline TestRequiredForeign& operator=(const TestRequiredForeign& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestRequiredForeign(TestRequiredForeign&& from) noexcept
- : TestRequiredForeign() {
- *this = ::std::move(from);
- }
- inline TestRequiredForeign& operator=(TestRequiredForeign&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const TestRequiredForeign& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestRequiredForeign* internal_default_instance() {
- return reinterpret_cast<const TestRequiredForeign*>(
- &_TestRequiredForeign_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 18;
- void UnsafeArenaSwap(TestRequiredForeign* other);
- void Swap(TestRequiredForeign* other);
- friend void swap(TestRequiredForeign& a, TestRequiredForeign& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestRequiredForeign* New() const final {
- return CreateMaybeMessage<TestRequiredForeign>(NULL);
- }
- TestRequiredForeign* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestRequiredForeign>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestRequiredForeign& from);
- void MergeFrom(const TestRequiredForeign& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestRequiredForeign* other);
- protected:
- explicit TestRequiredForeign(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // repeated .protobuf_unittest.TestRequired repeated_message = 2;
- int repeated_message_size() const;
- void clear_repeated_message();
- static const int kRepeatedMessageFieldNumber = 2;
- ::protobuf_unittest::TestRequired* mutable_repeated_message(int index);
- ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestRequired >*
- mutable_repeated_message();
- const ::protobuf_unittest::TestRequired& repeated_message(int index) const;
- ::protobuf_unittest::TestRequired* add_repeated_message();
- const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestRequired >&
- repeated_message() const;
- // optional .protobuf_unittest.TestRequired optional_message = 1;
- bool has_optional_message() const;
- void clear_optional_message();
- static const int kOptionalMessageFieldNumber = 1;
- private:
- const ::protobuf_unittest::TestRequired& _internal_optional_message() const;
- public:
- const ::protobuf_unittest::TestRequired& optional_message() const;
- ::protobuf_unittest::TestRequired* release_optional_message();
- ::protobuf_unittest::TestRequired* mutable_optional_message();
- void set_allocated_optional_message(::protobuf_unittest::TestRequired* optional_message);
- void unsafe_arena_set_allocated_optional_message(
- ::protobuf_unittest::TestRequired* optional_message);
- ::protobuf_unittest::TestRequired* unsafe_arena_release_optional_message();
- // optional int32 dummy = 3;
- bool has_dummy() const;
- void clear_dummy();
- static const int kDummyFieldNumber = 3;
- ::google::protobuf::int32 dummy() const;
- void set_dummy(::google::protobuf::int32 value);
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestRequiredForeign)
- private:
- void set_has_optional_message();
- void clear_has_optional_message();
- void set_has_dummy();
- void clear_has_dummy();
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestRequired > repeated_message_;
- ::protobuf_unittest::TestRequired* optional_message_;
- ::google::protobuf::int32 dummy_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class TestRequiredMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestRequiredMessage) */ {
- public:
- TestRequiredMessage();
- virtual ~TestRequiredMessage();
- TestRequiredMessage(const TestRequiredMessage& from);
- inline TestRequiredMessage& operator=(const TestRequiredMessage& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestRequiredMessage(TestRequiredMessage&& from) noexcept
- : TestRequiredMessage() {
- *this = ::std::move(from);
- }
- inline TestRequiredMessage& operator=(TestRequiredMessage&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const TestRequiredMessage& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestRequiredMessage* internal_default_instance() {
- return reinterpret_cast<const TestRequiredMessage*>(
- &_TestRequiredMessage_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 19;
- void UnsafeArenaSwap(TestRequiredMessage* other);
- void Swap(TestRequiredMessage* other);
- friend void swap(TestRequiredMessage& a, TestRequiredMessage& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestRequiredMessage* New() const final {
- return CreateMaybeMessage<TestRequiredMessage>(NULL);
- }
- TestRequiredMessage* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestRequiredMessage>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestRequiredMessage& from);
- void MergeFrom(const TestRequiredMessage& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestRequiredMessage* other);
- protected:
- explicit TestRequiredMessage(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // repeated .protobuf_unittest.TestRequired repeated_message = 2;
- int repeated_message_size() const;
- void clear_repeated_message();
- static const int kRepeatedMessageFieldNumber = 2;
- ::protobuf_unittest::TestRequired* mutable_repeated_message(int index);
- ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestRequired >*
- mutable_repeated_message();
- const ::protobuf_unittest::TestRequired& repeated_message(int index) const;
- ::protobuf_unittest::TestRequired* add_repeated_message();
- const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestRequired >&
- repeated_message() const;
- // optional .protobuf_unittest.TestRequired optional_message = 1;
- bool has_optional_message() const;
- void clear_optional_message();
- static const int kOptionalMessageFieldNumber = 1;
- private:
- const ::protobuf_unittest::TestRequired& _internal_optional_message() const;
- public:
- const ::protobuf_unittest::TestRequired& optional_message() const;
- ::protobuf_unittest::TestRequired* release_optional_message();
- ::protobuf_unittest::TestRequired* mutable_optional_message();
- void set_allocated_optional_message(::protobuf_unittest::TestRequired* optional_message);
- void unsafe_arena_set_allocated_optional_message(
- ::protobuf_unittest::TestRequired* optional_message);
- ::protobuf_unittest::TestRequired* unsafe_arena_release_optional_message();
- // required .protobuf_unittest.TestRequired required_message = 3;
- bool has_required_message() const;
- void clear_required_message();
- static const int kRequiredMessageFieldNumber = 3;
- private:
- const ::protobuf_unittest::TestRequired& _internal_required_message() const;
- public:
- const ::protobuf_unittest::TestRequired& required_message() const;
- ::protobuf_unittest::TestRequired* release_required_message();
- ::protobuf_unittest::TestRequired* mutable_required_message();
- void set_allocated_required_message(::protobuf_unittest::TestRequired* required_message);
- void unsafe_arena_set_allocated_required_message(
- ::protobuf_unittest::TestRequired* required_message);
- ::protobuf_unittest::TestRequired* unsafe_arena_release_required_message();
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestRequiredMessage)
- private:
- void set_has_optional_message();
- void clear_has_optional_message();
- void set_has_required_message();
- void clear_has_required_message();
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestRequired > repeated_message_;
- ::protobuf_unittest::TestRequired* optional_message_;
- ::protobuf_unittest::TestRequired* required_message_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class TestForeignNested : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestForeignNested) */ {
- public:
- TestForeignNested();
- virtual ~TestForeignNested();
- TestForeignNested(const TestForeignNested& from);
- inline TestForeignNested& operator=(const TestForeignNested& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestForeignNested(TestForeignNested&& from) noexcept
- : TestForeignNested() {
- *this = ::std::move(from);
- }
- inline TestForeignNested& operator=(TestForeignNested&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const TestForeignNested& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestForeignNested* internal_default_instance() {
- return reinterpret_cast<const TestForeignNested*>(
- &_TestForeignNested_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 20;
- void UnsafeArenaSwap(TestForeignNested* other);
- void Swap(TestForeignNested* other);
- friend void swap(TestForeignNested& a, TestForeignNested& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestForeignNested* New() const final {
- return CreateMaybeMessage<TestForeignNested>(NULL);
- }
- TestForeignNested* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestForeignNested>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestForeignNested& from);
- void MergeFrom(const TestForeignNested& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestForeignNested* other);
- protected:
- explicit TestForeignNested(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // optional .protobuf_unittest.TestAllTypes.NestedMessage foreign_nested = 1;
- bool has_foreign_nested() const;
- void clear_foreign_nested();
- static const int kForeignNestedFieldNumber = 1;
- private:
- const ::protobuf_unittest::TestAllTypes_NestedMessage& _internal_foreign_nested() const;
- public:
- const ::protobuf_unittest::TestAllTypes_NestedMessage& foreign_nested() const;
- ::protobuf_unittest::TestAllTypes_NestedMessage* release_foreign_nested();
- ::protobuf_unittest::TestAllTypes_NestedMessage* mutable_foreign_nested();
- void set_allocated_foreign_nested(::protobuf_unittest::TestAllTypes_NestedMessage* foreign_nested);
- void unsafe_arena_set_allocated_foreign_nested(
- ::protobuf_unittest::TestAllTypes_NestedMessage* foreign_nested);
- ::protobuf_unittest::TestAllTypes_NestedMessage* unsafe_arena_release_foreign_nested();
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestForeignNested)
- private:
- void set_has_foreign_nested();
- void clear_has_foreign_nested();
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- ::protobuf_unittest::TestAllTypes_NestedMessage* foreign_nested_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class TestEmptyMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestEmptyMessage) */ {
- public:
- TestEmptyMessage();
- virtual ~TestEmptyMessage();
- TestEmptyMessage(const TestEmptyMessage& from);
- inline TestEmptyMessage& operator=(const TestEmptyMessage& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestEmptyMessage(TestEmptyMessage&& from) noexcept
- : TestEmptyMessage() {
- *this = ::std::move(from);
- }
- inline TestEmptyMessage& operator=(TestEmptyMessage&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const TestEmptyMessage& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestEmptyMessage* internal_default_instance() {
- return reinterpret_cast<const TestEmptyMessage*>(
- &_TestEmptyMessage_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 21;
- void UnsafeArenaSwap(TestEmptyMessage* other);
- void Swap(TestEmptyMessage* other);
- friend void swap(TestEmptyMessage& a, TestEmptyMessage& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestEmptyMessage* New() const final {
- return CreateMaybeMessage<TestEmptyMessage>(NULL);
- }
- TestEmptyMessage* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestEmptyMessage>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestEmptyMessage& from);
- void MergeFrom(const TestEmptyMessage& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestEmptyMessage* other);
- protected:
- explicit TestEmptyMessage(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestEmptyMessage)
- private:
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class TestEmptyMessageWithExtensions : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestEmptyMessageWithExtensions) */ {
- public:
- TestEmptyMessageWithExtensions();
- virtual ~TestEmptyMessageWithExtensions();
- TestEmptyMessageWithExtensions(const TestEmptyMessageWithExtensions& from);
- inline TestEmptyMessageWithExtensions& operator=(const TestEmptyMessageWithExtensions& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestEmptyMessageWithExtensions(TestEmptyMessageWithExtensions&& from) noexcept
- : TestEmptyMessageWithExtensions() {
- *this = ::std::move(from);
- }
- inline TestEmptyMessageWithExtensions& operator=(TestEmptyMessageWithExtensions&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const TestEmptyMessageWithExtensions& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestEmptyMessageWithExtensions* internal_default_instance() {
- return reinterpret_cast<const TestEmptyMessageWithExtensions*>(
- &_TestEmptyMessageWithExtensions_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 22;
- void UnsafeArenaSwap(TestEmptyMessageWithExtensions* other);
- void Swap(TestEmptyMessageWithExtensions* other);
- friend void swap(TestEmptyMessageWithExtensions& a, TestEmptyMessageWithExtensions& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestEmptyMessageWithExtensions* New() const final {
- return CreateMaybeMessage<TestEmptyMessageWithExtensions>(NULL);
- }
- TestEmptyMessageWithExtensions* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestEmptyMessageWithExtensions>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestEmptyMessageWithExtensions& from);
- void MergeFrom(const TestEmptyMessageWithExtensions& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestEmptyMessageWithExtensions* other);
- protected:
- explicit TestEmptyMessageWithExtensions(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(TestEmptyMessageWithExtensions)
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestEmptyMessageWithExtensions)
- private:
- ::google::protobuf::internal::ExtensionSet _extensions_;
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class TestMultipleExtensionRanges : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestMultipleExtensionRanges) */ {
- public:
- TestMultipleExtensionRanges();
- virtual ~TestMultipleExtensionRanges();
- TestMultipleExtensionRanges(const TestMultipleExtensionRanges& from);
- inline TestMultipleExtensionRanges& operator=(const TestMultipleExtensionRanges& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestMultipleExtensionRanges(TestMultipleExtensionRanges&& from) noexcept
- : TestMultipleExtensionRanges() {
- *this = ::std::move(from);
- }
- inline TestMultipleExtensionRanges& operator=(TestMultipleExtensionRanges&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const TestMultipleExtensionRanges& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestMultipleExtensionRanges* internal_default_instance() {
- return reinterpret_cast<const TestMultipleExtensionRanges*>(
- &_TestMultipleExtensionRanges_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 23;
- void UnsafeArenaSwap(TestMultipleExtensionRanges* other);
- void Swap(TestMultipleExtensionRanges* other);
- friend void swap(TestMultipleExtensionRanges& a, TestMultipleExtensionRanges& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestMultipleExtensionRanges* New() const final {
- return CreateMaybeMessage<TestMultipleExtensionRanges>(NULL);
- }
- TestMultipleExtensionRanges* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestMultipleExtensionRanges>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestMultipleExtensionRanges& from);
- void MergeFrom(const TestMultipleExtensionRanges& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestMultipleExtensionRanges* other);
- protected:
- explicit TestMultipleExtensionRanges(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(TestMultipleExtensionRanges)
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestMultipleExtensionRanges)
- private:
- ::google::protobuf::internal::ExtensionSet _extensions_;
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class TestReallyLargeTagNumber : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestReallyLargeTagNumber) */ {
- public:
- TestReallyLargeTagNumber();
- virtual ~TestReallyLargeTagNumber();
- TestReallyLargeTagNumber(const TestReallyLargeTagNumber& from);
- inline TestReallyLargeTagNumber& operator=(const TestReallyLargeTagNumber& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestReallyLargeTagNumber(TestReallyLargeTagNumber&& from) noexcept
- : TestReallyLargeTagNumber() {
- *this = ::std::move(from);
- }
- inline TestReallyLargeTagNumber& operator=(TestReallyLargeTagNumber&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const TestReallyLargeTagNumber& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestReallyLargeTagNumber* internal_default_instance() {
- return reinterpret_cast<const TestReallyLargeTagNumber*>(
- &_TestReallyLargeTagNumber_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 24;
- void UnsafeArenaSwap(TestReallyLargeTagNumber* other);
- void Swap(TestReallyLargeTagNumber* other);
- friend void swap(TestReallyLargeTagNumber& a, TestReallyLargeTagNumber& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestReallyLargeTagNumber* New() const final {
- return CreateMaybeMessage<TestReallyLargeTagNumber>(NULL);
- }
- TestReallyLargeTagNumber* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestReallyLargeTagNumber>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestReallyLargeTagNumber& from);
- void MergeFrom(const TestReallyLargeTagNumber& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestReallyLargeTagNumber* other);
- protected:
- explicit TestReallyLargeTagNumber(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // optional int32 a = 1;
- bool has_a() const;
- void clear_a();
- static const int kAFieldNumber = 1;
- ::google::protobuf::int32 a() const;
- void set_a(::google::protobuf::int32 value);
- // optional int32 bb = 268435455;
- bool has_bb() const;
- void clear_bb();
- static const int kBbFieldNumber = 268435455;
- ::google::protobuf::int32 bb() const;
- void set_bb(::google::protobuf::int32 value);
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestReallyLargeTagNumber)
- private:
- void set_has_a();
- void clear_has_a();
- void set_has_bb();
- void clear_has_bb();
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- ::google::protobuf::int32 a_;
- ::google::protobuf::int32 bb_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class TestRecursiveMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestRecursiveMessage) */ {
- public:
- TestRecursiveMessage();
- virtual ~TestRecursiveMessage();
- TestRecursiveMessage(const TestRecursiveMessage& from);
- inline TestRecursiveMessage& operator=(const TestRecursiveMessage& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestRecursiveMessage(TestRecursiveMessage&& from) noexcept
- : TestRecursiveMessage() {
- *this = ::std::move(from);
- }
- inline TestRecursiveMessage& operator=(TestRecursiveMessage&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const TestRecursiveMessage& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestRecursiveMessage* internal_default_instance() {
- return reinterpret_cast<const TestRecursiveMessage*>(
- &_TestRecursiveMessage_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 25;
- void UnsafeArenaSwap(TestRecursiveMessage* other);
- void Swap(TestRecursiveMessage* other);
- friend void swap(TestRecursiveMessage& a, TestRecursiveMessage& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestRecursiveMessage* New() const final {
- return CreateMaybeMessage<TestRecursiveMessage>(NULL);
- }
- TestRecursiveMessage* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestRecursiveMessage>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestRecursiveMessage& from);
- void MergeFrom(const TestRecursiveMessage& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestRecursiveMessage* other);
- protected:
- explicit TestRecursiveMessage(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // optional .protobuf_unittest.TestRecursiveMessage a = 1;
- bool has_a() const;
- void clear_a();
- static const int kAFieldNumber = 1;
- private:
- const ::protobuf_unittest::TestRecursiveMessage& _internal_a() const;
- public:
- const ::protobuf_unittest::TestRecursiveMessage& a() const;
- ::protobuf_unittest::TestRecursiveMessage* release_a();
- ::protobuf_unittest::TestRecursiveMessage* mutable_a();
- void set_allocated_a(::protobuf_unittest::TestRecursiveMessage* a);
- void unsafe_arena_set_allocated_a(
- ::protobuf_unittest::TestRecursiveMessage* a);
- ::protobuf_unittest::TestRecursiveMessage* unsafe_arena_release_a();
- // optional int32 i = 2;
- bool has_i() const;
- void clear_i();
- static const int kIFieldNumber = 2;
- ::google::protobuf::int32 i() const;
- void set_i(::google::protobuf::int32 value);
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestRecursiveMessage)
- private:
- void set_has_a();
- void clear_has_a();
- void set_has_i();
- void clear_has_i();
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- ::protobuf_unittest::TestRecursiveMessage* a_;
- ::google::protobuf::int32 i_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class TestMutualRecursionA_SubMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestMutualRecursionA.SubMessage) */ {
- public:
- TestMutualRecursionA_SubMessage();
- virtual ~TestMutualRecursionA_SubMessage();
- TestMutualRecursionA_SubMessage(const TestMutualRecursionA_SubMessage& from);
- inline TestMutualRecursionA_SubMessage& operator=(const TestMutualRecursionA_SubMessage& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestMutualRecursionA_SubMessage(TestMutualRecursionA_SubMessage&& from) noexcept
- : TestMutualRecursionA_SubMessage() {
- *this = ::std::move(from);
- }
- inline TestMutualRecursionA_SubMessage& operator=(TestMutualRecursionA_SubMessage&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const TestMutualRecursionA_SubMessage& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestMutualRecursionA_SubMessage* internal_default_instance() {
- return reinterpret_cast<const TestMutualRecursionA_SubMessage*>(
- &_TestMutualRecursionA_SubMessage_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 26;
- void UnsafeArenaSwap(TestMutualRecursionA_SubMessage* other);
- void Swap(TestMutualRecursionA_SubMessage* other);
- friend void swap(TestMutualRecursionA_SubMessage& a, TestMutualRecursionA_SubMessage& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestMutualRecursionA_SubMessage* New() const final {
- return CreateMaybeMessage<TestMutualRecursionA_SubMessage>(NULL);
- }
- TestMutualRecursionA_SubMessage* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestMutualRecursionA_SubMessage>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestMutualRecursionA_SubMessage& from);
- void MergeFrom(const TestMutualRecursionA_SubMessage& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestMutualRecursionA_SubMessage* other);
- protected:
- explicit TestMutualRecursionA_SubMessage(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // optional .protobuf_unittest.TestMutualRecursionB b = 1;
- bool has_b() const;
- void clear_b();
- static const int kBFieldNumber = 1;
- private:
- const ::protobuf_unittest::TestMutualRecursionB& _internal_b() const;
- public:
- const ::protobuf_unittest::TestMutualRecursionB& b() const;
- ::protobuf_unittest::TestMutualRecursionB* release_b();
- ::protobuf_unittest::TestMutualRecursionB* mutable_b();
- void set_allocated_b(::protobuf_unittest::TestMutualRecursionB* b);
- void unsafe_arena_set_allocated_b(
- ::protobuf_unittest::TestMutualRecursionB* b);
- ::protobuf_unittest::TestMutualRecursionB* unsafe_arena_release_b();
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestMutualRecursionA.SubMessage)
- private:
- void set_has_b();
- void clear_has_b();
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- ::protobuf_unittest::TestMutualRecursionB* b_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class TestMutualRecursionA_SubGroup : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestMutualRecursionA.SubGroup) */ {
- public:
- TestMutualRecursionA_SubGroup();
- virtual ~TestMutualRecursionA_SubGroup();
- TestMutualRecursionA_SubGroup(const TestMutualRecursionA_SubGroup& from);
- inline TestMutualRecursionA_SubGroup& operator=(const TestMutualRecursionA_SubGroup& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestMutualRecursionA_SubGroup(TestMutualRecursionA_SubGroup&& from) noexcept
- : TestMutualRecursionA_SubGroup() {
- *this = ::std::move(from);
- }
- inline TestMutualRecursionA_SubGroup& operator=(TestMutualRecursionA_SubGroup&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const TestMutualRecursionA_SubGroup& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestMutualRecursionA_SubGroup* internal_default_instance() {
- return reinterpret_cast<const TestMutualRecursionA_SubGroup*>(
- &_TestMutualRecursionA_SubGroup_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 27;
- void UnsafeArenaSwap(TestMutualRecursionA_SubGroup* other);
- void Swap(TestMutualRecursionA_SubGroup* other);
- friend void swap(TestMutualRecursionA_SubGroup& a, TestMutualRecursionA_SubGroup& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestMutualRecursionA_SubGroup* New() const final {
- return CreateMaybeMessage<TestMutualRecursionA_SubGroup>(NULL);
- }
- TestMutualRecursionA_SubGroup* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestMutualRecursionA_SubGroup>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestMutualRecursionA_SubGroup& from);
- void MergeFrom(const TestMutualRecursionA_SubGroup& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestMutualRecursionA_SubGroup* other);
- protected:
- explicit TestMutualRecursionA_SubGroup(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // optional .protobuf_unittest.TestMutualRecursionA.SubMessage sub_message = 3;
- bool has_sub_message() const;
- void clear_sub_message();
- static const int kSubMessageFieldNumber = 3;
- private:
- const ::protobuf_unittest::TestMutualRecursionA_SubMessage& _internal_sub_message() const;
- public:
- const ::protobuf_unittest::TestMutualRecursionA_SubMessage& sub_message() const;
- ::protobuf_unittest::TestMutualRecursionA_SubMessage* release_sub_message();
- ::protobuf_unittest::TestMutualRecursionA_SubMessage* mutable_sub_message();
- void set_allocated_sub_message(::protobuf_unittest::TestMutualRecursionA_SubMessage* sub_message);
- void unsafe_arena_set_allocated_sub_message(
- ::protobuf_unittest::TestMutualRecursionA_SubMessage* sub_message);
- ::protobuf_unittest::TestMutualRecursionA_SubMessage* unsafe_arena_release_sub_message();
- // optional .protobuf_unittest.TestAllTypes not_in_this_scc = 4;
- bool has_not_in_this_scc() const;
- void clear_not_in_this_scc();
- static const int kNotInThisSccFieldNumber = 4;
- private:
- const ::protobuf_unittest::TestAllTypes& _internal_not_in_this_scc() const;
- public:
- const ::protobuf_unittest::TestAllTypes& not_in_this_scc() const;
- ::protobuf_unittest::TestAllTypes* release_not_in_this_scc();
- ::protobuf_unittest::TestAllTypes* mutable_not_in_this_scc();
- void set_allocated_not_in_this_scc(::protobuf_unittest::TestAllTypes* not_in_this_scc);
- void unsafe_arena_set_allocated_not_in_this_scc(
- ::protobuf_unittest::TestAllTypes* not_in_this_scc);
- ::protobuf_unittest::TestAllTypes* unsafe_arena_release_not_in_this_scc();
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestMutualRecursionA.SubGroup)
- private:
- void set_has_sub_message();
- void clear_has_sub_message();
- void set_has_not_in_this_scc();
- void clear_has_not_in_this_scc();
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- ::protobuf_unittest::TestMutualRecursionA_SubMessage* sub_message_;
- ::protobuf_unittest::TestAllTypes* not_in_this_scc_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class TestMutualRecursionA : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestMutualRecursionA) */ {
- public:
- TestMutualRecursionA();
- virtual ~TestMutualRecursionA();
- TestMutualRecursionA(const TestMutualRecursionA& from);
- inline TestMutualRecursionA& operator=(const TestMutualRecursionA& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestMutualRecursionA(TestMutualRecursionA&& from) noexcept
- : TestMutualRecursionA() {
- *this = ::std::move(from);
- }
- inline TestMutualRecursionA& operator=(TestMutualRecursionA&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const TestMutualRecursionA& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestMutualRecursionA* internal_default_instance() {
- return reinterpret_cast<const TestMutualRecursionA*>(
- &_TestMutualRecursionA_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 28;
- void UnsafeArenaSwap(TestMutualRecursionA* other);
- void Swap(TestMutualRecursionA* other);
- friend void swap(TestMutualRecursionA& a, TestMutualRecursionA& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestMutualRecursionA* New() const final {
- return CreateMaybeMessage<TestMutualRecursionA>(NULL);
- }
- TestMutualRecursionA* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestMutualRecursionA>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestMutualRecursionA& from);
- void MergeFrom(const TestMutualRecursionA& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestMutualRecursionA* other);
- protected:
- explicit TestMutualRecursionA(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- typedef TestMutualRecursionA_SubMessage SubMessage;
- typedef TestMutualRecursionA_SubGroup SubGroup;
- // accessors -------------------------------------------------------
- // optional .protobuf_unittest.TestMutualRecursionB bb = 1;
- bool has_bb() const;
- void clear_bb();
- static const int kBbFieldNumber = 1;
- private:
- const ::protobuf_unittest::TestMutualRecursionB& _internal_bb() const;
- public:
- const ::protobuf_unittest::TestMutualRecursionB& bb() const;
- ::protobuf_unittest::TestMutualRecursionB* release_bb();
- ::protobuf_unittest::TestMutualRecursionB* mutable_bb();
- void set_allocated_bb(::protobuf_unittest::TestMutualRecursionB* bb);
- void unsafe_arena_set_allocated_bb(
- ::protobuf_unittest::TestMutualRecursionB* bb);
- ::protobuf_unittest::TestMutualRecursionB* unsafe_arena_release_bb();
- // optional group SubGroup = 2 { ... };
- bool has_subgroup() const;
- void clear_subgroup();
- static const int kSubgroupFieldNumber = 2;
- private:
- const ::protobuf_unittest::TestMutualRecursionA_SubGroup& _internal_subgroup() const;
- public:
- const ::protobuf_unittest::TestMutualRecursionA_SubGroup& subgroup() const;
- ::protobuf_unittest::TestMutualRecursionA_SubGroup* release_subgroup();
- ::protobuf_unittest::TestMutualRecursionA_SubGroup* mutable_subgroup();
- void set_allocated_subgroup(::protobuf_unittest::TestMutualRecursionA_SubGroup* subgroup);
- void unsafe_arena_set_allocated_subgroup(
- ::protobuf_unittest::TestMutualRecursionA_SubGroup* subgroup);
- ::protobuf_unittest::TestMutualRecursionA_SubGroup* unsafe_arena_release_subgroup();
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestMutualRecursionA)
- private:
- void set_has_bb();
- void clear_has_bb();
- void set_has_subgroup();
- void clear_has_subgroup();
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- ::protobuf_unittest::TestMutualRecursionB* bb_;
- ::protobuf_unittest::TestMutualRecursionA_SubGroup* subgroup_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class TestMutualRecursionB : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestMutualRecursionB) */ {
- public:
- TestMutualRecursionB();
- virtual ~TestMutualRecursionB();
- TestMutualRecursionB(const TestMutualRecursionB& from);
- inline TestMutualRecursionB& operator=(const TestMutualRecursionB& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestMutualRecursionB(TestMutualRecursionB&& from) noexcept
- : TestMutualRecursionB() {
- *this = ::std::move(from);
- }
- inline TestMutualRecursionB& operator=(TestMutualRecursionB&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const TestMutualRecursionB& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestMutualRecursionB* internal_default_instance() {
- return reinterpret_cast<const TestMutualRecursionB*>(
- &_TestMutualRecursionB_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 29;
- void UnsafeArenaSwap(TestMutualRecursionB* other);
- void Swap(TestMutualRecursionB* other);
- friend void swap(TestMutualRecursionB& a, TestMutualRecursionB& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestMutualRecursionB* New() const final {
- return CreateMaybeMessage<TestMutualRecursionB>(NULL);
- }
- TestMutualRecursionB* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestMutualRecursionB>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestMutualRecursionB& from);
- void MergeFrom(const TestMutualRecursionB& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestMutualRecursionB* other);
- protected:
- explicit TestMutualRecursionB(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // optional .protobuf_unittest.TestMutualRecursionA a = 1;
- bool has_a() const;
- void clear_a();
- static const int kAFieldNumber = 1;
- private:
- const ::protobuf_unittest::TestMutualRecursionA& _internal_a() const;
- public:
- const ::protobuf_unittest::TestMutualRecursionA& a() const;
- ::protobuf_unittest::TestMutualRecursionA* release_a();
- ::protobuf_unittest::TestMutualRecursionA* mutable_a();
- void set_allocated_a(::protobuf_unittest::TestMutualRecursionA* a);
- void unsafe_arena_set_allocated_a(
- ::protobuf_unittest::TestMutualRecursionA* a);
- ::protobuf_unittest::TestMutualRecursionA* unsafe_arena_release_a();
- // optional int32 optional_int32 = 2;
- bool has_optional_int32() const;
- void clear_optional_int32();
- static const int kOptionalInt32FieldNumber = 2;
- ::google::protobuf::int32 optional_int32() const;
- void set_optional_int32(::google::protobuf::int32 value);
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestMutualRecursionB)
- private:
- void set_has_a();
- void clear_has_a();
- void set_has_optional_int32();
- void clear_has_optional_int32();
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- ::protobuf_unittest::TestMutualRecursionA* a_;
- ::google::protobuf::int32 optional_int32_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class TestIsInitialized_SubMessage_SubGroup : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestIsInitialized.SubMessage.SubGroup) */ {
- public:
- TestIsInitialized_SubMessage_SubGroup();
- virtual ~TestIsInitialized_SubMessage_SubGroup();
- TestIsInitialized_SubMessage_SubGroup(const TestIsInitialized_SubMessage_SubGroup& from);
- inline TestIsInitialized_SubMessage_SubGroup& operator=(const TestIsInitialized_SubMessage_SubGroup& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestIsInitialized_SubMessage_SubGroup(TestIsInitialized_SubMessage_SubGroup&& from) noexcept
- : TestIsInitialized_SubMessage_SubGroup() {
- *this = ::std::move(from);
- }
- inline TestIsInitialized_SubMessage_SubGroup& operator=(TestIsInitialized_SubMessage_SubGroup&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const TestIsInitialized_SubMessage_SubGroup& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestIsInitialized_SubMessage_SubGroup* internal_default_instance() {
- return reinterpret_cast<const TestIsInitialized_SubMessage_SubGroup*>(
- &_TestIsInitialized_SubMessage_SubGroup_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 30;
- void UnsafeArenaSwap(TestIsInitialized_SubMessage_SubGroup* other);
- void Swap(TestIsInitialized_SubMessage_SubGroup* other);
- friend void swap(TestIsInitialized_SubMessage_SubGroup& a, TestIsInitialized_SubMessage_SubGroup& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestIsInitialized_SubMessage_SubGroup* New() const final {
- return CreateMaybeMessage<TestIsInitialized_SubMessage_SubGroup>(NULL);
- }
- TestIsInitialized_SubMessage_SubGroup* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestIsInitialized_SubMessage_SubGroup>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestIsInitialized_SubMessage_SubGroup& from);
- void MergeFrom(const TestIsInitialized_SubMessage_SubGroup& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestIsInitialized_SubMessage_SubGroup* other);
- protected:
- explicit TestIsInitialized_SubMessage_SubGroup(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // required int32 i = 2;
- bool has_i() const;
- void clear_i();
- static const int kIFieldNumber = 2;
- ::google::protobuf::int32 i() const;
- void set_i(::google::protobuf::int32 value);
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestIsInitialized.SubMessage.SubGroup)
- private:
- void set_has_i();
- void clear_has_i();
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- ::google::protobuf::int32 i_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class TestIsInitialized_SubMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestIsInitialized.SubMessage) */ {
- public:
- TestIsInitialized_SubMessage();
- virtual ~TestIsInitialized_SubMessage();
- TestIsInitialized_SubMessage(const TestIsInitialized_SubMessage& from);
- inline TestIsInitialized_SubMessage& operator=(const TestIsInitialized_SubMessage& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestIsInitialized_SubMessage(TestIsInitialized_SubMessage&& from) noexcept
- : TestIsInitialized_SubMessage() {
- *this = ::std::move(from);
- }
- inline TestIsInitialized_SubMessage& operator=(TestIsInitialized_SubMessage&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const TestIsInitialized_SubMessage& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestIsInitialized_SubMessage* internal_default_instance() {
- return reinterpret_cast<const TestIsInitialized_SubMessage*>(
- &_TestIsInitialized_SubMessage_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 31;
- void UnsafeArenaSwap(TestIsInitialized_SubMessage* other);
- void Swap(TestIsInitialized_SubMessage* other);
- friend void swap(TestIsInitialized_SubMessage& a, TestIsInitialized_SubMessage& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestIsInitialized_SubMessage* New() const final {
- return CreateMaybeMessage<TestIsInitialized_SubMessage>(NULL);
- }
- TestIsInitialized_SubMessage* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestIsInitialized_SubMessage>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestIsInitialized_SubMessage& from);
- void MergeFrom(const TestIsInitialized_SubMessage& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestIsInitialized_SubMessage* other);
- protected:
- explicit TestIsInitialized_SubMessage(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- typedef TestIsInitialized_SubMessage_SubGroup SubGroup;
- // accessors -------------------------------------------------------
- // optional group SubGroup = 1 { ... };
- bool has_subgroup() const;
- void clear_subgroup();
- static const int kSubgroupFieldNumber = 1;
- private:
- const ::protobuf_unittest::TestIsInitialized_SubMessage_SubGroup& _internal_subgroup() const;
- public:
- const ::protobuf_unittest::TestIsInitialized_SubMessage_SubGroup& subgroup() const;
- ::protobuf_unittest::TestIsInitialized_SubMessage_SubGroup* release_subgroup();
- ::protobuf_unittest::TestIsInitialized_SubMessage_SubGroup* mutable_subgroup();
- void set_allocated_subgroup(::protobuf_unittest::TestIsInitialized_SubMessage_SubGroup* subgroup);
- void unsafe_arena_set_allocated_subgroup(
- ::protobuf_unittest::TestIsInitialized_SubMessage_SubGroup* subgroup);
- ::protobuf_unittest::TestIsInitialized_SubMessage_SubGroup* unsafe_arena_release_subgroup();
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestIsInitialized.SubMessage)
- private:
- void set_has_subgroup();
- void clear_has_subgroup();
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- ::protobuf_unittest::TestIsInitialized_SubMessage_SubGroup* subgroup_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class TestIsInitialized : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestIsInitialized) */ {
- public:
- TestIsInitialized();
- virtual ~TestIsInitialized();
- TestIsInitialized(const TestIsInitialized& from);
- inline TestIsInitialized& operator=(const TestIsInitialized& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestIsInitialized(TestIsInitialized&& from) noexcept
- : TestIsInitialized() {
- *this = ::std::move(from);
- }
- inline TestIsInitialized& operator=(TestIsInitialized&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const TestIsInitialized& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestIsInitialized* internal_default_instance() {
- return reinterpret_cast<const TestIsInitialized*>(
- &_TestIsInitialized_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 32;
- void UnsafeArenaSwap(TestIsInitialized* other);
- void Swap(TestIsInitialized* other);
- friend void swap(TestIsInitialized& a, TestIsInitialized& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestIsInitialized* New() const final {
- return CreateMaybeMessage<TestIsInitialized>(NULL);
- }
- TestIsInitialized* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestIsInitialized>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestIsInitialized& from);
- void MergeFrom(const TestIsInitialized& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestIsInitialized* other);
- protected:
- explicit TestIsInitialized(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- typedef TestIsInitialized_SubMessage SubMessage;
- // accessors -------------------------------------------------------
- // optional .protobuf_unittest.TestIsInitialized.SubMessage sub_message = 1;
- bool has_sub_message() const;
- void clear_sub_message();
- static const int kSubMessageFieldNumber = 1;
- private:
- const ::protobuf_unittest::TestIsInitialized_SubMessage& _internal_sub_message() const;
- public:
- const ::protobuf_unittest::TestIsInitialized_SubMessage& sub_message() const;
- ::protobuf_unittest::TestIsInitialized_SubMessage* release_sub_message();
- ::protobuf_unittest::TestIsInitialized_SubMessage* mutable_sub_message();
- void set_allocated_sub_message(::protobuf_unittest::TestIsInitialized_SubMessage* sub_message);
- void unsafe_arena_set_allocated_sub_message(
- ::protobuf_unittest::TestIsInitialized_SubMessage* sub_message);
- ::protobuf_unittest::TestIsInitialized_SubMessage* unsafe_arena_release_sub_message();
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestIsInitialized)
- private:
- void set_has_sub_message();
- void clear_has_sub_message();
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- ::protobuf_unittest::TestIsInitialized_SubMessage* sub_message_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class TestDupFieldNumber_Foo : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestDupFieldNumber.Foo) */ {
- public:
- TestDupFieldNumber_Foo();
- virtual ~TestDupFieldNumber_Foo();
- TestDupFieldNumber_Foo(const TestDupFieldNumber_Foo& from);
- inline TestDupFieldNumber_Foo& operator=(const TestDupFieldNumber_Foo& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestDupFieldNumber_Foo(TestDupFieldNumber_Foo&& from) noexcept
- : TestDupFieldNumber_Foo() {
- *this = ::std::move(from);
- }
- inline TestDupFieldNumber_Foo& operator=(TestDupFieldNumber_Foo&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const TestDupFieldNumber_Foo& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestDupFieldNumber_Foo* internal_default_instance() {
- return reinterpret_cast<const TestDupFieldNumber_Foo*>(
- &_TestDupFieldNumber_Foo_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 33;
- void UnsafeArenaSwap(TestDupFieldNumber_Foo* other);
- void Swap(TestDupFieldNumber_Foo* other);
- friend void swap(TestDupFieldNumber_Foo& a, TestDupFieldNumber_Foo& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestDupFieldNumber_Foo* New() const final {
- return CreateMaybeMessage<TestDupFieldNumber_Foo>(NULL);
- }
- TestDupFieldNumber_Foo* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestDupFieldNumber_Foo>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestDupFieldNumber_Foo& from);
- void MergeFrom(const TestDupFieldNumber_Foo& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestDupFieldNumber_Foo* other);
- protected:
- explicit TestDupFieldNumber_Foo(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // optional int32 a = 1;
- bool has_a() const;
- void clear_a();
- static const int kAFieldNumber = 1;
- ::google::protobuf::int32 a() const;
- void set_a(::google::protobuf::int32 value);
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestDupFieldNumber.Foo)
- private:
- void set_has_a();
- void clear_has_a();
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- ::google::protobuf::int32 a_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class TestDupFieldNumber_Bar : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestDupFieldNumber.Bar) */ {
- public:
- TestDupFieldNumber_Bar();
- virtual ~TestDupFieldNumber_Bar();
- TestDupFieldNumber_Bar(const TestDupFieldNumber_Bar& from);
- inline TestDupFieldNumber_Bar& operator=(const TestDupFieldNumber_Bar& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestDupFieldNumber_Bar(TestDupFieldNumber_Bar&& from) noexcept
- : TestDupFieldNumber_Bar() {
- *this = ::std::move(from);
- }
- inline TestDupFieldNumber_Bar& operator=(TestDupFieldNumber_Bar&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const TestDupFieldNumber_Bar& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestDupFieldNumber_Bar* internal_default_instance() {
- return reinterpret_cast<const TestDupFieldNumber_Bar*>(
- &_TestDupFieldNumber_Bar_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 34;
- void UnsafeArenaSwap(TestDupFieldNumber_Bar* other);
- void Swap(TestDupFieldNumber_Bar* other);
- friend void swap(TestDupFieldNumber_Bar& a, TestDupFieldNumber_Bar& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestDupFieldNumber_Bar* New() const final {
- return CreateMaybeMessage<TestDupFieldNumber_Bar>(NULL);
- }
- TestDupFieldNumber_Bar* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestDupFieldNumber_Bar>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestDupFieldNumber_Bar& from);
- void MergeFrom(const TestDupFieldNumber_Bar& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestDupFieldNumber_Bar* other);
- protected:
- explicit TestDupFieldNumber_Bar(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // optional int32 a = 1;
- bool has_a() const;
- void clear_a();
- static const int kAFieldNumber = 1;
- ::google::protobuf::int32 a() const;
- void set_a(::google::protobuf::int32 value);
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestDupFieldNumber.Bar)
- private:
- void set_has_a();
- void clear_has_a();
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- ::google::protobuf::int32 a_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class TestDupFieldNumber : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestDupFieldNumber) */ {
- public:
- TestDupFieldNumber();
- virtual ~TestDupFieldNumber();
- TestDupFieldNumber(const TestDupFieldNumber& from);
- inline TestDupFieldNumber& operator=(const TestDupFieldNumber& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestDupFieldNumber(TestDupFieldNumber&& from) noexcept
- : TestDupFieldNumber() {
- *this = ::std::move(from);
- }
- inline TestDupFieldNumber& operator=(TestDupFieldNumber&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const TestDupFieldNumber& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestDupFieldNumber* internal_default_instance() {
- return reinterpret_cast<const TestDupFieldNumber*>(
- &_TestDupFieldNumber_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 35;
- void UnsafeArenaSwap(TestDupFieldNumber* other);
- void Swap(TestDupFieldNumber* other);
- friend void swap(TestDupFieldNumber& a, TestDupFieldNumber& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestDupFieldNumber* New() const final {
- return CreateMaybeMessage<TestDupFieldNumber>(NULL);
- }
- TestDupFieldNumber* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestDupFieldNumber>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestDupFieldNumber& from);
- void MergeFrom(const TestDupFieldNumber& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestDupFieldNumber* other);
- protected:
- explicit TestDupFieldNumber(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- typedef TestDupFieldNumber_Foo Foo;
- typedef TestDupFieldNumber_Bar Bar;
- // accessors -------------------------------------------------------
- // optional group Foo = 2 { ... };
- bool has_foo() const;
- void clear_foo();
- static const int kFooFieldNumber = 2;
- private:
- const ::protobuf_unittest::TestDupFieldNumber_Foo& _internal_foo() const;
- public:
- const ::protobuf_unittest::TestDupFieldNumber_Foo& foo() const;
- ::protobuf_unittest::TestDupFieldNumber_Foo* release_foo();
- ::protobuf_unittest::TestDupFieldNumber_Foo* mutable_foo();
- void set_allocated_foo(::protobuf_unittest::TestDupFieldNumber_Foo* foo);
- void unsafe_arena_set_allocated_foo(
- ::protobuf_unittest::TestDupFieldNumber_Foo* foo);
- ::protobuf_unittest::TestDupFieldNumber_Foo* unsafe_arena_release_foo();
- // optional group Bar = 3 { ... };
- bool has_bar() const;
- void clear_bar();
- static const int kBarFieldNumber = 3;
- private:
- const ::protobuf_unittest::TestDupFieldNumber_Bar& _internal_bar() const;
- public:
- const ::protobuf_unittest::TestDupFieldNumber_Bar& bar() const;
- ::protobuf_unittest::TestDupFieldNumber_Bar* release_bar();
- ::protobuf_unittest::TestDupFieldNumber_Bar* mutable_bar();
- void set_allocated_bar(::protobuf_unittest::TestDupFieldNumber_Bar* bar);
- void unsafe_arena_set_allocated_bar(
- ::protobuf_unittest::TestDupFieldNumber_Bar* bar);
- ::protobuf_unittest::TestDupFieldNumber_Bar* unsafe_arena_release_bar();
- // optional int32 a = 1;
- bool has_a() const;
- void clear_a();
- static const int kAFieldNumber = 1;
- ::google::protobuf::int32 a() const;
- void set_a(::google::protobuf::int32 value);
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestDupFieldNumber)
- private:
- void set_has_a();
- void clear_has_a();
- void set_has_foo();
- void clear_has_foo();
- void set_has_bar();
- void clear_has_bar();
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- ::protobuf_unittest::TestDupFieldNumber_Foo* foo_;
- ::protobuf_unittest::TestDupFieldNumber_Bar* bar_;
- ::google::protobuf::int32 a_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class TestEagerMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestEagerMessage) */ {
- public:
- TestEagerMessage();
- virtual ~TestEagerMessage();
- TestEagerMessage(const TestEagerMessage& from);
- inline TestEagerMessage& operator=(const TestEagerMessage& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestEagerMessage(TestEagerMessage&& from) noexcept
- : TestEagerMessage() {
- *this = ::std::move(from);
- }
- inline TestEagerMessage& operator=(TestEagerMessage&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const TestEagerMessage& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestEagerMessage* internal_default_instance() {
- return reinterpret_cast<const TestEagerMessage*>(
- &_TestEagerMessage_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 36;
- void UnsafeArenaSwap(TestEagerMessage* other);
- void Swap(TestEagerMessage* other);
- friend void swap(TestEagerMessage& a, TestEagerMessage& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestEagerMessage* New() const final {
- return CreateMaybeMessage<TestEagerMessage>(NULL);
- }
- TestEagerMessage* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestEagerMessage>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestEagerMessage& from);
- void MergeFrom(const TestEagerMessage& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestEagerMessage* other);
- protected:
- explicit TestEagerMessage(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // optional .protobuf_unittest.TestAllTypes sub_message = 1 [lazy = false];
- bool has_sub_message() const;
- void clear_sub_message();
- static const int kSubMessageFieldNumber = 1;
- private:
- const ::protobuf_unittest::TestAllTypes& _internal_sub_message() const;
- public:
- const ::protobuf_unittest::TestAllTypes& sub_message() const;
- ::protobuf_unittest::TestAllTypes* release_sub_message();
- ::protobuf_unittest::TestAllTypes* mutable_sub_message();
- void set_allocated_sub_message(::protobuf_unittest::TestAllTypes* sub_message);
- void unsafe_arena_set_allocated_sub_message(
- ::protobuf_unittest::TestAllTypes* sub_message);
- ::protobuf_unittest::TestAllTypes* unsafe_arena_release_sub_message();
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestEagerMessage)
- private:
- void set_has_sub_message();
- void clear_has_sub_message();
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- ::protobuf_unittest::TestAllTypes* sub_message_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class TestLazyMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestLazyMessage) */ {
- public:
- TestLazyMessage();
- virtual ~TestLazyMessage();
- TestLazyMessage(const TestLazyMessage& from);
- inline TestLazyMessage& operator=(const TestLazyMessage& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestLazyMessage(TestLazyMessage&& from) noexcept
- : TestLazyMessage() {
- *this = ::std::move(from);
- }
- inline TestLazyMessage& operator=(TestLazyMessage&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const TestLazyMessage& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestLazyMessage* internal_default_instance() {
- return reinterpret_cast<const TestLazyMessage*>(
- &_TestLazyMessage_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 37;
- void UnsafeArenaSwap(TestLazyMessage* other);
- void Swap(TestLazyMessage* other);
- friend void swap(TestLazyMessage& a, TestLazyMessage& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestLazyMessage* New() const final {
- return CreateMaybeMessage<TestLazyMessage>(NULL);
- }
- TestLazyMessage* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestLazyMessage>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestLazyMessage& from);
- void MergeFrom(const TestLazyMessage& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestLazyMessage* other);
- protected:
- explicit TestLazyMessage(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // optional .protobuf_unittest.TestAllTypes sub_message = 1 [lazy = true];
- bool has_sub_message() const;
- void clear_sub_message();
- static const int kSubMessageFieldNumber = 1;
- private:
- const ::protobuf_unittest::TestAllTypes& _internal_sub_message() const;
- public:
- const ::protobuf_unittest::TestAllTypes& sub_message() const;
- ::protobuf_unittest::TestAllTypes* release_sub_message();
- ::protobuf_unittest::TestAllTypes* mutable_sub_message();
- void set_allocated_sub_message(::protobuf_unittest::TestAllTypes* sub_message);
- void unsafe_arena_set_allocated_sub_message(
- ::protobuf_unittest::TestAllTypes* sub_message);
- ::protobuf_unittest::TestAllTypes* unsafe_arena_release_sub_message();
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestLazyMessage)
- private:
- void set_has_sub_message();
- void clear_has_sub_message();
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- ::protobuf_unittest::TestAllTypes* sub_message_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class TestNestedMessageHasBits_NestedMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestNestedMessageHasBits.NestedMessage) */ {
- public:
- TestNestedMessageHasBits_NestedMessage();
- virtual ~TestNestedMessageHasBits_NestedMessage();
- TestNestedMessageHasBits_NestedMessage(const TestNestedMessageHasBits_NestedMessage& from);
- inline TestNestedMessageHasBits_NestedMessage& operator=(const TestNestedMessageHasBits_NestedMessage& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestNestedMessageHasBits_NestedMessage(TestNestedMessageHasBits_NestedMessage&& from) noexcept
- : TestNestedMessageHasBits_NestedMessage() {
- *this = ::std::move(from);
- }
- inline TestNestedMessageHasBits_NestedMessage& operator=(TestNestedMessageHasBits_NestedMessage&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const TestNestedMessageHasBits_NestedMessage& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestNestedMessageHasBits_NestedMessage* internal_default_instance() {
- return reinterpret_cast<const TestNestedMessageHasBits_NestedMessage*>(
- &_TestNestedMessageHasBits_NestedMessage_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 38;
- void UnsafeArenaSwap(TestNestedMessageHasBits_NestedMessage* other);
- void Swap(TestNestedMessageHasBits_NestedMessage* other);
- friend void swap(TestNestedMessageHasBits_NestedMessage& a, TestNestedMessageHasBits_NestedMessage& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestNestedMessageHasBits_NestedMessage* New() const final {
- return CreateMaybeMessage<TestNestedMessageHasBits_NestedMessage>(NULL);
- }
- TestNestedMessageHasBits_NestedMessage* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestNestedMessageHasBits_NestedMessage>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestNestedMessageHasBits_NestedMessage& from);
- void MergeFrom(const TestNestedMessageHasBits_NestedMessage& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestNestedMessageHasBits_NestedMessage* other);
- protected:
- explicit TestNestedMessageHasBits_NestedMessage(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // repeated int32 nestedmessage_repeated_int32 = 1;
- int nestedmessage_repeated_int32_size() const;
- void clear_nestedmessage_repeated_int32();
- static const int kNestedmessageRepeatedInt32FieldNumber = 1;
- ::google::protobuf::int32 nestedmessage_repeated_int32(int index) const;
- void set_nestedmessage_repeated_int32(int index, ::google::protobuf::int32 value);
- void add_nestedmessage_repeated_int32(::google::protobuf::int32 value);
- const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
- nestedmessage_repeated_int32() const;
- ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
- mutable_nestedmessage_repeated_int32();
- // repeated .protobuf_unittest.ForeignMessage nestedmessage_repeated_foreignmessage = 2;
- int nestedmessage_repeated_foreignmessage_size() const;
- void clear_nestedmessage_repeated_foreignmessage();
- static const int kNestedmessageRepeatedForeignmessageFieldNumber = 2;
- ::protobuf_unittest::ForeignMessage* mutable_nestedmessage_repeated_foreignmessage(int index);
- ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::ForeignMessage >*
- mutable_nestedmessage_repeated_foreignmessage();
- const ::protobuf_unittest::ForeignMessage& nestedmessage_repeated_foreignmessage(int index) const;
- ::protobuf_unittest::ForeignMessage* add_nestedmessage_repeated_foreignmessage();
- const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::ForeignMessage >&
- nestedmessage_repeated_foreignmessage() const;
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestNestedMessageHasBits.NestedMessage)
- private:
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- ::google::protobuf::RepeatedField< ::google::protobuf::int32 > nestedmessage_repeated_int32_;
- ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::ForeignMessage > nestedmessage_repeated_foreignmessage_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class TestNestedMessageHasBits : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestNestedMessageHasBits) */ {
- public:
- TestNestedMessageHasBits();
- virtual ~TestNestedMessageHasBits();
- TestNestedMessageHasBits(const TestNestedMessageHasBits& from);
- inline TestNestedMessageHasBits& operator=(const TestNestedMessageHasBits& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestNestedMessageHasBits(TestNestedMessageHasBits&& from) noexcept
- : TestNestedMessageHasBits() {
- *this = ::std::move(from);
- }
- inline TestNestedMessageHasBits& operator=(TestNestedMessageHasBits&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const TestNestedMessageHasBits& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestNestedMessageHasBits* internal_default_instance() {
- return reinterpret_cast<const TestNestedMessageHasBits*>(
- &_TestNestedMessageHasBits_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 39;
- void UnsafeArenaSwap(TestNestedMessageHasBits* other);
- void Swap(TestNestedMessageHasBits* other);
- friend void swap(TestNestedMessageHasBits& a, TestNestedMessageHasBits& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestNestedMessageHasBits* New() const final {
- return CreateMaybeMessage<TestNestedMessageHasBits>(NULL);
- }
- TestNestedMessageHasBits* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestNestedMessageHasBits>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestNestedMessageHasBits& from);
- void MergeFrom(const TestNestedMessageHasBits& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestNestedMessageHasBits* other);
- protected:
- explicit TestNestedMessageHasBits(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- typedef TestNestedMessageHasBits_NestedMessage NestedMessage;
- // accessors -------------------------------------------------------
- // optional .protobuf_unittest.TestNestedMessageHasBits.NestedMessage optional_nested_message = 1;
- bool has_optional_nested_message() const;
- void clear_optional_nested_message();
- static const int kOptionalNestedMessageFieldNumber = 1;
- private:
- const ::protobuf_unittest::TestNestedMessageHasBits_NestedMessage& _internal_optional_nested_message() const;
- public:
- const ::protobuf_unittest::TestNestedMessageHasBits_NestedMessage& optional_nested_message() const;
- ::protobuf_unittest::TestNestedMessageHasBits_NestedMessage* release_optional_nested_message();
- ::protobuf_unittest::TestNestedMessageHasBits_NestedMessage* mutable_optional_nested_message();
- void set_allocated_optional_nested_message(::protobuf_unittest::TestNestedMessageHasBits_NestedMessage* optional_nested_message);
- void unsafe_arena_set_allocated_optional_nested_message(
- ::protobuf_unittest::TestNestedMessageHasBits_NestedMessage* optional_nested_message);
- ::protobuf_unittest::TestNestedMessageHasBits_NestedMessage* unsafe_arena_release_optional_nested_message();
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestNestedMessageHasBits)
- private:
- void set_has_optional_nested_message();
- void clear_has_optional_nested_message();
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- ::protobuf_unittest::TestNestedMessageHasBits_NestedMessage* optional_nested_message_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class TestCamelCaseFieldNames : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestCamelCaseFieldNames) */ {
- public:
- TestCamelCaseFieldNames();
- virtual ~TestCamelCaseFieldNames();
- TestCamelCaseFieldNames(const TestCamelCaseFieldNames& from);
- inline TestCamelCaseFieldNames& operator=(const TestCamelCaseFieldNames& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestCamelCaseFieldNames(TestCamelCaseFieldNames&& from) noexcept
- : TestCamelCaseFieldNames() {
- *this = ::std::move(from);
- }
- inline TestCamelCaseFieldNames& operator=(TestCamelCaseFieldNames&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const TestCamelCaseFieldNames& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestCamelCaseFieldNames* internal_default_instance() {
- return reinterpret_cast<const TestCamelCaseFieldNames*>(
- &_TestCamelCaseFieldNames_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 40;
- void UnsafeArenaSwap(TestCamelCaseFieldNames* other);
- void Swap(TestCamelCaseFieldNames* other);
- friend void swap(TestCamelCaseFieldNames& a, TestCamelCaseFieldNames& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestCamelCaseFieldNames* New() const final {
- return CreateMaybeMessage<TestCamelCaseFieldNames>(NULL);
- }
- TestCamelCaseFieldNames* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestCamelCaseFieldNames>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestCamelCaseFieldNames& from);
- void MergeFrom(const TestCamelCaseFieldNames& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestCamelCaseFieldNames* other);
- protected:
- explicit TestCamelCaseFieldNames(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // repeated int32 RepeatedPrimitiveField = 7;
- int repeatedprimitivefield_size() const;
- void clear_repeatedprimitivefield();
- static const int kRepeatedPrimitiveFieldFieldNumber = 7;
- ::google::protobuf::int32 repeatedprimitivefield(int index) const;
- void set_repeatedprimitivefield(int index, ::google::protobuf::int32 value);
- void add_repeatedprimitivefield(::google::protobuf::int32 value);
- const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
- repeatedprimitivefield() const;
- ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
- mutable_repeatedprimitivefield();
- // repeated string RepeatedStringField = 8;
- int repeatedstringfield_size() const;
- void clear_repeatedstringfield();
- static const int kRepeatedStringFieldFieldNumber = 8;
- const ::std::string& repeatedstringfield(int index) const;
- ::std::string* mutable_repeatedstringfield(int index);
- void set_repeatedstringfield(int index, const ::std::string& value);
- #if LANG_CXX11
- void set_repeatedstringfield(int index, ::std::string&& value);
- #endif
- void set_repeatedstringfield(int index, const char* value);
- void set_repeatedstringfield(int index, const char* value, size_t size);
- ::std::string* add_repeatedstringfield();
- void add_repeatedstringfield(const ::std::string& value);
- #if LANG_CXX11
- void add_repeatedstringfield(::std::string&& value);
- #endif
- void add_repeatedstringfield(const char* value);
- void add_repeatedstringfield(const char* value, size_t size);
- const ::google::protobuf::RepeatedPtrField< ::std::string>& repeatedstringfield() const;
- ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_repeatedstringfield();
- // repeated .protobuf_unittest.ForeignEnum RepeatedEnumField = 9;
- int repeatedenumfield_size() const;
- void clear_repeatedenumfield();
- static const int kRepeatedEnumFieldFieldNumber = 9;
- ::protobuf_unittest::ForeignEnum repeatedenumfield(int index) const;
- void set_repeatedenumfield(int index, ::protobuf_unittest::ForeignEnum value);
- void add_repeatedenumfield(::protobuf_unittest::ForeignEnum value);
- const ::google::protobuf::RepeatedField<int>& repeatedenumfield() const;
- ::google::protobuf::RepeatedField<int>* mutable_repeatedenumfield();
- // repeated .protobuf_unittest.ForeignMessage RepeatedMessageField = 10;
- int repeatedmessagefield_size() const;
- void clear_repeatedmessagefield();
- static const int kRepeatedMessageFieldFieldNumber = 10;
- ::protobuf_unittest::ForeignMessage* mutable_repeatedmessagefield(int index);
- ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::ForeignMessage >*
- mutable_repeatedmessagefield();
- const ::protobuf_unittest::ForeignMessage& repeatedmessagefield(int index) const;
- ::protobuf_unittest::ForeignMessage* add_repeatedmessagefield();
- const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::ForeignMessage >&
- repeatedmessagefield() const;
- // repeated string RepeatedStringPieceField = 11 [ctype = STRING_PIECE];
- int repeatedstringpiecefield_size() const;
- void clear_repeatedstringpiecefield();
- static const int kRepeatedStringPieceFieldFieldNumber = 11;
- private:
- // Hidden due to unknown ctype option.
- const ::std::string& repeatedstringpiecefield(int index) const;
- ::std::string* mutable_repeatedstringpiecefield(int index);
- void set_repeatedstringpiecefield(int index, const ::std::string& value);
- #if LANG_CXX11
- void set_repeatedstringpiecefield(int index, ::std::string&& value);
- #endif
- void set_repeatedstringpiecefield(int index, const char* value);
- void set_repeatedstringpiecefield(int index, const char* value, size_t size);
- ::std::string* add_repeatedstringpiecefield();
- void add_repeatedstringpiecefield(const ::std::string& value);
- #if LANG_CXX11
- void add_repeatedstringpiecefield(::std::string&& value);
- #endif
- void add_repeatedstringpiecefield(const char* value);
- void add_repeatedstringpiecefield(const char* value, size_t size);
- const ::google::protobuf::RepeatedPtrField< ::std::string>& repeatedstringpiecefield() const;
- ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_repeatedstringpiecefield();
- public:
- // repeated string RepeatedCordField = 12 [ctype = CORD];
- int repeatedcordfield_size() const;
- void clear_repeatedcordfield();
- static const int kRepeatedCordFieldFieldNumber = 12;
- private:
- // Hidden due to unknown ctype option.
- const ::std::string& repeatedcordfield(int index) const;
- ::std::string* mutable_repeatedcordfield(int index);
- void set_repeatedcordfield(int index, const ::std::string& value);
- #if LANG_CXX11
- void set_repeatedcordfield(int index, ::std::string&& value);
- #endif
- void set_repeatedcordfield(int index, const char* value);
- void set_repeatedcordfield(int index, const char* value, size_t size);
- ::std::string* add_repeatedcordfield();
- void add_repeatedcordfield(const ::std::string& value);
- #if LANG_CXX11
- void add_repeatedcordfield(::std::string&& value);
- #endif
- void add_repeatedcordfield(const char* value);
- void add_repeatedcordfield(const char* value, size_t size);
- const ::google::protobuf::RepeatedPtrField< ::std::string>& repeatedcordfield() const;
- ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_repeatedcordfield();
- public:
- // optional string StringField = 2;
- bool has_stringfield() const;
- void clear_stringfield();
- static const int kStringFieldFieldNumber = 2;
- const ::std::string& stringfield() const;
- void set_stringfield(const ::std::string& value);
- #if LANG_CXX11
- void set_stringfield(::std::string&& value);
- #endif
- void set_stringfield(const char* value);
- void set_stringfield(const char* value, size_t size);
- ::std::string* mutable_stringfield();
- ::std::string* release_stringfield();
- void set_allocated_stringfield(::std::string* stringfield);
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- ::std::string* unsafe_arena_release_stringfield();
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- void unsafe_arena_set_allocated_stringfield(
- ::std::string* stringfield);
- // optional string StringPieceField = 5 [ctype = STRING_PIECE];
- bool has_stringpiecefield() const;
- void clear_stringpiecefield();
- static const int kStringPieceFieldFieldNumber = 5;
- private:
- // Hidden due to unknown ctype option.
- const ::std::string& stringpiecefield() const;
- void set_stringpiecefield(const ::std::string& value);
- #if LANG_CXX11
- void set_stringpiecefield(::std::string&& value);
- #endif
- void set_stringpiecefield(const char* value);
- void set_stringpiecefield(const char* value, size_t size);
- ::std::string* mutable_stringpiecefield();
- ::std::string* release_stringpiecefield();
- void set_allocated_stringpiecefield(::std::string* stringpiecefield);
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- ::std::string* unsafe_arena_release_stringpiecefield();
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- void unsafe_arena_set_allocated_stringpiecefield(
- ::std::string* stringpiecefield);
- public:
- // optional string CordField = 6 [ctype = CORD];
- bool has_cordfield() const;
- void clear_cordfield();
- static const int kCordFieldFieldNumber = 6;
- private:
- // Hidden due to unknown ctype option.
- const ::std::string& cordfield() const;
- void set_cordfield(const ::std::string& value);
- #if LANG_CXX11
- void set_cordfield(::std::string&& value);
- #endif
- void set_cordfield(const char* value);
- void set_cordfield(const char* value, size_t size);
- ::std::string* mutable_cordfield();
- ::std::string* release_cordfield();
- void set_allocated_cordfield(::std::string* cordfield);
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- ::std::string* unsafe_arena_release_cordfield();
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- void unsafe_arena_set_allocated_cordfield(
- ::std::string* cordfield);
- public:
- // optional .protobuf_unittest.ForeignMessage MessageField = 4;
- bool has_messagefield() const;
- void clear_messagefield();
- static const int kMessageFieldFieldNumber = 4;
- private:
- const ::protobuf_unittest::ForeignMessage& _internal_messagefield() const;
- public:
- const ::protobuf_unittest::ForeignMessage& messagefield() const;
- ::protobuf_unittest::ForeignMessage* release_messagefield();
- ::protobuf_unittest::ForeignMessage* mutable_messagefield();
- void set_allocated_messagefield(::protobuf_unittest::ForeignMessage* messagefield);
- void unsafe_arena_set_allocated_messagefield(
- ::protobuf_unittest::ForeignMessage* messagefield);
- ::protobuf_unittest::ForeignMessage* unsafe_arena_release_messagefield();
- // optional int32 PrimitiveField = 1;
- bool has_primitivefield() const;
- void clear_primitivefield();
- static const int kPrimitiveFieldFieldNumber = 1;
- ::google::protobuf::int32 primitivefield() const;
- void set_primitivefield(::google::protobuf::int32 value);
- // optional .protobuf_unittest.ForeignEnum EnumField = 3;
- bool has_enumfield() const;
- void clear_enumfield();
- static const int kEnumFieldFieldNumber = 3;
- ::protobuf_unittest::ForeignEnum enumfield() const;
- void set_enumfield(::protobuf_unittest::ForeignEnum value);
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestCamelCaseFieldNames)
- private:
- void set_has_primitivefield();
- void clear_has_primitivefield();
- void set_has_stringfield();
- void clear_has_stringfield();
- void set_has_enumfield();
- void clear_has_enumfield();
- void set_has_messagefield();
- void clear_has_messagefield();
- void set_has_stringpiecefield();
- void clear_has_stringpiecefield();
- void set_has_cordfield();
- void clear_has_cordfield();
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- ::google::protobuf::RepeatedField< ::google::protobuf::int32 > repeatedprimitivefield_;
- ::google::protobuf::RepeatedPtrField< ::std::string> repeatedstringfield_;
- ::google::protobuf::RepeatedField<int> repeatedenumfield_;
- ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::ForeignMessage > repeatedmessagefield_;
- ::google::protobuf::RepeatedPtrField< ::std::string> repeatedstringpiecefield_;
- ::google::protobuf::RepeatedPtrField< ::std::string> repeatedcordfield_;
- ::google::protobuf::internal::ArenaStringPtr stringfield_;
- ::google::protobuf::internal::ArenaStringPtr stringpiecefield_;
- ::google::protobuf::internal::ArenaStringPtr cordfield_;
- ::protobuf_unittest::ForeignMessage* messagefield_;
- ::google::protobuf::int32 primitivefield_;
- int enumfield_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class TestFieldOrderings_NestedMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestFieldOrderings.NestedMessage) */ {
- public:
- TestFieldOrderings_NestedMessage();
- virtual ~TestFieldOrderings_NestedMessage();
- TestFieldOrderings_NestedMessage(const TestFieldOrderings_NestedMessage& from);
- inline TestFieldOrderings_NestedMessage& operator=(const TestFieldOrderings_NestedMessage& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestFieldOrderings_NestedMessage(TestFieldOrderings_NestedMessage&& from) noexcept
- : TestFieldOrderings_NestedMessage() {
- *this = ::std::move(from);
- }
- inline TestFieldOrderings_NestedMessage& operator=(TestFieldOrderings_NestedMessage&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const TestFieldOrderings_NestedMessage& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestFieldOrderings_NestedMessage* internal_default_instance() {
- return reinterpret_cast<const TestFieldOrderings_NestedMessage*>(
- &_TestFieldOrderings_NestedMessage_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 41;
- void UnsafeArenaSwap(TestFieldOrderings_NestedMessage* other);
- void Swap(TestFieldOrderings_NestedMessage* other);
- friend void swap(TestFieldOrderings_NestedMessage& a, TestFieldOrderings_NestedMessage& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestFieldOrderings_NestedMessage* New() const final {
- return CreateMaybeMessage<TestFieldOrderings_NestedMessage>(NULL);
- }
- TestFieldOrderings_NestedMessage* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestFieldOrderings_NestedMessage>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestFieldOrderings_NestedMessage& from);
- void MergeFrom(const TestFieldOrderings_NestedMessage& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestFieldOrderings_NestedMessage* other);
- protected:
- explicit TestFieldOrderings_NestedMessage(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // optional int64 oo = 2;
- bool has_oo() const;
- void clear_oo();
- static const int kOoFieldNumber = 2;
- ::google::protobuf::int64 oo() const;
- void set_oo(::google::protobuf::int64 value);
- // optional int32 bb = 1;
- bool has_bb() const;
- void clear_bb();
- static const int kBbFieldNumber = 1;
- ::google::protobuf::int32 bb() const;
- void set_bb(::google::protobuf::int32 value);
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestFieldOrderings.NestedMessage)
- private:
- void set_has_oo();
- void clear_has_oo();
- void set_has_bb();
- void clear_has_bb();
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- ::google::protobuf::int64 oo_;
- ::google::protobuf::int32 bb_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class TestFieldOrderings : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestFieldOrderings) */ {
- public:
- TestFieldOrderings();
- virtual ~TestFieldOrderings();
- TestFieldOrderings(const TestFieldOrderings& from);
- inline TestFieldOrderings& operator=(const TestFieldOrderings& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestFieldOrderings(TestFieldOrderings&& from) noexcept
- : TestFieldOrderings() {
- *this = ::std::move(from);
- }
- inline TestFieldOrderings& operator=(TestFieldOrderings&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const TestFieldOrderings& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestFieldOrderings* internal_default_instance() {
- return reinterpret_cast<const TestFieldOrderings*>(
- &_TestFieldOrderings_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 42;
- void UnsafeArenaSwap(TestFieldOrderings* other);
- void Swap(TestFieldOrderings* other);
- friend void swap(TestFieldOrderings& a, TestFieldOrderings& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestFieldOrderings* New() const final {
- return CreateMaybeMessage<TestFieldOrderings>(NULL);
- }
- TestFieldOrderings* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestFieldOrderings>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestFieldOrderings& from);
- void MergeFrom(const TestFieldOrderings& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestFieldOrderings* other);
- protected:
- explicit TestFieldOrderings(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- typedef TestFieldOrderings_NestedMessage NestedMessage;
- // accessors -------------------------------------------------------
- // optional string my_string = 11;
- bool has_my_string() const;
- void clear_my_string();
- static const int kMyStringFieldNumber = 11;
- const ::std::string& my_string() const;
- void set_my_string(const ::std::string& value);
- #if LANG_CXX11
- void set_my_string(::std::string&& value);
- #endif
- void set_my_string(const char* value);
- void set_my_string(const char* value, size_t size);
- ::std::string* mutable_my_string();
- ::std::string* release_my_string();
- void set_allocated_my_string(::std::string* my_string);
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- ::std::string* unsafe_arena_release_my_string();
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- void unsafe_arena_set_allocated_my_string(
- ::std::string* my_string);
- // optional .protobuf_unittest.TestFieldOrderings.NestedMessage optional_nested_message = 200;
- bool has_optional_nested_message() const;
- void clear_optional_nested_message();
- static const int kOptionalNestedMessageFieldNumber = 200;
- private:
- const ::protobuf_unittest::TestFieldOrderings_NestedMessage& _internal_optional_nested_message() const;
- public:
- const ::protobuf_unittest::TestFieldOrderings_NestedMessage& optional_nested_message() const;
- ::protobuf_unittest::TestFieldOrderings_NestedMessage* release_optional_nested_message();
- ::protobuf_unittest::TestFieldOrderings_NestedMessage* mutable_optional_nested_message();
- void set_allocated_optional_nested_message(::protobuf_unittest::TestFieldOrderings_NestedMessage* optional_nested_message);
- void unsafe_arena_set_allocated_optional_nested_message(
- ::protobuf_unittest::TestFieldOrderings_NestedMessage* optional_nested_message);
- ::protobuf_unittest::TestFieldOrderings_NestedMessage* unsafe_arena_release_optional_nested_message();
- // optional int64 my_int = 1;
- bool has_my_int() const;
- void clear_my_int();
- static const int kMyIntFieldNumber = 1;
- ::google::protobuf::int64 my_int() const;
- void set_my_int(::google::protobuf::int64 value);
- // optional float my_float = 101;
- bool has_my_float() const;
- void clear_my_float();
- static const int kMyFloatFieldNumber = 101;
- float my_float() const;
- void set_my_float(float value);
- GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(TestFieldOrderings)
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestFieldOrderings)
- private:
- void set_has_my_string();
- void clear_has_my_string();
- void set_has_my_int();
- void clear_has_my_int();
- void set_has_my_float();
- void clear_has_my_float();
- void set_has_optional_nested_message();
- void clear_has_optional_nested_message();
- ::google::protobuf::internal::ExtensionSet _extensions_;
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- ::google::protobuf::internal::ArenaStringPtr my_string_;
- ::protobuf_unittest::TestFieldOrderings_NestedMessage* optional_nested_message_;
- ::google::protobuf::int64 my_int_;
- float my_float_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class TestExtensionOrderings1 : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestExtensionOrderings1) */ {
- public:
- TestExtensionOrderings1();
- virtual ~TestExtensionOrderings1();
- TestExtensionOrderings1(const TestExtensionOrderings1& from);
- inline TestExtensionOrderings1& operator=(const TestExtensionOrderings1& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestExtensionOrderings1(TestExtensionOrderings1&& from) noexcept
- : TestExtensionOrderings1() {
- *this = ::std::move(from);
- }
- inline TestExtensionOrderings1& operator=(TestExtensionOrderings1&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const TestExtensionOrderings1& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestExtensionOrderings1* internal_default_instance() {
- return reinterpret_cast<const TestExtensionOrderings1*>(
- &_TestExtensionOrderings1_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 43;
- void UnsafeArenaSwap(TestExtensionOrderings1* other);
- void Swap(TestExtensionOrderings1* other);
- friend void swap(TestExtensionOrderings1& a, TestExtensionOrderings1& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestExtensionOrderings1* New() const final {
- return CreateMaybeMessage<TestExtensionOrderings1>(NULL);
- }
- TestExtensionOrderings1* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestExtensionOrderings1>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestExtensionOrderings1& from);
- void MergeFrom(const TestExtensionOrderings1& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestExtensionOrderings1* other);
- protected:
- explicit TestExtensionOrderings1(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // optional string my_string = 1;
- bool has_my_string() const;
- void clear_my_string();
- static const int kMyStringFieldNumber = 1;
- const ::std::string& my_string() const;
- void set_my_string(const ::std::string& value);
- #if LANG_CXX11
- void set_my_string(::std::string&& value);
- #endif
- void set_my_string(const char* value);
- void set_my_string(const char* value, size_t size);
- ::std::string* mutable_my_string();
- ::std::string* release_my_string();
- void set_allocated_my_string(::std::string* my_string);
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- ::std::string* unsafe_arena_release_my_string();
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- void unsafe_arena_set_allocated_my_string(
- ::std::string* my_string);
- static const int kTestExtOrderings1FieldNumber = 13;
- static ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestFieldOrderings,
- ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::TestExtensionOrderings1 >, 11, false >
- test_ext_orderings1;
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestExtensionOrderings1)
- private:
- void set_has_my_string();
- void clear_has_my_string();
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- ::google::protobuf::internal::ArenaStringPtr my_string_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class TestExtensionOrderings2_TestExtensionOrderings3 : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestExtensionOrderings2.TestExtensionOrderings3) */ {
- public:
- TestExtensionOrderings2_TestExtensionOrderings3();
- virtual ~TestExtensionOrderings2_TestExtensionOrderings3();
- TestExtensionOrderings2_TestExtensionOrderings3(const TestExtensionOrderings2_TestExtensionOrderings3& from);
- inline TestExtensionOrderings2_TestExtensionOrderings3& operator=(const TestExtensionOrderings2_TestExtensionOrderings3& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestExtensionOrderings2_TestExtensionOrderings3(TestExtensionOrderings2_TestExtensionOrderings3&& from) noexcept
- : TestExtensionOrderings2_TestExtensionOrderings3() {
- *this = ::std::move(from);
- }
- inline TestExtensionOrderings2_TestExtensionOrderings3& operator=(TestExtensionOrderings2_TestExtensionOrderings3&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const TestExtensionOrderings2_TestExtensionOrderings3& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestExtensionOrderings2_TestExtensionOrderings3* internal_default_instance() {
- return reinterpret_cast<const TestExtensionOrderings2_TestExtensionOrderings3*>(
- &_TestExtensionOrderings2_TestExtensionOrderings3_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 44;
- void UnsafeArenaSwap(TestExtensionOrderings2_TestExtensionOrderings3* other);
- void Swap(TestExtensionOrderings2_TestExtensionOrderings3* other);
- friend void swap(TestExtensionOrderings2_TestExtensionOrderings3& a, TestExtensionOrderings2_TestExtensionOrderings3& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestExtensionOrderings2_TestExtensionOrderings3* New() const final {
- return CreateMaybeMessage<TestExtensionOrderings2_TestExtensionOrderings3>(NULL);
- }
- TestExtensionOrderings2_TestExtensionOrderings3* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestExtensionOrderings2_TestExtensionOrderings3>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestExtensionOrderings2_TestExtensionOrderings3& from);
- void MergeFrom(const TestExtensionOrderings2_TestExtensionOrderings3& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestExtensionOrderings2_TestExtensionOrderings3* other);
- protected:
- explicit TestExtensionOrderings2_TestExtensionOrderings3(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // optional string my_string = 1;
- bool has_my_string() const;
- void clear_my_string();
- static const int kMyStringFieldNumber = 1;
- const ::std::string& my_string() const;
- void set_my_string(const ::std::string& value);
- #if LANG_CXX11
- void set_my_string(::std::string&& value);
- #endif
- void set_my_string(const char* value);
- void set_my_string(const char* value, size_t size);
- ::std::string* mutable_my_string();
- ::std::string* release_my_string();
- void set_allocated_my_string(::std::string* my_string);
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- ::std::string* unsafe_arena_release_my_string();
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- void unsafe_arena_set_allocated_my_string(
- ::std::string* my_string);
- static const int kTestExtOrderings3FieldNumber = 14;
- static ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestFieldOrderings,
- ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::TestExtensionOrderings2_TestExtensionOrderings3 >, 11, false >
- test_ext_orderings3;
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestExtensionOrderings2.TestExtensionOrderings3)
- private:
- void set_has_my_string();
- void clear_has_my_string();
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- ::google::protobuf::internal::ArenaStringPtr my_string_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class TestExtensionOrderings2 : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestExtensionOrderings2) */ {
- public:
- TestExtensionOrderings2();
- virtual ~TestExtensionOrderings2();
- TestExtensionOrderings2(const TestExtensionOrderings2& from);
- inline TestExtensionOrderings2& operator=(const TestExtensionOrderings2& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestExtensionOrderings2(TestExtensionOrderings2&& from) noexcept
- : TestExtensionOrderings2() {
- *this = ::std::move(from);
- }
- inline TestExtensionOrderings2& operator=(TestExtensionOrderings2&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const TestExtensionOrderings2& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestExtensionOrderings2* internal_default_instance() {
- return reinterpret_cast<const TestExtensionOrderings2*>(
- &_TestExtensionOrderings2_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 45;
- void UnsafeArenaSwap(TestExtensionOrderings2* other);
- void Swap(TestExtensionOrderings2* other);
- friend void swap(TestExtensionOrderings2& a, TestExtensionOrderings2& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestExtensionOrderings2* New() const final {
- return CreateMaybeMessage<TestExtensionOrderings2>(NULL);
- }
- TestExtensionOrderings2* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestExtensionOrderings2>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestExtensionOrderings2& from);
- void MergeFrom(const TestExtensionOrderings2& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestExtensionOrderings2* other);
- protected:
- explicit TestExtensionOrderings2(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- typedef TestExtensionOrderings2_TestExtensionOrderings3 TestExtensionOrderings3;
- // accessors -------------------------------------------------------
- // optional string my_string = 1;
- bool has_my_string() const;
- void clear_my_string();
- static const int kMyStringFieldNumber = 1;
- const ::std::string& my_string() const;
- void set_my_string(const ::std::string& value);
- #if LANG_CXX11
- void set_my_string(::std::string&& value);
- #endif
- void set_my_string(const char* value);
- void set_my_string(const char* value, size_t size);
- ::std::string* mutable_my_string();
- ::std::string* release_my_string();
- void set_allocated_my_string(::std::string* my_string);
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- ::std::string* unsafe_arena_release_my_string();
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- void unsafe_arena_set_allocated_my_string(
- ::std::string* my_string);
- static const int kTestExtOrderings2FieldNumber = 12;
- static ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestFieldOrderings,
- ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::TestExtensionOrderings2 >, 11, false >
- test_ext_orderings2;
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestExtensionOrderings2)
- private:
- void set_has_my_string();
- void clear_has_my_string();
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- ::google::protobuf::internal::ArenaStringPtr my_string_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class TestExtremeDefaultValues : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestExtremeDefaultValues) */ {
- public:
- TestExtremeDefaultValues();
- virtual ~TestExtremeDefaultValues();
- TestExtremeDefaultValues(const TestExtremeDefaultValues& from);
- inline TestExtremeDefaultValues& operator=(const TestExtremeDefaultValues& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestExtremeDefaultValues(TestExtremeDefaultValues&& from) noexcept
- : TestExtremeDefaultValues() {
- *this = ::std::move(from);
- }
- inline TestExtremeDefaultValues& operator=(TestExtremeDefaultValues&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const TestExtremeDefaultValues& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestExtremeDefaultValues* internal_default_instance() {
- return reinterpret_cast<const TestExtremeDefaultValues*>(
- &_TestExtremeDefaultValues_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 46;
- void UnsafeArenaSwap(TestExtremeDefaultValues* other);
- void Swap(TestExtremeDefaultValues* other);
- friend void swap(TestExtremeDefaultValues& a, TestExtremeDefaultValues& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestExtremeDefaultValues* New() const final {
- return CreateMaybeMessage<TestExtremeDefaultValues>(NULL);
- }
- TestExtremeDefaultValues* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestExtremeDefaultValues>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestExtremeDefaultValues& from);
- void MergeFrom(const TestExtremeDefaultValues& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestExtremeDefaultValues* other);
- protected:
- explicit TestExtremeDefaultValues(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // optional bytes escaped_bytes = 1 [default = "\000\001\007\010\014\n\r\t\013\\\'\"\376"];
- bool has_escaped_bytes() const;
- void clear_escaped_bytes();
- static const int kEscapedBytesFieldNumber = 1;
- const ::std::string& escaped_bytes() const;
- void set_escaped_bytes(const ::std::string& value);
- #if LANG_CXX11
- void set_escaped_bytes(::std::string&& value);
- #endif
- void set_escaped_bytes(const char* value);
- void set_escaped_bytes(const void* value, size_t size);
- ::std::string* mutable_escaped_bytes();
- ::std::string* release_escaped_bytes();
- void set_allocated_escaped_bytes(::std::string* escaped_bytes);
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- ::std::string* unsafe_arena_release_escaped_bytes();
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- void unsafe_arena_set_allocated_escaped_bytes(
- ::std::string* escaped_bytes);
- // optional string utf8_string = 6 [default = "\341\210\264"];
- bool has_utf8_string() const;
- void clear_utf8_string();
- static const int kUtf8StringFieldNumber = 6;
- const ::std::string& utf8_string() const;
- void set_utf8_string(const ::std::string& value);
- #if LANG_CXX11
- void set_utf8_string(::std::string&& value);
- #endif
- void set_utf8_string(const char* value);
- void set_utf8_string(const char* value, size_t size);
- ::std::string* mutable_utf8_string();
- ::std::string* release_utf8_string();
- void set_allocated_utf8_string(::std::string* utf8_string);
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- ::std::string* unsafe_arena_release_utf8_string();
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- void unsafe_arena_set_allocated_utf8_string(
- ::std::string* utf8_string);
- // optional string cpp_trigraph = 20 [default = "? ? ?? ?? ??? ??/ ??-"];
- bool has_cpp_trigraph() const;
- void clear_cpp_trigraph();
- static const int kCppTrigraphFieldNumber = 20;
- const ::std::string& cpp_trigraph() const;
- void set_cpp_trigraph(const ::std::string& value);
- #if LANG_CXX11
- void set_cpp_trigraph(::std::string&& value);
- #endif
- void set_cpp_trigraph(const char* value);
- void set_cpp_trigraph(const char* value, size_t size);
- ::std::string* mutable_cpp_trigraph();
- ::std::string* release_cpp_trigraph();
- void set_allocated_cpp_trigraph(::std::string* cpp_trigraph);
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- ::std::string* unsafe_arena_release_cpp_trigraph();
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- void unsafe_arena_set_allocated_cpp_trigraph(
- ::std::string* cpp_trigraph);
- // optional string string_with_zero = 23 [default = "hel\000lo"];
- bool has_string_with_zero() const;
- void clear_string_with_zero();
- static const int kStringWithZeroFieldNumber = 23;
- const ::std::string& string_with_zero() const;
- void set_string_with_zero(const ::std::string& value);
- #if LANG_CXX11
- void set_string_with_zero(::std::string&& value);
- #endif
- void set_string_with_zero(const char* value);
- void set_string_with_zero(const char* value, size_t size);
- ::std::string* mutable_string_with_zero();
- ::std::string* release_string_with_zero();
- void set_allocated_string_with_zero(::std::string* string_with_zero);
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- ::std::string* unsafe_arena_release_string_with_zero();
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- void unsafe_arena_set_allocated_string_with_zero(
- ::std::string* string_with_zero);
- // optional bytes bytes_with_zero = 24 [default = "wor\000ld"];
- bool has_bytes_with_zero() const;
- void clear_bytes_with_zero();
- static const int kBytesWithZeroFieldNumber = 24;
- const ::std::string& bytes_with_zero() const;
- void set_bytes_with_zero(const ::std::string& value);
- #if LANG_CXX11
- void set_bytes_with_zero(::std::string&& value);
- #endif
- void set_bytes_with_zero(const char* value);
- void set_bytes_with_zero(const void* value, size_t size);
- ::std::string* mutable_bytes_with_zero();
- ::std::string* release_bytes_with_zero();
- void set_allocated_bytes_with_zero(::std::string* bytes_with_zero);
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- ::std::string* unsafe_arena_release_bytes_with_zero();
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- void unsafe_arena_set_allocated_bytes_with_zero(
- ::std::string* bytes_with_zero);
- // optional string string_piece_with_zero = 25 [default = "ab\000c", ctype = STRING_PIECE];
- bool has_string_piece_with_zero() const;
- void clear_string_piece_with_zero();
- static const int kStringPieceWithZeroFieldNumber = 25;
- private:
- // Hidden due to unknown ctype option.
- const ::std::string& string_piece_with_zero() const;
- void set_string_piece_with_zero(const ::std::string& value);
- #if LANG_CXX11
- void set_string_piece_with_zero(::std::string&& value);
- #endif
- void set_string_piece_with_zero(const char* value);
- void set_string_piece_with_zero(const char* value, size_t size);
- ::std::string* mutable_string_piece_with_zero();
- ::std::string* release_string_piece_with_zero();
- void set_allocated_string_piece_with_zero(::std::string* string_piece_with_zero);
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- ::std::string* unsafe_arena_release_string_piece_with_zero();
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- void unsafe_arena_set_allocated_string_piece_with_zero(
- ::std::string* string_piece_with_zero);
- public:
- // optional string cord_with_zero = 26 [default = "12\0003", ctype = CORD];
- bool has_cord_with_zero() const;
- void clear_cord_with_zero();
- static const int kCordWithZeroFieldNumber = 26;
- private:
- // Hidden due to unknown ctype option.
- const ::std::string& cord_with_zero() const;
- void set_cord_with_zero(const ::std::string& value);
- #if LANG_CXX11
- void set_cord_with_zero(::std::string&& value);
- #endif
- void set_cord_with_zero(const char* value);
- void set_cord_with_zero(const char* value, size_t size);
- ::std::string* mutable_cord_with_zero();
- ::std::string* release_cord_with_zero();
- void set_allocated_cord_with_zero(::std::string* cord_with_zero);
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- ::std::string* unsafe_arena_release_cord_with_zero();
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- void unsafe_arena_set_allocated_cord_with_zero(
- ::std::string* cord_with_zero);
- public:
- // optional string replacement_string = 27 [default = "${unknown}"];
- bool has_replacement_string() const;
- void clear_replacement_string();
- static const int kReplacementStringFieldNumber = 27;
- const ::std::string& replacement_string() const;
- void set_replacement_string(const ::std::string& value);
- #if LANG_CXX11
- void set_replacement_string(::std::string&& value);
- #endif
- void set_replacement_string(const char* value);
- void set_replacement_string(const char* value, size_t size);
- ::std::string* mutable_replacement_string();
- ::std::string* release_replacement_string();
- void set_allocated_replacement_string(::std::string* replacement_string);
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- ::std::string* unsafe_arena_release_replacement_string();
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- void unsafe_arena_set_allocated_replacement_string(
- ::std::string* replacement_string);
- // optional float zero_float = 7 [default = 0];
- bool has_zero_float() const;
- void clear_zero_float();
- static const int kZeroFloatFieldNumber = 7;
- float zero_float() const;
- void set_zero_float(float value);
- // optional uint64 large_uint64 = 3 [default = 18446744073709551615];
- bool has_large_uint64() const;
- void clear_large_uint64();
- static const int kLargeUint64FieldNumber = 3;
- ::google::protobuf::uint64 large_uint64() const;
- void set_large_uint64(::google::protobuf::uint64 value);
- // optional uint32 large_uint32 = 2 [default = 4294967295];
- bool has_large_uint32() const;
- void clear_large_uint32();
- static const int kLargeUint32FieldNumber = 2;
- ::google::protobuf::uint32 large_uint32() const;
- void set_large_uint32(::google::protobuf::uint32 value);
- // optional int32 small_int32 = 4 [default = -2147483647];
- bool has_small_int32() const;
- void clear_small_int32();
- static const int kSmallInt32FieldNumber = 4;
- ::google::protobuf::int32 small_int32() const;
- void set_small_int32(::google::protobuf::int32 value);
- // optional int64 small_int64 = 5 [default = -9223372036854775807];
- bool has_small_int64() const;
- void clear_small_int64();
- static const int kSmallInt64FieldNumber = 5;
- ::google::protobuf::int64 small_int64() const;
- void set_small_int64(::google::protobuf::int64 value);
- // optional float one_float = 8 [default = 1];
- bool has_one_float() const;
- void clear_one_float();
- static const int kOneFloatFieldNumber = 8;
- float one_float() const;
- void set_one_float(float value);
- // optional float small_float = 9 [default = 1.5];
- bool has_small_float() const;
- void clear_small_float();
- static const int kSmallFloatFieldNumber = 9;
- float small_float() const;
- void set_small_float(float value);
- // optional float negative_one_float = 10 [default = -1];
- bool has_negative_one_float() const;
- void clear_negative_one_float();
- static const int kNegativeOneFloatFieldNumber = 10;
- float negative_one_float() const;
- void set_negative_one_float(float value);
- // optional float negative_float = 11 [default = -1.5];
- bool has_negative_float() const;
- void clear_negative_float();
- static const int kNegativeFloatFieldNumber = 11;
- float negative_float() const;
- void set_negative_float(float value);
- // optional float large_float = 12 [default = 2e+08];
- bool has_large_float() const;
- void clear_large_float();
- static const int kLargeFloatFieldNumber = 12;
- float large_float() const;
- void set_large_float(float value);
- // optional float small_negative_float = 13 [default = -8e-28];
- bool has_small_negative_float() const;
- void clear_small_negative_float();
- static const int kSmallNegativeFloatFieldNumber = 13;
- float small_negative_float() const;
- void set_small_negative_float(float value);
- // optional double inf_double = 14 [default = inf];
- bool has_inf_double() const;
- void clear_inf_double();
- static const int kInfDoubleFieldNumber = 14;
- double inf_double() const;
- void set_inf_double(double value);
- // optional double neg_inf_double = 15 [default = -inf];
- bool has_neg_inf_double() const;
- void clear_neg_inf_double();
- static const int kNegInfDoubleFieldNumber = 15;
- double neg_inf_double() const;
- void set_neg_inf_double(double value);
- // optional double nan_double = 16 [default = nan];
- bool has_nan_double() const;
- void clear_nan_double();
- static const int kNanDoubleFieldNumber = 16;
- double nan_double() const;
- void set_nan_double(double value);
- // optional float inf_float = 17 [default = inf];
- bool has_inf_float() const;
- void clear_inf_float();
- static const int kInfFloatFieldNumber = 17;
- float inf_float() const;
- void set_inf_float(float value);
- // optional float neg_inf_float = 18 [default = -inf];
- bool has_neg_inf_float() const;
- void clear_neg_inf_float();
- static const int kNegInfFloatFieldNumber = 18;
- float neg_inf_float() const;
- void set_neg_inf_float(float value);
- // optional float nan_float = 19 [default = nan];
- bool has_nan_float() const;
- void clear_nan_float();
- static const int kNanFloatFieldNumber = 19;
- float nan_float() const;
- void set_nan_float(float value);
- // optional int32 really_small_int32 = 21 [default = -2147483648];
- bool has_really_small_int32() const;
- void clear_really_small_int32();
- static const int kReallySmallInt32FieldNumber = 21;
- ::google::protobuf::int32 really_small_int32() const;
- void set_really_small_int32(::google::protobuf::int32 value);
- // optional int64 really_small_int64 = 22 [default = -9223372036854775808];
- bool has_really_small_int64() const;
- void clear_really_small_int64();
- static const int kReallySmallInt64FieldNumber = 22;
- ::google::protobuf::int64 really_small_int64() const;
- void set_really_small_int64(::google::protobuf::int64 value);
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestExtremeDefaultValues)
- private:
- void set_has_escaped_bytes();
- void clear_has_escaped_bytes();
- void set_has_large_uint32();
- void clear_has_large_uint32();
- void set_has_large_uint64();
- void clear_has_large_uint64();
- void set_has_small_int32();
- void clear_has_small_int32();
- void set_has_small_int64();
- void clear_has_small_int64();
- void set_has_really_small_int32();
- void clear_has_really_small_int32();
- void set_has_really_small_int64();
- void clear_has_really_small_int64();
- void set_has_utf8_string();
- void clear_has_utf8_string();
- void set_has_zero_float();
- void clear_has_zero_float();
- void set_has_one_float();
- void clear_has_one_float();
- void set_has_small_float();
- void clear_has_small_float();
- void set_has_negative_one_float();
- void clear_has_negative_one_float();
- void set_has_negative_float();
- void clear_has_negative_float();
- void set_has_large_float();
- void clear_has_large_float();
- void set_has_small_negative_float();
- void clear_has_small_negative_float();
- void set_has_inf_double();
- void clear_has_inf_double();
- void set_has_neg_inf_double();
- void clear_has_neg_inf_double();
- void set_has_nan_double();
- void clear_has_nan_double();
- void set_has_inf_float();
- void clear_has_inf_float();
- void set_has_neg_inf_float();
- void clear_has_neg_inf_float();
- void set_has_nan_float();
- void clear_has_nan_float();
- void set_has_cpp_trigraph();
- void clear_has_cpp_trigraph();
- void set_has_string_with_zero();
- void clear_has_string_with_zero();
- void set_has_bytes_with_zero();
- void clear_has_bytes_with_zero();
- void set_has_string_piece_with_zero();
- void clear_has_string_piece_with_zero();
- void set_has_cord_with_zero();
- void clear_has_cord_with_zero();
- void set_has_replacement_string();
- void clear_has_replacement_string();
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- public:
- static ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> _i_give_permission_to_break_this_code_default_escaped_bytes_;
- private:
- ::google::protobuf::internal::ArenaStringPtr escaped_bytes_;
- public:
- static ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> _i_give_permission_to_break_this_code_default_utf8_string_;
- private:
- ::google::protobuf::internal::ArenaStringPtr utf8_string_;
- public:
- static ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> _i_give_permission_to_break_this_code_default_cpp_trigraph_;
- private:
- ::google::protobuf::internal::ArenaStringPtr cpp_trigraph_;
- public:
- static ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> _i_give_permission_to_break_this_code_default_string_with_zero_;
- private:
- ::google::protobuf::internal::ArenaStringPtr string_with_zero_;
- public:
- static ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> _i_give_permission_to_break_this_code_default_bytes_with_zero_;
- private:
- ::google::protobuf::internal::ArenaStringPtr bytes_with_zero_;
- public:
- static ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> _i_give_permission_to_break_this_code_default_string_piece_with_zero_;
- private:
- ::google::protobuf::internal::ArenaStringPtr string_piece_with_zero_;
- public:
- static ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> _i_give_permission_to_break_this_code_default_cord_with_zero_;
- private:
- ::google::protobuf::internal::ArenaStringPtr cord_with_zero_;
- public:
- static ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> _i_give_permission_to_break_this_code_default_replacement_string_;
- private:
- ::google::protobuf::internal::ArenaStringPtr replacement_string_;
- float zero_float_;
- ::google::protobuf::uint64 large_uint64_;
- ::google::protobuf::uint32 large_uint32_;
- ::google::protobuf::int32 small_int32_;
- ::google::protobuf::int64 small_int64_;
- float one_float_;
- float small_float_;
- float negative_one_float_;
- float negative_float_;
- float large_float_;
- float small_negative_float_;
- double inf_double_;
- double neg_inf_double_;
- double nan_double_;
- float inf_float_;
- float neg_inf_float_;
- float nan_float_;
- ::google::protobuf::int32 really_small_int32_;
- ::google::protobuf::int64 really_small_int64_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class SparseEnumMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.SparseEnumMessage) */ {
- public:
- SparseEnumMessage();
- virtual ~SparseEnumMessage();
- SparseEnumMessage(const SparseEnumMessage& from);
- inline SparseEnumMessage& operator=(const SparseEnumMessage& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- SparseEnumMessage(SparseEnumMessage&& from) noexcept
- : SparseEnumMessage() {
- *this = ::std::move(from);
- }
- inline SparseEnumMessage& operator=(SparseEnumMessage&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const SparseEnumMessage& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const SparseEnumMessage* internal_default_instance() {
- return reinterpret_cast<const SparseEnumMessage*>(
- &_SparseEnumMessage_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 47;
- void UnsafeArenaSwap(SparseEnumMessage* other);
- void Swap(SparseEnumMessage* other);
- friend void swap(SparseEnumMessage& a, SparseEnumMessage& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline SparseEnumMessage* New() const final {
- return CreateMaybeMessage<SparseEnumMessage>(NULL);
- }
- SparseEnumMessage* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<SparseEnumMessage>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const SparseEnumMessage& from);
- void MergeFrom(const SparseEnumMessage& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(SparseEnumMessage* other);
- protected:
- explicit SparseEnumMessage(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // optional .protobuf_unittest.TestSparseEnum sparse_enum = 1;
- bool has_sparse_enum() const;
- void clear_sparse_enum();
- static const int kSparseEnumFieldNumber = 1;
- ::protobuf_unittest::TestSparseEnum sparse_enum() const;
- void set_sparse_enum(::protobuf_unittest::TestSparseEnum value);
- // @@protoc_insertion_point(class_scope:protobuf_unittest.SparseEnumMessage)
- private:
- void set_has_sparse_enum();
- void clear_has_sparse_enum();
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- int sparse_enum_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class OneString : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.OneString) */ {
- public:
- OneString();
- virtual ~OneString();
- OneString(const OneString& from);
- inline OneString& operator=(const OneString& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- OneString(OneString&& from) noexcept
- : OneString() {
- *this = ::std::move(from);
- }
- inline OneString& operator=(OneString&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const OneString& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const OneString* internal_default_instance() {
- return reinterpret_cast<const OneString*>(
- &_OneString_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 48;
- void UnsafeArenaSwap(OneString* other);
- void Swap(OneString* other);
- friend void swap(OneString& a, OneString& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline OneString* New() const final {
- return CreateMaybeMessage<OneString>(NULL);
- }
- OneString* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<OneString>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const OneString& from);
- void MergeFrom(const OneString& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(OneString* other);
- protected:
- explicit OneString(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // optional string data = 1;
- bool has_data() const;
- void clear_data();
- static const int kDataFieldNumber = 1;
- const ::std::string& data() const;
- void set_data(const ::std::string& value);
- #if LANG_CXX11
- void set_data(::std::string&& value);
- #endif
- void set_data(const char* value);
- void set_data(const char* value, size_t size);
- ::std::string* mutable_data();
- ::std::string* release_data();
- void set_allocated_data(::std::string* data);
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- ::std::string* unsafe_arena_release_data();
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- void unsafe_arena_set_allocated_data(
- ::std::string* data);
- // @@protoc_insertion_point(class_scope:protobuf_unittest.OneString)
- private:
- void set_has_data();
- void clear_has_data();
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- ::google::protobuf::internal::ArenaStringPtr data_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class MoreString : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.MoreString) */ {
- public:
- MoreString();
- virtual ~MoreString();
- MoreString(const MoreString& from);
- inline MoreString& operator=(const MoreString& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- MoreString(MoreString&& from) noexcept
- : MoreString() {
- *this = ::std::move(from);
- }
- inline MoreString& operator=(MoreString&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const MoreString& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const MoreString* internal_default_instance() {
- return reinterpret_cast<const MoreString*>(
- &_MoreString_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 49;
- void UnsafeArenaSwap(MoreString* other);
- void Swap(MoreString* other);
- friend void swap(MoreString& a, MoreString& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline MoreString* New() const final {
- return CreateMaybeMessage<MoreString>(NULL);
- }
- MoreString* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<MoreString>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const MoreString& from);
- void MergeFrom(const MoreString& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(MoreString* other);
- protected:
- explicit MoreString(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // repeated string data = 1;
- int data_size() const;
- void clear_data();
- static const int kDataFieldNumber = 1;
- const ::std::string& data(int index) const;
- ::std::string* mutable_data(int index);
- void set_data(int index, const ::std::string& value);
- #if LANG_CXX11
- void set_data(int index, ::std::string&& value);
- #endif
- void set_data(int index, const char* value);
- void set_data(int index, const char* value, size_t size);
- ::std::string* add_data();
- void add_data(const ::std::string& value);
- #if LANG_CXX11
- void add_data(::std::string&& value);
- #endif
- void add_data(const char* value);
- void add_data(const char* value, size_t size);
- const ::google::protobuf::RepeatedPtrField< ::std::string>& data() const;
- ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_data();
- // @@protoc_insertion_point(class_scope:protobuf_unittest.MoreString)
- private:
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- ::google::protobuf::RepeatedPtrField< ::std::string> data_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class OneBytes : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.OneBytes) */ {
- public:
- OneBytes();
- virtual ~OneBytes();
- OneBytes(const OneBytes& from);
- inline OneBytes& operator=(const OneBytes& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- OneBytes(OneBytes&& from) noexcept
- : OneBytes() {
- *this = ::std::move(from);
- }
- inline OneBytes& operator=(OneBytes&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const OneBytes& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const OneBytes* internal_default_instance() {
- return reinterpret_cast<const OneBytes*>(
- &_OneBytes_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 50;
- void UnsafeArenaSwap(OneBytes* other);
- void Swap(OneBytes* other);
- friend void swap(OneBytes& a, OneBytes& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline OneBytes* New() const final {
- return CreateMaybeMessage<OneBytes>(NULL);
- }
- OneBytes* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<OneBytes>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const OneBytes& from);
- void MergeFrom(const OneBytes& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(OneBytes* other);
- protected:
- explicit OneBytes(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // optional bytes data = 1;
- bool has_data() const;
- void clear_data();
- static const int kDataFieldNumber = 1;
- const ::std::string& data() const;
- void set_data(const ::std::string& value);
- #if LANG_CXX11
- void set_data(::std::string&& value);
- #endif
- void set_data(const char* value);
- void set_data(const void* value, size_t size);
- ::std::string* mutable_data();
- ::std::string* release_data();
- void set_allocated_data(::std::string* data);
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- ::std::string* unsafe_arena_release_data();
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- void unsafe_arena_set_allocated_data(
- ::std::string* data);
- // @@protoc_insertion_point(class_scope:protobuf_unittest.OneBytes)
- private:
- void set_has_data();
- void clear_has_data();
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- ::google::protobuf::internal::ArenaStringPtr data_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class MoreBytes : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.MoreBytes) */ {
- public:
- MoreBytes();
- virtual ~MoreBytes();
- MoreBytes(const MoreBytes& from);
- inline MoreBytes& operator=(const MoreBytes& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- MoreBytes(MoreBytes&& from) noexcept
- : MoreBytes() {
- *this = ::std::move(from);
- }
- inline MoreBytes& operator=(MoreBytes&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const MoreBytes& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const MoreBytes* internal_default_instance() {
- return reinterpret_cast<const MoreBytes*>(
- &_MoreBytes_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 51;
- void UnsafeArenaSwap(MoreBytes* other);
- void Swap(MoreBytes* other);
- friend void swap(MoreBytes& a, MoreBytes& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline MoreBytes* New() const final {
- return CreateMaybeMessage<MoreBytes>(NULL);
- }
- MoreBytes* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<MoreBytes>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const MoreBytes& from);
- void MergeFrom(const MoreBytes& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(MoreBytes* other);
- protected:
- explicit MoreBytes(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // repeated bytes data = 1;
- int data_size() const;
- void clear_data();
- static const int kDataFieldNumber = 1;
- const ::std::string& data(int index) const;
- ::std::string* mutable_data(int index);
- void set_data(int index, const ::std::string& value);
- #if LANG_CXX11
- void set_data(int index, ::std::string&& value);
- #endif
- void set_data(int index, const char* value);
- void set_data(int index, const void* value, size_t size);
- ::std::string* add_data();
- void add_data(const ::std::string& value);
- #if LANG_CXX11
- void add_data(::std::string&& value);
- #endif
- void add_data(const char* value);
- void add_data(const void* value, size_t size);
- const ::google::protobuf::RepeatedPtrField< ::std::string>& data() const;
- ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_data();
- // @@protoc_insertion_point(class_scope:protobuf_unittest.MoreBytes)
- private:
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- ::google::protobuf::RepeatedPtrField< ::std::string> data_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class Int32Message : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.Int32Message) */ {
- public:
- Int32Message();
- virtual ~Int32Message();
- Int32Message(const Int32Message& from);
- inline Int32Message& operator=(const Int32Message& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- Int32Message(Int32Message&& from) noexcept
- : Int32Message() {
- *this = ::std::move(from);
- }
- inline Int32Message& operator=(Int32Message&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const Int32Message& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const Int32Message* internal_default_instance() {
- return reinterpret_cast<const Int32Message*>(
- &_Int32Message_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 52;
- void UnsafeArenaSwap(Int32Message* other);
- void Swap(Int32Message* other);
- friend void swap(Int32Message& a, Int32Message& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline Int32Message* New() const final {
- return CreateMaybeMessage<Int32Message>(NULL);
- }
- Int32Message* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<Int32Message>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const Int32Message& from);
- void MergeFrom(const Int32Message& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(Int32Message* other);
- protected:
- explicit Int32Message(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // optional int32 data = 1;
- bool has_data() const;
- void clear_data();
- static const int kDataFieldNumber = 1;
- ::google::protobuf::int32 data() const;
- void set_data(::google::protobuf::int32 value);
- // @@protoc_insertion_point(class_scope:protobuf_unittest.Int32Message)
- private:
- void set_has_data();
- void clear_has_data();
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- ::google::protobuf::int32 data_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class Uint32Message : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.Uint32Message) */ {
- public:
- Uint32Message();
- virtual ~Uint32Message();
- Uint32Message(const Uint32Message& from);
- inline Uint32Message& operator=(const Uint32Message& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- Uint32Message(Uint32Message&& from) noexcept
- : Uint32Message() {
- *this = ::std::move(from);
- }
- inline Uint32Message& operator=(Uint32Message&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const Uint32Message& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const Uint32Message* internal_default_instance() {
- return reinterpret_cast<const Uint32Message*>(
- &_Uint32Message_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 53;
- void UnsafeArenaSwap(Uint32Message* other);
- void Swap(Uint32Message* other);
- friend void swap(Uint32Message& a, Uint32Message& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline Uint32Message* New() const final {
- return CreateMaybeMessage<Uint32Message>(NULL);
- }
- Uint32Message* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<Uint32Message>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const Uint32Message& from);
- void MergeFrom(const Uint32Message& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(Uint32Message* other);
- protected:
- explicit Uint32Message(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // optional uint32 data = 1;
- bool has_data() const;
- void clear_data();
- static const int kDataFieldNumber = 1;
- ::google::protobuf::uint32 data() const;
- void set_data(::google::protobuf::uint32 value);
- // @@protoc_insertion_point(class_scope:protobuf_unittest.Uint32Message)
- private:
- void set_has_data();
- void clear_has_data();
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- ::google::protobuf::uint32 data_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class Int64Message : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.Int64Message) */ {
- public:
- Int64Message();
- virtual ~Int64Message();
- Int64Message(const Int64Message& from);
- inline Int64Message& operator=(const Int64Message& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- Int64Message(Int64Message&& from) noexcept
- : Int64Message() {
- *this = ::std::move(from);
- }
- inline Int64Message& operator=(Int64Message&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const Int64Message& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const Int64Message* internal_default_instance() {
- return reinterpret_cast<const Int64Message*>(
- &_Int64Message_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 54;
- void UnsafeArenaSwap(Int64Message* other);
- void Swap(Int64Message* other);
- friend void swap(Int64Message& a, Int64Message& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline Int64Message* New() const final {
- return CreateMaybeMessage<Int64Message>(NULL);
- }
- Int64Message* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<Int64Message>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const Int64Message& from);
- void MergeFrom(const Int64Message& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(Int64Message* other);
- protected:
- explicit Int64Message(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // optional int64 data = 1;
- bool has_data() const;
- void clear_data();
- static const int kDataFieldNumber = 1;
- ::google::protobuf::int64 data() const;
- void set_data(::google::protobuf::int64 value);
- // @@protoc_insertion_point(class_scope:protobuf_unittest.Int64Message)
- private:
- void set_has_data();
- void clear_has_data();
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- ::google::protobuf::int64 data_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class Uint64Message : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.Uint64Message) */ {
- public:
- Uint64Message();
- virtual ~Uint64Message();
- Uint64Message(const Uint64Message& from);
- inline Uint64Message& operator=(const Uint64Message& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- Uint64Message(Uint64Message&& from) noexcept
- : Uint64Message() {
- *this = ::std::move(from);
- }
- inline Uint64Message& operator=(Uint64Message&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const Uint64Message& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const Uint64Message* internal_default_instance() {
- return reinterpret_cast<const Uint64Message*>(
- &_Uint64Message_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 55;
- void UnsafeArenaSwap(Uint64Message* other);
- void Swap(Uint64Message* other);
- friend void swap(Uint64Message& a, Uint64Message& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline Uint64Message* New() const final {
- return CreateMaybeMessage<Uint64Message>(NULL);
- }
- Uint64Message* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<Uint64Message>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const Uint64Message& from);
- void MergeFrom(const Uint64Message& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(Uint64Message* other);
- protected:
- explicit Uint64Message(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // optional uint64 data = 1;
- bool has_data() const;
- void clear_data();
- static const int kDataFieldNumber = 1;
- ::google::protobuf::uint64 data() const;
- void set_data(::google::protobuf::uint64 value);
- // @@protoc_insertion_point(class_scope:protobuf_unittest.Uint64Message)
- private:
- void set_has_data();
- void clear_has_data();
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- ::google::protobuf::uint64 data_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class BoolMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.BoolMessage) */ {
- public:
- BoolMessage();
- virtual ~BoolMessage();
- BoolMessage(const BoolMessage& from);
- inline BoolMessage& operator=(const BoolMessage& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- BoolMessage(BoolMessage&& from) noexcept
- : BoolMessage() {
- *this = ::std::move(from);
- }
- inline BoolMessage& operator=(BoolMessage&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const BoolMessage& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const BoolMessage* internal_default_instance() {
- return reinterpret_cast<const BoolMessage*>(
- &_BoolMessage_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 56;
- void UnsafeArenaSwap(BoolMessage* other);
- void Swap(BoolMessage* other);
- friend void swap(BoolMessage& a, BoolMessage& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline BoolMessage* New() const final {
- return CreateMaybeMessage<BoolMessage>(NULL);
- }
- BoolMessage* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<BoolMessage>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const BoolMessage& from);
- void MergeFrom(const BoolMessage& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(BoolMessage* other);
- protected:
- explicit BoolMessage(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // optional bool data = 1;
- bool has_data() const;
- void clear_data();
- static const int kDataFieldNumber = 1;
- bool data() const;
- void set_data(bool value);
- // @@protoc_insertion_point(class_scope:protobuf_unittest.BoolMessage)
- private:
- void set_has_data();
- void clear_has_data();
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- bool data_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class TestOneof_FooGroup : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestOneof.FooGroup) */ {
- public:
- TestOneof_FooGroup();
- virtual ~TestOneof_FooGroup();
- TestOneof_FooGroup(const TestOneof_FooGroup& from);
- inline TestOneof_FooGroup& operator=(const TestOneof_FooGroup& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestOneof_FooGroup(TestOneof_FooGroup&& from) noexcept
- : TestOneof_FooGroup() {
- *this = ::std::move(from);
- }
- inline TestOneof_FooGroup& operator=(TestOneof_FooGroup&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const TestOneof_FooGroup& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestOneof_FooGroup* internal_default_instance() {
- return reinterpret_cast<const TestOneof_FooGroup*>(
- &_TestOneof_FooGroup_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 57;
- void UnsafeArenaSwap(TestOneof_FooGroup* other);
- void Swap(TestOneof_FooGroup* other);
- friend void swap(TestOneof_FooGroup& a, TestOneof_FooGroup& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestOneof_FooGroup* New() const final {
- return CreateMaybeMessage<TestOneof_FooGroup>(NULL);
- }
- TestOneof_FooGroup* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestOneof_FooGroup>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestOneof_FooGroup& from);
- void MergeFrom(const TestOneof_FooGroup& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestOneof_FooGroup* other);
- protected:
- explicit TestOneof_FooGroup(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // optional string b = 6;
- bool has_b() const;
- void clear_b();
- static const int kBFieldNumber = 6;
- const ::std::string& b() const;
- void set_b(const ::std::string& value);
- #if LANG_CXX11
- void set_b(::std::string&& value);
- #endif
- void set_b(const char* value);
- void set_b(const char* value, size_t size);
- ::std::string* mutable_b();
- ::std::string* release_b();
- void set_allocated_b(::std::string* b);
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- ::std::string* unsafe_arena_release_b();
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- void unsafe_arena_set_allocated_b(
- ::std::string* b);
- // optional int32 a = 5;
- bool has_a() const;
- void clear_a();
- static const int kAFieldNumber = 5;
- ::google::protobuf::int32 a() const;
- void set_a(::google::protobuf::int32 value);
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestOneof.FooGroup)
- private:
- void set_has_a();
- void clear_has_a();
- void set_has_b();
- void clear_has_b();
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- ::google::protobuf::internal::ArenaStringPtr b_;
- ::google::protobuf::int32 a_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class TestOneof : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestOneof) */ {
- public:
- TestOneof();
- virtual ~TestOneof();
- TestOneof(const TestOneof& from);
- inline TestOneof& operator=(const TestOneof& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestOneof(TestOneof&& from) noexcept
- : TestOneof() {
- *this = ::std::move(from);
- }
- inline TestOneof& operator=(TestOneof&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const TestOneof& default_instance();
- enum FooCase {
- kFooInt = 1,
- kFooString = 2,
- kFooMessage = 3,
- kFoogroup = 4,
- FOO_NOT_SET = 0,
- };
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestOneof* internal_default_instance() {
- return reinterpret_cast<const TestOneof*>(
- &_TestOneof_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 58;
- void UnsafeArenaSwap(TestOneof* other);
- void Swap(TestOneof* other);
- friend void swap(TestOneof& a, TestOneof& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestOneof* New() const final {
- return CreateMaybeMessage<TestOneof>(NULL);
- }
- TestOneof* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestOneof>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestOneof& from);
- void MergeFrom(const TestOneof& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestOneof* other);
- protected:
- explicit TestOneof(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- typedef TestOneof_FooGroup FooGroup;
- // accessors -------------------------------------------------------
- // optional int32 foo_int = 1;
- bool has_foo_int() const;
- void clear_foo_int();
- static const int kFooIntFieldNumber = 1;
- ::google::protobuf::int32 foo_int() const;
- void set_foo_int(::google::protobuf::int32 value);
- // optional string foo_string = 2;
- bool has_foo_string() const;
- void clear_foo_string();
- static const int kFooStringFieldNumber = 2;
- const ::std::string& foo_string() const;
- void set_foo_string(const ::std::string& value);
- #if LANG_CXX11
- void set_foo_string(::std::string&& value);
- #endif
- void set_foo_string(const char* value);
- void set_foo_string(const char* value, size_t size);
- ::std::string* mutable_foo_string();
- ::std::string* release_foo_string();
- void set_allocated_foo_string(::std::string* foo_string);
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- ::std::string* unsafe_arena_release_foo_string();
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- void unsafe_arena_set_allocated_foo_string(
- ::std::string* foo_string);
- // optional .protobuf_unittest.TestAllTypes foo_message = 3;
- bool has_foo_message() const;
- void clear_foo_message();
- static const int kFooMessageFieldNumber = 3;
- private:
- const ::protobuf_unittest::TestAllTypes& _internal_foo_message() const;
- public:
- const ::protobuf_unittest::TestAllTypes& foo_message() const;
- ::protobuf_unittest::TestAllTypes* release_foo_message();
- ::protobuf_unittest::TestAllTypes* mutable_foo_message();
- void set_allocated_foo_message(::protobuf_unittest::TestAllTypes* foo_message);
- void unsafe_arena_set_allocated_foo_message(
- ::protobuf_unittest::TestAllTypes* foo_message);
- ::protobuf_unittest::TestAllTypes* unsafe_arena_release_foo_message();
- // optional group FooGroup = 4 { ... };
- bool has_foogroup() const;
- void clear_foogroup();
- static const int kFoogroupFieldNumber = 4;
- private:
- const ::protobuf_unittest::TestOneof_FooGroup& _internal_foogroup() const;
- public:
- const ::protobuf_unittest::TestOneof_FooGroup& foogroup() const;
- ::protobuf_unittest::TestOneof_FooGroup* release_foogroup();
- ::protobuf_unittest::TestOneof_FooGroup* mutable_foogroup();
- void set_allocated_foogroup(::protobuf_unittest::TestOneof_FooGroup* foogroup);
- void unsafe_arena_set_allocated_foogroup(
- ::protobuf_unittest::TestOneof_FooGroup* foogroup);
- ::protobuf_unittest::TestOneof_FooGroup* unsafe_arena_release_foogroup();
- void clear_foo();
- FooCase foo_case() const;
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestOneof)
- private:
- void set_has_foo_int();
- void set_has_foo_string();
- void set_has_foo_message();
- void set_has_foogroup();
- inline bool has_foo() const;
- inline void clear_has_foo();
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- union FooUnion {
- FooUnion() {}
- ::google::protobuf::int32 foo_int_;
- ::google::protobuf::internal::ArenaStringPtr foo_string_;
- ::protobuf_unittest::TestAllTypes* foo_message_;
- ::protobuf_unittest::TestOneof_FooGroup* foogroup_;
- } foo_;
- ::google::protobuf::uint32 _oneof_case_[1];
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class TestOneofBackwardsCompatible_FooGroup : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestOneofBackwardsCompatible.FooGroup) */ {
- public:
- TestOneofBackwardsCompatible_FooGroup();
- virtual ~TestOneofBackwardsCompatible_FooGroup();
- TestOneofBackwardsCompatible_FooGroup(const TestOneofBackwardsCompatible_FooGroup& from);
- inline TestOneofBackwardsCompatible_FooGroup& operator=(const TestOneofBackwardsCompatible_FooGroup& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestOneofBackwardsCompatible_FooGroup(TestOneofBackwardsCompatible_FooGroup&& from) noexcept
- : TestOneofBackwardsCompatible_FooGroup() {
- *this = ::std::move(from);
- }
- inline TestOneofBackwardsCompatible_FooGroup& operator=(TestOneofBackwardsCompatible_FooGroup&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const TestOneofBackwardsCompatible_FooGroup& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestOneofBackwardsCompatible_FooGroup* internal_default_instance() {
- return reinterpret_cast<const TestOneofBackwardsCompatible_FooGroup*>(
- &_TestOneofBackwardsCompatible_FooGroup_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 59;
- void UnsafeArenaSwap(TestOneofBackwardsCompatible_FooGroup* other);
- void Swap(TestOneofBackwardsCompatible_FooGroup* other);
- friend void swap(TestOneofBackwardsCompatible_FooGroup& a, TestOneofBackwardsCompatible_FooGroup& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestOneofBackwardsCompatible_FooGroup* New() const final {
- return CreateMaybeMessage<TestOneofBackwardsCompatible_FooGroup>(NULL);
- }
- TestOneofBackwardsCompatible_FooGroup* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestOneofBackwardsCompatible_FooGroup>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestOneofBackwardsCompatible_FooGroup& from);
- void MergeFrom(const TestOneofBackwardsCompatible_FooGroup& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestOneofBackwardsCompatible_FooGroup* other);
- protected:
- explicit TestOneofBackwardsCompatible_FooGroup(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // optional string b = 6;
- bool has_b() const;
- void clear_b();
- static const int kBFieldNumber = 6;
- const ::std::string& b() const;
- void set_b(const ::std::string& value);
- #if LANG_CXX11
- void set_b(::std::string&& value);
- #endif
- void set_b(const char* value);
- void set_b(const char* value, size_t size);
- ::std::string* mutable_b();
- ::std::string* release_b();
- void set_allocated_b(::std::string* b);
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- ::std::string* unsafe_arena_release_b();
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- void unsafe_arena_set_allocated_b(
- ::std::string* b);
- // optional int32 a = 5;
- bool has_a() const;
- void clear_a();
- static const int kAFieldNumber = 5;
- ::google::protobuf::int32 a() const;
- void set_a(::google::protobuf::int32 value);
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestOneofBackwardsCompatible.FooGroup)
- private:
- void set_has_a();
- void clear_has_a();
- void set_has_b();
- void clear_has_b();
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- ::google::protobuf::internal::ArenaStringPtr b_;
- ::google::protobuf::int32 a_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class TestOneofBackwardsCompatible : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestOneofBackwardsCompatible) */ {
- public:
- TestOneofBackwardsCompatible();
- virtual ~TestOneofBackwardsCompatible();
- TestOneofBackwardsCompatible(const TestOneofBackwardsCompatible& from);
- inline TestOneofBackwardsCompatible& operator=(const TestOneofBackwardsCompatible& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestOneofBackwardsCompatible(TestOneofBackwardsCompatible&& from) noexcept
- : TestOneofBackwardsCompatible() {
- *this = ::std::move(from);
- }
- inline TestOneofBackwardsCompatible& operator=(TestOneofBackwardsCompatible&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const TestOneofBackwardsCompatible& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestOneofBackwardsCompatible* internal_default_instance() {
- return reinterpret_cast<const TestOneofBackwardsCompatible*>(
- &_TestOneofBackwardsCompatible_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 60;
- void UnsafeArenaSwap(TestOneofBackwardsCompatible* other);
- void Swap(TestOneofBackwardsCompatible* other);
- friend void swap(TestOneofBackwardsCompatible& a, TestOneofBackwardsCompatible& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestOneofBackwardsCompatible* New() const final {
- return CreateMaybeMessage<TestOneofBackwardsCompatible>(NULL);
- }
- TestOneofBackwardsCompatible* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestOneofBackwardsCompatible>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestOneofBackwardsCompatible& from);
- void MergeFrom(const TestOneofBackwardsCompatible& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestOneofBackwardsCompatible* other);
- protected:
- explicit TestOneofBackwardsCompatible(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- typedef TestOneofBackwardsCompatible_FooGroup FooGroup;
- // accessors -------------------------------------------------------
- // optional string foo_string = 2;
- bool has_foo_string() const;
- void clear_foo_string();
- static const int kFooStringFieldNumber = 2;
- const ::std::string& foo_string() const;
- void set_foo_string(const ::std::string& value);
- #if LANG_CXX11
- void set_foo_string(::std::string&& value);
- #endif
- void set_foo_string(const char* value);
- void set_foo_string(const char* value, size_t size);
- ::std::string* mutable_foo_string();
- ::std::string* release_foo_string();
- void set_allocated_foo_string(::std::string* foo_string);
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- ::std::string* unsafe_arena_release_foo_string();
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- void unsafe_arena_set_allocated_foo_string(
- ::std::string* foo_string);
- // optional .protobuf_unittest.TestAllTypes foo_message = 3;
- bool has_foo_message() const;
- void clear_foo_message();
- static const int kFooMessageFieldNumber = 3;
- private:
- const ::protobuf_unittest::TestAllTypes& _internal_foo_message() const;
- public:
- const ::protobuf_unittest::TestAllTypes& foo_message() const;
- ::protobuf_unittest::TestAllTypes* release_foo_message();
- ::protobuf_unittest::TestAllTypes* mutable_foo_message();
- void set_allocated_foo_message(::protobuf_unittest::TestAllTypes* foo_message);
- void unsafe_arena_set_allocated_foo_message(
- ::protobuf_unittest::TestAllTypes* foo_message);
- ::protobuf_unittest::TestAllTypes* unsafe_arena_release_foo_message();
- // optional group FooGroup = 4 { ... };
- bool has_foogroup() const;
- void clear_foogroup();
- static const int kFoogroupFieldNumber = 4;
- private:
- const ::protobuf_unittest::TestOneofBackwardsCompatible_FooGroup& _internal_foogroup() const;
- public:
- const ::protobuf_unittest::TestOneofBackwardsCompatible_FooGroup& foogroup() const;
- ::protobuf_unittest::TestOneofBackwardsCompatible_FooGroup* release_foogroup();
- ::protobuf_unittest::TestOneofBackwardsCompatible_FooGroup* mutable_foogroup();
- void set_allocated_foogroup(::protobuf_unittest::TestOneofBackwardsCompatible_FooGroup* foogroup);
- void unsafe_arena_set_allocated_foogroup(
- ::protobuf_unittest::TestOneofBackwardsCompatible_FooGroup* foogroup);
- ::protobuf_unittest::TestOneofBackwardsCompatible_FooGroup* unsafe_arena_release_foogroup();
- // optional int32 foo_int = 1;
- bool has_foo_int() const;
- void clear_foo_int();
- static const int kFooIntFieldNumber = 1;
- ::google::protobuf::int32 foo_int() const;
- void set_foo_int(::google::protobuf::int32 value);
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestOneofBackwardsCompatible)
- private:
- void set_has_foo_int();
- void clear_has_foo_int();
- void set_has_foo_string();
- void clear_has_foo_string();
- void set_has_foo_message();
- void clear_has_foo_message();
- void set_has_foogroup();
- void clear_has_foogroup();
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- ::google::protobuf::internal::ArenaStringPtr foo_string_;
- ::protobuf_unittest::TestAllTypes* foo_message_;
- ::protobuf_unittest::TestOneofBackwardsCompatible_FooGroup* foogroup_;
- ::google::protobuf::int32 foo_int_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class TestOneof2_FooGroup : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestOneof2.FooGroup) */ {
- public:
- TestOneof2_FooGroup();
- virtual ~TestOneof2_FooGroup();
- TestOneof2_FooGroup(const TestOneof2_FooGroup& from);
- inline TestOneof2_FooGroup& operator=(const TestOneof2_FooGroup& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestOneof2_FooGroup(TestOneof2_FooGroup&& from) noexcept
- : TestOneof2_FooGroup() {
- *this = ::std::move(from);
- }
- inline TestOneof2_FooGroup& operator=(TestOneof2_FooGroup&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const TestOneof2_FooGroup& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestOneof2_FooGroup* internal_default_instance() {
- return reinterpret_cast<const TestOneof2_FooGroup*>(
- &_TestOneof2_FooGroup_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 61;
- void UnsafeArenaSwap(TestOneof2_FooGroup* other);
- void Swap(TestOneof2_FooGroup* other);
- friend void swap(TestOneof2_FooGroup& a, TestOneof2_FooGroup& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestOneof2_FooGroup* New() const final {
- return CreateMaybeMessage<TestOneof2_FooGroup>(NULL);
- }
- TestOneof2_FooGroup* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestOneof2_FooGroup>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestOneof2_FooGroup& from);
- void MergeFrom(const TestOneof2_FooGroup& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestOneof2_FooGroup* other);
- protected:
- explicit TestOneof2_FooGroup(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // optional string b = 10;
- bool has_b() const;
- void clear_b();
- static const int kBFieldNumber = 10;
- const ::std::string& b() const;
- void set_b(const ::std::string& value);
- #if LANG_CXX11
- void set_b(::std::string&& value);
- #endif
- void set_b(const char* value);
- void set_b(const char* value, size_t size);
- ::std::string* mutable_b();
- ::std::string* release_b();
- void set_allocated_b(::std::string* b);
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- ::std::string* unsafe_arena_release_b();
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- void unsafe_arena_set_allocated_b(
- ::std::string* b);
- // optional int32 a = 9;
- bool has_a() const;
- void clear_a();
- static const int kAFieldNumber = 9;
- ::google::protobuf::int32 a() const;
- void set_a(::google::protobuf::int32 value);
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestOneof2.FooGroup)
- private:
- void set_has_a();
- void clear_has_a();
- void set_has_b();
- void clear_has_b();
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- ::google::protobuf::internal::ArenaStringPtr b_;
- ::google::protobuf::int32 a_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class TestOneof2_NestedMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestOneof2.NestedMessage) */ {
- public:
- TestOneof2_NestedMessage();
- virtual ~TestOneof2_NestedMessage();
- TestOneof2_NestedMessage(const TestOneof2_NestedMessage& from);
- inline TestOneof2_NestedMessage& operator=(const TestOneof2_NestedMessage& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestOneof2_NestedMessage(TestOneof2_NestedMessage&& from) noexcept
- : TestOneof2_NestedMessage() {
- *this = ::std::move(from);
- }
- inline TestOneof2_NestedMessage& operator=(TestOneof2_NestedMessage&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const TestOneof2_NestedMessage& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestOneof2_NestedMessage* internal_default_instance() {
- return reinterpret_cast<const TestOneof2_NestedMessage*>(
- &_TestOneof2_NestedMessage_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 62;
- void UnsafeArenaSwap(TestOneof2_NestedMessage* other);
- void Swap(TestOneof2_NestedMessage* other);
- friend void swap(TestOneof2_NestedMessage& a, TestOneof2_NestedMessage& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestOneof2_NestedMessage* New() const final {
- return CreateMaybeMessage<TestOneof2_NestedMessage>(NULL);
- }
- TestOneof2_NestedMessage* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestOneof2_NestedMessage>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestOneof2_NestedMessage& from);
- void MergeFrom(const TestOneof2_NestedMessage& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestOneof2_NestedMessage* other);
- protected:
- explicit TestOneof2_NestedMessage(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // repeated int32 corge_int = 2;
- int corge_int_size() const;
- void clear_corge_int();
- static const int kCorgeIntFieldNumber = 2;
- ::google::protobuf::int32 corge_int(int index) const;
- void set_corge_int(int index, ::google::protobuf::int32 value);
- void add_corge_int(::google::protobuf::int32 value);
- const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
- corge_int() const;
- ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
- mutable_corge_int();
- // optional int64 qux_int = 1;
- bool has_qux_int() const;
- void clear_qux_int();
- static const int kQuxIntFieldNumber = 1;
- ::google::protobuf::int64 qux_int() const;
- void set_qux_int(::google::protobuf::int64 value);
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestOneof2.NestedMessage)
- private:
- void set_has_qux_int();
- void clear_has_qux_int();
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- ::google::protobuf::RepeatedField< ::google::protobuf::int32 > corge_int_;
- ::google::protobuf::int64 qux_int_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class TestOneof2 : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestOneof2) */ {
- public:
- TestOneof2();
- virtual ~TestOneof2();
- TestOneof2(const TestOneof2& from);
- inline TestOneof2& operator=(const TestOneof2& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestOneof2(TestOneof2&& from) noexcept
- : TestOneof2() {
- *this = ::std::move(from);
- }
- inline TestOneof2& operator=(TestOneof2&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const TestOneof2& default_instance();
- enum FooCase {
- kFooInt = 1,
- kFooString = 2,
- kFooCord = 3,
- kFooStringPiece = 4,
- kFooBytes = 5,
- kFooEnum = 6,
- kFooMessage = 7,
- kFoogroup = 8,
- kFooLazyMessage = 11,
- FOO_NOT_SET = 0,
- };
- enum BarCase {
- kBarInt = 12,
- kBarString = 13,
- kBarCord = 14,
- kBarStringPiece = 15,
- kBarBytes = 16,
- kBarEnum = 17,
- BAR_NOT_SET = 0,
- };
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestOneof2* internal_default_instance() {
- return reinterpret_cast<const TestOneof2*>(
- &_TestOneof2_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 63;
- void UnsafeArenaSwap(TestOneof2* other);
- void Swap(TestOneof2* other);
- friend void swap(TestOneof2& a, TestOneof2& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestOneof2* New() const final {
- return CreateMaybeMessage<TestOneof2>(NULL);
- }
- TestOneof2* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestOneof2>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestOneof2& from);
- void MergeFrom(const TestOneof2& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestOneof2* other);
- protected:
- explicit TestOneof2(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- typedef TestOneof2_FooGroup FooGroup;
- typedef TestOneof2_NestedMessage NestedMessage;
- typedef TestOneof2_NestedEnum NestedEnum;
- static const NestedEnum FOO =
- TestOneof2_NestedEnum_FOO;
- static const NestedEnum BAR =
- TestOneof2_NestedEnum_BAR;
- static const NestedEnum BAZ =
- TestOneof2_NestedEnum_BAZ;
- static inline bool NestedEnum_IsValid(int value) {
- return TestOneof2_NestedEnum_IsValid(value);
- }
- static const NestedEnum NestedEnum_MIN =
- TestOneof2_NestedEnum_NestedEnum_MIN;
- static const NestedEnum NestedEnum_MAX =
- TestOneof2_NestedEnum_NestedEnum_MAX;
- static const int NestedEnum_ARRAYSIZE =
- TestOneof2_NestedEnum_NestedEnum_ARRAYSIZE;
- static inline const ::google::protobuf::EnumDescriptor*
- NestedEnum_descriptor() {
- return TestOneof2_NestedEnum_descriptor();
- }
- static inline const ::std::string& NestedEnum_Name(NestedEnum value) {
- return TestOneof2_NestedEnum_Name(value);
- }
- static inline bool NestedEnum_Parse(const ::std::string& name,
- NestedEnum* value) {
- return TestOneof2_NestedEnum_Parse(name, value);
- }
- // accessors -------------------------------------------------------
- // optional string baz_string = 19 [default = "BAZ"];
- bool has_baz_string() const;
- void clear_baz_string();
- static const int kBazStringFieldNumber = 19;
- const ::std::string& baz_string() const;
- void set_baz_string(const ::std::string& value);
- #if LANG_CXX11
- void set_baz_string(::std::string&& value);
- #endif
- void set_baz_string(const char* value);
- void set_baz_string(const char* value, size_t size);
- ::std::string* mutable_baz_string();
- ::std::string* release_baz_string();
- void set_allocated_baz_string(::std::string* baz_string);
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- ::std::string* unsafe_arena_release_baz_string();
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- void unsafe_arena_set_allocated_baz_string(
- ::std::string* baz_string);
- // optional int32 baz_int = 18;
- bool has_baz_int() const;
- void clear_baz_int();
- static const int kBazIntFieldNumber = 18;
- ::google::protobuf::int32 baz_int() const;
- void set_baz_int(::google::protobuf::int32 value);
- // optional int32 foo_int = 1;
- bool has_foo_int() const;
- void clear_foo_int();
- static const int kFooIntFieldNumber = 1;
- ::google::protobuf::int32 foo_int() const;
- void set_foo_int(::google::protobuf::int32 value);
- // optional string foo_string = 2;
- bool has_foo_string() const;
- void clear_foo_string();
- static const int kFooStringFieldNumber = 2;
- const ::std::string& foo_string() const;
- void set_foo_string(const ::std::string& value);
- #if LANG_CXX11
- void set_foo_string(::std::string&& value);
- #endif
- void set_foo_string(const char* value);
- void set_foo_string(const char* value, size_t size);
- ::std::string* mutable_foo_string();
- ::std::string* release_foo_string();
- void set_allocated_foo_string(::std::string* foo_string);
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- ::std::string* unsafe_arena_release_foo_string();
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- void unsafe_arena_set_allocated_foo_string(
- ::std::string* foo_string);
- // optional string foo_cord = 3 [ctype = CORD];
- bool has_foo_cord() const;
- void clear_foo_cord();
- static const int kFooCordFieldNumber = 3;
- private:
- // Hidden due to unknown ctype option.
- const ::std::string& foo_cord() const;
- void set_foo_cord(const ::std::string& value);
- #if LANG_CXX11
- void set_foo_cord(::std::string&& value);
- #endif
- void set_foo_cord(const char* value);
- void set_foo_cord(const char* value, size_t size);
- ::std::string* mutable_foo_cord();
- ::std::string* release_foo_cord();
- void set_allocated_foo_cord(::std::string* foo_cord);
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- ::std::string* unsafe_arena_release_foo_cord();
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- void unsafe_arena_set_allocated_foo_cord(
- ::std::string* foo_cord);
- public:
- // optional string foo_string_piece = 4 [ctype = STRING_PIECE];
- bool has_foo_string_piece() const;
- void clear_foo_string_piece();
- static const int kFooStringPieceFieldNumber = 4;
- private:
- // Hidden due to unknown ctype option.
- const ::std::string& foo_string_piece() const;
- void set_foo_string_piece(const ::std::string& value);
- #if LANG_CXX11
- void set_foo_string_piece(::std::string&& value);
- #endif
- void set_foo_string_piece(const char* value);
- void set_foo_string_piece(const char* value, size_t size);
- ::std::string* mutable_foo_string_piece();
- ::std::string* release_foo_string_piece();
- void set_allocated_foo_string_piece(::std::string* foo_string_piece);
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- ::std::string* unsafe_arena_release_foo_string_piece();
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- void unsafe_arena_set_allocated_foo_string_piece(
- ::std::string* foo_string_piece);
- public:
- // optional bytes foo_bytes = 5;
- bool has_foo_bytes() const;
- void clear_foo_bytes();
- static const int kFooBytesFieldNumber = 5;
- const ::std::string& foo_bytes() const;
- void set_foo_bytes(const ::std::string& value);
- #if LANG_CXX11
- void set_foo_bytes(::std::string&& value);
- #endif
- void set_foo_bytes(const char* value);
- void set_foo_bytes(const void* value, size_t size);
- ::std::string* mutable_foo_bytes();
- ::std::string* release_foo_bytes();
- void set_allocated_foo_bytes(::std::string* foo_bytes);
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- ::std::string* unsafe_arena_release_foo_bytes();
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- void unsafe_arena_set_allocated_foo_bytes(
- ::std::string* foo_bytes);
- // optional .protobuf_unittest.TestOneof2.NestedEnum foo_enum = 6;
- bool has_foo_enum() const;
- void clear_foo_enum();
- static const int kFooEnumFieldNumber = 6;
- ::protobuf_unittest::TestOneof2_NestedEnum foo_enum() const;
- void set_foo_enum(::protobuf_unittest::TestOneof2_NestedEnum value);
- // optional .protobuf_unittest.TestOneof2.NestedMessage foo_message = 7;
- bool has_foo_message() const;
- void clear_foo_message();
- static const int kFooMessageFieldNumber = 7;
- private:
- const ::protobuf_unittest::TestOneof2_NestedMessage& _internal_foo_message() const;
- public:
- const ::protobuf_unittest::TestOneof2_NestedMessage& foo_message() const;
- ::protobuf_unittest::TestOneof2_NestedMessage* release_foo_message();
- ::protobuf_unittest::TestOneof2_NestedMessage* mutable_foo_message();
- void set_allocated_foo_message(::protobuf_unittest::TestOneof2_NestedMessage* foo_message);
- void unsafe_arena_set_allocated_foo_message(
- ::protobuf_unittest::TestOneof2_NestedMessage* foo_message);
- ::protobuf_unittest::TestOneof2_NestedMessage* unsafe_arena_release_foo_message();
- // optional group FooGroup = 8 { ... };
- bool has_foogroup() const;
- void clear_foogroup();
- static const int kFoogroupFieldNumber = 8;
- private:
- const ::protobuf_unittest::TestOneof2_FooGroup& _internal_foogroup() const;
- public:
- const ::protobuf_unittest::TestOneof2_FooGroup& foogroup() const;
- ::protobuf_unittest::TestOneof2_FooGroup* release_foogroup();
- ::protobuf_unittest::TestOneof2_FooGroup* mutable_foogroup();
- void set_allocated_foogroup(::protobuf_unittest::TestOneof2_FooGroup* foogroup);
- void unsafe_arena_set_allocated_foogroup(
- ::protobuf_unittest::TestOneof2_FooGroup* foogroup);
- ::protobuf_unittest::TestOneof2_FooGroup* unsafe_arena_release_foogroup();
- // optional .protobuf_unittest.TestOneof2.NestedMessage foo_lazy_message = 11 [lazy = true];
- bool has_foo_lazy_message() const;
- void clear_foo_lazy_message();
- static const int kFooLazyMessageFieldNumber = 11;
- private:
- const ::protobuf_unittest::TestOneof2_NestedMessage& _internal_foo_lazy_message() const;
- public:
- const ::protobuf_unittest::TestOneof2_NestedMessage& foo_lazy_message() const;
- ::protobuf_unittest::TestOneof2_NestedMessage* release_foo_lazy_message();
- ::protobuf_unittest::TestOneof2_NestedMessage* mutable_foo_lazy_message();
- void set_allocated_foo_lazy_message(::protobuf_unittest::TestOneof2_NestedMessage* foo_lazy_message);
- void unsafe_arena_set_allocated_foo_lazy_message(
- ::protobuf_unittest::TestOneof2_NestedMessage* foo_lazy_message);
- ::protobuf_unittest::TestOneof2_NestedMessage* unsafe_arena_release_foo_lazy_message();
- // optional int32 bar_int = 12 [default = 5];
- bool has_bar_int() const;
- void clear_bar_int();
- static const int kBarIntFieldNumber = 12;
- ::google::protobuf::int32 bar_int() const;
- void set_bar_int(::google::protobuf::int32 value);
- // optional string bar_string = 13 [default = "STRING"];
- bool has_bar_string() const;
- void clear_bar_string();
- static const int kBarStringFieldNumber = 13;
- const ::std::string& bar_string() const;
- void set_bar_string(const ::std::string& value);
- #if LANG_CXX11
- void set_bar_string(::std::string&& value);
- #endif
- void set_bar_string(const char* value);
- void set_bar_string(const char* value, size_t size);
- ::std::string* mutable_bar_string();
- ::std::string* release_bar_string();
- void set_allocated_bar_string(::std::string* bar_string);
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- ::std::string* unsafe_arena_release_bar_string();
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- void unsafe_arena_set_allocated_bar_string(
- ::std::string* bar_string);
- // optional string bar_cord = 14 [default = "CORD", ctype = CORD];
- bool has_bar_cord() const;
- void clear_bar_cord();
- static const int kBarCordFieldNumber = 14;
- private:
- // Hidden due to unknown ctype option.
- const ::std::string& bar_cord() const;
- void set_bar_cord(const ::std::string& value);
- #if LANG_CXX11
- void set_bar_cord(::std::string&& value);
- #endif
- void set_bar_cord(const char* value);
- void set_bar_cord(const char* value, size_t size);
- ::std::string* mutable_bar_cord();
- ::std::string* release_bar_cord();
- void set_allocated_bar_cord(::std::string* bar_cord);
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- ::std::string* unsafe_arena_release_bar_cord();
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- void unsafe_arena_set_allocated_bar_cord(
- ::std::string* bar_cord);
- public:
- // optional string bar_string_piece = 15 [default = "SPIECE", ctype = STRING_PIECE];
- bool has_bar_string_piece() const;
- void clear_bar_string_piece();
- static const int kBarStringPieceFieldNumber = 15;
- private:
- // Hidden due to unknown ctype option.
- const ::std::string& bar_string_piece() const;
- void set_bar_string_piece(const ::std::string& value);
- #if LANG_CXX11
- void set_bar_string_piece(::std::string&& value);
- #endif
- void set_bar_string_piece(const char* value);
- void set_bar_string_piece(const char* value, size_t size);
- ::std::string* mutable_bar_string_piece();
- ::std::string* release_bar_string_piece();
- void set_allocated_bar_string_piece(::std::string* bar_string_piece);
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- ::std::string* unsafe_arena_release_bar_string_piece();
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- void unsafe_arena_set_allocated_bar_string_piece(
- ::std::string* bar_string_piece);
- public:
- // optional bytes bar_bytes = 16 [default = "BYTES"];
- bool has_bar_bytes() const;
- void clear_bar_bytes();
- static const int kBarBytesFieldNumber = 16;
- const ::std::string& bar_bytes() const;
- void set_bar_bytes(const ::std::string& value);
- #if LANG_CXX11
- void set_bar_bytes(::std::string&& value);
- #endif
- void set_bar_bytes(const char* value);
- void set_bar_bytes(const void* value, size_t size);
- ::std::string* mutable_bar_bytes();
- ::std::string* release_bar_bytes();
- void set_allocated_bar_bytes(::std::string* bar_bytes);
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- ::std::string* unsafe_arena_release_bar_bytes();
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- void unsafe_arena_set_allocated_bar_bytes(
- ::std::string* bar_bytes);
- // optional .protobuf_unittest.TestOneof2.NestedEnum bar_enum = 17 [default = BAR];
- bool has_bar_enum() const;
- void clear_bar_enum();
- static const int kBarEnumFieldNumber = 17;
- ::protobuf_unittest::TestOneof2_NestedEnum bar_enum() const;
- void set_bar_enum(::protobuf_unittest::TestOneof2_NestedEnum value);
- void clear_foo();
- FooCase foo_case() const;
- void clear_bar();
- BarCase bar_case() const;
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestOneof2)
- private:
- void set_has_foo_int();
- void set_has_foo_string();
- void set_has_foo_cord();
- void set_has_foo_string_piece();
- void set_has_foo_bytes();
- void set_has_foo_enum();
- void set_has_foo_message();
- void set_has_foogroup();
- void set_has_foo_lazy_message();
- void set_has_bar_int();
- void set_has_bar_string();
- void set_has_bar_cord();
- void set_has_bar_string_piece();
- void set_has_bar_bytes();
- void set_has_bar_enum();
- void set_has_baz_int();
- void clear_has_baz_int();
- void set_has_baz_string();
- void clear_has_baz_string();
- inline bool has_foo() const;
- inline void clear_has_foo();
- inline bool has_bar() const;
- inline void clear_has_bar();
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- public:
- static ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> _i_give_permission_to_break_this_code_default_baz_string_;
- private:
- ::google::protobuf::internal::ArenaStringPtr baz_string_;
- ::google::protobuf::int32 baz_int_;
- union FooUnion {
- FooUnion() {}
- ::google::protobuf::int32 foo_int_;
- ::google::protobuf::internal::ArenaStringPtr foo_string_;
- ::google::protobuf::internal::ArenaStringPtr foo_cord_;
- ::google::protobuf::internal::ArenaStringPtr foo_string_piece_;
- ::google::protobuf::internal::ArenaStringPtr foo_bytes_;
- int foo_enum_;
- ::protobuf_unittest::TestOneof2_NestedMessage* foo_message_;
- ::protobuf_unittest::TestOneof2_FooGroup* foogroup_;
- ::protobuf_unittest::TestOneof2_NestedMessage* foo_lazy_message_;
- } foo_;
- union BarUnion {
- BarUnion() {}
- ::google::protobuf::int32 bar_int_;
- ::google::protobuf::internal::ArenaStringPtr bar_string_;
- ::google::protobuf::internal::ArenaStringPtr bar_cord_;
- ::google::protobuf::internal::ArenaStringPtr bar_string_piece_;
- ::google::protobuf::internal::ArenaStringPtr bar_bytes_;
- int bar_enum_;
- } bar_;
- public:
- static ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> _i_give_permission_to_break_this_code_default_bar_string_;
- private:
- public:
- static ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> _i_give_permission_to_break_this_code_default_bar_cord_;
- private:
- public:
- static ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> _i_give_permission_to_break_this_code_default_bar_string_piece_;
- private:
- public:
- static ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> _i_give_permission_to_break_this_code_default_bar_bytes_;
- private:
- ::google::protobuf::uint32 _oneof_case_[2];
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class TestRequiredOneof_NestedMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestRequiredOneof.NestedMessage) */ {
- public:
- TestRequiredOneof_NestedMessage();
- virtual ~TestRequiredOneof_NestedMessage();
- TestRequiredOneof_NestedMessage(const TestRequiredOneof_NestedMessage& from);
- inline TestRequiredOneof_NestedMessage& operator=(const TestRequiredOneof_NestedMessage& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestRequiredOneof_NestedMessage(TestRequiredOneof_NestedMessage&& from) noexcept
- : TestRequiredOneof_NestedMessage() {
- *this = ::std::move(from);
- }
- inline TestRequiredOneof_NestedMessage& operator=(TestRequiredOneof_NestedMessage&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const TestRequiredOneof_NestedMessage& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestRequiredOneof_NestedMessage* internal_default_instance() {
- return reinterpret_cast<const TestRequiredOneof_NestedMessage*>(
- &_TestRequiredOneof_NestedMessage_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 64;
- void UnsafeArenaSwap(TestRequiredOneof_NestedMessage* other);
- void Swap(TestRequiredOneof_NestedMessage* other);
- friend void swap(TestRequiredOneof_NestedMessage& a, TestRequiredOneof_NestedMessage& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestRequiredOneof_NestedMessage* New() const final {
- return CreateMaybeMessage<TestRequiredOneof_NestedMessage>(NULL);
- }
- TestRequiredOneof_NestedMessage* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestRequiredOneof_NestedMessage>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestRequiredOneof_NestedMessage& from);
- void MergeFrom(const TestRequiredOneof_NestedMessage& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestRequiredOneof_NestedMessage* other);
- protected:
- explicit TestRequiredOneof_NestedMessage(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // required double required_double = 1;
- bool has_required_double() const;
- void clear_required_double();
- static const int kRequiredDoubleFieldNumber = 1;
- double required_double() const;
- void set_required_double(double value);
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestRequiredOneof.NestedMessage)
- private:
- void set_has_required_double();
- void clear_has_required_double();
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- double required_double_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class TestRequiredOneof : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestRequiredOneof) */ {
- public:
- TestRequiredOneof();
- virtual ~TestRequiredOneof();
- TestRequiredOneof(const TestRequiredOneof& from);
- inline TestRequiredOneof& operator=(const TestRequiredOneof& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestRequiredOneof(TestRequiredOneof&& from) noexcept
- : TestRequiredOneof() {
- *this = ::std::move(from);
- }
- inline TestRequiredOneof& operator=(TestRequiredOneof&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const TestRequiredOneof& default_instance();
- enum FooCase {
- kFooInt = 1,
- kFooString = 2,
- kFooMessage = 3,
- FOO_NOT_SET = 0,
- };
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestRequiredOneof* internal_default_instance() {
- return reinterpret_cast<const TestRequiredOneof*>(
- &_TestRequiredOneof_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 65;
- void UnsafeArenaSwap(TestRequiredOneof* other);
- void Swap(TestRequiredOneof* other);
- friend void swap(TestRequiredOneof& a, TestRequiredOneof& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestRequiredOneof* New() const final {
- return CreateMaybeMessage<TestRequiredOneof>(NULL);
- }
- TestRequiredOneof* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestRequiredOneof>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestRequiredOneof& from);
- void MergeFrom(const TestRequiredOneof& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestRequiredOneof* other);
- protected:
- explicit TestRequiredOneof(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- typedef TestRequiredOneof_NestedMessage NestedMessage;
- // accessors -------------------------------------------------------
- // optional int32 foo_int = 1;
- bool has_foo_int() const;
- void clear_foo_int();
- static const int kFooIntFieldNumber = 1;
- ::google::protobuf::int32 foo_int() const;
- void set_foo_int(::google::protobuf::int32 value);
- // optional string foo_string = 2;
- bool has_foo_string() const;
- void clear_foo_string();
- static const int kFooStringFieldNumber = 2;
- const ::std::string& foo_string() const;
- void set_foo_string(const ::std::string& value);
- #if LANG_CXX11
- void set_foo_string(::std::string&& value);
- #endif
- void set_foo_string(const char* value);
- void set_foo_string(const char* value, size_t size);
- ::std::string* mutable_foo_string();
- ::std::string* release_foo_string();
- void set_allocated_foo_string(::std::string* foo_string);
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- ::std::string* unsafe_arena_release_foo_string();
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- void unsafe_arena_set_allocated_foo_string(
- ::std::string* foo_string);
- // optional .protobuf_unittest.TestRequiredOneof.NestedMessage foo_message = 3;
- bool has_foo_message() const;
- void clear_foo_message();
- static const int kFooMessageFieldNumber = 3;
- private:
- const ::protobuf_unittest::TestRequiredOneof_NestedMessage& _internal_foo_message() const;
- public:
- const ::protobuf_unittest::TestRequiredOneof_NestedMessage& foo_message() const;
- ::protobuf_unittest::TestRequiredOneof_NestedMessage* release_foo_message();
- ::protobuf_unittest::TestRequiredOneof_NestedMessage* mutable_foo_message();
- void set_allocated_foo_message(::protobuf_unittest::TestRequiredOneof_NestedMessage* foo_message);
- void unsafe_arena_set_allocated_foo_message(
- ::protobuf_unittest::TestRequiredOneof_NestedMessage* foo_message);
- ::protobuf_unittest::TestRequiredOneof_NestedMessage* unsafe_arena_release_foo_message();
- void clear_foo();
- FooCase foo_case() const;
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestRequiredOneof)
- private:
- void set_has_foo_int();
- void set_has_foo_string();
- void set_has_foo_message();
- inline bool has_foo() const;
- inline void clear_has_foo();
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- union FooUnion {
- FooUnion() {}
- ::google::protobuf::int32 foo_int_;
- ::google::protobuf::internal::ArenaStringPtr foo_string_;
- ::protobuf_unittest::TestRequiredOneof_NestedMessage* foo_message_;
- } foo_;
- ::google::protobuf::uint32 _oneof_case_[1];
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class TestPackedTypes : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestPackedTypes) */ {
- public:
- TestPackedTypes();
- virtual ~TestPackedTypes();
- TestPackedTypes(const TestPackedTypes& from);
- inline TestPackedTypes& operator=(const TestPackedTypes& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestPackedTypes(TestPackedTypes&& from) noexcept
- : TestPackedTypes() {
- *this = ::std::move(from);
- }
- inline TestPackedTypes& operator=(TestPackedTypes&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const TestPackedTypes& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestPackedTypes* internal_default_instance() {
- return reinterpret_cast<const TestPackedTypes*>(
- &_TestPackedTypes_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 66;
- void UnsafeArenaSwap(TestPackedTypes* other);
- void Swap(TestPackedTypes* other);
- friend void swap(TestPackedTypes& a, TestPackedTypes& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestPackedTypes* New() const final {
- return CreateMaybeMessage<TestPackedTypes>(NULL);
- }
- TestPackedTypes* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestPackedTypes>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestPackedTypes& from);
- void MergeFrom(const TestPackedTypes& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestPackedTypes* other);
- protected:
- explicit TestPackedTypes(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // repeated int32 packed_int32 = 90 [packed = true];
- int packed_int32_size() const;
- void clear_packed_int32();
- static const int kPackedInt32FieldNumber = 90;
- ::google::protobuf::int32 packed_int32(int index) const;
- void set_packed_int32(int index, ::google::protobuf::int32 value);
- void add_packed_int32(::google::protobuf::int32 value);
- const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
- packed_int32() const;
- ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
- mutable_packed_int32();
- // repeated int64 packed_int64 = 91 [packed = true];
- int packed_int64_size() const;
- void clear_packed_int64();
- static const int kPackedInt64FieldNumber = 91;
- ::google::protobuf::int64 packed_int64(int index) const;
- void set_packed_int64(int index, ::google::protobuf::int64 value);
- void add_packed_int64(::google::protobuf::int64 value);
- const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
- packed_int64() const;
- ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
- mutable_packed_int64();
- // repeated uint32 packed_uint32 = 92 [packed = true];
- int packed_uint32_size() const;
- void clear_packed_uint32();
- static const int kPackedUint32FieldNumber = 92;
- ::google::protobuf::uint32 packed_uint32(int index) const;
- void set_packed_uint32(int index, ::google::protobuf::uint32 value);
- void add_packed_uint32(::google::protobuf::uint32 value);
- const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
- packed_uint32() const;
- ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
- mutable_packed_uint32();
- // repeated uint64 packed_uint64 = 93 [packed = true];
- int packed_uint64_size() const;
- void clear_packed_uint64();
- static const int kPackedUint64FieldNumber = 93;
- ::google::protobuf::uint64 packed_uint64(int index) const;
- void set_packed_uint64(int index, ::google::protobuf::uint64 value);
- void add_packed_uint64(::google::protobuf::uint64 value);
- const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
- packed_uint64() const;
- ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
- mutable_packed_uint64();
- // repeated sint32 packed_sint32 = 94 [packed = true];
- int packed_sint32_size() const;
- void clear_packed_sint32();
- static const int kPackedSint32FieldNumber = 94;
- ::google::protobuf::int32 packed_sint32(int index) const;
- void set_packed_sint32(int index, ::google::protobuf::int32 value);
- void add_packed_sint32(::google::protobuf::int32 value);
- const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
- packed_sint32() const;
- ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
- mutable_packed_sint32();
- // repeated sint64 packed_sint64 = 95 [packed = true];
- int packed_sint64_size() const;
- void clear_packed_sint64();
- static const int kPackedSint64FieldNumber = 95;
- ::google::protobuf::int64 packed_sint64(int index) const;
- void set_packed_sint64(int index, ::google::protobuf::int64 value);
- void add_packed_sint64(::google::protobuf::int64 value);
- const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
- packed_sint64() const;
- ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
- mutable_packed_sint64();
- // repeated fixed32 packed_fixed32 = 96 [packed = true];
- int packed_fixed32_size() const;
- void clear_packed_fixed32();
- static const int kPackedFixed32FieldNumber = 96;
- ::google::protobuf::uint32 packed_fixed32(int index) const;
- void set_packed_fixed32(int index, ::google::protobuf::uint32 value);
- void add_packed_fixed32(::google::protobuf::uint32 value);
- const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
- packed_fixed32() const;
- ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
- mutable_packed_fixed32();
- // repeated fixed64 packed_fixed64 = 97 [packed = true];
- int packed_fixed64_size() const;
- void clear_packed_fixed64();
- static const int kPackedFixed64FieldNumber = 97;
- ::google::protobuf::uint64 packed_fixed64(int index) const;
- void set_packed_fixed64(int index, ::google::protobuf::uint64 value);
- void add_packed_fixed64(::google::protobuf::uint64 value);
- const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
- packed_fixed64() const;
- ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
- mutable_packed_fixed64();
- // repeated sfixed32 packed_sfixed32 = 98 [packed = true];
- int packed_sfixed32_size() const;
- void clear_packed_sfixed32();
- static const int kPackedSfixed32FieldNumber = 98;
- ::google::protobuf::int32 packed_sfixed32(int index) const;
- void set_packed_sfixed32(int index, ::google::protobuf::int32 value);
- void add_packed_sfixed32(::google::protobuf::int32 value);
- const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
- packed_sfixed32() const;
- ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
- mutable_packed_sfixed32();
- // repeated sfixed64 packed_sfixed64 = 99 [packed = true];
- int packed_sfixed64_size() const;
- void clear_packed_sfixed64();
- static const int kPackedSfixed64FieldNumber = 99;
- ::google::protobuf::int64 packed_sfixed64(int index) const;
- void set_packed_sfixed64(int index, ::google::protobuf::int64 value);
- void add_packed_sfixed64(::google::protobuf::int64 value);
- const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
- packed_sfixed64() const;
- ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
- mutable_packed_sfixed64();
- // repeated float packed_float = 100 [packed = true];
- int packed_float_size() const;
- void clear_packed_float();
- static const int kPackedFloatFieldNumber = 100;
- float packed_float(int index) const;
- void set_packed_float(int index, float value);
- void add_packed_float(float value);
- const ::google::protobuf::RepeatedField< float >&
- packed_float() const;
- ::google::protobuf::RepeatedField< float >*
- mutable_packed_float();
- // repeated double packed_double = 101 [packed = true];
- int packed_double_size() const;
- void clear_packed_double();
- static const int kPackedDoubleFieldNumber = 101;
- double packed_double(int index) const;
- void set_packed_double(int index, double value);
- void add_packed_double(double value);
- const ::google::protobuf::RepeatedField< double >&
- packed_double() const;
- ::google::protobuf::RepeatedField< double >*
- mutable_packed_double();
- // repeated bool packed_bool = 102 [packed = true];
- int packed_bool_size() const;
- void clear_packed_bool();
- static const int kPackedBoolFieldNumber = 102;
- bool packed_bool(int index) const;
- void set_packed_bool(int index, bool value);
- void add_packed_bool(bool value);
- const ::google::protobuf::RepeatedField< bool >&
- packed_bool() const;
- ::google::protobuf::RepeatedField< bool >*
- mutable_packed_bool();
- // repeated .protobuf_unittest.ForeignEnum packed_enum = 103 [packed = true];
- int packed_enum_size() const;
- void clear_packed_enum();
- static const int kPackedEnumFieldNumber = 103;
- ::protobuf_unittest::ForeignEnum packed_enum(int index) const;
- void set_packed_enum(int index, ::protobuf_unittest::ForeignEnum value);
- void add_packed_enum(::protobuf_unittest::ForeignEnum value);
- const ::google::protobuf::RepeatedField<int>& packed_enum() const;
- ::google::protobuf::RepeatedField<int>* mutable_packed_enum();
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestPackedTypes)
- private:
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- ::google::protobuf::RepeatedField< ::google::protobuf::int32 > packed_int32_;
- mutable int _packed_int32_cached_byte_size_;
- ::google::protobuf::RepeatedField< ::google::protobuf::int64 > packed_int64_;
- mutable int _packed_int64_cached_byte_size_;
- ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > packed_uint32_;
- mutable int _packed_uint32_cached_byte_size_;
- ::google::protobuf::RepeatedField< ::google::protobuf::uint64 > packed_uint64_;
- mutable int _packed_uint64_cached_byte_size_;
- ::google::protobuf::RepeatedField< ::google::protobuf::int32 > packed_sint32_;
- mutable int _packed_sint32_cached_byte_size_;
- ::google::protobuf::RepeatedField< ::google::protobuf::int64 > packed_sint64_;
- mutable int _packed_sint64_cached_byte_size_;
- ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > packed_fixed32_;
- mutable int _packed_fixed32_cached_byte_size_;
- ::google::protobuf::RepeatedField< ::google::protobuf::uint64 > packed_fixed64_;
- mutable int _packed_fixed64_cached_byte_size_;
- ::google::protobuf::RepeatedField< ::google::protobuf::int32 > packed_sfixed32_;
- mutable int _packed_sfixed32_cached_byte_size_;
- ::google::protobuf::RepeatedField< ::google::protobuf::int64 > packed_sfixed64_;
- mutable int _packed_sfixed64_cached_byte_size_;
- ::google::protobuf::RepeatedField< float > packed_float_;
- mutable int _packed_float_cached_byte_size_;
- ::google::protobuf::RepeatedField< double > packed_double_;
- mutable int _packed_double_cached_byte_size_;
- ::google::protobuf::RepeatedField< bool > packed_bool_;
- mutable int _packed_bool_cached_byte_size_;
- ::google::protobuf::RepeatedField<int> packed_enum_;
- mutable int _packed_enum_cached_byte_size_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class TestUnpackedTypes : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestUnpackedTypes) */ {
- public:
- TestUnpackedTypes();
- virtual ~TestUnpackedTypes();
- TestUnpackedTypes(const TestUnpackedTypes& from);
- inline TestUnpackedTypes& operator=(const TestUnpackedTypes& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestUnpackedTypes(TestUnpackedTypes&& from) noexcept
- : TestUnpackedTypes() {
- *this = ::std::move(from);
- }
- inline TestUnpackedTypes& operator=(TestUnpackedTypes&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const TestUnpackedTypes& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestUnpackedTypes* internal_default_instance() {
- return reinterpret_cast<const TestUnpackedTypes*>(
- &_TestUnpackedTypes_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 67;
- void UnsafeArenaSwap(TestUnpackedTypes* other);
- void Swap(TestUnpackedTypes* other);
- friend void swap(TestUnpackedTypes& a, TestUnpackedTypes& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestUnpackedTypes* New() const final {
- return CreateMaybeMessage<TestUnpackedTypes>(NULL);
- }
- TestUnpackedTypes* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestUnpackedTypes>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestUnpackedTypes& from);
- void MergeFrom(const TestUnpackedTypes& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestUnpackedTypes* other);
- protected:
- explicit TestUnpackedTypes(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // repeated int32 unpacked_int32 = 90 [packed = false];
- int unpacked_int32_size() const;
- void clear_unpacked_int32();
- static const int kUnpackedInt32FieldNumber = 90;
- ::google::protobuf::int32 unpacked_int32(int index) const;
- void set_unpacked_int32(int index, ::google::protobuf::int32 value);
- void add_unpacked_int32(::google::protobuf::int32 value);
- const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
- unpacked_int32() const;
- ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
- mutable_unpacked_int32();
- // repeated int64 unpacked_int64 = 91 [packed = false];
- int unpacked_int64_size() const;
- void clear_unpacked_int64();
- static const int kUnpackedInt64FieldNumber = 91;
- ::google::protobuf::int64 unpacked_int64(int index) const;
- void set_unpacked_int64(int index, ::google::protobuf::int64 value);
- void add_unpacked_int64(::google::protobuf::int64 value);
- const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
- unpacked_int64() const;
- ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
- mutable_unpacked_int64();
- // repeated uint32 unpacked_uint32 = 92 [packed = false];
- int unpacked_uint32_size() const;
- void clear_unpacked_uint32();
- static const int kUnpackedUint32FieldNumber = 92;
- ::google::protobuf::uint32 unpacked_uint32(int index) const;
- void set_unpacked_uint32(int index, ::google::protobuf::uint32 value);
- void add_unpacked_uint32(::google::protobuf::uint32 value);
- const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
- unpacked_uint32() const;
- ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
- mutable_unpacked_uint32();
- // repeated uint64 unpacked_uint64 = 93 [packed = false];
- int unpacked_uint64_size() const;
- void clear_unpacked_uint64();
- static const int kUnpackedUint64FieldNumber = 93;
- ::google::protobuf::uint64 unpacked_uint64(int index) const;
- void set_unpacked_uint64(int index, ::google::protobuf::uint64 value);
- void add_unpacked_uint64(::google::protobuf::uint64 value);
- const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
- unpacked_uint64() const;
- ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
- mutable_unpacked_uint64();
- // repeated sint32 unpacked_sint32 = 94 [packed = false];
- int unpacked_sint32_size() const;
- void clear_unpacked_sint32();
- static const int kUnpackedSint32FieldNumber = 94;
- ::google::protobuf::int32 unpacked_sint32(int index) const;
- void set_unpacked_sint32(int index, ::google::protobuf::int32 value);
- void add_unpacked_sint32(::google::protobuf::int32 value);
- const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
- unpacked_sint32() const;
- ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
- mutable_unpacked_sint32();
- // repeated sint64 unpacked_sint64 = 95 [packed = false];
- int unpacked_sint64_size() const;
- void clear_unpacked_sint64();
- static const int kUnpackedSint64FieldNumber = 95;
- ::google::protobuf::int64 unpacked_sint64(int index) const;
- void set_unpacked_sint64(int index, ::google::protobuf::int64 value);
- void add_unpacked_sint64(::google::protobuf::int64 value);
- const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
- unpacked_sint64() const;
- ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
- mutable_unpacked_sint64();
- // repeated fixed32 unpacked_fixed32 = 96 [packed = false];
- int unpacked_fixed32_size() const;
- void clear_unpacked_fixed32();
- static const int kUnpackedFixed32FieldNumber = 96;
- ::google::protobuf::uint32 unpacked_fixed32(int index) const;
- void set_unpacked_fixed32(int index, ::google::protobuf::uint32 value);
- void add_unpacked_fixed32(::google::protobuf::uint32 value);
- const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
- unpacked_fixed32() const;
- ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
- mutable_unpacked_fixed32();
- // repeated fixed64 unpacked_fixed64 = 97 [packed = false];
- int unpacked_fixed64_size() const;
- void clear_unpacked_fixed64();
- static const int kUnpackedFixed64FieldNumber = 97;
- ::google::protobuf::uint64 unpacked_fixed64(int index) const;
- void set_unpacked_fixed64(int index, ::google::protobuf::uint64 value);
- void add_unpacked_fixed64(::google::protobuf::uint64 value);
- const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
- unpacked_fixed64() const;
- ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
- mutable_unpacked_fixed64();
- // repeated sfixed32 unpacked_sfixed32 = 98 [packed = false];
- int unpacked_sfixed32_size() const;
- void clear_unpacked_sfixed32();
- static const int kUnpackedSfixed32FieldNumber = 98;
- ::google::protobuf::int32 unpacked_sfixed32(int index) const;
- void set_unpacked_sfixed32(int index, ::google::protobuf::int32 value);
- void add_unpacked_sfixed32(::google::protobuf::int32 value);
- const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
- unpacked_sfixed32() const;
- ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
- mutable_unpacked_sfixed32();
- // repeated sfixed64 unpacked_sfixed64 = 99 [packed = false];
- int unpacked_sfixed64_size() const;
- void clear_unpacked_sfixed64();
- static const int kUnpackedSfixed64FieldNumber = 99;
- ::google::protobuf::int64 unpacked_sfixed64(int index) const;
- void set_unpacked_sfixed64(int index, ::google::protobuf::int64 value);
- void add_unpacked_sfixed64(::google::protobuf::int64 value);
- const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
- unpacked_sfixed64() const;
- ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
- mutable_unpacked_sfixed64();
- // repeated float unpacked_float = 100 [packed = false];
- int unpacked_float_size() const;
- void clear_unpacked_float();
- static const int kUnpackedFloatFieldNumber = 100;
- float unpacked_float(int index) const;
- void set_unpacked_float(int index, float value);
- void add_unpacked_float(float value);
- const ::google::protobuf::RepeatedField< float >&
- unpacked_float() const;
- ::google::protobuf::RepeatedField< float >*
- mutable_unpacked_float();
- // repeated double unpacked_double = 101 [packed = false];
- int unpacked_double_size() const;
- void clear_unpacked_double();
- static const int kUnpackedDoubleFieldNumber = 101;
- double unpacked_double(int index) const;
- void set_unpacked_double(int index, double value);
- void add_unpacked_double(double value);
- const ::google::protobuf::RepeatedField< double >&
- unpacked_double() const;
- ::google::protobuf::RepeatedField< double >*
- mutable_unpacked_double();
- // repeated bool unpacked_bool = 102 [packed = false];
- int unpacked_bool_size() const;
- void clear_unpacked_bool();
- static const int kUnpackedBoolFieldNumber = 102;
- bool unpacked_bool(int index) const;
- void set_unpacked_bool(int index, bool value);
- void add_unpacked_bool(bool value);
- const ::google::protobuf::RepeatedField< bool >&
- unpacked_bool() const;
- ::google::protobuf::RepeatedField< bool >*
- mutable_unpacked_bool();
- // repeated .protobuf_unittest.ForeignEnum unpacked_enum = 103 [packed = false];
- int unpacked_enum_size() const;
- void clear_unpacked_enum();
- static const int kUnpackedEnumFieldNumber = 103;
- ::protobuf_unittest::ForeignEnum unpacked_enum(int index) const;
- void set_unpacked_enum(int index, ::protobuf_unittest::ForeignEnum value);
- void add_unpacked_enum(::protobuf_unittest::ForeignEnum value);
- const ::google::protobuf::RepeatedField<int>& unpacked_enum() const;
- ::google::protobuf::RepeatedField<int>* mutable_unpacked_enum();
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestUnpackedTypes)
- private:
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- ::google::protobuf::RepeatedField< ::google::protobuf::int32 > unpacked_int32_;
- ::google::protobuf::RepeatedField< ::google::protobuf::int64 > unpacked_int64_;
- ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > unpacked_uint32_;
- ::google::protobuf::RepeatedField< ::google::protobuf::uint64 > unpacked_uint64_;
- ::google::protobuf::RepeatedField< ::google::protobuf::int32 > unpacked_sint32_;
- ::google::protobuf::RepeatedField< ::google::protobuf::int64 > unpacked_sint64_;
- ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > unpacked_fixed32_;
- ::google::protobuf::RepeatedField< ::google::protobuf::uint64 > unpacked_fixed64_;
- ::google::protobuf::RepeatedField< ::google::protobuf::int32 > unpacked_sfixed32_;
- ::google::protobuf::RepeatedField< ::google::protobuf::int64 > unpacked_sfixed64_;
- ::google::protobuf::RepeatedField< float > unpacked_float_;
- ::google::protobuf::RepeatedField< double > unpacked_double_;
- ::google::protobuf::RepeatedField< bool > unpacked_bool_;
- ::google::protobuf::RepeatedField<int> unpacked_enum_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class TestPackedExtensions : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestPackedExtensions) */ {
- public:
- TestPackedExtensions();
- virtual ~TestPackedExtensions();
- TestPackedExtensions(const TestPackedExtensions& from);
- inline TestPackedExtensions& operator=(const TestPackedExtensions& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestPackedExtensions(TestPackedExtensions&& from) noexcept
- : TestPackedExtensions() {
- *this = ::std::move(from);
- }
- inline TestPackedExtensions& operator=(TestPackedExtensions&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const TestPackedExtensions& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestPackedExtensions* internal_default_instance() {
- return reinterpret_cast<const TestPackedExtensions*>(
- &_TestPackedExtensions_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 68;
- void UnsafeArenaSwap(TestPackedExtensions* other);
- void Swap(TestPackedExtensions* other);
- friend void swap(TestPackedExtensions& a, TestPackedExtensions& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestPackedExtensions* New() const final {
- return CreateMaybeMessage<TestPackedExtensions>(NULL);
- }
- TestPackedExtensions* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestPackedExtensions>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestPackedExtensions& from);
- void MergeFrom(const TestPackedExtensions& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestPackedExtensions* other);
- protected:
- explicit TestPackedExtensions(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(TestPackedExtensions)
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestPackedExtensions)
- private:
- ::google::protobuf::internal::ExtensionSet _extensions_;
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class TestUnpackedExtensions : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestUnpackedExtensions) */ {
- public:
- TestUnpackedExtensions();
- virtual ~TestUnpackedExtensions();
- TestUnpackedExtensions(const TestUnpackedExtensions& from);
- inline TestUnpackedExtensions& operator=(const TestUnpackedExtensions& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestUnpackedExtensions(TestUnpackedExtensions&& from) noexcept
- : TestUnpackedExtensions() {
- *this = ::std::move(from);
- }
- inline TestUnpackedExtensions& operator=(TestUnpackedExtensions&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const TestUnpackedExtensions& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestUnpackedExtensions* internal_default_instance() {
- return reinterpret_cast<const TestUnpackedExtensions*>(
- &_TestUnpackedExtensions_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 69;
- void UnsafeArenaSwap(TestUnpackedExtensions* other);
- void Swap(TestUnpackedExtensions* other);
- friend void swap(TestUnpackedExtensions& a, TestUnpackedExtensions& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestUnpackedExtensions* New() const final {
- return CreateMaybeMessage<TestUnpackedExtensions>(NULL);
- }
- TestUnpackedExtensions* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestUnpackedExtensions>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestUnpackedExtensions& from);
- void MergeFrom(const TestUnpackedExtensions& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestUnpackedExtensions* other);
- protected:
- explicit TestUnpackedExtensions(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(TestUnpackedExtensions)
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestUnpackedExtensions)
- private:
- ::google::protobuf::internal::ExtensionSet _extensions_;
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class TestDynamicExtensions_DynamicMessageType : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestDynamicExtensions.DynamicMessageType) */ {
- public:
- TestDynamicExtensions_DynamicMessageType();
- virtual ~TestDynamicExtensions_DynamicMessageType();
- TestDynamicExtensions_DynamicMessageType(const TestDynamicExtensions_DynamicMessageType& from);
- inline TestDynamicExtensions_DynamicMessageType& operator=(const TestDynamicExtensions_DynamicMessageType& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestDynamicExtensions_DynamicMessageType(TestDynamicExtensions_DynamicMessageType&& from) noexcept
- : TestDynamicExtensions_DynamicMessageType() {
- *this = ::std::move(from);
- }
- inline TestDynamicExtensions_DynamicMessageType& operator=(TestDynamicExtensions_DynamicMessageType&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const TestDynamicExtensions_DynamicMessageType& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestDynamicExtensions_DynamicMessageType* internal_default_instance() {
- return reinterpret_cast<const TestDynamicExtensions_DynamicMessageType*>(
- &_TestDynamicExtensions_DynamicMessageType_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 70;
- void UnsafeArenaSwap(TestDynamicExtensions_DynamicMessageType* other);
- void Swap(TestDynamicExtensions_DynamicMessageType* other);
- friend void swap(TestDynamicExtensions_DynamicMessageType& a, TestDynamicExtensions_DynamicMessageType& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestDynamicExtensions_DynamicMessageType* New() const final {
- return CreateMaybeMessage<TestDynamicExtensions_DynamicMessageType>(NULL);
- }
- TestDynamicExtensions_DynamicMessageType* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestDynamicExtensions_DynamicMessageType>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestDynamicExtensions_DynamicMessageType& from);
- void MergeFrom(const TestDynamicExtensions_DynamicMessageType& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestDynamicExtensions_DynamicMessageType* other);
- protected:
- explicit TestDynamicExtensions_DynamicMessageType(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // optional int32 dynamic_field = 2100;
- bool has_dynamic_field() const;
- void clear_dynamic_field();
- static const int kDynamicFieldFieldNumber = 2100;
- ::google::protobuf::int32 dynamic_field() const;
- void set_dynamic_field(::google::protobuf::int32 value);
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestDynamicExtensions.DynamicMessageType)
- private:
- void set_has_dynamic_field();
- void clear_has_dynamic_field();
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- ::google::protobuf::int32 dynamic_field_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class TestDynamicExtensions : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestDynamicExtensions) */ {
- public:
- TestDynamicExtensions();
- virtual ~TestDynamicExtensions();
- TestDynamicExtensions(const TestDynamicExtensions& from);
- inline TestDynamicExtensions& operator=(const TestDynamicExtensions& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestDynamicExtensions(TestDynamicExtensions&& from) noexcept
- : TestDynamicExtensions() {
- *this = ::std::move(from);
- }
- inline TestDynamicExtensions& operator=(TestDynamicExtensions&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const TestDynamicExtensions& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestDynamicExtensions* internal_default_instance() {
- return reinterpret_cast<const TestDynamicExtensions*>(
- &_TestDynamicExtensions_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 71;
- void UnsafeArenaSwap(TestDynamicExtensions* other);
- void Swap(TestDynamicExtensions* other);
- friend void swap(TestDynamicExtensions& a, TestDynamicExtensions& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestDynamicExtensions* New() const final {
- return CreateMaybeMessage<TestDynamicExtensions>(NULL);
- }
- TestDynamicExtensions* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestDynamicExtensions>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestDynamicExtensions& from);
- void MergeFrom(const TestDynamicExtensions& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestDynamicExtensions* other);
- protected:
- explicit TestDynamicExtensions(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- typedef TestDynamicExtensions_DynamicMessageType DynamicMessageType;
- typedef TestDynamicExtensions_DynamicEnumType DynamicEnumType;
- static const DynamicEnumType DYNAMIC_FOO =
- TestDynamicExtensions_DynamicEnumType_DYNAMIC_FOO;
- static const DynamicEnumType DYNAMIC_BAR =
- TestDynamicExtensions_DynamicEnumType_DYNAMIC_BAR;
- static const DynamicEnumType DYNAMIC_BAZ =
- TestDynamicExtensions_DynamicEnumType_DYNAMIC_BAZ;
- static inline bool DynamicEnumType_IsValid(int value) {
- return TestDynamicExtensions_DynamicEnumType_IsValid(value);
- }
- static const DynamicEnumType DynamicEnumType_MIN =
- TestDynamicExtensions_DynamicEnumType_DynamicEnumType_MIN;
- static const DynamicEnumType DynamicEnumType_MAX =
- TestDynamicExtensions_DynamicEnumType_DynamicEnumType_MAX;
- static const int DynamicEnumType_ARRAYSIZE =
- TestDynamicExtensions_DynamicEnumType_DynamicEnumType_ARRAYSIZE;
- static inline const ::google::protobuf::EnumDescriptor*
- DynamicEnumType_descriptor() {
- return TestDynamicExtensions_DynamicEnumType_descriptor();
- }
- static inline const ::std::string& DynamicEnumType_Name(DynamicEnumType value) {
- return TestDynamicExtensions_DynamicEnumType_Name(value);
- }
- static inline bool DynamicEnumType_Parse(const ::std::string& name,
- DynamicEnumType* value) {
- return TestDynamicExtensions_DynamicEnumType_Parse(name, value);
- }
- // accessors -------------------------------------------------------
- // repeated string repeated_extension = 2005;
- int repeated_extension_size() const;
- void clear_repeated_extension();
- static const int kRepeatedExtensionFieldNumber = 2005;
- const ::std::string& repeated_extension(int index) const;
- ::std::string* mutable_repeated_extension(int index);
- void set_repeated_extension(int index, const ::std::string& value);
- #if LANG_CXX11
- void set_repeated_extension(int index, ::std::string&& value);
- #endif
- void set_repeated_extension(int index, const char* value);
- void set_repeated_extension(int index, const char* value, size_t size);
- ::std::string* add_repeated_extension();
- void add_repeated_extension(const ::std::string& value);
- #if LANG_CXX11
- void add_repeated_extension(::std::string&& value);
- #endif
- void add_repeated_extension(const char* value);
- void add_repeated_extension(const char* value, size_t size);
- const ::google::protobuf::RepeatedPtrField< ::std::string>& repeated_extension() const;
- ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_repeated_extension();
- // repeated sint32 packed_extension = 2006 [packed = true];
- int packed_extension_size() const;
- void clear_packed_extension();
- static const int kPackedExtensionFieldNumber = 2006;
- ::google::protobuf::int32 packed_extension(int index) const;
- void set_packed_extension(int index, ::google::protobuf::int32 value);
- void add_packed_extension(::google::protobuf::int32 value);
- const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
- packed_extension() const;
- ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
- mutable_packed_extension();
- // optional .protobuf_unittest.ForeignMessage message_extension = 2003;
- bool has_message_extension() const;
- void clear_message_extension();
- static const int kMessageExtensionFieldNumber = 2003;
- private:
- const ::protobuf_unittest::ForeignMessage& _internal_message_extension() const;
- public:
- const ::protobuf_unittest::ForeignMessage& message_extension() const;
- ::protobuf_unittest::ForeignMessage* release_message_extension();
- ::protobuf_unittest::ForeignMessage* mutable_message_extension();
- void set_allocated_message_extension(::protobuf_unittest::ForeignMessage* message_extension);
- void unsafe_arena_set_allocated_message_extension(
- ::protobuf_unittest::ForeignMessage* message_extension);
- ::protobuf_unittest::ForeignMessage* unsafe_arena_release_message_extension();
- // optional .protobuf_unittest.TestDynamicExtensions.DynamicMessageType dynamic_message_extension = 2004;
- bool has_dynamic_message_extension() const;
- void clear_dynamic_message_extension();
- static const int kDynamicMessageExtensionFieldNumber = 2004;
- private:
- const ::protobuf_unittest::TestDynamicExtensions_DynamicMessageType& _internal_dynamic_message_extension() const;
- public:
- const ::protobuf_unittest::TestDynamicExtensions_DynamicMessageType& dynamic_message_extension() const;
- ::protobuf_unittest::TestDynamicExtensions_DynamicMessageType* release_dynamic_message_extension();
- ::protobuf_unittest::TestDynamicExtensions_DynamicMessageType* mutable_dynamic_message_extension();
- void set_allocated_dynamic_message_extension(::protobuf_unittest::TestDynamicExtensions_DynamicMessageType* dynamic_message_extension);
- void unsafe_arena_set_allocated_dynamic_message_extension(
- ::protobuf_unittest::TestDynamicExtensions_DynamicMessageType* dynamic_message_extension);
- ::protobuf_unittest::TestDynamicExtensions_DynamicMessageType* unsafe_arena_release_dynamic_message_extension();
- // optional fixed32 scalar_extension = 2000;
- bool has_scalar_extension() const;
- void clear_scalar_extension();
- static const int kScalarExtensionFieldNumber = 2000;
- ::google::protobuf::uint32 scalar_extension() const;
- void set_scalar_extension(::google::protobuf::uint32 value);
- // optional .protobuf_unittest.ForeignEnum enum_extension = 2001;
- bool has_enum_extension() const;
- void clear_enum_extension();
- static const int kEnumExtensionFieldNumber = 2001;
- ::protobuf_unittest::ForeignEnum enum_extension() const;
- void set_enum_extension(::protobuf_unittest::ForeignEnum value);
- // optional .protobuf_unittest.TestDynamicExtensions.DynamicEnumType dynamic_enum_extension = 2002;
- bool has_dynamic_enum_extension() const;
- void clear_dynamic_enum_extension();
- static const int kDynamicEnumExtensionFieldNumber = 2002;
- ::protobuf_unittest::TestDynamicExtensions_DynamicEnumType dynamic_enum_extension() const;
- void set_dynamic_enum_extension(::protobuf_unittest::TestDynamicExtensions_DynamicEnumType value);
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestDynamicExtensions)
- private:
- void set_has_scalar_extension();
- void clear_has_scalar_extension();
- void set_has_enum_extension();
- void clear_has_enum_extension();
- void set_has_dynamic_enum_extension();
- void clear_has_dynamic_enum_extension();
- void set_has_message_extension();
- void clear_has_message_extension();
- void set_has_dynamic_message_extension();
- void clear_has_dynamic_message_extension();
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- ::google::protobuf::RepeatedPtrField< ::std::string> repeated_extension_;
- ::google::protobuf::RepeatedField< ::google::protobuf::int32 > packed_extension_;
- mutable int _packed_extension_cached_byte_size_;
- ::protobuf_unittest::ForeignMessage* message_extension_;
- ::protobuf_unittest::TestDynamicExtensions_DynamicMessageType* dynamic_message_extension_;
- ::google::protobuf::uint32 scalar_extension_;
- int enum_extension_;
- int dynamic_enum_extension_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class TestRepeatedScalarDifferentTagSizes : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestRepeatedScalarDifferentTagSizes) */ {
- public:
- TestRepeatedScalarDifferentTagSizes();
- virtual ~TestRepeatedScalarDifferentTagSizes();
- TestRepeatedScalarDifferentTagSizes(const TestRepeatedScalarDifferentTagSizes& from);
- inline TestRepeatedScalarDifferentTagSizes& operator=(const TestRepeatedScalarDifferentTagSizes& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestRepeatedScalarDifferentTagSizes(TestRepeatedScalarDifferentTagSizes&& from) noexcept
- : TestRepeatedScalarDifferentTagSizes() {
- *this = ::std::move(from);
- }
- inline TestRepeatedScalarDifferentTagSizes& operator=(TestRepeatedScalarDifferentTagSizes&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const TestRepeatedScalarDifferentTagSizes& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestRepeatedScalarDifferentTagSizes* internal_default_instance() {
- return reinterpret_cast<const TestRepeatedScalarDifferentTagSizes*>(
- &_TestRepeatedScalarDifferentTagSizes_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 72;
- void UnsafeArenaSwap(TestRepeatedScalarDifferentTagSizes* other);
- void Swap(TestRepeatedScalarDifferentTagSizes* other);
- friend void swap(TestRepeatedScalarDifferentTagSizes& a, TestRepeatedScalarDifferentTagSizes& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestRepeatedScalarDifferentTagSizes* New() const final {
- return CreateMaybeMessage<TestRepeatedScalarDifferentTagSizes>(NULL);
- }
- TestRepeatedScalarDifferentTagSizes* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestRepeatedScalarDifferentTagSizes>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestRepeatedScalarDifferentTagSizes& from);
- void MergeFrom(const TestRepeatedScalarDifferentTagSizes& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestRepeatedScalarDifferentTagSizes* other);
- protected:
- explicit TestRepeatedScalarDifferentTagSizes(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // repeated fixed32 repeated_fixed32 = 12;
- int repeated_fixed32_size() const;
- void clear_repeated_fixed32();
- static const int kRepeatedFixed32FieldNumber = 12;
- ::google::protobuf::uint32 repeated_fixed32(int index) const;
- void set_repeated_fixed32(int index, ::google::protobuf::uint32 value);
- void add_repeated_fixed32(::google::protobuf::uint32 value);
- const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
- repeated_fixed32() const;
- ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
- mutable_repeated_fixed32();
- // repeated int32 repeated_int32 = 13;
- int repeated_int32_size() const;
- void clear_repeated_int32();
- static const int kRepeatedInt32FieldNumber = 13;
- ::google::protobuf::int32 repeated_int32(int index) const;
- void set_repeated_int32(int index, ::google::protobuf::int32 value);
- void add_repeated_int32(::google::protobuf::int32 value);
- const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
- repeated_int32() const;
- ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
- mutable_repeated_int32();
- // repeated fixed64 repeated_fixed64 = 2046;
- int repeated_fixed64_size() const;
- void clear_repeated_fixed64();
- static const int kRepeatedFixed64FieldNumber = 2046;
- ::google::protobuf::uint64 repeated_fixed64(int index) const;
- void set_repeated_fixed64(int index, ::google::protobuf::uint64 value);
- void add_repeated_fixed64(::google::protobuf::uint64 value);
- const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
- repeated_fixed64() const;
- ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
- mutable_repeated_fixed64();
- // repeated int64 repeated_int64 = 2047;
- int repeated_int64_size() const;
- void clear_repeated_int64();
- static const int kRepeatedInt64FieldNumber = 2047;
- ::google::protobuf::int64 repeated_int64(int index) const;
- void set_repeated_int64(int index, ::google::protobuf::int64 value);
- void add_repeated_int64(::google::protobuf::int64 value);
- const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
- repeated_int64() const;
- ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
- mutable_repeated_int64();
- // repeated float repeated_float = 262142;
- int repeated_float_size() const;
- void clear_repeated_float();
- static const int kRepeatedFloatFieldNumber = 262142;
- float repeated_float(int index) const;
- void set_repeated_float(int index, float value);
- void add_repeated_float(float value);
- const ::google::protobuf::RepeatedField< float >&
- repeated_float() const;
- ::google::protobuf::RepeatedField< float >*
- mutable_repeated_float();
- // repeated uint64 repeated_uint64 = 262143;
- int repeated_uint64_size() const;
- void clear_repeated_uint64();
- static const int kRepeatedUint64FieldNumber = 262143;
- ::google::protobuf::uint64 repeated_uint64(int index) const;
- void set_repeated_uint64(int index, ::google::protobuf::uint64 value);
- void add_repeated_uint64(::google::protobuf::uint64 value);
- const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
- repeated_uint64() const;
- ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
- mutable_repeated_uint64();
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestRepeatedScalarDifferentTagSizes)
- private:
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > repeated_fixed32_;
- ::google::protobuf::RepeatedField< ::google::protobuf::int32 > repeated_int32_;
- ::google::protobuf::RepeatedField< ::google::protobuf::uint64 > repeated_fixed64_;
- ::google::protobuf::RepeatedField< ::google::protobuf::int64 > repeated_int64_;
- ::google::protobuf::RepeatedField< float > repeated_float_;
- ::google::protobuf::RepeatedField< ::google::protobuf::uint64 > repeated_uint64_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class TestParsingMerge_RepeatedFieldsGenerator_Group1 : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.Group1) */ {
- public:
- TestParsingMerge_RepeatedFieldsGenerator_Group1();
- virtual ~TestParsingMerge_RepeatedFieldsGenerator_Group1();
- TestParsingMerge_RepeatedFieldsGenerator_Group1(const TestParsingMerge_RepeatedFieldsGenerator_Group1& from);
- inline TestParsingMerge_RepeatedFieldsGenerator_Group1& operator=(const TestParsingMerge_RepeatedFieldsGenerator_Group1& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestParsingMerge_RepeatedFieldsGenerator_Group1(TestParsingMerge_RepeatedFieldsGenerator_Group1&& from) noexcept
- : TestParsingMerge_RepeatedFieldsGenerator_Group1() {
- *this = ::std::move(from);
- }
- inline TestParsingMerge_RepeatedFieldsGenerator_Group1& operator=(TestParsingMerge_RepeatedFieldsGenerator_Group1&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const TestParsingMerge_RepeatedFieldsGenerator_Group1& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestParsingMerge_RepeatedFieldsGenerator_Group1* internal_default_instance() {
- return reinterpret_cast<const TestParsingMerge_RepeatedFieldsGenerator_Group1*>(
- &_TestParsingMerge_RepeatedFieldsGenerator_Group1_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 73;
- void UnsafeArenaSwap(TestParsingMerge_RepeatedFieldsGenerator_Group1* other);
- void Swap(TestParsingMerge_RepeatedFieldsGenerator_Group1* other);
- friend void swap(TestParsingMerge_RepeatedFieldsGenerator_Group1& a, TestParsingMerge_RepeatedFieldsGenerator_Group1& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestParsingMerge_RepeatedFieldsGenerator_Group1* New() const final {
- return CreateMaybeMessage<TestParsingMerge_RepeatedFieldsGenerator_Group1>(NULL);
- }
- TestParsingMerge_RepeatedFieldsGenerator_Group1* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestParsingMerge_RepeatedFieldsGenerator_Group1>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestParsingMerge_RepeatedFieldsGenerator_Group1& from);
- void MergeFrom(const TestParsingMerge_RepeatedFieldsGenerator_Group1& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestParsingMerge_RepeatedFieldsGenerator_Group1* other);
- protected:
- explicit TestParsingMerge_RepeatedFieldsGenerator_Group1(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // optional .protobuf_unittest.TestAllTypes field1 = 11;
- bool has_field1() const;
- void clear_field1();
- static const int kField1FieldNumber = 11;
- private:
- const ::protobuf_unittest::TestAllTypes& _internal_field1() const;
- public:
- const ::protobuf_unittest::TestAllTypes& field1() const;
- ::protobuf_unittest::TestAllTypes* release_field1();
- ::protobuf_unittest::TestAllTypes* mutable_field1();
- void set_allocated_field1(::protobuf_unittest::TestAllTypes* field1);
- void unsafe_arena_set_allocated_field1(
- ::protobuf_unittest::TestAllTypes* field1);
- ::protobuf_unittest::TestAllTypes* unsafe_arena_release_field1();
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.Group1)
- private:
- void set_has_field1();
- void clear_has_field1();
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- ::protobuf_unittest::TestAllTypes* field1_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class TestParsingMerge_RepeatedFieldsGenerator_Group2 : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.Group2) */ {
- public:
- TestParsingMerge_RepeatedFieldsGenerator_Group2();
- virtual ~TestParsingMerge_RepeatedFieldsGenerator_Group2();
- TestParsingMerge_RepeatedFieldsGenerator_Group2(const TestParsingMerge_RepeatedFieldsGenerator_Group2& from);
- inline TestParsingMerge_RepeatedFieldsGenerator_Group2& operator=(const TestParsingMerge_RepeatedFieldsGenerator_Group2& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestParsingMerge_RepeatedFieldsGenerator_Group2(TestParsingMerge_RepeatedFieldsGenerator_Group2&& from) noexcept
- : TestParsingMerge_RepeatedFieldsGenerator_Group2() {
- *this = ::std::move(from);
- }
- inline TestParsingMerge_RepeatedFieldsGenerator_Group2& operator=(TestParsingMerge_RepeatedFieldsGenerator_Group2&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const TestParsingMerge_RepeatedFieldsGenerator_Group2& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestParsingMerge_RepeatedFieldsGenerator_Group2* internal_default_instance() {
- return reinterpret_cast<const TestParsingMerge_RepeatedFieldsGenerator_Group2*>(
- &_TestParsingMerge_RepeatedFieldsGenerator_Group2_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 74;
- void UnsafeArenaSwap(TestParsingMerge_RepeatedFieldsGenerator_Group2* other);
- void Swap(TestParsingMerge_RepeatedFieldsGenerator_Group2* other);
- friend void swap(TestParsingMerge_RepeatedFieldsGenerator_Group2& a, TestParsingMerge_RepeatedFieldsGenerator_Group2& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestParsingMerge_RepeatedFieldsGenerator_Group2* New() const final {
- return CreateMaybeMessage<TestParsingMerge_RepeatedFieldsGenerator_Group2>(NULL);
- }
- TestParsingMerge_RepeatedFieldsGenerator_Group2* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestParsingMerge_RepeatedFieldsGenerator_Group2>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestParsingMerge_RepeatedFieldsGenerator_Group2& from);
- void MergeFrom(const TestParsingMerge_RepeatedFieldsGenerator_Group2& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestParsingMerge_RepeatedFieldsGenerator_Group2* other);
- protected:
- explicit TestParsingMerge_RepeatedFieldsGenerator_Group2(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // optional .protobuf_unittest.TestAllTypes field1 = 21;
- bool has_field1() const;
- void clear_field1();
- static const int kField1FieldNumber = 21;
- private:
- const ::protobuf_unittest::TestAllTypes& _internal_field1() const;
- public:
- const ::protobuf_unittest::TestAllTypes& field1() const;
- ::protobuf_unittest::TestAllTypes* release_field1();
- ::protobuf_unittest::TestAllTypes* mutable_field1();
- void set_allocated_field1(::protobuf_unittest::TestAllTypes* field1);
- void unsafe_arena_set_allocated_field1(
- ::protobuf_unittest::TestAllTypes* field1);
- ::protobuf_unittest::TestAllTypes* unsafe_arena_release_field1();
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.Group2)
- private:
- void set_has_field1();
- void clear_has_field1();
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- ::protobuf_unittest::TestAllTypes* field1_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class TestParsingMerge_RepeatedFieldsGenerator : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator) */ {
- public:
- TestParsingMerge_RepeatedFieldsGenerator();
- virtual ~TestParsingMerge_RepeatedFieldsGenerator();
- TestParsingMerge_RepeatedFieldsGenerator(const TestParsingMerge_RepeatedFieldsGenerator& from);
- inline TestParsingMerge_RepeatedFieldsGenerator& operator=(const TestParsingMerge_RepeatedFieldsGenerator& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestParsingMerge_RepeatedFieldsGenerator(TestParsingMerge_RepeatedFieldsGenerator&& from) noexcept
- : TestParsingMerge_RepeatedFieldsGenerator() {
- *this = ::std::move(from);
- }
- inline TestParsingMerge_RepeatedFieldsGenerator& operator=(TestParsingMerge_RepeatedFieldsGenerator&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const TestParsingMerge_RepeatedFieldsGenerator& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestParsingMerge_RepeatedFieldsGenerator* internal_default_instance() {
- return reinterpret_cast<const TestParsingMerge_RepeatedFieldsGenerator*>(
- &_TestParsingMerge_RepeatedFieldsGenerator_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 75;
- void UnsafeArenaSwap(TestParsingMerge_RepeatedFieldsGenerator* other);
- void Swap(TestParsingMerge_RepeatedFieldsGenerator* other);
- friend void swap(TestParsingMerge_RepeatedFieldsGenerator& a, TestParsingMerge_RepeatedFieldsGenerator& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestParsingMerge_RepeatedFieldsGenerator* New() const final {
- return CreateMaybeMessage<TestParsingMerge_RepeatedFieldsGenerator>(NULL);
- }
- TestParsingMerge_RepeatedFieldsGenerator* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestParsingMerge_RepeatedFieldsGenerator>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestParsingMerge_RepeatedFieldsGenerator& from);
- void MergeFrom(const TestParsingMerge_RepeatedFieldsGenerator& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestParsingMerge_RepeatedFieldsGenerator* other);
- protected:
- explicit TestParsingMerge_RepeatedFieldsGenerator(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- typedef TestParsingMerge_RepeatedFieldsGenerator_Group1 Group1;
- typedef TestParsingMerge_RepeatedFieldsGenerator_Group2 Group2;
- // accessors -------------------------------------------------------
- // repeated .protobuf_unittest.TestAllTypes field1 = 1;
- int field1_size() const;
- void clear_field1();
- static const int kField1FieldNumber = 1;
- ::protobuf_unittest::TestAllTypes* mutable_field1(int index);
- ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes >*
- mutable_field1();
- const ::protobuf_unittest::TestAllTypes& field1(int index) const;
- ::protobuf_unittest::TestAllTypes* add_field1();
- const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes >&
- field1() const;
- // repeated .protobuf_unittest.TestAllTypes field2 = 2;
- int field2_size() const;
- void clear_field2();
- static const int kField2FieldNumber = 2;
- ::protobuf_unittest::TestAllTypes* mutable_field2(int index);
- ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes >*
- mutable_field2();
- const ::protobuf_unittest::TestAllTypes& field2(int index) const;
- ::protobuf_unittest::TestAllTypes* add_field2();
- const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes >&
- field2() const;
- // repeated .protobuf_unittest.TestAllTypes field3 = 3;
- int field3_size() const;
- void clear_field3();
- static const int kField3FieldNumber = 3;
- ::protobuf_unittest::TestAllTypes* mutable_field3(int index);
- ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes >*
- mutable_field3();
- const ::protobuf_unittest::TestAllTypes& field3(int index) const;
- ::protobuf_unittest::TestAllTypes* add_field3();
- const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes >&
- field3() const;
- // repeated group Group1 = 10 { ... };
- int group1_size() const;
- void clear_group1();
- static const int kGroup1FieldNumber = 10;
- ::protobuf_unittest::TestParsingMerge_RepeatedFieldsGenerator_Group1* mutable_group1(int index);
- ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestParsingMerge_RepeatedFieldsGenerator_Group1 >*
- mutable_group1();
- const ::protobuf_unittest::TestParsingMerge_RepeatedFieldsGenerator_Group1& group1(int index) const;
- ::protobuf_unittest::TestParsingMerge_RepeatedFieldsGenerator_Group1* add_group1();
- const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestParsingMerge_RepeatedFieldsGenerator_Group1 >&
- group1() const;
- // repeated group Group2 = 20 { ... };
- int group2_size() const;
- void clear_group2();
- static const int kGroup2FieldNumber = 20;
- ::protobuf_unittest::TestParsingMerge_RepeatedFieldsGenerator_Group2* mutable_group2(int index);
- ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestParsingMerge_RepeatedFieldsGenerator_Group2 >*
- mutable_group2();
- const ::protobuf_unittest::TestParsingMerge_RepeatedFieldsGenerator_Group2& group2(int index) const;
- ::protobuf_unittest::TestParsingMerge_RepeatedFieldsGenerator_Group2* add_group2();
- const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestParsingMerge_RepeatedFieldsGenerator_Group2 >&
- group2() const;
- // repeated .protobuf_unittest.TestAllTypes ext1 = 1000;
- int ext1_size() const;
- void clear_ext1();
- static const int kExt1FieldNumber = 1000;
- ::protobuf_unittest::TestAllTypes* mutable_ext1(int index);
- ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes >*
- mutable_ext1();
- const ::protobuf_unittest::TestAllTypes& ext1(int index) const;
- ::protobuf_unittest::TestAllTypes* add_ext1();
- const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes >&
- ext1() const;
- // repeated .protobuf_unittest.TestAllTypes ext2 = 1001;
- int ext2_size() const;
- void clear_ext2();
- static const int kExt2FieldNumber = 1001;
- ::protobuf_unittest::TestAllTypes* mutable_ext2(int index);
- ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes >*
- mutable_ext2();
- const ::protobuf_unittest::TestAllTypes& ext2(int index) const;
- ::protobuf_unittest::TestAllTypes* add_ext2();
- const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes >&
- ext2() const;
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator)
- private:
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes > field1_;
- ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes > field2_;
- ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes > field3_;
- ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestParsingMerge_RepeatedFieldsGenerator_Group1 > group1_;
- ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestParsingMerge_RepeatedFieldsGenerator_Group2 > group2_;
- ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes > ext1_;
- ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes > ext2_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class TestParsingMerge_OptionalGroup : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestParsingMerge.OptionalGroup) */ {
- public:
- TestParsingMerge_OptionalGroup();
- virtual ~TestParsingMerge_OptionalGroup();
- TestParsingMerge_OptionalGroup(const TestParsingMerge_OptionalGroup& from);
- inline TestParsingMerge_OptionalGroup& operator=(const TestParsingMerge_OptionalGroup& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestParsingMerge_OptionalGroup(TestParsingMerge_OptionalGroup&& from) noexcept
- : TestParsingMerge_OptionalGroup() {
- *this = ::std::move(from);
- }
- inline TestParsingMerge_OptionalGroup& operator=(TestParsingMerge_OptionalGroup&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const TestParsingMerge_OptionalGroup& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestParsingMerge_OptionalGroup* internal_default_instance() {
- return reinterpret_cast<const TestParsingMerge_OptionalGroup*>(
- &_TestParsingMerge_OptionalGroup_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 76;
- void UnsafeArenaSwap(TestParsingMerge_OptionalGroup* other);
- void Swap(TestParsingMerge_OptionalGroup* other);
- friend void swap(TestParsingMerge_OptionalGroup& a, TestParsingMerge_OptionalGroup& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestParsingMerge_OptionalGroup* New() const final {
- return CreateMaybeMessage<TestParsingMerge_OptionalGroup>(NULL);
- }
- TestParsingMerge_OptionalGroup* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestParsingMerge_OptionalGroup>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestParsingMerge_OptionalGroup& from);
- void MergeFrom(const TestParsingMerge_OptionalGroup& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestParsingMerge_OptionalGroup* other);
- protected:
- explicit TestParsingMerge_OptionalGroup(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // optional .protobuf_unittest.TestAllTypes optional_group_all_types = 11;
- bool has_optional_group_all_types() const;
- void clear_optional_group_all_types();
- static const int kOptionalGroupAllTypesFieldNumber = 11;
- private:
- const ::protobuf_unittest::TestAllTypes& _internal_optional_group_all_types() const;
- public:
- const ::protobuf_unittest::TestAllTypes& optional_group_all_types() const;
- ::protobuf_unittest::TestAllTypes* release_optional_group_all_types();
- ::protobuf_unittest::TestAllTypes* mutable_optional_group_all_types();
- void set_allocated_optional_group_all_types(::protobuf_unittest::TestAllTypes* optional_group_all_types);
- void unsafe_arena_set_allocated_optional_group_all_types(
- ::protobuf_unittest::TestAllTypes* optional_group_all_types);
- ::protobuf_unittest::TestAllTypes* unsafe_arena_release_optional_group_all_types();
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestParsingMerge.OptionalGroup)
- private:
- void set_has_optional_group_all_types();
- void clear_has_optional_group_all_types();
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- ::protobuf_unittest::TestAllTypes* optional_group_all_types_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class TestParsingMerge_RepeatedGroup : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestParsingMerge.RepeatedGroup) */ {
- public:
- TestParsingMerge_RepeatedGroup();
- virtual ~TestParsingMerge_RepeatedGroup();
- TestParsingMerge_RepeatedGroup(const TestParsingMerge_RepeatedGroup& from);
- inline TestParsingMerge_RepeatedGroup& operator=(const TestParsingMerge_RepeatedGroup& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestParsingMerge_RepeatedGroup(TestParsingMerge_RepeatedGroup&& from) noexcept
- : TestParsingMerge_RepeatedGroup() {
- *this = ::std::move(from);
- }
- inline TestParsingMerge_RepeatedGroup& operator=(TestParsingMerge_RepeatedGroup&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const TestParsingMerge_RepeatedGroup& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestParsingMerge_RepeatedGroup* internal_default_instance() {
- return reinterpret_cast<const TestParsingMerge_RepeatedGroup*>(
- &_TestParsingMerge_RepeatedGroup_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 77;
- void UnsafeArenaSwap(TestParsingMerge_RepeatedGroup* other);
- void Swap(TestParsingMerge_RepeatedGroup* other);
- friend void swap(TestParsingMerge_RepeatedGroup& a, TestParsingMerge_RepeatedGroup& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestParsingMerge_RepeatedGroup* New() const final {
- return CreateMaybeMessage<TestParsingMerge_RepeatedGroup>(NULL);
- }
- TestParsingMerge_RepeatedGroup* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestParsingMerge_RepeatedGroup>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestParsingMerge_RepeatedGroup& from);
- void MergeFrom(const TestParsingMerge_RepeatedGroup& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestParsingMerge_RepeatedGroup* other);
- protected:
- explicit TestParsingMerge_RepeatedGroup(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // optional .protobuf_unittest.TestAllTypes repeated_group_all_types = 21;
- bool has_repeated_group_all_types() const;
- void clear_repeated_group_all_types();
- static const int kRepeatedGroupAllTypesFieldNumber = 21;
- private:
- const ::protobuf_unittest::TestAllTypes& _internal_repeated_group_all_types() const;
- public:
- const ::protobuf_unittest::TestAllTypes& repeated_group_all_types() const;
- ::protobuf_unittest::TestAllTypes* release_repeated_group_all_types();
- ::protobuf_unittest::TestAllTypes* mutable_repeated_group_all_types();
- void set_allocated_repeated_group_all_types(::protobuf_unittest::TestAllTypes* repeated_group_all_types);
- void unsafe_arena_set_allocated_repeated_group_all_types(
- ::protobuf_unittest::TestAllTypes* repeated_group_all_types);
- ::protobuf_unittest::TestAllTypes* unsafe_arena_release_repeated_group_all_types();
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestParsingMerge.RepeatedGroup)
- private:
- void set_has_repeated_group_all_types();
- void clear_has_repeated_group_all_types();
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- ::protobuf_unittest::TestAllTypes* repeated_group_all_types_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class TestParsingMerge : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestParsingMerge) */ {
- public:
- TestParsingMerge();
- virtual ~TestParsingMerge();
- TestParsingMerge(const TestParsingMerge& from);
- inline TestParsingMerge& operator=(const TestParsingMerge& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestParsingMerge(TestParsingMerge&& from) noexcept
- : TestParsingMerge() {
- *this = ::std::move(from);
- }
- inline TestParsingMerge& operator=(TestParsingMerge&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const TestParsingMerge& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestParsingMerge* internal_default_instance() {
- return reinterpret_cast<const TestParsingMerge*>(
- &_TestParsingMerge_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 78;
- void UnsafeArenaSwap(TestParsingMerge* other);
- void Swap(TestParsingMerge* other);
- friend void swap(TestParsingMerge& a, TestParsingMerge& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestParsingMerge* New() const final {
- return CreateMaybeMessage<TestParsingMerge>(NULL);
- }
- TestParsingMerge* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestParsingMerge>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestParsingMerge& from);
- void MergeFrom(const TestParsingMerge& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestParsingMerge* other);
- protected:
- explicit TestParsingMerge(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- typedef TestParsingMerge_RepeatedFieldsGenerator RepeatedFieldsGenerator;
- typedef TestParsingMerge_OptionalGroup OptionalGroup;
- typedef TestParsingMerge_RepeatedGroup RepeatedGroup;
- // accessors -------------------------------------------------------
- // repeated .protobuf_unittest.TestAllTypes repeated_all_types = 3;
- int repeated_all_types_size() const;
- void clear_repeated_all_types();
- static const int kRepeatedAllTypesFieldNumber = 3;
- ::protobuf_unittest::TestAllTypes* mutable_repeated_all_types(int index);
- ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes >*
- mutable_repeated_all_types();
- const ::protobuf_unittest::TestAllTypes& repeated_all_types(int index) const;
- ::protobuf_unittest::TestAllTypes* add_repeated_all_types();
- const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes >&
- repeated_all_types() const;
- // repeated group RepeatedGroup = 20 { ... };
- int repeatedgroup_size() const;
- void clear_repeatedgroup();
- static const int kRepeatedgroupFieldNumber = 20;
- ::protobuf_unittest::TestParsingMerge_RepeatedGroup* mutable_repeatedgroup(int index);
- ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestParsingMerge_RepeatedGroup >*
- mutable_repeatedgroup();
- const ::protobuf_unittest::TestParsingMerge_RepeatedGroup& repeatedgroup(int index) const;
- ::protobuf_unittest::TestParsingMerge_RepeatedGroup* add_repeatedgroup();
- const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestParsingMerge_RepeatedGroup >&
- repeatedgroup() const;
- // required .protobuf_unittest.TestAllTypes required_all_types = 1;
- bool has_required_all_types() const;
- void clear_required_all_types();
- static const int kRequiredAllTypesFieldNumber = 1;
- private:
- const ::protobuf_unittest::TestAllTypes& _internal_required_all_types() const;
- public:
- const ::protobuf_unittest::TestAllTypes& required_all_types() const;
- ::protobuf_unittest::TestAllTypes* release_required_all_types();
- ::protobuf_unittest::TestAllTypes* mutable_required_all_types();
- void set_allocated_required_all_types(::protobuf_unittest::TestAllTypes* required_all_types);
- void unsafe_arena_set_allocated_required_all_types(
- ::protobuf_unittest::TestAllTypes* required_all_types);
- ::protobuf_unittest::TestAllTypes* unsafe_arena_release_required_all_types();
- // optional .protobuf_unittest.TestAllTypes optional_all_types = 2;
- bool has_optional_all_types() const;
- void clear_optional_all_types();
- static const int kOptionalAllTypesFieldNumber = 2;
- private:
- const ::protobuf_unittest::TestAllTypes& _internal_optional_all_types() const;
- public:
- const ::protobuf_unittest::TestAllTypes& optional_all_types() const;
- ::protobuf_unittest::TestAllTypes* release_optional_all_types();
- ::protobuf_unittest::TestAllTypes* mutable_optional_all_types();
- void set_allocated_optional_all_types(::protobuf_unittest::TestAllTypes* optional_all_types);
- void unsafe_arena_set_allocated_optional_all_types(
- ::protobuf_unittest::TestAllTypes* optional_all_types);
- ::protobuf_unittest::TestAllTypes* unsafe_arena_release_optional_all_types();
- // optional group OptionalGroup = 10 { ... };
- bool has_optionalgroup() const;
- void clear_optionalgroup();
- static const int kOptionalgroupFieldNumber = 10;
- private:
- const ::protobuf_unittest::TestParsingMerge_OptionalGroup& _internal_optionalgroup() const;
- public:
- const ::protobuf_unittest::TestParsingMerge_OptionalGroup& optionalgroup() const;
- ::protobuf_unittest::TestParsingMerge_OptionalGroup* release_optionalgroup();
- ::protobuf_unittest::TestParsingMerge_OptionalGroup* mutable_optionalgroup();
- void set_allocated_optionalgroup(::protobuf_unittest::TestParsingMerge_OptionalGroup* optionalgroup);
- void unsafe_arena_set_allocated_optionalgroup(
- ::protobuf_unittest::TestParsingMerge_OptionalGroup* optionalgroup);
- ::protobuf_unittest::TestParsingMerge_OptionalGroup* unsafe_arena_release_optionalgroup();
- GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(TestParsingMerge)
- static const int kOptionalExtFieldNumber = 1000;
- static ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestParsingMerge,
- ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::TestAllTypes >, 11, false >
- optional_ext;
- static const int kRepeatedExtFieldNumber = 1001;
- static ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestParsingMerge,
- ::google::protobuf::internal::RepeatedMessageTypeTraits< ::protobuf_unittest::TestAllTypes >, 11, false >
- repeated_ext;
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestParsingMerge)
- private:
- void set_has_required_all_types();
- void clear_has_required_all_types();
- void set_has_optional_all_types();
- void clear_has_optional_all_types();
- void set_has_optionalgroup();
- void clear_has_optionalgroup();
- ::google::protobuf::internal::ExtensionSet _extensions_;
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes > repeated_all_types_;
- ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestParsingMerge_RepeatedGroup > repeatedgroup_;
- ::protobuf_unittest::TestAllTypes* required_all_types_;
- ::protobuf_unittest::TestAllTypes* optional_all_types_;
- ::protobuf_unittest::TestParsingMerge_OptionalGroup* optionalgroup_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class TestCommentInjectionMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestCommentInjectionMessage) */ {
- public:
- TestCommentInjectionMessage();
- virtual ~TestCommentInjectionMessage();
- TestCommentInjectionMessage(const TestCommentInjectionMessage& from);
- inline TestCommentInjectionMessage& operator=(const TestCommentInjectionMessage& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestCommentInjectionMessage(TestCommentInjectionMessage&& from) noexcept
- : TestCommentInjectionMessage() {
- *this = ::std::move(from);
- }
- inline TestCommentInjectionMessage& operator=(TestCommentInjectionMessage&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const TestCommentInjectionMessage& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestCommentInjectionMessage* internal_default_instance() {
- return reinterpret_cast<const TestCommentInjectionMessage*>(
- &_TestCommentInjectionMessage_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 79;
- void UnsafeArenaSwap(TestCommentInjectionMessage* other);
- void Swap(TestCommentInjectionMessage* other);
- friend void swap(TestCommentInjectionMessage& a, TestCommentInjectionMessage& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestCommentInjectionMessage* New() const final {
- return CreateMaybeMessage<TestCommentInjectionMessage>(NULL);
- }
- TestCommentInjectionMessage* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestCommentInjectionMessage>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestCommentInjectionMessage& from);
- void MergeFrom(const TestCommentInjectionMessage& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestCommentInjectionMessage* other);
- protected:
- explicit TestCommentInjectionMessage(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // optional string a = 1 [default = "*/ <- Neither should this."];
- bool has_a() const;
- void clear_a();
- static const int kAFieldNumber = 1;
- const ::std::string& a() const;
- void set_a(const ::std::string& value);
- #if LANG_CXX11
- void set_a(::std::string&& value);
- #endif
- void set_a(const char* value);
- void set_a(const char* value, size_t size);
- ::std::string* mutable_a();
- ::std::string* release_a();
- void set_allocated_a(::std::string* a);
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- ::std::string* unsafe_arena_release_a();
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- void unsafe_arena_set_allocated_a(
- ::std::string* a);
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestCommentInjectionMessage)
- private:
- void set_has_a();
- void clear_has_a();
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- public:
- static ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> _i_give_permission_to_break_this_code_default_a_;
- private:
- ::google::protobuf::internal::ArenaStringPtr a_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class FooRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.FooRequest) */ {
- public:
- FooRequest();
- virtual ~FooRequest();
- FooRequest(const FooRequest& from);
- inline FooRequest& operator=(const FooRequest& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- FooRequest(FooRequest&& from) noexcept
- : FooRequest() {
- *this = ::std::move(from);
- }
- inline FooRequest& operator=(FooRequest&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const FooRequest& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const FooRequest* internal_default_instance() {
- return reinterpret_cast<const FooRequest*>(
- &_FooRequest_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 80;
- void UnsafeArenaSwap(FooRequest* other);
- void Swap(FooRequest* other);
- friend void swap(FooRequest& a, FooRequest& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline FooRequest* New() const final {
- return CreateMaybeMessage<FooRequest>(NULL);
- }
- FooRequest* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<FooRequest>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const FooRequest& from);
- void MergeFrom(const FooRequest& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(FooRequest* other);
- protected:
- explicit FooRequest(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // @@protoc_insertion_point(class_scope:protobuf_unittest.FooRequest)
- private:
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class FooResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.FooResponse) */ {
- public:
- FooResponse();
- virtual ~FooResponse();
- FooResponse(const FooResponse& from);
- inline FooResponse& operator=(const FooResponse& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- FooResponse(FooResponse&& from) noexcept
- : FooResponse() {
- *this = ::std::move(from);
- }
- inline FooResponse& operator=(FooResponse&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const FooResponse& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const FooResponse* internal_default_instance() {
- return reinterpret_cast<const FooResponse*>(
- &_FooResponse_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 81;
- void UnsafeArenaSwap(FooResponse* other);
- void Swap(FooResponse* other);
- friend void swap(FooResponse& a, FooResponse& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline FooResponse* New() const final {
- return CreateMaybeMessage<FooResponse>(NULL);
- }
- FooResponse* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<FooResponse>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const FooResponse& from);
- void MergeFrom(const FooResponse& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(FooResponse* other);
- protected:
- explicit FooResponse(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // @@protoc_insertion_point(class_scope:protobuf_unittest.FooResponse)
- private:
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class FooClientMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.FooClientMessage) */ {
- public:
- FooClientMessage();
- virtual ~FooClientMessage();
- FooClientMessage(const FooClientMessage& from);
- inline FooClientMessage& operator=(const FooClientMessage& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- FooClientMessage(FooClientMessage&& from) noexcept
- : FooClientMessage() {
- *this = ::std::move(from);
- }
- inline FooClientMessage& operator=(FooClientMessage&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const FooClientMessage& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const FooClientMessage* internal_default_instance() {
- return reinterpret_cast<const FooClientMessage*>(
- &_FooClientMessage_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 82;
- void UnsafeArenaSwap(FooClientMessage* other);
- void Swap(FooClientMessage* other);
- friend void swap(FooClientMessage& a, FooClientMessage& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline FooClientMessage* New() const final {
- return CreateMaybeMessage<FooClientMessage>(NULL);
- }
- FooClientMessage* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<FooClientMessage>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const FooClientMessage& from);
- void MergeFrom(const FooClientMessage& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(FooClientMessage* other);
- protected:
- explicit FooClientMessage(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // @@protoc_insertion_point(class_scope:protobuf_unittest.FooClientMessage)
- private:
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class FooServerMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.FooServerMessage) */ {
- public:
- FooServerMessage();
- virtual ~FooServerMessage();
- FooServerMessage(const FooServerMessage& from);
- inline FooServerMessage& operator=(const FooServerMessage& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- FooServerMessage(FooServerMessage&& from) noexcept
- : FooServerMessage() {
- *this = ::std::move(from);
- }
- inline FooServerMessage& operator=(FooServerMessage&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const FooServerMessage& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const FooServerMessage* internal_default_instance() {
- return reinterpret_cast<const FooServerMessage*>(
- &_FooServerMessage_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 83;
- void UnsafeArenaSwap(FooServerMessage* other);
- void Swap(FooServerMessage* other);
- friend void swap(FooServerMessage& a, FooServerMessage& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline FooServerMessage* New() const final {
- return CreateMaybeMessage<FooServerMessage>(NULL);
- }
- FooServerMessage* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<FooServerMessage>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const FooServerMessage& from);
- void MergeFrom(const FooServerMessage& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(FooServerMessage* other);
- protected:
- explicit FooServerMessage(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // @@protoc_insertion_point(class_scope:protobuf_unittest.FooServerMessage)
- private:
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class BarRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.BarRequest) */ {
- public:
- BarRequest();
- virtual ~BarRequest();
- BarRequest(const BarRequest& from);
- inline BarRequest& operator=(const BarRequest& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- BarRequest(BarRequest&& from) noexcept
- : BarRequest() {
- *this = ::std::move(from);
- }
- inline BarRequest& operator=(BarRequest&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const BarRequest& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const BarRequest* internal_default_instance() {
- return reinterpret_cast<const BarRequest*>(
- &_BarRequest_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 84;
- void UnsafeArenaSwap(BarRequest* other);
- void Swap(BarRequest* other);
- friend void swap(BarRequest& a, BarRequest& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline BarRequest* New() const final {
- return CreateMaybeMessage<BarRequest>(NULL);
- }
- BarRequest* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<BarRequest>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const BarRequest& from);
- void MergeFrom(const BarRequest& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(BarRequest* other);
- protected:
- explicit BarRequest(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // @@protoc_insertion_point(class_scope:protobuf_unittest.BarRequest)
- private:
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class BarResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.BarResponse) */ {
- public:
- BarResponse();
- virtual ~BarResponse();
- BarResponse(const BarResponse& from);
- inline BarResponse& operator=(const BarResponse& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- BarResponse(BarResponse&& from) noexcept
- : BarResponse() {
- *this = ::std::move(from);
- }
- inline BarResponse& operator=(BarResponse&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const BarResponse& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const BarResponse* internal_default_instance() {
- return reinterpret_cast<const BarResponse*>(
- &_BarResponse_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 85;
- void UnsafeArenaSwap(BarResponse* other);
- void Swap(BarResponse* other);
- friend void swap(BarResponse& a, BarResponse& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline BarResponse* New() const final {
- return CreateMaybeMessage<BarResponse>(NULL);
- }
- BarResponse* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<BarResponse>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const BarResponse& from);
- void MergeFrom(const BarResponse& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(BarResponse* other);
- protected:
- explicit BarResponse(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // @@protoc_insertion_point(class_scope:protobuf_unittest.BarResponse)
- private:
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class TestJsonName : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestJsonName) */ {
- public:
- TestJsonName();
- virtual ~TestJsonName();
- TestJsonName(const TestJsonName& from);
- inline TestJsonName& operator=(const TestJsonName& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestJsonName(TestJsonName&& from) noexcept
- : TestJsonName() {
- *this = ::std::move(from);
- }
- inline TestJsonName& operator=(TestJsonName&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const TestJsonName& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestJsonName* internal_default_instance() {
- return reinterpret_cast<const TestJsonName*>(
- &_TestJsonName_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 86;
- void UnsafeArenaSwap(TestJsonName* other);
- void Swap(TestJsonName* other);
- friend void swap(TestJsonName& a, TestJsonName& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestJsonName* New() const final {
- return CreateMaybeMessage<TestJsonName>(NULL);
- }
- TestJsonName* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestJsonName>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestJsonName& from);
- void MergeFrom(const TestJsonName& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestJsonName* other);
- protected:
- explicit TestJsonName(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // optional int32 field_name1 = 1;
- bool has_field_name1() const;
- void clear_field_name1();
- static const int kFieldName1FieldNumber = 1;
- ::google::protobuf::int32 field_name1() const;
- void set_field_name1(::google::protobuf::int32 value);
- // optional int32 fieldName2 = 2;
- bool has_fieldname2() const;
- void clear_fieldname2();
- static const int kFieldName2FieldNumber = 2;
- ::google::protobuf::int32 fieldname2() const;
- void set_fieldname2(::google::protobuf::int32 value);
- // optional int32 FieldName3 = 3;
- bool has_fieldname3() const;
- void clear_fieldname3();
- static const int kFieldName3FieldNumber = 3;
- ::google::protobuf::int32 fieldname3() const;
- void set_fieldname3(::google::protobuf::int32 value);
- // optional int32 _field_name4 = 4;
- bool has__field_name4() const;
- void clear__field_name4();
- static const int kFieldName4FieldNumber = 4;
- ::google::protobuf::int32 _field_name4() const;
- void set__field_name4(::google::protobuf::int32 value);
- // optional int32 FIELD_NAME5 = 5;
- bool has_field_name5() const;
- void clear_field_name5();
- static const int kFIELDNAME5FieldNumber = 5;
- ::google::protobuf::int32 field_name5() const;
- void set_field_name5(::google::protobuf::int32 value);
- // optional int32 field_name6 = 6[json_name = "@type"];
- bool has_field_name6() const;
- void clear_field_name6();
- static const int kFieldName6FieldNumber = 6;
- ::google::protobuf::int32 field_name6() const;
- void set_field_name6(::google::protobuf::int32 value);
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestJsonName)
- private:
- void set_has_field_name1();
- void clear_has_field_name1();
- void set_has_fieldname2();
- void clear_has_fieldname2();
- void set_has_fieldname3();
- void clear_has_fieldname3();
- void set_has__field_name4();
- void clear_has__field_name4();
- void set_has_field_name5();
- void clear_has_field_name5();
- void set_has_field_name6();
- void clear_has_field_name6();
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- ::google::protobuf::int32 field_name1_;
- ::google::protobuf::int32 fieldname2_;
- ::google::protobuf::int32 fieldname3_;
- ::google::protobuf::int32 _field_name4_;
- ::google::protobuf::int32 field_name5_;
- ::google::protobuf::int32 field_name6_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class TestHugeFieldNumbers_OptionalGroup : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestHugeFieldNumbers.OptionalGroup) */ {
- public:
- TestHugeFieldNumbers_OptionalGroup();
- virtual ~TestHugeFieldNumbers_OptionalGroup();
- TestHugeFieldNumbers_OptionalGroup(const TestHugeFieldNumbers_OptionalGroup& from);
- inline TestHugeFieldNumbers_OptionalGroup& operator=(const TestHugeFieldNumbers_OptionalGroup& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestHugeFieldNumbers_OptionalGroup(TestHugeFieldNumbers_OptionalGroup&& from) noexcept
- : TestHugeFieldNumbers_OptionalGroup() {
- *this = ::std::move(from);
- }
- inline TestHugeFieldNumbers_OptionalGroup& operator=(TestHugeFieldNumbers_OptionalGroup&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const TestHugeFieldNumbers_OptionalGroup& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestHugeFieldNumbers_OptionalGroup* internal_default_instance() {
- return reinterpret_cast<const TestHugeFieldNumbers_OptionalGroup*>(
- &_TestHugeFieldNumbers_OptionalGroup_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 87;
- void UnsafeArenaSwap(TestHugeFieldNumbers_OptionalGroup* other);
- void Swap(TestHugeFieldNumbers_OptionalGroup* other);
- friend void swap(TestHugeFieldNumbers_OptionalGroup& a, TestHugeFieldNumbers_OptionalGroup& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestHugeFieldNumbers_OptionalGroup* New() const final {
- return CreateMaybeMessage<TestHugeFieldNumbers_OptionalGroup>(NULL);
- }
- TestHugeFieldNumbers_OptionalGroup* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestHugeFieldNumbers_OptionalGroup>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestHugeFieldNumbers_OptionalGroup& from);
- void MergeFrom(const TestHugeFieldNumbers_OptionalGroup& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestHugeFieldNumbers_OptionalGroup* other);
- protected:
- explicit TestHugeFieldNumbers_OptionalGroup(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // optional int32 group_a = 536870009;
- bool has_group_a() const;
- void clear_group_a();
- static const int kGroupAFieldNumber = 536870009;
- ::google::protobuf::int32 group_a() const;
- void set_group_a(::google::protobuf::int32 value);
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestHugeFieldNumbers.OptionalGroup)
- private:
- void set_has_group_a();
- void clear_has_group_a();
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- ::google::protobuf::int32 group_a_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class TestHugeFieldNumbers_StringStringMapEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestHugeFieldNumbers_StringStringMapEntry_DoNotUse,
- ::std::string, ::std::string,
- ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
- ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
- 0 > {
- public:
- typedef ::google::protobuf::internal::MapEntry<TestHugeFieldNumbers_StringStringMapEntry_DoNotUse,
- ::std::string, ::std::string,
- ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
- ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
- 0 > SuperType;
- TestHugeFieldNumbers_StringStringMapEntry_DoNotUse();
- TestHugeFieldNumbers_StringStringMapEntry_DoNotUse(::google::protobuf::Arena* arena);
- void MergeFrom(const TestHugeFieldNumbers_StringStringMapEntry_DoNotUse& other);
- static const TestHugeFieldNumbers_StringStringMapEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestHugeFieldNumbers_StringStringMapEntry_DoNotUse*>(&_TestHugeFieldNumbers_StringStringMapEntry_DoNotUse_default_instance_); }
- void MergeFrom(const ::google::protobuf::Message& other) final;
- ::google::protobuf::Metadata GetMetadata() const;
- };
- // -------------------------------------------------------------------
- class TestHugeFieldNumbers : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestHugeFieldNumbers) */ {
- public:
- TestHugeFieldNumbers();
- virtual ~TestHugeFieldNumbers();
- TestHugeFieldNumbers(const TestHugeFieldNumbers& from);
- inline TestHugeFieldNumbers& operator=(const TestHugeFieldNumbers& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestHugeFieldNumbers(TestHugeFieldNumbers&& from) noexcept
- : TestHugeFieldNumbers() {
- *this = ::std::move(from);
- }
- inline TestHugeFieldNumbers& operator=(TestHugeFieldNumbers&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const TestHugeFieldNumbers& default_instance();
- enum OneofFieldCase {
- kOneofUint32 = 536870011,
- kOneofTestAllTypes = 536870012,
- kOneofString = 536870013,
- kOneofBytes = 536870014,
- ONEOF_FIELD_NOT_SET = 0,
- };
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestHugeFieldNumbers* internal_default_instance() {
- return reinterpret_cast<const TestHugeFieldNumbers*>(
- &_TestHugeFieldNumbers_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 89;
- void UnsafeArenaSwap(TestHugeFieldNumbers* other);
- void Swap(TestHugeFieldNumbers* other);
- friend void swap(TestHugeFieldNumbers& a, TestHugeFieldNumbers& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestHugeFieldNumbers* New() const final {
- return CreateMaybeMessage<TestHugeFieldNumbers>(NULL);
- }
- TestHugeFieldNumbers* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestHugeFieldNumbers>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestHugeFieldNumbers& from);
- void MergeFrom(const TestHugeFieldNumbers& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestHugeFieldNumbers* other);
- protected:
- explicit TestHugeFieldNumbers(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- typedef TestHugeFieldNumbers_OptionalGroup OptionalGroup;
- // accessors -------------------------------------------------------
- // repeated int32 repeated_int32 = 536870002 [packed = false];
- int repeated_int32_size() const;
- void clear_repeated_int32();
- static const int kRepeatedInt32FieldNumber = 536870002;
- ::google::protobuf::int32 repeated_int32(int index) const;
- void set_repeated_int32(int index, ::google::protobuf::int32 value);
- void add_repeated_int32(::google::protobuf::int32 value);
- const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
- repeated_int32() const;
- ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
- mutable_repeated_int32();
- // repeated int32 packed_int32 = 536870003 [packed = true];
- int packed_int32_size() const;
- void clear_packed_int32();
- static const int kPackedInt32FieldNumber = 536870003;
- ::google::protobuf::int32 packed_int32(int index) const;
- void set_packed_int32(int index, ::google::protobuf::int32 value);
- void add_packed_int32(::google::protobuf::int32 value);
- const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
- packed_int32() const;
- ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
- mutable_packed_int32();
- // map<string, string> string_string_map = 536870010;
- int string_string_map_size() const;
- void clear_string_string_map();
- static const int kStringStringMapFieldNumber = 536870010;
- const ::google::protobuf::Map< ::std::string, ::std::string >&
- string_string_map() const;
- ::google::protobuf::Map< ::std::string, ::std::string >*
- mutable_string_string_map();
- // optional string optional_string = 536870005;
- bool has_optional_string() const;
- void clear_optional_string();
- static const int kOptionalStringFieldNumber = 536870005;
- const ::std::string& optional_string() const;
- void set_optional_string(const ::std::string& value);
- #if LANG_CXX11
- void set_optional_string(::std::string&& value);
- #endif
- void set_optional_string(const char* value);
- void set_optional_string(const char* value, size_t size);
- ::std::string* mutable_optional_string();
- ::std::string* release_optional_string();
- void set_allocated_optional_string(::std::string* optional_string);
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- ::std::string* unsafe_arena_release_optional_string();
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- void unsafe_arena_set_allocated_optional_string(
- ::std::string* optional_string);
- // optional bytes optional_bytes = 536870006;
- bool has_optional_bytes() const;
- void clear_optional_bytes();
- static const int kOptionalBytesFieldNumber = 536870006;
- const ::std::string& optional_bytes() const;
- void set_optional_bytes(const ::std::string& value);
- #if LANG_CXX11
- void set_optional_bytes(::std::string&& value);
- #endif
- void set_optional_bytes(const char* value);
- void set_optional_bytes(const void* value, size_t size);
- ::std::string* mutable_optional_bytes();
- ::std::string* release_optional_bytes();
- void set_allocated_optional_bytes(::std::string* optional_bytes);
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- ::std::string* unsafe_arena_release_optional_bytes();
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- void unsafe_arena_set_allocated_optional_bytes(
- ::std::string* optional_bytes);
- // optional .protobuf_unittest.ForeignMessage optional_message = 536870007;
- bool has_optional_message() const;
- void clear_optional_message();
- static const int kOptionalMessageFieldNumber = 536870007;
- private:
- const ::protobuf_unittest::ForeignMessage& _internal_optional_message() const;
- public:
- const ::protobuf_unittest::ForeignMessage& optional_message() const;
- ::protobuf_unittest::ForeignMessage* release_optional_message();
- ::protobuf_unittest::ForeignMessage* mutable_optional_message();
- void set_allocated_optional_message(::protobuf_unittest::ForeignMessage* optional_message);
- void unsafe_arena_set_allocated_optional_message(
- ::protobuf_unittest::ForeignMessage* optional_message);
- ::protobuf_unittest::ForeignMessage* unsafe_arena_release_optional_message();
- // optional group OptionalGroup = 536870008 { ... };
- bool has_optionalgroup() const;
- void clear_optionalgroup();
- static const int kOptionalgroupFieldNumber = 536870008;
- private:
- const ::protobuf_unittest::TestHugeFieldNumbers_OptionalGroup& _internal_optionalgroup() const;
- public:
- const ::protobuf_unittest::TestHugeFieldNumbers_OptionalGroup& optionalgroup() const;
- ::protobuf_unittest::TestHugeFieldNumbers_OptionalGroup* release_optionalgroup();
- ::protobuf_unittest::TestHugeFieldNumbers_OptionalGroup* mutable_optionalgroup();
- void set_allocated_optionalgroup(::protobuf_unittest::TestHugeFieldNumbers_OptionalGroup* optionalgroup);
- void unsafe_arena_set_allocated_optionalgroup(
- ::protobuf_unittest::TestHugeFieldNumbers_OptionalGroup* optionalgroup);
- ::protobuf_unittest::TestHugeFieldNumbers_OptionalGroup* unsafe_arena_release_optionalgroup();
- // optional int32 optional_int32 = 536870000;
- bool has_optional_int32() const;
- void clear_optional_int32();
- static const int kOptionalInt32FieldNumber = 536870000;
- ::google::protobuf::int32 optional_int32() const;
- void set_optional_int32(::google::protobuf::int32 value);
- // optional int32 fixed_32 = 536870001;
- bool has_fixed_32() const;
- void clear_fixed_32();
- static const int kFixed32FieldNumber = 536870001;
- ::google::protobuf::int32 fixed_32() const;
- void set_fixed_32(::google::protobuf::int32 value);
- // optional .protobuf_unittest.ForeignEnum optional_enum = 536870004;
- bool has_optional_enum() const;
- void clear_optional_enum();
- static const int kOptionalEnumFieldNumber = 536870004;
- ::protobuf_unittest::ForeignEnum optional_enum() const;
- void set_optional_enum(::protobuf_unittest::ForeignEnum value);
- // optional uint32 oneof_uint32 = 536870011;
- bool has_oneof_uint32() const;
- void clear_oneof_uint32();
- static const int kOneofUint32FieldNumber = 536870011;
- ::google::protobuf::uint32 oneof_uint32() const;
- void set_oneof_uint32(::google::protobuf::uint32 value);
- // optional .protobuf_unittest.TestAllTypes oneof_test_all_types = 536870012;
- bool has_oneof_test_all_types() const;
- void clear_oneof_test_all_types();
- static const int kOneofTestAllTypesFieldNumber = 536870012;
- private:
- const ::protobuf_unittest::TestAllTypes& _internal_oneof_test_all_types() const;
- public:
- const ::protobuf_unittest::TestAllTypes& oneof_test_all_types() const;
- ::protobuf_unittest::TestAllTypes* release_oneof_test_all_types();
- ::protobuf_unittest::TestAllTypes* mutable_oneof_test_all_types();
- void set_allocated_oneof_test_all_types(::protobuf_unittest::TestAllTypes* oneof_test_all_types);
- void unsafe_arena_set_allocated_oneof_test_all_types(
- ::protobuf_unittest::TestAllTypes* oneof_test_all_types);
- ::protobuf_unittest::TestAllTypes* unsafe_arena_release_oneof_test_all_types();
- // optional string oneof_string = 536870013;
- bool has_oneof_string() const;
- void clear_oneof_string();
- static const int kOneofStringFieldNumber = 536870013;
- const ::std::string& oneof_string() const;
- void set_oneof_string(const ::std::string& value);
- #if LANG_CXX11
- void set_oneof_string(::std::string&& value);
- #endif
- void set_oneof_string(const char* value);
- void set_oneof_string(const char* value, size_t size);
- ::std::string* mutable_oneof_string();
- ::std::string* release_oneof_string();
- void set_allocated_oneof_string(::std::string* oneof_string);
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- ::std::string* unsafe_arena_release_oneof_string();
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- void unsafe_arena_set_allocated_oneof_string(
- ::std::string* oneof_string);
- // optional bytes oneof_bytes = 536870014;
- bool has_oneof_bytes() const;
- void clear_oneof_bytes();
- static const int kOneofBytesFieldNumber = 536870014;
- const ::std::string& oneof_bytes() const;
- void set_oneof_bytes(const ::std::string& value);
- #if LANG_CXX11
- void set_oneof_bytes(::std::string&& value);
- #endif
- void set_oneof_bytes(const char* value);
- void set_oneof_bytes(const void* value, size_t size);
- ::std::string* mutable_oneof_bytes();
- ::std::string* release_oneof_bytes();
- void set_allocated_oneof_bytes(::std::string* oneof_bytes);
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- ::std::string* unsafe_arena_release_oneof_bytes();
- PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- void unsafe_arena_set_allocated_oneof_bytes(
- ::std::string* oneof_bytes);
- GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(TestHugeFieldNumbers)
- void clear_oneof_field();
- OneofFieldCase oneof_field_case() const;
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestHugeFieldNumbers)
- private:
- void set_has_optional_int32();
- void clear_has_optional_int32();
- void set_has_fixed_32();
- void clear_has_fixed_32();
- void set_has_optional_enum();
- void clear_has_optional_enum();
- void set_has_optional_string();
- void clear_has_optional_string();
- void set_has_optional_bytes();
- void clear_has_optional_bytes();
- void set_has_optional_message();
- void clear_has_optional_message();
- void set_has_optionalgroup();
- void clear_has_optionalgroup();
- void set_has_oneof_uint32();
- void set_has_oneof_test_all_types();
- void set_has_oneof_string();
- void set_has_oneof_bytes();
- inline bool has_oneof_field() const;
- inline void clear_has_oneof_field();
- ::google::protobuf::internal::ExtensionSet _extensions_;
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- ::google::protobuf::RepeatedField< ::google::protobuf::int32 > repeated_int32_;
- ::google::protobuf::RepeatedField< ::google::protobuf::int32 > packed_int32_;
- mutable int _packed_int32_cached_byte_size_;
- ::google::protobuf::internal::MapField<
- TestHugeFieldNumbers_StringStringMapEntry_DoNotUse,
- ::std::string, ::std::string,
- ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
- ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
- 0 > string_string_map_;
- ::google::protobuf::internal::ArenaStringPtr optional_string_;
- ::google::protobuf::internal::ArenaStringPtr optional_bytes_;
- ::protobuf_unittest::ForeignMessage* optional_message_;
- ::protobuf_unittest::TestHugeFieldNumbers_OptionalGroup* optionalgroup_;
- ::google::protobuf::int32 optional_int32_;
- ::google::protobuf::int32 fixed_32_;
- int optional_enum_;
- union OneofFieldUnion {
- OneofFieldUnion() {}
- ::google::protobuf::uint32 oneof_uint32_;
- ::protobuf_unittest::TestAllTypes* oneof_test_all_types_;
- ::google::protobuf::internal::ArenaStringPtr oneof_string_;
- ::google::protobuf::internal::ArenaStringPtr oneof_bytes_;
- } oneof_field_;
- ::google::protobuf::uint32 _oneof_case_[1];
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class TestExtensionInsideTable : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestExtensionInsideTable) */ {
- public:
- TestExtensionInsideTable();
- virtual ~TestExtensionInsideTable();
- TestExtensionInsideTable(const TestExtensionInsideTable& from);
- inline TestExtensionInsideTable& operator=(const TestExtensionInsideTable& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestExtensionInsideTable(TestExtensionInsideTable&& from) noexcept
- : TestExtensionInsideTable() {
- *this = ::std::move(from);
- }
- inline TestExtensionInsideTable& operator=(TestExtensionInsideTable&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- inline ::google::protobuf::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const TestExtensionInsideTable& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestExtensionInsideTable* internal_default_instance() {
- return reinterpret_cast<const TestExtensionInsideTable*>(
- &_TestExtensionInsideTable_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 90;
- void UnsafeArenaSwap(TestExtensionInsideTable* other);
- void Swap(TestExtensionInsideTable* other);
- friend void swap(TestExtensionInsideTable& a, TestExtensionInsideTable& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestExtensionInsideTable* New() const final {
- return CreateMaybeMessage<TestExtensionInsideTable>(NULL);
- }
- TestExtensionInsideTable* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestExtensionInsideTable>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestExtensionInsideTable& from);
- void MergeFrom(const TestExtensionInsideTable& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestExtensionInsideTable* other);
- protected:
- explicit TestExtensionInsideTable(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // optional int32 field1 = 1;
- bool has_field1() const;
- void clear_field1();
- static const int kField1FieldNumber = 1;
- ::google::protobuf::int32 field1() const;
- void set_field1(::google::protobuf::int32 value);
- // optional int32 field2 = 2;
- bool has_field2() const;
- void clear_field2();
- static const int kField2FieldNumber = 2;
- ::google::protobuf::int32 field2() const;
- void set_field2(::google::protobuf::int32 value);
- // optional int32 field3 = 3;
- bool has_field3() const;
- void clear_field3();
- static const int kField3FieldNumber = 3;
- ::google::protobuf::int32 field3() const;
- void set_field3(::google::protobuf::int32 value);
- // optional int32 field4 = 4;
- bool has_field4() const;
- void clear_field4();
- static const int kField4FieldNumber = 4;
- ::google::protobuf::int32 field4() const;
- void set_field4(::google::protobuf::int32 value);
- // optional int32 field6 = 6;
- bool has_field6() const;
- void clear_field6();
- static const int kField6FieldNumber = 6;
- ::google::protobuf::int32 field6() const;
- void set_field6(::google::protobuf::int32 value);
- // optional int32 field7 = 7;
- bool has_field7() const;
- void clear_field7();
- static const int kField7FieldNumber = 7;
- ::google::protobuf::int32 field7() const;
- void set_field7(::google::protobuf::int32 value);
- // optional int32 field8 = 8;
- bool has_field8() const;
- void clear_field8();
- static const int kField8FieldNumber = 8;
- ::google::protobuf::int32 field8() const;
- void set_field8(::google::protobuf::int32 value);
- // optional int32 field9 = 9;
- bool has_field9() const;
- void clear_field9();
- static const int kField9FieldNumber = 9;
- ::google::protobuf::int32 field9() const;
- void set_field9(::google::protobuf::int32 value);
- // optional int32 field10 = 10;
- bool has_field10() const;
- void clear_field10();
- static const int kField10FieldNumber = 10;
- ::google::protobuf::int32 field10() const;
- void set_field10(::google::protobuf::int32 value);
- GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(TestExtensionInsideTable)
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestExtensionInsideTable)
- private:
- void set_has_field1();
- void clear_has_field1();
- void set_has_field2();
- void clear_has_field2();
- void set_has_field3();
- void clear_has_field3();
- void set_has_field4();
- void clear_has_field4();
- void set_has_field6();
- void clear_has_field6();
- void set_has_field7();
- void clear_has_field7();
- void set_has_field8();
- void clear_has_field8();
- void set_has_field9();
- void clear_has_field9();
- void set_has_field10();
- void clear_has_field10();
- ::google::protobuf::internal::ExtensionSet _extensions_;
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- ::google::protobuf::int32 field1_;
- ::google::protobuf::int32 field2_;
- ::google::protobuf::int32 field3_;
- ::google::protobuf::int32 field4_;
- ::google::protobuf::int32 field6_;
- ::google::protobuf::int32 field7_;
- ::google::protobuf::int32 field8_;
- ::google::protobuf::int32 field9_;
- ::google::protobuf::int32 field10_;
- friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
- };
- // ===================================================================
- class TestService_Stub;
- class TestService : public ::google::protobuf::Service {
- protected:
- // This class should be treated as an abstract interface.
- inline TestService() {};
- public:
- virtual ~TestService();
- typedef TestService_Stub Stub;
- static const ::google::protobuf::ServiceDescriptor* descriptor();
- virtual void Foo(::google::protobuf::RpcController* controller,
- const ::protobuf_unittest::FooRequest* request,
- ::protobuf_unittest::FooResponse* response,
- ::google::protobuf::Closure* done);
- virtual void Bar(::google::protobuf::RpcController* controller,
- const ::protobuf_unittest::BarRequest* request,
- ::protobuf_unittest::BarResponse* response,
- ::google::protobuf::Closure* done);
- // implements Service ----------------------------------------------
- const ::google::protobuf::ServiceDescriptor* GetDescriptor();
- void CallMethod(const ::google::protobuf::MethodDescriptor* method,
- ::google::protobuf::RpcController* controller,
- const ::google::protobuf::Message* request,
- ::google::protobuf::Message* response,
- ::google::protobuf::Closure* done);
- const ::google::protobuf::Message& GetRequestPrototype(
- const ::google::protobuf::MethodDescriptor* method) const;
- const ::google::protobuf::Message& GetResponsePrototype(
- const ::google::protobuf::MethodDescriptor* method) const;
- private:
- GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(TestService);
- };
- class TestService_Stub : public TestService {
- public:
- TestService_Stub(::google::protobuf::RpcChannel* channel);
- TestService_Stub(::google::protobuf::RpcChannel* channel,
- ::google::protobuf::Service::ChannelOwnership ownership);
- ~TestService_Stub();
- inline ::google::protobuf::RpcChannel* channel() { return channel_; }
- // implements TestService ------------------------------------------
- void Foo(::google::protobuf::RpcController* controller,
- const ::protobuf_unittest::FooRequest* request,
- ::protobuf_unittest::FooResponse* response,
- ::google::protobuf::Closure* done);
- void Bar(::google::protobuf::RpcController* controller,
- const ::protobuf_unittest::BarRequest* request,
- ::protobuf_unittest::BarResponse* response,
- ::google::protobuf::Closure* done);
- private:
- ::google::protobuf::RpcChannel* channel_;
- bool owns_channel_;
- GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(TestService_Stub);
- };
- // ===================================================================
- static const int kOptionalInt32ExtensionFieldNumber = 1;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 5, false >
- optional_int32_extension;
- static const int kOptionalInt64ExtensionFieldNumber = 2;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int64 >, 3, false >
- optional_int64_extension;
- static const int kOptionalUint32ExtensionFieldNumber = 3;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::uint32 >, 13, false >
- optional_uint32_extension;
- static const int kOptionalUint64ExtensionFieldNumber = 4;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::uint64 >, 4, false >
- optional_uint64_extension;
- static const int kOptionalSint32ExtensionFieldNumber = 5;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 17, false >
- optional_sint32_extension;
- static const int kOptionalSint64ExtensionFieldNumber = 6;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int64 >, 18, false >
- optional_sint64_extension;
- static const int kOptionalFixed32ExtensionFieldNumber = 7;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::uint32 >, 7, false >
- optional_fixed32_extension;
- static const int kOptionalFixed64ExtensionFieldNumber = 8;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::uint64 >, 6, false >
- optional_fixed64_extension;
- static const int kOptionalSfixed32ExtensionFieldNumber = 9;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 15, false >
- optional_sfixed32_extension;
- static const int kOptionalSfixed64ExtensionFieldNumber = 10;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int64 >, 16, false >
- optional_sfixed64_extension;
- static const int kOptionalFloatExtensionFieldNumber = 11;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::PrimitiveTypeTraits< float >, 2, false >
- optional_float_extension;
- static const int kOptionalDoubleExtensionFieldNumber = 12;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::PrimitiveTypeTraits< double >, 1, false >
- optional_double_extension;
- static const int kOptionalBoolExtensionFieldNumber = 13;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::PrimitiveTypeTraits< bool >, 8, false >
- optional_bool_extension;
- static const int kOptionalStringExtensionFieldNumber = 14;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::StringTypeTraits, 9, false >
- optional_string_extension;
- static const int kOptionalBytesExtensionFieldNumber = 15;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::StringTypeTraits, 12, false >
- optional_bytes_extension;
- static const int kOptionalgroupExtensionFieldNumber = 16;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::OptionalGroup_extension >, 10, false >
- optionalgroup_extension;
- static const int kOptionalNestedMessageExtensionFieldNumber = 18;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::TestAllTypes_NestedMessage >, 11, false >
- optional_nested_message_extension;
- static const int kOptionalForeignMessageExtensionFieldNumber = 19;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::ForeignMessage >, 11, false >
- optional_foreign_message_extension;
- static const int kOptionalImportMessageExtensionFieldNumber = 20;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest_import::ImportMessage >, 11, false >
- optional_import_message_extension;
- static const int kOptionalNestedEnumExtensionFieldNumber = 21;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::EnumTypeTraits< ::protobuf_unittest::TestAllTypes_NestedEnum, ::protobuf_unittest::TestAllTypes_NestedEnum_IsValid>, 14, false >
- optional_nested_enum_extension;
- static const int kOptionalForeignEnumExtensionFieldNumber = 22;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::EnumTypeTraits< ::protobuf_unittest::ForeignEnum, ::protobuf_unittest::ForeignEnum_IsValid>, 14, false >
- optional_foreign_enum_extension;
- static const int kOptionalImportEnumExtensionFieldNumber = 23;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::EnumTypeTraits< ::protobuf_unittest_import::ImportEnum, ::protobuf_unittest_import::ImportEnum_IsValid>, 14, false >
- optional_import_enum_extension;
- static const int kOptionalStringPieceExtensionFieldNumber = 24;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::StringTypeTraits, 9, false >
- optional_string_piece_extension;
- static const int kOptionalCordExtensionFieldNumber = 25;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::StringTypeTraits, 9, false >
- optional_cord_extension;
- static const int kOptionalPublicImportMessageExtensionFieldNumber = 26;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest_import::PublicImportMessage >, 11, false >
- optional_public_import_message_extension;
- static const int kOptionalLazyMessageExtensionFieldNumber = 27;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::TestAllTypes_NestedMessage >, 11, false >
- optional_lazy_message_extension;
- static const int kRepeatedInt32ExtensionFieldNumber = 31;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::int32 >, 5, false >
- repeated_int32_extension;
- static const int kRepeatedInt64ExtensionFieldNumber = 32;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::int64 >, 3, false >
- repeated_int64_extension;
- static const int kRepeatedUint32ExtensionFieldNumber = 33;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::uint32 >, 13, false >
- repeated_uint32_extension;
- static const int kRepeatedUint64ExtensionFieldNumber = 34;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::uint64 >, 4, false >
- repeated_uint64_extension;
- static const int kRepeatedSint32ExtensionFieldNumber = 35;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::int32 >, 17, false >
- repeated_sint32_extension;
- static const int kRepeatedSint64ExtensionFieldNumber = 36;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::int64 >, 18, false >
- repeated_sint64_extension;
- static const int kRepeatedFixed32ExtensionFieldNumber = 37;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::uint32 >, 7, false >
- repeated_fixed32_extension;
- static const int kRepeatedFixed64ExtensionFieldNumber = 38;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::uint64 >, 6, false >
- repeated_fixed64_extension;
- static const int kRepeatedSfixed32ExtensionFieldNumber = 39;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::int32 >, 15, false >
- repeated_sfixed32_extension;
- static const int kRepeatedSfixed64ExtensionFieldNumber = 40;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::int64 >, 16, false >
- repeated_sfixed64_extension;
- static const int kRepeatedFloatExtensionFieldNumber = 41;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< float >, 2, false >
- repeated_float_extension;
- static const int kRepeatedDoubleExtensionFieldNumber = 42;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< double >, 1, false >
- repeated_double_extension;
- static const int kRepeatedBoolExtensionFieldNumber = 43;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< bool >, 8, false >
- repeated_bool_extension;
- static const int kRepeatedStringExtensionFieldNumber = 44;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::RepeatedStringTypeTraits, 9, false >
- repeated_string_extension;
- static const int kRepeatedBytesExtensionFieldNumber = 45;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::RepeatedStringTypeTraits, 12, false >
- repeated_bytes_extension;
- static const int kRepeatedgroupExtensionFieldNumber = 46;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::RepeatedMessageTypeTraits< ::protobuf_unittest::RepeatedGroup_extension >, 10, false >
- repeatedgroup_extension;
- static const int kRepeatedNestedMessageExtensionFieldNumber = 48;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::RepeatedMessageTypeTraits< ::protobuf_unittest::TestAllTypes_NestedMessage >, 11, false >
- repeated_nested_message_extension;
- static const int kRepeatedForeignMessageExtensionFieldNumber = 49;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::RepeatedMessageTypeTraits< ::protobuf_unittest::ForeignMessage >, 11, false >
- repeated_foreign_message_extension;
- static const int kRepeatedImportMessageExtensionFieldNumber = 50;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::RepeatedMessageTypeTraits< ::protobuf_unittest_import::ImportMessage >, 11, false >
- repeated_import_message_extension;
- static const int kRepeatedNestedEnumExtensionFieldNumber = 51;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::RepeatedEnumTypeTraits< ::protobuf_unittest::TestAllTypes_NestedEnum, ::protobuf_unittest::TestAllTypes_NestedEnum_IsValid>, 14, false >
- repeated_nested_enum_extension;
- static const int kRepeatedForeignEnumExtensionFieldNumber = 52;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::RepeatedEnumTypeTraits< ::protobuf_unittest::ForeignEnum, ::protobuf_unittest::ForeignEnum_IsValid>, 14, false >
- repeated_foreign_enum_extension;
- static const int kRepeatedImportEnumExtensionFieldNumber = 53;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::RepeatedEnumTypeTraits< ::protobuf_unittest_import::ImportEnum, ::protobuf_unittest_import::ImportEnum_IsValid>, 14, false >
- repeated_import_enum_extension;
- static const int kRepeatedStringPieceExtensionFieldNumber = 54;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::RepeatedStringTypeTraits, 9, false >
- repeated_string_piece_extension;
- static const int kRepeatedCordExtensionFieldNumber = 55;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::RepeatedStringTypeTraits, 9, false >
- repeated_cord_extension;
- static const int kRepeatedLazyMessageExtensionFieldNumber = 57;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::RepeatedMessageTypeTraits< ::protobuf_unittest::TestAllTypes_NestedMessage >, 11, false >
- repeated_lazy_message_extension;
- static const int kDefaultInt32ExtensionFieldNumber = 61;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 5, false >
- default_int32_extension;
- static const int kDefaultInt64ExtensionFieldNumber = 62;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int64 >, 3, false >
- default_int64_extension;
- static const int kDefaultUint32ExtensionFieldNumber = 63;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::uint32 >, 13, false >
- default_uint32_extension;
- static const int kDefaultUint64ExtensionFieldNumber = 64;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::uint64 >, 4, false >
- default_uint64_extension;
- static const int kDefaultSint32ExtensionFieldNumber = 65;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 17, false >
- default_sint32_extension;
- static const int kDefaultSint64ExtensionFieldNumber = 66;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int64 >, 18, false >
- default_sint64_extension;
- static const int kDefaultFixed32ExtensionFieldNumber = 67;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::uint32 >, 7, false >
- default_fixed32_extension;
- static const int kDefaultFixed64ExtensionFieldNumber = 68;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::uint64 >, 6, false >
- default_fixed64_extension;
- static const int kDefaultSfixed32ExtensionFieldNumber = 69;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 15, false >
- default_sfixed32_extension;
- static const int kDefaultSfixed64ExtensionFieldNumber = 70;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int64 >, 16, false >
- default_sfixed64_extension;
- static const int kDefaultFloatExtensionFieldNumber = 71;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::PrimitiveTypeTraits< float >, 2, false >
- default_float_extension;
- static const int kDefaultDoubleExtensionFieldNumber = 72;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::PrimitiveTypeTraits< double >, 1, false >
- default_double_extension;
- static const int kDefaultBoolExtensionFieldNumber = 73;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::PrimitiveTypeTraits< bool >, 8, false >
- default_bool_extension;
- static const int kDefaultStringExtensionFieldNumber = 74;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::StringTypeTraits, 9, false >
- default_string_extension;
- static const int kDefaultBytesExtensionFieldNumber = 75;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::StringTypeTraits, 12, false >
- default_bytes_extension;
- static const int kDefaultNestedEnumExtensionFieldNumber = 81;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::EnumTypeTraits< ::protobuf_unittest::TestAllTypes_NestedEnum, ::protobuf_unittest::TestAllTypes_NestedEnum_IsValid>, 14, false >
- default_nested_enum_extension;
- static const int kDefaultForeignEnumExtensionFieldNumber = 82;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::EnumTypeTraits< ::protobuf_unittest::ForeignEnum, ::protobuf_unittest::ForeignEnum_IsValid>, 14, false >
- default_foreign_enum_extension;
- static const int kDefaultImportEnumExtensionFieldNumber = 83;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::EnumTypeTraits< ::protobuf_unittest_import::ImportEnum, ::protobuf_unittest_import::ImportEnum_IsValid>, 14, false >
- default_import_enum_extension;
- static const int kDefaultStringPieceExtensionFieldNumber = 84;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::StringTypeTraits, 9, false >
- default_string_piece_extension;
- static const int kDefaultCordExtensionFieldNumber = 85;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::StringTypeTraits, 9, false >
- default_cord_extension;
- static const int kOneofUint32ExtensionFieldNumber = 111;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::uint32 >, 13, false >
- oneof_uint32_extension;
- static const int kOneofNestedMessageExtensionFieldNumber = 112;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::TestAllTypes_NestedMessage >, 11, false >
- oneof_nested_message_extension;
- static const int kOneofStringExtensionFieldNumber = 113;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::StringTypeTraits, 9, false >
- oneof_string_extension;
- static const int kOneofBytesExtensionFieldNumber = 114;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
- ::google::protobuf::internal::StringTypeTraits, 12, false >
- oneof_bytes_extension;
- static const int kMyExtensionStringFieldNumber = 50;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestFieldOrderings,
- ::google::protobuf::internal::StringTypeTraits, 9, false >
- my_extension_string;
- static const int kMyExtensionIntFieldNumber = 5;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestFieldOrderings,
- ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 5, false >
- my_extension_int;
- static const int kPackedInt32ExtensionFieldNumber = 90;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestPackedExtensions,
- ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::int32 >, 5, true >
- packed_int32_extension;
- static const int kPackedInt64ExtensionFieldNumber = 91;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestPackedExtensions,
- ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::int64 >, 3, true >
- packed_int64_extension;
- static const int kPackedUint32ExtensionFieldNumber = 92;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestPackedExtensions,
- ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::uint32 >, 13, true >
- packed_uint32_extension;
- static const int kPackedUint64ExtensionFieldNumber = 93;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestPackedExtensions,
- ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::uint64 >, 4, true >
- packed_uint64_extension;
- static const int kPackedSint32ExtensionFieldNumber = 94;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestPackedExtensions,
- ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::int32 >, 17, true >
- packed_sint32_extension;
- static const int kPackedSint64ExtensionFieldNumber = 95;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestPackedExtensions,
- ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::int64 >, 18, true >
- packed_sint64_extension;
- static const int kPackedFixed32ExtensionFieldNumber = 96;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestPackedExtensions,
- ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::uint32 >, 7, true >
- packed_fixed32_extension;
- static const int kPackedFixed64ExtensionFieldNumber = 97;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestPackedExtensions,
- ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::uint64 >, 6, true >
- packed_fixed64_extension;
- static const int kPackedSfixed32ExtensionFieldNumber = 98;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestPackedExtensions,
- ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::int32 >, 15, true >
- packed_sfixed32_extension;
- static const int kPackedSfixed64ExtensionFieldNumber = 99;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestPackedExtensions,
- ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::int64 >, 16, true >
- packed_sfixed64_extension;
- static const int kPackedFloatExtensionFieldNumber = 100;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestPackedExtensions,
- ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< float >, 2, true >
- packed_float_extension;
- static const int kPackedDoubleExtensionFieldNumber = 101;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestPackedExtensions,
- ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< double >, 1, true >
- packed_double_extension;
- static const int kPackedBoolExtensionFieldNumber = 102;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestPackedExtensions,
- ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< bool >, 8, true >
- packed_bool_extension;
- static const int kPackedEnumExtensionFieldNumber = 103;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestPackedExtensions,
- ::google::protobuf::internal::RepeatedEnumTypeTraits< ::protobuf_unittest::ForeignEnum, ::protobuf_unittest::ForeignEnum_IsValid>, 14, true >
- packed_enum_extension;
- static const int kUnpackedInt32ExtensionFieldNumber = 90;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestUnpackedExtensions,
- ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::int32 >, 5, false >
- unpacked_int32_extension;
- static const int kUnpackedInt64ExtensionFieldNumber = 91;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestUnpackedExtensions,
- ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::int64 >, 3, false >
- unpacked_int64_extension;
- static const int kUnpackedUint32ExtensionFieldNumber = 92;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestUnpackedExtensions,
- ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::uint32 >, 13, false >
- unpacked_uint32_extension;
- static const int kUnpackedUint64ExtensionFieldNumber = 93;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestUnpackedExtensions,
- ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::uint64 >, 4, false >
- unpacked_uint64_extension;
- static const int kUnpackedSint32ExtensionFieldNumber = 94;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestUnpackedExtensions,
- ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::int32 >, 17, false >
- unpacked_sint32_extension;
- static const int kUnpackedSint64ExtensionFieldNumber = 95;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestUnpackedExtensions,
- ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::int64 >, 18, false >
- unpacked_sint64_extension;
- static const int kUnpackedFixed32ExtensionFieldNumber = 96;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestUnpackedExtensions,
- ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::uint32 >, 7, false >
- unpacked_fixed32_extension;
- static const int kUnpackedFixed64ExtensionFieldNumber = 97;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestUnpackedExtensions,
- ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::uint64 >, 6, false >
- unpacked_fixed64_extension;
- static const int kUnpackedSfixed32ExtensionFieldNumber = 98;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestUnpackedExtensions,
- ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::int32 >, 15, false >
- unpacked_sfixed32_extension;
- static const int kUnpackedSfixed64ExtensionFieldNumber = 99;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestUnpackedExtensions,
- ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::int64 >, 16, false >
- unpacked_sfixed64_extension;
- static const int kUnpackedFloatExtensionFieldNumber = 100;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestUnpackedExtensions,
- ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< float >, 2, false >
- unpacked_float_extension;
- static const int kUnpackedDoubleExtensionFieldNumber = 101;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestUnpackedExtensions,
- ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< double >, 1, false >
- unpacked_double_extension;
- static const int kUnpackedBoolExtensionFieldNumber = 102;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestUnpackedExtensions,
- ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< bool >, 8, false >
- unpacked_bool_extension;
- static const int kUnpackedEnumExtensionFieldNumber = 103;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestUnpackedExtensions,
- ::google::protobuf::internal::RepeatedEnumTypeTraits< ::protobuf_unittest::ForeignEnum, ::protobuf_unittest::ForeignEnum_IsValid>, 14, false >
- unpacked_enum_extension;
- static const int kTestAllTypesFieldNumber = 536860000;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestHugeFieldNumbers,
- ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::TestAllTypes >, 11, false >
- test_all_types;
- static const int kTestExtensionInsideTableExtensionFieldNumber = 5;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestExtensionInsideTable,
- ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 5, false >
- test_extension_inside_table_extension;
- // ===================================================================
- #ifdef __GNUC__
- #pragma GCC diagnostic push
- #pragma GCC diagnostic ignored "-Wstrict-aliasing"
- #endif // __GNUC__
- // TestAllTypes_NestedMessage
- // optional int32 bb = 1;
- inline bool TestAllTypes_NestedMessage::has_bb() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void TestAllTypes_NestedMessage::set_has_bb() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void TestAllTypes_NestedMessage::clear_has_bb() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void TestAllTypes_NestedMessage::clear_bb() {
- bb_ = 0;
- clear_has_bb();
- }
- inline ::google::protobuf::int32 TestAllTypes_NestedMessage::bb() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.NestedMessage.bb)
- return bb_;
- }
- inline void TestAllTypes_NestedMessage::set_bb(::google::protobuf::int32 value) {
- set_has_bb();
- bb_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.NestedMessage.bb)
- }
- // -------------------------------------------------------------------
- // TestAllTypes_OptionalGroup
- // optional int32 a = 17;
- inline bool TestAllTypes_OptionalGroup::has_a() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void TestAllTypes_OptionalGroup::set_has_a() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void TestAllTypes_OptionalGroup::clear_has_a() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void TestAllTypes_OptionalGroup::clear_a() {
- a_ = 0;
- clear_has_a();
- }
- inline ::google::protobuf::int32 TestAllTypes_OptionalGroup::a() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.OptionalGroup.a)
- return a_;
- }
- inline void TestAllTypes_OptionalGroup::set_a(::google::protobuf::int32 value) {
- set_has_a();
- a_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.OptionalGroup.a)
- }
- // -------------------------------------------------------------------
- // TestAllTypes_RepeatedGroup
- // optional int32 a = 47;
- inline bool TestAllTypes_RepeatedGroup::has_a() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void TestAllTypes_RepeatedGroup::set_has_a() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void TestAllTypes_RepeatedGroup::clear_has_a() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void TestAllTypes_RepeatedGroup::clear_a() {
- a_ = 0;
- clear_has_a();
- }
- inline ::google::protobuf::int32 TestAllTypes_RepeatedGroup::a() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.RepeatedGroup.a)
- return a_;
- }
- inline void TestAllTypes_RepeatedGroup::set_a(::google::protobuf::int32 value) {
- set_has_a();
- a_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.RepeatedGroup.a)
- }
- // -------------------------------------------------------------------
- // TestAllTypes
- // optional int32 optional_int32 = 1;
- inline bool TestAllTypes::has_optional_int32() const {
- return (_has_bits_[0] & 0x00008000u) != 0;
- }
- inline void TestAllTypes::set_has_optional_int32() {
- _has_bits_[0] |= 0x00008000u;
- }
- inline void TestAllTypes::clear_has_optional_int32() {
- _has_bits_[0] &= ~0x00008000u;
- }
- inline void TestAllTypes::clear_optional_int32() {
- optional_int32_ = 0;
- clear_has_optional_int32();
- }
- inline ::google::protobuf::int32 TestAllTypes::optional_int32() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.optional_int32)
- return optional_int32_;
- }
- inline void TestAllTypes::set_optional_int32(::google::protobuf::int32 value) {
- set_has_optional_int32();
- optional_int32_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.optional_int32)
- }
- // optional int64 optional_int64 = 2;
- inline bool TestAllTypes::has_optional_int64() const {
- return (_has_bits_[0] & 0x00004000u) != 0;
- }
- inline void TestAllTypes::set_has_optional_int64() {
- _has_bits_[0] |= 0x00004000u;
- }
- inline void TestAllTypes::clear_has_optional_int64() {
- _has_bits_[0] &= ~0x00004000u;
- }
- inline void TestAllTypes::clear_optional_int64() {
- optional_int64_ = GOOGLE_LONGLONG(0);
- clear_has_optional_int64();
- }
- inline ::google::protobuf::int64 TestAllTypes::optional_int64() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.optional_int64)
- return optional_int64_;
- }
- inline void TestAllTypes::set_optional_int64(::google::protobuf::int64 value) {
- set_has_optional_int64();
- optional_int64_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.optional_int64)
- }
- // optional uint32 optional_uint32 = 3;
- inline bool TestAllTypes::has_optional_uint32() const {
- return (_has_bits_[0] & 0x00010000u) != 0;
- }
- inline void TestAllTypes::set_has_optional_uint32() {
- _has_bits_[0] |= 0x00010000u;
- }
- inline void TestAllTypes::clear_has_optional_uint32() {
- _has_bits_[0] &= ~0x00010000u;
- }
- inline void TestAllTypes::clear_optional_uint32() {
- optional_uint32_ = 0u;
- clear_has_optional_uint32();
- }
- inline ::google::protobuf::uint32 TestAllTypes::optional_uint32() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.optional_uint32)
- return optional_uint32_;
- }
- inline void TestAllTypes::set_optional_uint32(::google::protobuf::uint32 value) {
- set_has_optional_uint32();
- optional_uint32_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.optional_uint32)
- }
- // optional uint64 optional_uint64 = 4;
- inline bool TestAllTypes::has_optional_uint64() const {
- return (_has_bits_[0] & 0x00020000u) != 0;
- }
- inline void TestAllTypes::set_has_optional_uint64() {
- _has_bits_[0] |= 0x00020000u;
- }
- inline void TestAllTypes::clear_has_optional_uint64() {
- _has_bits_[0] &= ~0x00020000u;
- }
- inline void TestAllTypes::clear_optional_uint64() {
- optional_uint64_ = GOOGLE_ULONGLONG(0);
- clear_has_optional_uint64();
- }
- inline ::google::protobuf::uint64 TestAllTypes::optional_uint64() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.optional_uint64)
- return optional_uint64_;
- }
- inline void TestAllTypes::set_optional_uint64(::google::protobuf::uint64 value) {
- set_has_optional_uint64();
- optional_uint64_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.optional_uint64)
- }
- // optional sint32 optional_sint32 = 5;
- inline bool TestAllTypes::has_optional_sint32() const {
- return (_has_bits_[0] & 0x00080000u) != 0;
- }
- inline void TestAllTypes::set_has_optional_sint32() {
- _has_bits_[0] |= 0x00080000u;
- }
- inline void TestAllTypes::clear_has_optional_sint32() {
- _has_bits_[0] &= ~0x00080000u;
- }
- inline void TestAllTypes::clear_optional_sint32() {
- optional_sint32_ = 0;
- clear_has_optional_sint32();
- }
- inline ::google::protobuf::int32 TestAllTypes::optional_sint32() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.optional_sint32)
- return optional_sint32_;
- }
- inline void TestAllTypes::set_optional_sint32(::google::protobuf::int32 value) {
- set_has_optional_sint32();
- optional_sint32_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.optional_sint32)
- }
- // optional sint64 optional_sint64 = 6;
- inline bool TestAllTypes::has_optional_sint64() const {
- return (_has_bits_[0] & 0x00040000u) != 0;
- }
- inline void TestAllTypes::set_has_optional_sint64() {
- _has_bits_[0] |= 0x00040000u;
- }
- inline void TestAllTypes::clear_has_optional_sint64() {
- _has_bits_[0] &= ~0x00040000u;
- }
- inline void TestAllTypes::clear_optional_sint64() {
- optional_sint64_ = GOOGLE_LONGLONG(0);
- clear_has_optional_sint64();
- }
- inline ::google::protobuf::int64 TestAllTypes::optional_sint64() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.optional_sint64)
- return optional_sint64_;
- }
- inline void TestAllTypes::set_optional_sint64(::google::protobuf::int64 value) {
- set_has_optional_sint64();
- optional_sint64_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.optional_sint64)
- }
- // optional fixed32 optional_fixed32 = 7;
- inline bool TestAllTypes::has_optional_fixed32() const {
- return (_has_bits_[0] & 0x00100000u) != 0;
- }
- inline void TestAllTypes::set_has_optional_fixed32() {
- _has_bits_[0] |= 0x00100000u;
- }
- inline void TestAllTypes::clear_has_optional_fixed32() {
- _has_bits_[0] &= ~0x00100000u;
- }
- inline void TestAllTypes::clear_optional_fixed32() {
- optional_fixed32_ = 0u;
- clear_has_optional_fixed32();
- }
- inline ::google::protobuf::uint32 TestAllTypes::optional_fixed32() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.optional_fixed32)
- return optional_fixed32_;
- }
- inline void TestAllTypes::set_optional_fixed32(::google::protobuf::uint32 value) {
- set_has_optional_fixed32();
- optional_fixed32_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.optional_fixed32)
- }
- // optional fixed64 optional_fixed64 = 8;
- inline bool TestAllTypes::has_optional_fixed64() const {
- return (_has_bits_[0] & 0x00200000u) != 0;
- }
- inline void TestAllTypes::set_has_optional_fixed64() {
- _has_bits_[0] |= 0x00200000u;
- }
- inline void TestAllTypes::clear_has_optional_fixed64() {
- _has_bits_[0] &= ~0x00200000u;
- }
- inline void TestAllTypes::clear_optional_fixed64() {
- optional_fixed64_ = GOOGLE_ULONGLONG(0);
- clear_has_optional_fixed64();
- }
- inline ::google::protobuf::uint64 TestAllTypes::optional_fixed64() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.optional_fixed64)
- return optional_fixed64_;
- }
- inline void TestAllTypes::set_optional_fixed64(::google::protobuf::uint64 value) {
- set_has_optional_fixed64();
- optional_fixed64_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.optional_fixed64)
- }
- // optional sfixed32 optional_sfixed32 = 9;
- inline bool TestAllTypes::has_optional_sfixed32() const {
- return (_has_bits_[0] & 0x00800000u) != 0;
- }
- inline void TestAllTypes::set_has_optional_sfixed32() {
- _has_bits_[0] |= 0x00800000u;
- }
- inline void TestAllTypes::clear_has_optional_sfixed32() {
- _has_bits_[0] &= ~0x00800000u;
- }
- inline void TestAllTypes::clear_optional_sfixed32() {
- optional_sfixed32_ = 0;
- clear_has_optional_sfixed32();
- }
- inline ::google::protobuf::int32 TestAllTypes::optional_sfixed32() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.optional_sfixed32)
- return optional_sfixed32_;
- }
- inline void TestAllTypes::set_optional_sfixed32(::google::protobuf::int32 value) {
- set_has_optional_sfixed32();
- optional_sfixed32_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.optional_sfixed32)
- }
- // optional sfixed64 optional_sfixed64 = 10;
- inline bool TestAllTypes::has_optional_sfixed64() const {
- return (_has_bits_[0] & 0x00400000u) != 0;
- }
- inline void TestAllTypes::set_has_optional_sfixed64() {
- _has_bits_[0] |= 0x00400000u;
- }
- inline void TestAllTypes::clear_has_optional_sfixed64() {
- _has_bits_[0] &= ~0x00400000u;
- }
- inline void TestAllTypes::clear_optional_sfixed64() {
- optional_sfixed64_ = GOOGLE_LONGLONG(0);
- clear_has_optional_sfixed64();
- }
- inline ::google::protobuf::int64 TestAllTypes::optional_sfixed64() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.optional_sfixed64)
- return optional_sfixed64_;
- }
- inline void TestAllTypes::set_optional_sfixed64(::google::protobuf::int64 value) {
- set_has_optional_sfixed64();
- optional_sfixed64_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.optional_sfixed64)
- }
- // optional float optional_float = 11;
- inline bool TestAllTypes::has_optional_float() const {
- return (_has_bits_[0] & 0x01000000u) != 0;
- }
- inline void TestAllTypes::set_has_optional_float() {
- _has_bits_[0] |= 0x01000000u;
- }
- inline void TestAllTypes::clear_has_optional_float() {
- _has_bits_[0] &= ~0x01000000u;
- }
- inline void TestAllTypes::clear_optional_float() {
- optional_float_ = 0;
- clear_has_optional_float();
- }
- inline float TestAllTypes::optional_float() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.optional_float)
- return optional_float_;
- }
- inline void TestAllTypes::set_optional_float(float value) {
- set_has_optional_float();
- optional_float_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.optional_float)
- }
- // optional double optional_double = 12;
- inline bool TestAllTypes::has_optional_double() const {
- return (_has_bits_[0] & 0x02000000u) != 0;
- }
- inline void TestAllTypes::set_has_optional_double() {
- _has_bits_[0] |= 0x02000000u;
- }
- inline void TestAllTypes::clear_has_optional_double() {
- _has_bits_[0] &= ~0x02000000u;
- }
- inline void TestAllTypes::clear_optional_double() {
- optional_double_ = 0;
- clear_has_optional_double();
- }
- inline double TestAllTypes::optional_double() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.optional_double)
- return optional_double_;
- }
- inline void TestAllTypes::set_optional_double(double value) {
- set_has_optional_double();
- optional_double_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.optional_double)
- }
- // optional bool optional_bool = 13;
- inline bool TestAllTypes::has_optional_bool() const {
- return (_has_bits_[0] & 0x04000000u) != 0;
- }
- inline void TestAllTypes::set_has_optional_bool() {
- _has_bits_[0] |= 0x04000000u;
- }
- inline void TestAllTypes::clear_has_optional_bool() {
- _has_bits_[0] &= ~0x04000000u;
- }
- inline void TestAllTypes::clear_optional_bool() {
- optional_bool_ = false;
- clear_has_optional_bool();
- }
- inline bool TestAllTypes::optional_bool() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.optional_bool)
- return optional_bool_;
- }
- inline void TestAllTypes::set_optional_bool(bool value) {
- set_has_optional_bool();
- optional_bool_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.optional_bool)
- }
- // optional string optional_string = 14;
- inline bool TestAllTypes::has_optional_string() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void TestAllTypes::set_has_optional_string() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void TestAllTypes::clear_has_optional_string() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void TestAllTypes::clear_optional_string() {
- optional_string_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- clear_has_optional_string();
- }
- inline const ::std::string& TestAllTypes::optional_string() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.optional_string)
- return optional_string_.Get();
- }
- inline void TestAllTypes::set_optional_string(const ::std::string& value) {
- set_has_optional_string();
- optional_string_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.optional_string)
- }
- #if LANG_CXX11
- inline void TestAllTypes::set_optional_string(::std::string&& value) {
- set_has_optional_string();
- optional_string_.Set(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestAllTypes.optional_string)
- }
- #endif
- inline void TestAllTypes::set_optional_string(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- set_has_optional_string();
- optional_string_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestAllTypes.optional_string)
- }
- inline void TestAllTypes::set_optional_string(const char* value,
- size_t size) {
- set_has_optional_string();
- optional_string_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
- reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestAllTypes.optional_string)
- }
- inline ::std::string* TestAllTypes::mutable_optional_string() {
- set_has_optional_string();
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypes.optional_string)
- return optional_string_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- }
- inline ::std::string* TestAllTypes::release_optional_string() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestAllTypes.optional_string)
- if (!has_optional_string()) {
- return NULL;
- }
- clear_has_optional_string();
- return optional_string_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- }
- inline void TestAllTypes::set_allocated_optional_string(::std::string* optional_string) {
- if (optional_string != NULL) {
- set_has_optional_string();
- } else {
- clear_has_optional_string();
- }
- optional_string_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), optional_string,
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestAllTypes.optional_string)
- }
- inline ::std::string* TestAllTypes::unsafe_arena_release_optional_string() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestAllTypes.optional_string)
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- clear_has_optional_string();
- return optional_string_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- }
- inline void TestAllTypes::unsafe_arena_set_allocated_optional_string(
- ::std::string* optional_string) {
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- if (optional_string != NULL) {
- set_has_optional_string();
- } else {
- clear_has_optional_string();
- }
- optional_string_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- optional_string, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestAllTypes.optional_string)
- }
- // optional bytes optional_bytes = 15;
- inline bool TestAllTypes::has_optional_bytes() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
- }
- inline void TestAllTypes::set_has_optional_bytes() {
- _has_bits_[0] |= 0x00000002u;
- }
- inline void TestAllTypes::clear_has_optional_bytes() {
- _has_bits_[0] &= ~0x00000002u;
- }
- inline void TestAllTypes::clear_optional_bytes() {
- optional_bytes_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- clear_has_optional_bytes();
- }
- inline const ::std::string& TestAllTypes::optional_bytes() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.optional_bytes)
- return optional_bytes_.Get();
- }
- inline void TestAllTypes::set_optional_bytes(const ::std::string& value) {
- set_has_optional_bytes();
- optional_bytes_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.optional_bytes)
- }
- #if LANG_CXX11
- inline void TestAllTypes::set_optional_bytes(::std::string&& value) {
- set_has_optional_bytes();
- optional_bytes_.Set(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestAllTypes.optional_bytes)
- }
- #endif
- inline void TestAllTypes::set_optional_bytes(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- set_has_optional_bytes();
- optional_bytes_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestAllTypes.optional_bytes)
- }
- inline void TestAllTypes::set_optional_bytes(const void* value,
- size_t size) {
- set_has_optional_bytes();
- optional_bytes_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
- reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestAllTypes.optional_bytes)
- }
- inline ::std::string* TestAllTypes::mutable_optional_bytes() {
- set_has_optional_bytes();
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypes.optional_bytes)
- return optional_bytes_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- }
- inline ::std::string* TestAllTypes::release_optional_bytes() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestAllTypes.optional_bytes)
- if (!has_optional_bytes()) {
- return NULL;
- }
- clear_has_optional_bytes();
- return optional_bytes_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- }
- inline void TestAllTypes::set_allocated_optional_bytes(::std::string* optional_bytes) {
- if (optional_bytes != NULL) {
- set_has_optional_bytes();
- } else {
- clear_has_optional_bytes();
- }
- optional_bytes_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), optional_bytes,
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestAllTypes.optional_bytes)
- }
- inline ::std::string* TestAllTypes::unsafe_arena_release_optional_bytes() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestAllTypes.optional_bytes)
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- clear_has_optional_bytes();
- return optional_bytes_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- }
- inline void TestAllTypes::unsafe_arena_set_allocated_optional_bytes(
- ::std::string* optional_bytes) {
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- if (optional_bytes != NULL) {
- set_has_optional_bytes();
- } else {
- clear_has_optional_bytes();
- }
- optional_bytes_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- optional_bytes, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestAllTypes.optional_bytes)
- }
- // optional group OptionalGroup = 16 { ... };
- inline bool TestAllTypes::has_optionalgroup() const {
- return (_has_bits_[0] & 0x00000100u) != 0;
- }
- inline void TestAllTypes::set_has_optionalgroup() {
- _has_bits_[0] |= 0x00000100u;
- }
- inline void TestAllTypes::clear_has_optionalgroup() {
- _has_bits_[0] &= ~0x00000100u;
- }
- inline void TestAllTypes::clear_optionalgroup() {
- if (optionalgroup_ != NULL) optionalgroup_->Clear();
- clear_has_optionalgroup();
- }
- inline const ::protobuf_unittest::TestAllTypes_OptionalGroup& TestAllTypes::_internal_optionalgroup() const {
- return *optionalgroup_;
- }
- inline const ::protobuf_unittest::TestAllTypes_OptionalGroup& TestAllTypes::optionalgroup() const {
- const ::protobuf_unittest::TestAllTypes_OptionalGroup* p = optionalgroup_;
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.optionalgroup)
- return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestAllTypes_OptionalGroup*>(
- &::protobuf_unittest::_TestAllTypes_OptionalGroup_default_instance_);
- }
- inline ::protobuf_unittest::TestAllTypes_OptionalGroup* TestAllTypes::release_optionalgroup() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestAllTypes.optionalgroup)
- clear_has_optionalgroup();
- ::protobuf_unittest::TestAllTypes_OptionalGroup* temp = optionalgroup_;
- if (GetArenaNoVirtual() != NULL) {
- temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
- }
- optionalgroup_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestAllTypes_OptionalGroup* TestAllTypes::unsafe_arena_release_optionalgroup() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestAllTypes.optionalgroup)
- clear_has_optionalgroup();
- ::protobuf_unittest::TestAllTypes_OptionalGroup* temp = optionalgroup_;
- optionalgroup_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestAllTypes_OptionalGroup* TestAllTypes::mutable_optionalgroup() {
- set_has_optionalgroup();
- if (optionalgroup_ == NULL) {
- auto* p = CreateMaybeMessage<::protobuf_unittest::TestAllTypes_OptionalGroup>(GetArenaNoVirtual());
- optionalgroup_ = p;
- }
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypes.optionalgroup)
- return optionalgroup_;
- }
- inline void TestAllTypes::set_allocated_optionalgroup(::protobuf_unittest::TestAllTypes_OptionalGroup* optionalgroup) {
- ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
- if (message_arena == NULL) {
- delete optionalgroup_;
- }
- if (optionalgroup) {
- ::google::protobuf::Arena* submessage_arena =
- ::google::protobuf::Arena::GetArena(optionalgroup);
- if (message_arena != submessage_arena) {
- optionalgroup = ::google::protobuf::internal::GetOwnedMessage(
- message_arena, optionalgroup, submessage_arena);
- }
- set_has_optionalgroup();
- } else {
- clear_has_optionalgroup();
- }
- optionalgroup_ = optionalgroup;
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestAllTypes.optionalgroup)
- }
- // optional .protobuf_unittest.TestAllTypes.NestedMessage optional_nested_message = 18;
- inline bool TestAllTypes::has_optional_nested_message() const {
- return (_has_bits_[0] & 0x00000200u) != 0;
- }
- inline void TestAllTypes::set_has_optional_nested_message() {
- _has_bits_[0] |= 0x00000200u;
- }
- inline void TestAllTypes::clear_has_optional_nested_message() {
- _has_bits_[0] &= ~0x00000200u;
- }
- inline void TestAllTypes::clear_optional_nested_message() {
- if (optional_nested_message_ != NULL) optional_nested_message_->Clear();
- clear_has_optional_nested_message();
- }
- inline const ::protobuf_unittest::TestAllTypes_NestedMessage& TestAllTypes::_internal_optional_nested_message() const {
- return *optional_nested_message_;
- }
- inline const ::protobuf_unittest::TestAllTypes_NestedMessage& TestAllTypes::optional_nested_message() const {
- const ::protobuf_unittest::TestAllTypes_NestedMessage* p = optional_nested_message_;
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.optional_nested_message)
- return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestAllTypes_NestedMessage*>(
- &::protobuf_unittest::_TestAllTypes_NestedMessage_default_instance_);
- }
- inline ::protobuf_unittest::TestAllTypes_NestedMessage* TestAllTypes::release_optional_nested_message() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestAllTypes.optional_nested_message)
- clear_has_optional_nested_message();
- ::protobuf_unittest::TestAllTypes_NestedMessage* temp = optional_nested_message_;
- if (GetArenaNoVirtual() != NULL) {
- temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
- }
- optional_nested_message_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestAllTypes_NestedMessage* TestAllTypes::unsafe_arena_release_optional_nested_message() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestAllTypes.optional_nested_message)
- clear_has_optional_nested_message();
- ::protobuf_unittest::TestAllTypes_NestedMessage* temp = optional_nested_message_;
- optional_nested_message_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestAllTypes_NestedMessage* TestAllTypes::mutable_optional_nested_message() {
- set_has_optional_nested_message();
- if (optional_nested_message_ == NULL) {
- auto* p = CreateMaybeMessage<::protobuf_unittest::TestAllTypes_NestedMessage>(GetArenaNoVirtual());
- optional_nested_message_ = p;
- }
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypes.optional_nested_message)
- return optional_nested_message_;
- }
- inline void TestAllTypes::set_allocated_optional_nested_message(::protobuf_unittest::TestAllTypes_NestedMessage* optional_nested_message) {
- ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
- if (message_arena == NULL) {
- delete optional_nested_message_;
- }
- if (optional_nested_message) {
- ::google::protobuf::Arena* submessage_arena =
- ::google::protobuf::Arena::GetArena(optional_nested_message);
- if (message_arena != submessage_arena) {
- optional_nested_message = ::google::protobuf::internal::GetOwnedMessage(
- message_arena, optional_nested_message, submessage_arena);
- }
- set_has_optional_nested_message();
- } else {
- clear_has_optional_nested_message();
- }
- optional_nested_message_ = optional_nested_message;
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestAllTypes.optional_nested_message)
- }
- // optional .protobuf_unittest.ForeignMessage optional_foreign_message = 19;
- inline bool TestAllTypes::has_optional_foreign_message() const {
- return (_has_bits_[0] & 0x00000400u) != 0;
- }
- inline void TestAllTypes::set_has_optional_foreign_message() {
- _has_bits_[0] |= 0x00000400u;
- }
- inline void TestAllTypes::clear_has_optional_foreign_message() {
- _has_bits_[0] &= ~0x00000400u;
- }
- inline void TestAllTypes::clear_optional_foreign_message() {
- if (optional_foreign_message_ != NULL) optional_foreign_message_->Clear();
- clear_has_optional_foreign_message();
- }
- inline const ::protobuf_unittest::ForeignMessage& TestAllTypes::_internal_optional_foreign_message() const {
- return *optional_foreign_message_;
- }
- inline const ::protobuf_unittest::ForeignMessage& TestAllTypes::optional_foreign_message() const {
- const ::protobuf_unittest::ForeignMessage* p = optional_foreign_message_;
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.optional_foreign_message)
- return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::ForeignMessage*>(
- &::protobuf_unittest::_ForeignMessage_default_instance_);
- }
- inline ::protobuf_unittest::ForeignMessage* TestAllTypes::release_optional_foreign_message() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestAllTypes.optional_foreign_message)
- clear_has_optional_foreign_message();
- ::protobuf_unittest::ForeignMessage* temp = optional_foreign_message_;
- if (GetArenaNoVirtual() != NULL) {
- temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
- }
- optional_foreign_message_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::ForeignMessage* TestAllTypes::unsafe_arena_release_optional_foreign_message() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestAllTypes.optional_foreign_message)
- clear_has_optional_foreign_message();
- ::protobuf_unittest::ForeignMessage* temp = optional_foreign_message_;
- optional_foreign_message_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::ForeignMessage* TestAllTypes::mutable_optional_foreign_message() {
- set_has_optional_foreign_message();
- if (optional_foreign_message_ == NULL) {
- auto* p = CreateMaybeMessage<::protobuf_unittest::ForeignMessage>(GetArenaNoVirtual());
- optional_foreign_message_ = p;
- }
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypes.optional_foreign_message)
- return optional_foreign_message_;
- }
- inline void TestAllTypes::set_allocated_optional_foreign_message(::protobuf_unittest::ForeignMessage* optional_foreign_message) {
- ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
- if (message_arena == NULL) {
- delete optional_foreign_message_;
- }
- if (optional_foreign_message) {
- ::google::protobuf::Arena* submessage_arena =
- ::google::protobuf::Arena::GetArena(optional_foreign_message);
- if (message_arena != submessage_arena) {
- optional_foreign_message = ::google::protobuf::internal::GetOwnedMessage(
- message_arena, optional_foreign_message, submessage_arena);
- }
- set_has_optional_foreign_message();
- } else {
- clear_has_optional_foreign_message();
- }
- optional_foreign_message_ = optional_foreign_message;
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestAllTypes.optional_foreign_message)
- }
- // optional .protobuf_unittest_import.ImportMessage optional_import_message = 20;
- inline bool TestAllTypes::has_optional_import_message() const {
- return (_has_bits_[0] & 0x00000800u) != 0;
- }
- inline void TestAllTypes::set_has_optional_import_message() {
- _has_bits_[0] |= 0x00000800u;
- }
- inline void TestAllTypes::clear_has_optional_import_message() {
- _has_bits_[0] &= ~0x00000800u;
- }
- inline const ::protobuf_unittest_import::ImportMessage& TestAllTypes::_internal_optional_import_message() const {
- return *optional_import_message_;
- }
- inline const ::protobuf_unittest_import::ImportMessage& TestAllTypes::optional_import_message() const {
- const ::protobuf_unittest_import::ImportMessage* p = optional_import_message_;
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.optional_import_message)
- return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest_import::ImportMessage*>(
- &::protobuf_unittest_import::_ImportMessage_default_instance_);
- }
- inline ::protobuf_unittest_import::ImportMessage* TestAllTypes::release_optional_import_message() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestAllTypes.optional_import_message)
- clear_has_optional_import_message();
- ::protobuf_unittest_import::ImportMessage* temp = optional_import_message_;
- if (GetArenaNoVirtual() != NULL) {
- temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
- }
- optional_import_message_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest_import::ImportMessage* TestAllTypes::unsafe_arena_release_optional_import_message() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestAllTypes.optional_import_message)
- clear_has_optional_import_message();
- ::protobuf_unittest_import::ImportMessage* temp = optional_import_message_;
- optional_import_message_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest_import::ImportMessage* TestAllTypes::mutable_optional_import_message() {
- set_has_optional_import_message();
- if (optional_import_message_ == NULL) {
- auto* p = CreateMaybeMessage<::protobuf_unittest_import::ImportMessage>(GetArenaNoVirtual());
- optional_import_message_ = p;
- }
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypes.optional_import_message)
- return optional_import_message_;
- }
- inline void TestAllTypes::set_allocated_optional_import_message(::protobuf_unittest_import::ImportMessage* optional_import_message) {
- ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
- if (message_arena == NULL) {
- delete reinterpret_cast< ::google::protobuf::MessageLite*>(optional_import_message_);
- }
- if (optional_import_message) {
- ::google::protobuf::Arena* submessage_arena =
- reinterpret_cast<::google::protobuf::MessageLite*>(optional_import_message)->GetArena();
- if (message_arena != submessage_arena) {
- optional_import_message = ::google::protobuf::internal::GetOwnedMessage(
- message_arena, optional_import_message, submessage_arena);
- }
- set_has_optional_import_message();
- } else {
- clear_has_optional_import_message();
- }
- optional_import_message_ = optional_import_message;
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestAllTypes.optional_import_message)
- }
- // optional .protobuf_unittest.TestAllTypes.NestedEnum optional_nested_enum = 21;
- inline bool TestAllTypes::has_optional_nested_enum() const {
- return (_has_bits_[0] & 0x10000000u) != 0;
- }
- inline void TestAllTypes::set_has_optional_nested_enum() {
- _has_bits_[0] |= 0x10000000u;
- }
- inline void TestAllTypes::clear_has_optional_nested_enum() {
- _has_bits_[0] &= ~0x10000000u;
- }
- inline void TestAllTypes::clear_optional_nested_enum() {
- optional_nested_enum_ = 1;
- clear_has_optional_nested_enum();
- }
- inline ::protobuf_unittest::TestAllTypes_NestedEnum TestAllTypes::optional_nested_enum() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.optional_nested_enum)
- return static_cast< ::protobuf_unittest::TestAllTypes_NestedEnum >(optional_nested_enum_);
- }
- inline void TestAllTypes::set_optional_nested_enum(::protobuf_unittest::TestAllTypes_NestedEnum value) {
- assert(::protobuf_unittest::TestAllTypes_NestedEnum_IsValid(value));
- set_has_optional_nested_enum();
- optional_nested_enum_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.optional_nested_enum)
- }
- // optional .protobuf_unittest.ForeignEnum optional_foreign_enum = 22;
- inline bool TestAllTypes::has_optional_foreign_enum() const {
- return (_has_bits_[0] & 0x20000000u) != 0;
- }
- inline void TestAllTypes::set_has_optional_foreign_enum() {
- _has_bits_[0] |= 0x20000000u;
- }
- inline void TestAllTypes::clear_has_optional_foreign_enum() {
- _has_bits_[0] &= ~0x20000000u;
- }
- inline void TestAllTypes::clear_optional_foreign_enum() {
- optional_foreign_enum_ = 4;
- clear_has_optional_foreign_enum();
- }
- inline ::protobuf_unittest::ForeignEnum TestAllTypes::optional_foreign_enum() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.optional_foreign_enum)
- return static_cast< ::protobuf_unittest::ForeignEnum >(optional_foreign_enum_);
- }
- inline void TestAllTypes::set_optional_foreign_enum(::protobuf_unittest::ForeignEnum value) {
- assert(::protobuf_unittest::ForeignEnum_IsValid(value));
- set_has_optional_foreign_enum();
- optional_foreign_enum_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.optional_foreign_enum)
- }
- // optional .protobuf_unittest_import.ImportEnum optional_import_enum = 23;
- inline bool TestAllTypes::has_optional_import_enum() const {
- return (_has_bits_[0] & 0x40000000u) != 0;
- }
- inline void TestAllTypes::set_has_optional_import_enum() {
- _has_bits_[0] |= 0x40000000u;
- }
- inline void TestAllTypes::clear_has_optional_import_enum() {
- _has_bits_[0] &= ~0x40000000u;
- }
- inline void TestAllTypes::clear_optional_import_enum() {
- optional_import_enum_ = 7;
- clear_has_optional_import_enum();
- }
- inline ::protobuf_unittest_import::ImportEnum TestAllTypes::optional_import_enum() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.optional_import_enum)
- return static_cast< ::protobuf_unittest_import::ImportEnum >(optional_import_enum_);
- }
- inline void TestAllTypes::set_optional_import_enum(::protobuf_unittest_import::ImportEnum value) {
- assert(::protobuf_unittest_import::ImportEnum_IsValid(value));
- set_has_optional_import_enum();
- optional_import_enum_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.optional_import_enum)
- }
- // optional string optional_string_piece = 24 [ctype = STRING_PIECE];
- inline bool TestAllTypes::has_optional_string_piece() const {
- return (_has_bits_[0] & 0x00000004u) != 0;
- }
- inline void TestAllTypes::set_has_optional_string_piece() {
- _has_bits_[0] |= 0x00000004u;
- }
- inline void TestAllTypes::clear_has_optional_string_piece() {
- _has_bits_[0] &= ~0x00000004u;
- }
- inline void TestAllTypes::clear_optional_string_piece() {
- optional_string_piece_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- clear_has_optional_string_piece();
- }
- inline const ::std::string& TestAllTypes::optional_string_piece() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.optional_string_piece)
- return optional_string_piece_.Get();
- }
- inline void TestAllTypes::set_optional_string_piece(const ::std::string& value) {
- set_has_optional_string_piece();
- optional_string_piece_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.optional_string_piece)
- }
- #if LANG_CXX11
- inline void TestAllTypes::set_optional_string_piece(::std::string&& value) {
- set_has_optional_string_piece();
- optional_string_piece_.Set(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestAllTypes.optional_string_piece)
- }
- #endif
- inline void TestAllTypes::set_optional_string_piece(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- set_has_optional_string_piece();
- optional_string_piece_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestAllTypes.optional_string_piece)
- }
- inline void TestAllTypes::set_optional_string_piece(const char* value,
- size_t size) {
- set_has_optional_string_piece();
- optional_string_piece_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
- reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestAllTypes.optional_string_piece)
- }
- inline ::std::string* TestAllTypes::mutable_optional_string_piece() {
- set_has_optional_string_piece();
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypes.optional_string_piece)
- return optional_string_piece_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- }
- inline ::std::string* TestAllTypes::release_optional_string_piece() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestAllTypes.optional_string_piece)
- if (!has_optional_string_piece()) {
- return NULL;
- }
- clear_has_optional_string_piece();
- return optional_string_piece_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- }
- inline void TestAllTypes::set_allocated_optional_string_piece(::std::string* optional_string_piece) {
- if (optional_string_piece != NULL) {
- set_has_optional_string_piece();
- } else {
- clear_has_optional_string_piece();
- }
- optional_string_piece_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), optional_string_piece,
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestAllTypes.optional_string_piece)
- }
- inline ::std::string* TestAllTypes::unsafe_arena_release_optional_string_piece() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestAllTypes.optional_string_piece)
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- clear_has_optional_string_piece();
- return optional_string_piece_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- }
- inline void TestAllTypes::unsafe_arena_set_allocated_optional_string_piece(
- ::std::string* optional_string_piece) {
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- if (optional_string_piece != NULL) {
- set_has_optional_string_piece();
- } else {
- clear_has_optional_string_piece();
- }
- optional_string_piece_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- optional_string_piece, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestAllTypes.optional_string_piece)
- }
- // optional string optional_cord = 25 [ctype = CORD];
- inline bool TestAllTypes::has_optional_cord() const {
- return (_has_bits_[0] & 0x00000008u) != 0;
- }
- inline void TestAllTypes::set_has_optional_cord() {
- _has_bits_[0] |= 0x00000008u;
- }
- inline void TestAllTypes::clear_has_optional_cord() {
- _has_bits_[0] &= ~0x00000008u;
- }
- inline void TestAllTypes::clear_optional_cord() {
- optional_cord_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- clear_has_optional_cord();
- }
- inline const ::std::string& TestAllTypes::optional_cord() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.optional_cord)
- return optional_cord_.Get();
- }
- inline void TestAllTypes::set_optional_cord(const ::std::string& value) {
- set_has_optional_cord();
- optional_cord_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.optional_cord)
- }
- #if LANG_CXX11
- inline void TestAllTypes::set_optional_cord(::std::string&& value) {
- set_has_optional_cord();
- optional_cord_.Set(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestAllTypes.optional_cord)
- }
- #endif
- inline void TestAllTypes::set_optional_cord(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- set_has_optional_cord();
- optional_cord_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestAllTypes.optional_cord)
- }
- inline void TestAllTypes::set_optional_cord(const char* value,
- size_t size) {
- set_has_optional_cord();
- optional_cord_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
- reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestAllTypes.optional_cord)
- }
- inline ::std::string* TestAllTypes::mutable_optional_cord() {
- set_has_optional_cord();
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypes.optional_cord)
- return optional_cord_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- }
- inline ::std::string* TestAllTypes::release_optional_cord() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestAllTypes.optional_cord)
- if (!has_optional_cord()) {
- return NULL;
- }
- clear_has_optional_cord();
- return optional_cord_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- }
- inline void TestAllTypes::set_allocated_optional_cord(::std::string* optional_cord) {
- if (optional_cord != NULL) {
- set_has_optional_cord();
- } else {
- clear_has_optional_cord();
- }
- optional_cord_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), optional_cord,
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestAllTypes.optional_cord)
- }
- inline ::std::string* TestAllTypes::unsafe_arena_release_optional_cord() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestAllTypes.optional_cord)
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- clear_has_optional_cord();
- return optional_cord_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- }
- inline void TestAllTypes::unsafe_arena_set_allocated_optional_cord(
- ::std::string* optional_cord) {
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- if (optional_cord != NULL) {
- set_has_optional_cord();
- } else {
- clear_has_optional_cord();
- }
- optional_cord_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- optional_cord, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestAllTypes.optional_cord)
- }
- // optional .protobuf_unittest_import.PublicImportMessage optional_public_import_message = 26;
- inline bool TestAllTypes::has_optional_public_import_message() const {
- return (_has_bits_[0] & 0x00001000u) != 0;
- }
- inline void TestAllTypes::set_has_optional_public_import_message() {
- _has_bits_[0] |= 0x00001000u;
- }
- inline void TestAllTypes::clear_has_optional_public_import_message() {
- _has_bits_[0] &= ~0x00001000u;
- }
- inline const ::protobuf_unittest_import::PublicImportMessage& TestAllTypes::_internal_optional_public_import_message() const {
- return *optional_public_import_message_;
- }
- inline const ::protobuf_unittest_import::PublicImportMessage& TestAllTypes::optional_public_import_message() const {
- const ::protobuf_unittest_import::PublicImportMessage* p = optional_public_import_message_;
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.optional_public_import_message)
- return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest_import::PublicImportMessage*>(
- &::protobuf_unittest_import::_PublicImportMessage_default_instance_);
- }
- inline ::protobuf_unittest_import::PublicImportMessage* TestAllTypes::release_optional_public_import_message() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestAllTypes.optional_public_import_message)
- clear_has_optional_public_import_message();
- ::protobuf_unittest_import::PublicImportMessage* temp = optional_public_import_message_;
- if (GetArenaNoVirtual() != NULL) {
- temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
- }
- optional_public_import_message_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest_import::PublicImportMessage* TestAllTypes::unsafe_arena_release_optional_public_import_message() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestAllTypes.optional_public_import_message)
- clear_has_optional_public_import_message();
- ::protobuf_unittest_import::PublicImportMessage* temp = optional_public_import_message_;
- optional_public_import_message_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest_import::PublicImportMessage* TestAllTypes::mutable_optional_public_import_message() {
- set_has_optional_public_import_message();
- if (optional_public_import_message_ == NULL) {
- auto* p = CreateMaybeMessage<::protobuf_unittest_import::PublicImportMessage>(GetArenaNoVirtual());
- optional_public_import_message_ = p;
- }
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypes.optional_public_import_message)
- return optional_public_import_message_;
- }
- inline void TestAllTypes::set_allocated_optional_public_import_message(::protobuf_unittest_import::PublicImportMessage* optional_public_import_message) {
- ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
- if (message_arena == NULL) {
- delete reinterpret_cast< ::google::protobuf::MessageLite*>(optional_public_import_message_);
- }
- if (optional_public_import_message) {
- ::google::protobuf::Arena* submessage_arena = NULL;
- if (message_arena != submessage_arena) {
- optional_public_import_message = ::google::protobuf::internal::GetOwnedMessage(
- message_arena, optional_public_import_message, submessage_arena);
- }
- set_has_optional_public_import_message();
- } else {
- clear_has_optional_public_import_message();
- }
- optional_public_import_message_ = optional_public_import_message;
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestAllTypes.optional_public_import_message)
- }
- // optional .protobuf_unittest.TestAllTypes.NestedMessage optional_lazy_message = 27 [lazy = true];
- inline bool TestAllTypes::has_optional_lazy_message() const {
- return (_has_bits_[0] & 0x00002000u) != 0;
- }
- inline void TestAllTypes::set_has_optional_lazy_message() {
- _has_bits_[0] |= 0x00002000u;
- }
- inline void TestAllTypes::clear_has_optional_lazy_message() {
- _has_bits_[0] &= ~0x00002000u;
- }
- inline void TestAllTypes::clear_optional_lazy_message() {
- if (optional_lazy_message_ != NULL) optional_lazy_message_->Clear();
- clear_has_optional_lazy_message();
- }
- inline const ::protobuf_unittest::TestAllTypes_NestedMessage& TestAllTypes::_internal_optional_lazy_message() const {
- return *optional_lazy_message_;
- }
- inline const ::protobuf_unittest::TestAllTypes_NestedMessage& TestAllTypes::optional_lazy_message() const {
- const ::protobuf_unittest::TestAllTypes_NestedMessage* p = optional_lazy_message_;
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.optional_lazy_message)
- return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestAllTypes_NestedMessage*>(
- &::protobuf_unittest::_TestAllTypes_NestedMessage_default_instance_);
- }
- inline ::protobuf_unittest::TestAllTypes_NestedMessage* TestAllTypes::release_optional_lazy_message() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestAllTypes.optional_lazy_message)
- clear_has_optional_lazy_message();
- ::protobuf_unittest::TestAllTypes_NestedMessage* temp = optional_lazy_message_;
- if (GetArenaNoVirtual() != NULL) {
- temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
- }
- optional_lazy_message_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestAllTypes_NestedMessage* TestAllTypes::unsafe_arena_release_optional_lazy_message() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestAllTypes.optional_lazy_message)
- clear_has_optional_lazy_message();
- ::protobuf_unittest::TestAllTypes_NestedMessage* temp = optional_lazy_message_;
- optional_lazy_message_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestAllTypes_NestedMessage* TestAllTypes::mutable_optional_lazy_message() {
- set_has_optional_lazy_message();
- if (optional_lazy_message_ == NULL) {
- auto* p = CreateMaybeMessage<::protobuf_unittest::TestAllTypes_NestedMessage>(GetArenaNoVirtual());
- optional_lazy_message_ = p;
- }
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypes.optional_lazy_message)
- return optional_lazy_message_;
- }
- inline void TestAllTypes::set_allocated_optional_lazy_message(::protobuf_unittest::TestAllTypes_NestedMessage* optional_lazy_message) {
- ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
- if (message_arena == NULL) {
- delete optional_lazy_message_;
- }
- if (optional_lazy_message) {
- ::google::protobuf::Arena* submessage_arena =
- ::google::protobuf::Arena::GetArena(optional_lazy_message);
- if (message_arena != submessage_arena) {
- optional_lazy_message = ::google::protobuf::internal::GetOwnedMessage(
- message_arena, optional_lazy_message, submessage_arena);
- }
- set_has_optional_lazy_message();
- } else {
- clear_has_optional_lazy_message();
- }
- optional_lazy_message_ = optional_lazy_message;
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestAllTypes.optional_lazy_message)
- }
- // repeated int32 repeated_int32 = 31;
- inline int TestAllTypes::repeated_int32_size() const {
- return repeated_int32_.size();
- }
- inline void TestAllTypes::clear_repeated_int32() {
- repeated_int32_.Clear();
- }
- inline ::google::protobuf::int32 TestAllTypes::repeated_int32(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.repeated_int32)
- return repeated_int32_.Get(index);
- }
- inline void TestAllTypes::set_repeated_int32(int index, ::google::protobuf::int32 value) {
- repeated_int32_.Set(index, value);
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.repeated_int32)
- }
- inline void TestAllTypes::add_repeated_int32(::google::protobuf::int32 value) {
- repeated_int32_.Add(value);
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypes.repeated_int32)
- }
- inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
- TestAllTypes::repeated_int32() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypes.repeated_int32)
- return repeated_int32_;
- }
- inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
- TestAllTypes::mutable_repeated_int32() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypes.repeated_int32)
- return &repeated_int32_;
- }
- // repeated int64 repeated_int64 = 32;
- inline int TestAllTypes::repeated_int64_size() const {
- return repeated_int64_.size();
- }
- inline void TestAllTypes::clear_repeated_int64() {
- repeated_int64_.Clear();
- }
- inline ::google::protobuf::int64 TestAllTypes::repeated_int64(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.repeated_int64)
- return repeated_int64_.Get(index);
- }
- inline void TestAllTypes::set_repeated_int64(int index, ::google::protobuf::int64 value) {
- repeated_int64_.Set(index, value);
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.repeated_int64)
- }
- inline void TestAllTypes::add_repeated_int64(::google::protobuf::int64 value) {
- repeated_int64_.Add(value);
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypes.repeated_int64)
- }
- inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
- TestAllTypes::repeated_int64() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypes.repeated_int64)
- return repeated_int64_;
- }
- inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
- TestAllTypes::mutable_repeated_int64() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypes.repeated_int64)
- return &repeated_int64_;
- }
- // repeated uint32 repeated_uint32 = 33;
- inline int TestAllTypes::repeated_uint32_size() const {
- return repeated_uint32_.size();
- }
- inline void TestAllTypes::clear_repeated_uint32() {
- repeated_uint32_.Clear();
- }
- inline ::google::protobuf::uint32 TestAllTypes::repeated_uint32(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.repeated_uint32)
- return repeated_uint32_.Get(index);
- }
- inline void TestAllTypes::set_repeated_uint32(int index, ::google::protobuf::uint32 value) {
- repeated_uint32_.Set(index, value);
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.repeated_uint32)
- }
- inline void TestAllTypes::add_repeated_uint32(::google::protobuf::uint32 value) {
- repeated_uint32_.Add(value);
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypes.repeated_uint32)
- }
- inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
- TestAllTypes::repeated_uint32() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypes.repeated_uint32)
- return repeated_uint32_;
- }
- inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
- TestAllTypes::mutable_repeated_uint32() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypes.repeated_uint32)
- return &repeated_uint32_;
- }
- // repeated uint64 repeated_uint64 = 34;
- inline int TestAllTypes::repeated_uint64_size() const {
- return repeated_uint64_.size();
- }
- inline void TestAllTypes::clear_repeated_uint64() {
- repeated_uint64_.Clear();
- }
- inline ::google::protobuf::uint64 TestAllTypes::repeated_uint64(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.repeated_uint64)
- return repeated_uint64_.Get(index);
- }
- inline void TestAllTypes::set_repeated_uint64(int index, ::google::protobuf::uint64 value) {
- repeated_uint64_.Set(index, value);
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.repeated_uint64)
- }
- inline void TestAllTypes::add_repeated_uint64(::google::protobuf::uint64 value) {
- repeated_uint64_.Add(value);
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypes.repeated_uint64)
- }
- inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
- TestAllTypes::repeated_uint64() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypes.repeated_uint64)
- return repeated_uint64_;
- }
- inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
- TestAllTypes::mutable_repeated_uint64() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypes.repeated_uint64)
- return &repeated_uint64_;
- }
- // repeated sint32 repeated_sint32 = 35;
- inline int TestAllTypes::repeated_sint32_size() const {
- return repeated_sint32_.size();
- }
- inline void TestAllTypes::clear_repeated_sint32() {
- repeated_sint32_.Clear();
- }
- inline ::google::protobuf::int32 TestAllTypes::repeated_sint32(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.repeated_sint32)
- return repeated_sint32_.Get(index);
- }
- inline void TestAllTypes::set_repeated_sint32(int index, ::google::protobuf::int32 value) {
- repeated_sint32_.Set(index, value);
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.repeated_sint32)
- }
- inline void TestAllTypes::add_repeated_sint32(::google::protobuf::int32 value) {
- repeated_sint32_.Add(value);
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypes.repeated_sint32)
- }
- inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
- TestAllTypes::repeated_sint32() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypes.repeated_sint32)
- return repeated_sint32_;
- }
- inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
- TestAllTypes::mutable_repeated_sint32() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypes.repeated_sint32)
- return &repeated_sint32_;
- }
- // repeated sint64 repeated_sint64 = 36;
- inline int TestAllTypes::repeated_sint64_size() const {
- return repeated_sint64_.size();
- }
- inline void TestAllTypes::clear_repeated_sint64() {
- repeated_sint64_.Clear();
- }
- inline ::google::protobuf::int64 TestAllTypes::repeated_sint64(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.repeated_sint64)
- return repeated_sint64_.Get(index);
- }
- inline void TestAllTypes::set_repeated_sint64(int index, ::google::protobuf::int64 value) {
- repeated_sint64_.Set(index, value);
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.repeated_sint64)
- }
- inline void TestAllTypes::add_repeated_sint64(::google::protobuf::int64 value) {
- repeated_sint64_.Add(value);
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypes.repeated_sint64)
- }
- inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
- TestAllTypes::repeated_sint64() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypes.repeated_sint64)
- return repeated_sint64_;
- }
- inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
- TestAllTypes::mutable_repeated_sint64() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypes.repeated_sint64)
- return &repeated_sint64_;
- }
- // repeated fixed32 repeated_fixed32 = 37;
- inline int TestAllTypes::repeated_fixed32_size() const {
- return repeated_fixed32_.size();
- }
- inline void TestAllTypes::clear_repeated_fixed32() {
- repeated_fixed32_.Clear();
- }
- inline ::google::protobuf::uint32 TestAllTypes::repeated_fixed32(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.repeated_fixed32)
- return repeated_fixed32_.Get(index);
- }
- inline void TestAllTypes::set_repeated_fixed32(int index, ::google::protobuf::uint32 value) {
- repeated_fixed32_.Set(index, value);
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.repeated_fixed32)
- }
- inline void TestAllTypes::add_repeated_fixed32(::google::protobuf::uint32 value) {
- repeated_fixed32_.Add(value);
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypes.repeated_fixed32)
- }
- inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
- TestAllTypes::repeated_fixed32() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypes.repeated_fixed32)
- return repeated_fixed32_;
- }
- inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
- TestAllTypes::mutable_repeated_fixed32() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypes.repeated_fixed32)
- return &repeated_fixed32_;
- }
- // repeated fixed64 repeated_fixed64 = 38;
- inline int TestAllTypes::repeated_fixed64_size() const {
- return repeated_fixed64_.size();
- }
- inline void TestAllTypes::clear_repeated_fixed64() {
- repeated_fixed64_.Clear();
- }
- inline ::google::protobuf::uint64 TestAllTypes::repeated_fixed64(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.repeated_fixed64)
- return repeated_fixed64_.Get(index);
- }
- inline void TestAllTypes::set_repeated_fixed64(int index, ::google::protobuf::uint64 value) {
- repeated_fixed64_.Set(index, value);
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.repeated_fixed64)
- }
- inline void TestAllTypes::add_repeated_fixed64(::google::protobuf::uint64 value) {
- repeated_fixed64_.Add(value);
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypes.repeated_fixed64)
- }
- inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
- TestAllTypes::repeated_fixed64() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypes.repeated_fixed64)
- return repeated_fixed64_;
- }
- inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
- TestAllTypes::mutable_repeated_fixed64() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypes.repeated_fixed64)
- return &repeated_fixed64_;
- }
- // repeated sfixed32 repeated_sfixed32 = 39;
- inline int TestAllTypes::repeated_sfixed32_size() const {
- return repeated_sfixed32_.size();
- }
- inline void TestAllTypes::clear_repeated_sfixed32() {
- repeated_sfixed32_.Clear();
- }
- inline ::google::protobuf::int32 TestAllTypes::repeated_sfixed32(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.repeated_sfixed32)
- return repeated_sfixed32_.Get(index);
- }
- inline void TestAllTypes::set_repeated_sfixed32(int index, ::google::protobuf::int32 value) {
- repeated_sfixed32_.Set(index, value);
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.repeated_sfixed32)
- }
- inline void TestAllTypes::add_repeated_sfixed32(::google::protobuf::int32 value) {
- repeated_sfixed32_.Add(value);
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypes.repeated_sfixed32)
- }
- inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
- TestAllTypes::repeated_sfixed32() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypes.repeated_sfixed32)
- return repeated_sfixed32_;
- }
- inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
- TestAllTypes::mutable_repeated_sfixed32() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypes.repeated_sfixed32)
- return &repeated_sfixed32_;
- }
- // repeated sfixed64 repeated_sfixed64 = 40;
- inline int TestAllTypes::repeated_sfixed64_size() const {
- return repeated_sfixed64_.size();
- }
- inline void TestAllTypes::clear_repeated_sfixed64() {
- repeated_sfixed64_.Clear();
- }
- inline ::google::protobuf::int64 TestAllTypes::repeated_sfixed64(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.repeated_sfixed64)
- return repeated_sfixed64_.Get(index);
- }
- inline void TestAllTypes::set_repeated_sfixed64(int index, ::google::protobuf::int64 value) {
- repeated_sfixed64_.Set(index, value);
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.repeated_sfixed64)
- }
- inline void TestAllTypes::add_repeated_sfixed64(::google::protobuf::int64 value) {
- repeated_sfixed64_.Add(value);
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypes.repeated_sfixed64)
- }
- inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
- TestAllTypes::repeated_sfixed64() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypes.repeated_sfixed64)
- return repeated_sfixed64_;
- }
- inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
- TestAllTypes::mutable_repeated_sfixed64() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypes.repeated_sfixed64)
- return &repeated_sfixed64_;
- }
- // repeated float repeated_float = 41;
- inline int TestAllTypes::repeated_float_size() const {
- return repeated_float_.size();
- }
- inline void TestAllTypes::clear_repeated_float() {
- repeated_float_.Clear();
- }
- inline float TestAllTypes::repeated_float(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.repeated_float)
- return repeated_float_.Get(index);
- }
- inline void TestAllTypes::set_repeated_float(int index, float value) {
- repeated_float_.Set(index, value);
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.repeated_float)
- }
- inline void TestAllTypes::add_repeated_float(float value) {
- repeated_float_.Add(value);
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypes.repeated_float)
- }
- inline const ::google::protobuf::RepeatedField< float >&
- TestAllTypes::repeated_float() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypes.repeated_float)
- return repeated_float_;
- }
- inline ::google::protobuf::RepeatedField< float >*
- TestAllTypes::mutable_repeated_float() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypes.repeated_float)
- return &repeated_float_;
- }
- // repeated double repeated_double = 42;
- inline int TestAllTypes::repeated_double_size() const {
- return repeated_double_.size();
- }
- inline void TestAllTypes::clear_repeated_double() {
- repeated_double_.Clear();
- }
- inline double TestAllTypes::repeated_double(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.repeated_double)
- return repeated_double_.Get(index);
- }
- inline void TestAllTypes::set_repeated_double(int index, double value) {
- repeated_double_.Set(index, value);
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.repeated_double)
- }
- inline void TestAllTypes::add_repeated_double(double value) {
- repeated_double_.Add(value);
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypes.repeated_double)
- }
- inline const ::google::protobuf::RepeatedField< double >&
- TestAllTypes::repeated_double() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypes.repeated_double)
- return repeated_double_;
- }
- inline ::google::protobuf::RepeatedField< double >*
- TestAllTypes::mutable_repeated_double() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypes.repeated_double)
- return &repeated_double_;
- }
- // repeated bool repeated_bool = 43;
- inline int TestAllTypes::repeated_bool_size() const {
- return repeated_bool_.size();
- }
- inline void TestAllTypes::clear_repeated_bool() {
- repeated_bool_.Clear();
- }
- inline bool TestAllTypes::repeated_bool(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.repeated_bool)
- return repeated_bool_.Get(index);
- }
- inline void TestAllTypes::set_repeated_bool(int index, bool value) {
- repeated_bool_.Set(index, value);
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.repeated_bool)
- }
- inline void TestAllTypes::add_repeated_bool(bool value) {
- repeated_bool_.Add(value);
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypes.repeated_bool)
- }
- inline const ::google::protobuf::RepeatedField< bool >&
- TestAllTypes::repeated_bool() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypes.repeated_bool)
- return repeated_bool_;
- }
- inline ::google::protobuf::RepeatedField< bool >*
- TestAllTypes::mutable_repeated_bool() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypes.repeated_bool)
- return &repeated_bool_;
- }
- // repeated string repeated_string = 44;
- inline int TestAllTypes::repeated_string_size() const {
- return repeated_string_.size();
- }
- inline void TestAllTypes::clear_repeated_string() {
- repeated_string_.Clear();
- }
- inline const ::std::string& TestAllTypes::repeated_string(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.repeated_string)
- return repeated_string_.Get(index);
- }
- inline ::std::string* TestAllTypes::mutable_repeated_string(int index) {
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypes.repeated_string)
- return repeated_string_.Mutable(index);
- }
- inline void TestAllTypes::set_repeated_string(int index, const ::std::string& value) {
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.repeated_string)
- repeated_string_.Mutable(index)->assign(value);
- }
- #if LANG_CXX11
- inline void TestAllTypes::set_repeated_string(int index, ::std::string&& value) {
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.repeated_string)
- repeated_string_.Mutable(index)->assign(std::move(value));
- }
- #endif
- inline void TestAllTypes::set_repeated_string(int index, const char* value) {
- GOOGLE_DCHECK(value != NULL);
- repeated_string_.Mutable(index)->assign(value);
- // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestAllTypes.repeated_string)
- }
- inline void TestAllTypes::set_repeated_string(int index, const char* value, size_t size) {
- repeated_string_.Mutable(index)->assign(
- reinterpret_cast<const char*>(value), size);
- // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestAllTypes.repeated_string)
- }
- inline ::std::string* TestAllTypes::add_repeated_string() {
- // @@protoc_insertion_point(field_add_mutable:protobuf_unittest.TestAllTypes.repeated_string)
- return repeated_string_.Add();
- }
- inline void TestAllTypes::add_repeated_string(const ::std::string& value) {
- repeated_string_.Add()->assign(value);
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypes.repeated_string)
- }
- #if LANG_CXX11
- inline void TestAllTypes::add_repeated_string(::std::string&& value) {
- repeated_string_.Add(std::move(value));
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypes.repeated_string)
- }
- #endif
- inline void TestAllTypes::add_repeated_string(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- repeated_string_.Add()->assign(value);
- // @@protoc_insertion_point(field_add_char:protobuf_unittest.TestAllTypes.repeated_string)
- }
- inline void TestAllTypes::add_repeated_string(const char* value, size_t size) {
- repeated_string_.Add()->assign(reinterpret_cast<const char*>(value), size);
- // @@protoc_insertion_point(field_add_pointer:protobuf_unittest.TestAllTypes.repeated_string)
- }
- inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
- TestAllTypes::repeated_string() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypes.repeated_string)
- return repeated_string_;
- }
- inline ::google::protobuf::RepeatedPtrField< ::std::string>*
- TestAllTypes::mutable_repeated_string() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypes.repeated_string)
- return &repeated_string_;
- }
- // repeated bytes repeated_bytes = 45;
- inline int TestAllTypes::repeated_bytes_size() const {
- return repeated_bytes_.size();
- }
- inline void TestAllTypes::clear_repeated_bytes() {
- repeated_bytes_.Clear();
- }
- inline const ::std::string& TestAllTypes::repeated_bytes(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.repeated_bytes)
- return repeated_bytes_.Get(index);
- }
- inline ::std::string* TestAllTypes::mutable_repeated_bytes(int index) {
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypes.repeated_bytes)
- return repeated_bytes_.Mutable(index);
- }
- inline void TestAllTypes::set_repeated_bytes(int index, const ::std::string& value) {
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.repeated_bytes)
- repeated_bytes_.Mutable(index)->assign(value);
- }
- #if LANG_CXX11
- inline void TestAllTypes::set_repeated_bytes(int index, ::std::string&& value) {
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.repeated_bytes)
- repeated_bytes_.Mutable(index)->assign(std::move(value));
- }
- #endif
- inline void TestAllTypes::set_repeated_bytes(int index, const char* value) {
- GOOGLE_DCHECK(value != NULL);
- repeated_bytes_.Mutable(index)->assign(value);
- // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestAllTypes.repeated_bytes)
- }
- inline void TestAllTypes::set_repeated_bytes(int index, const void* value, size_t size) {
- repeated_bytes_.Mutable(index)->assign(
- reinterpret_cast<const char*>(value), size);
- // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestAllTypes.repeated_bytes)
- }
- inline ::std::string* TestAllTypes::add_repeated_bytes() {
- // @@protoc_insertion_point(field_add_mutable:protobuf_unittest.TestAllTypes.repeated_bytes)
- return repeated_bytes_.Add();
- }
- inline void TestAllTypes::add_repeated_bytes(const ::std::string& value) {
- repeated_bytes_.Add()->assign(value);
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypes.repeated_bytes)
- }
- #if LANG_CXX11
- inline void TestAllTypes::add_repeated_bytes(::std::string&& value) {
- repeated_bytes_.Add(std::move(value));
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypes.repeated_bytes)
- }
- #endif
- inline void TestAllTypes::add_repeated_bytes(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- repeated_bytes_.Add()->assign(value);
- // @@protoc_insertion_point(field_add_char:protobuf_unittest.TestAllTypes.repeated_bytes)
- }
- inline void TestAllTypes::add_repeated_bytes(const void* value, size_t size) {
- repeated_bytes_.Add()->assign(reinterpret_cast<const char*>(value), size);
- // @@protoc_insertion_point(field_add_pointer:protobuf_unittest.TestAllTypes.repeated_bytes)
- }
- inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
- TestAllTypes::repeated_bytes() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypes.repeated_bytes)
- return repeated_bytes_;
- }
- inline ::google::protobuf::RepeatedPtrField< ::std::string>*
- TestAllTypes::mutable_repeated_bytes() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypes.repeated_bytes)
- return &repeated_bytes_;
- }
- // repeated group RepeatedGroup = 46 { ... };
- inline int TestAllTypes::repeatedgroup_size() const {
- return repeatedgroup_.size();
- }
- inline void TestAllTypes::clear_repeatedgroup() {
- repeatedgroup_.Clear();
- }
- inline ::protobuf_unittest::TestAllTypes_RepeatedGroup* TestAllTypes::mutable_repeatedgroup(int index) {
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypes.repeatedgroup)
- return repeatedgroup_.Mutable(index);
- }
- inline ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes_RepeatedGroup >*
- TestAllTypes::mutable_repeatedgroup() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypes.repeatedgroup)
- return &repeatedgroup_;
- }
- inline const ::protobuf_unittest::TestAllTypes_RepeatedGroup& TestAllTypes::repeatedgroup(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.repeatedgroup)
- return repeatedgroup_.Get(index);
- }
- inline ::protobuf_unittest::TestAllTypes_RepeatedGroup* TestAllTypes::add_repeatedgroup() {
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypes.repeatedgroup)
- return repeatedgroup_.Add();
- }
- inline const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes_RepeatedGroup >&
- TestAllTypes::repeatedgroup() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypes.repeatedgroup)
- return repeatedgroup_;
- }
- // repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48;
- inline int TestAllTypes::repeated_nested_message_size() const {
- return repeated_nested_message_.size();
- }
- inline void TestAllTypes::clear_repeated_nested_message() {
- repeated_nested_message_.Clear();
- }
- inline ::protobuf_unittest::TestAllTypes_NestedMessage* TestAllTypes::mutable_repeated_nested_message(int index) {
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypes.repeated_nested_message)
- return repeated_nested_message_.Mutable(index);
- }
- inline ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes_NestedMessage >*
- TestAllTypes::mutable_repeated_nested_message() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypes.repeated_nested_message)
- return &repeated_nested_message_;
- }
- inline const ::protobuf_unittest::TestAllTypes_NestedMessage& TestAllTypes::repeated_nested_message(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.repeated_nested_message)
- return repeated_nested_message_.Get(index);
- }
- inline ::protobuf_unittest::TestAllTypes_NestedMessage* TestAllTypes::add_repeated_nested_message() {
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypes.repeated_nested_message)
- return repeated_nested_message_.Add();
- }
- inline const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes_NestedMessage >&
- TestAllTypes::repeated_nested_message() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypes.repeated_nested_message)
- return repeated_nested_message_;
- }
- // repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49;
- inline int TestAllTypes::repeated_foreign_message_size() const {
- return repeated_foreign_message_.size();
- }
- inline void TestAllTypes::clear_repeated_foreign_message() {
- repeated_foreign_message_.Clear();
- }
- inline ::protobuf_unittest::ForeignMessage* TestAllTypes::mutable_repeated_foreign_message(int index) {
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypes.repeated_foreign_message)
- return repeated_foreign_message_.Mutable(index);
- }
- inline ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::ForeignMessage >*
- TestAllTypes::mutable_repeated_foreign_message() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypes.repeated_foreign_message)
- return &repeated_foreign_message_;
- }
- inline const ::protobuf_unittest::ForeignMessage& TestAllTypes::repeated_foreign_message(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.repeated_foreign_message)
- return repeated_foreign_message_.Get(index);
- }
- inline ::protobuf_unittest::ForeignMessage* TestAllTypes::add_repeated_foreign_message() {
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypes.repeated_foreign_message)
- return repeated_foreign_message_.Add();
- }
- inline const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::ForeignMessage >&
- TestAllTypes::repeated_foreign_message() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypes.repeated_foreign_message)
- return repeated_foreign_message_;
- }
- // repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50;
- inline int TestAllTypes::repeated_import_message_size() const {
- return repeated_import_message_.size();
- }
- inline ::protobuf_unittest_import::ImportMessage* TestAllTypes::mutable_repeated_import_message(int index) {
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypes.repeated_import_message)
- return repeated_import_message_.Mutable(index);
- }
- inline ::google::protobuf::RepeatedPtrField< ::protobuf_unittest_import::ImportMessage >*
- TestAllTypes::mutable_repeated_import_message() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypes.repeated_import_message)
- return &repeated_import_message_;
- }
- inline const ::protobuf_unittest_import::ImportMessage& TestAllTypes::repeated_import_message(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.repeated_import_message)
- return repeated_import_message_.Get(index);
- }
- inline ::protobuf_unittest_import::ImportMessage* TestAllTypes::add_repeated_import_message() {
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypes.repeated_import_message)
- return repeated_import_message_.Add();
- }
- inline const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest_import::ImportMessage >&
- TestAllTypes::repeated_import_message() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypes.repeated_import_message)
- return repeated_import_message_;
- }
- // repeated .protobuf_unittest.TestAllTypes.NestedEnum repeated_nested_enum = 51;
- inline int TestAllTypes::repeated_nested_enum_size() const {
- return repeated_nested_enum_.size();
- }
- inline void TestAllTypes::clear_repeated_nested_enum() {
- repeated_nested_enum_.Clear();
- }
- inline ::protobuf_unittest::TestAllTypes_NestedEnum TestAllTypes::repeated_nested_enum(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.repeated_nested_enum)
- return static_cast< ::protobuf_unittest::TestAllTypes_NestedEnum >(repeated_nested_enum_.Get(index));
- }
- inline void TestAllTypes::set_repeated_nested_enum(int index, ::protobuf_unittest::TestAllTypes_NestedEnum value) {
- assert(::protobuf_unittest::TestAllTypes_NestedEnum_IsValid(value));
- repeated_nested_enum_.Set(index, value);
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.repeated_nested_enum)
- }
- inline void TestAllTypes::add_repeated_nested_enum(::protobuf_unittest::TestAllTypes_NestedEnum value) {
- assert(::protobuf_unittest::TestAllTypes_NestedEnum_IsValid(value));
- repeated_nested_enum_.Add(value);
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypes.repeated_nested_enum)
- }
- inline const ::google::protobuf::RepeatedField<int>&
- TestAllTypes::repeated_nested_enum() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypes.repeated_nested_enum)
- return repeated_nested_enum_;
- }
- inline ::google::protobuf::RepeatedField<int>*
- TestAllTypes::mutable_repeated_nested_enum() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypes.repeated_nested_enum)
- return &repeated_nested_enum_;
- }
- // repeated .protobuf_unittest.ForeignEnum repeated_foreign_enum = 52;
- inline int TestAllTypes::repeated_foreign_enum_size() const {
- return repeated_foreign_enum_.size();
- }
- inline void TestAllTypes::clear_repeated_foreign_enum() {
- repeated_foreign_enum_.Clear();
- }
- inline ::protobuf_unittest::ForeignEnum TestAllTypes::repeated_foreign_enum(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.repeated_foreign_enum)
- return static_cast< ::protobuf_unittest::ForeignEnum >(repeated_foreign_enum_.Get(index));
- }
- inline void TestAllTypes::set_repeated_foreign_enum(int index, ::protobuf_unittest::ForeignEnum value) {
- assert(::protobuf_unittest::ForeignEnum_IsValid(value));
- repeated_foreign_enum_.Set(index, value);
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.repeated_foreign_enum)
- }
- inline void TestAllTypes::add_repeated_foreign_enum(::protobuf_unittest::ForeignEnum value) {
- assert(::protobuf_unittest::ForeignEnum_IsValid(value));
- repeated_foreign_enum_.Add(value);
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypes.repeated_foreign_enum)
- }
- inline const ::google::protobuf::RepeatedField<int>&
- TestAllTypes::repeated_foreign_enum() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypes.repeated_foreign_enum)
- return repeated_foreign_enum_;
- }
- inline ::google::protobuf::RepeatedField<int>*
- TestAllTypes::mutable_repeated_foreign_enum() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypes.repeated_foreign_enum)
- return &repeated_foreign_enum_;
- }
- // repeated .protobuf_unittest_import.ImportEnum repeated_import_enum = 53;
- inline int TestAllTypes::repeated_import_enum_size() const {
- return repeated_import_enum_.size();
- }
- inline void TestAllTypes::clear_repeated_import_enum() {
- repeated_import_enum_.Clear();
- }
- inline ::protobuf_unittest_import::ImportEnum TestAllTypes::repeated_import_enum(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.repeated_import_enum)
- return static_cast< ::protobuf_unittest_import::ImportEnum >(repeated_import_enum_.Get(index));
- }
- inline void TestAllTypes::set_repeated_import_enum(int index, ::protobuf_unittest_import::ImportEnum value) {
- assert(::protobuf_unittest_import::ImportEnum_IsValid(value));
- repeated_import_enum_.Set(index, value);
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.repeated_import_enum)
- }
- inline void TestAllTypes::add_repeated_import_enum(::protobuf_unittest_import::ImportEnum value) {
- assert(::protobuf_unittest_import::ImportEnum_IsValid(value));
- repeated_import_enum_.Add(value);
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypes.repeated_import_enum)
- }
- inline const ::google::protobuf::RepeatedField<int>&
- TestAllTypes::repeated_import_enum() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypes.repeated_import_enum)
- return repeated_import_enum_;
- }
- inline ::google::protobuf::RepeatedField<int>*
- TestAllTypes::mutable_repeated_import_enum() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypes.repeated_import_enum)
- return &repeated_import_enum_;
- }
- // repeated string repeated_string_piece = 54 [ctype = STRING_PIECE];
- inline int TestAllTypes::repeated_string_piece_size() const {
- return repeated_string_piece_.size();
- }
- inline void TestAllTypes::clear_repeated_string_piece() {
- repeated_string_piece_.Clear();
- }
- inline const ::std::string& TestAllTypes::repeated_string_piece(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.repeated_string_piece)
- return repeated_string_piece_.Get(index);
- }
- inline ::std::string* TestAllTypes::mutable_repeated_string_piece(int index) {
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypes.repeated_string_piece)
- return repeated_string_piece_.Mutable(index);
- }
- inline void TestAllTypes::set_repeated_string_piece(int index, const ::std::string& value) {
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.repeated_string_piece)
- repeated_string_piece_.Mutable(index)->assign(value);
- }
- #if LANG_CXX11
- inline void TestAllTypes::set_repeated_string_piece(int index, ::std::string&& value) {
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.repeated_string_piece)
- repeated_string_piece_.Mutable(index)->assign(std::move(value));
- }
- #endif
- inline void TestAllTypes::set_repeated_string_piece(int index, const char* value) {
- GOOGLE_DCHECK(value != NULL);
- repeated_string_piece_.Mutable(index)->assign(value);
- // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestAllTypes.repeated_string_piece)
- }
- inline void TestAllTypes::set_repeated_string_piece(int index, const char* value, size_t size) {
- repeated_string_piece_.Mutable(index)->assign(
- reinterpret_cast<const char*>(value), size);
- // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestAllTypes.repeated_string_piece)
- }
- inline ::std::string* TestAllTypes::add_repeated_string_piece() {
- // @@protoc_insertion_point(field_add_mutable:protobuf_unittest.TestAllTypes.repeated_string_piece)
- return repeated_string_piece_.Add();
- }
- inline void TestAllTypes::add_repeated_string_piece(const ::std::string& value) {
- repeated_string_piece_.Add()->assign(value);
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypes.repeated_string_piece)
- }
- #if LANG_CXX11
- inline void TestAllTypes::add_repeated_string_piece(::std::string&& value) {
- repeated_string_piece_.Add(std::move(value));
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypes.repeated_string_piece)
- }
- #endif
- inline void TestAllTypes::add_repeated_string_piece(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- repeated_string_piece_.Add()->assign(value);
- // @@protoc_insertion_point(field_add_char:protobuf_unittest.TestAllTypes.repeated_string_piece)
- }
- inline void TestAllTypes::add_repeated_string_piece(const char* value, size_t size) {
- repeated_string_piece_.Add()->assign(reinterpret_cast<const char*>(value), size);
- // @@protoc_insertion_point(field_add_pointer:protobuf_unittest.TestAllTypes.repeated_string_piece)
- }
- inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
- TestAllTypes::repeated_string_piece() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypes.repeated_string_piece)
- return repeated_string_piece_;
- }
- inline ::google::protobuf::RepeatedPtrField< ::std::string>*
- TestAllTypes::mutable_repeated_string_piece() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypes.repeated_string_piece)
- return &repeated_string_piece_;
- }
- // repeated string repeated_cord = 55 [ctype = CORD];
- inline int TestAllTypes::repeated_cord_size() const {
- return repeated_cord_.size();
- }
- inline void TestAllTypes::clear_repeated_cord() {
- repeated_cord_.Clear();
- }
- inline const ::std::string& TestAllTypes::repeated_cord(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.repeated_cord)
- return repeated_cord_.Get(index);
- }
- inline ::std::string* TestAllTypes::mutable_repeated_cord(int index) {
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypes.repeated_cord)
- return repeated_cord_.Mutable(index);
- }
- inline void TestAllTypes::set_repeated_cord(int index, const ::std::string& value) {
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.repeated_cord)
- repeated_cord_.Mutable(index)->assign(value);
- }
- #if LANG_CXX11
- inline void TestAllTypes::set_repeated_cord(int index, ::std::string&& value) {
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.repeated_cord)
- repeated_cord_.Mutable(index)->assign(std::move(value));
- }
- #endif
- inline void TestAllTypes::set_repeated_cord(int index, const char* value) {
- GOOGLE_DCHECK(value != NULL);
- repeated_cord_.Mutable(index)->assign(value);
- // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestAllTypes.repeated_cord)
- }
- inline void TestAllTypes::set_repeated_cord(int index, const char* value, size_t size) {
- repeated_cord_.Mutable(index)->assign(
- reinterpret_cast<const char*>(value), size);
- // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestAllTypes.repeated_cord)
- }
- inline ::std::string* TestAllTypes::add_repeated_cord() {
- // @@protoc_insertion_point(field_add_mutable:protobuf_unittest.TestAllTypes.repeated_cord)
- return repeated_cord_.Add();
- }
- inline void TestAllTypes::add_repeated_cord(const ::std::string& value) {
- repeated_cord_.Add()->assign(value);
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypes.repeated_cord)
- }
- #if LANG_CXX11
- inline void TestAllTypes::add_repeated_cord(::std::string&& value) {
- repeated_cord_.Add(std::move(value));
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypes.repeated_cord)
- }
- #endif
- inline void TestAllTypes::add_repeated_cord(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- repeated_cord_.Add()->assign(value);
- // @@protoc_insertion_point(field_add_char:protobuf_unittest.TestAllTypes.repeated_cord)
- }
- inline void TestAllTypes::add_repeated_cord(const char* value, size_t size) {
- repeated_cord_.Add()->assign(reinterpret_cast<const char*>(value), size);
- // @@protoc_insertion_point(field_add_pointer:protobuf_unittest.TestAllTypes.repeated_cord)
- }
- inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
- TestAllTypes::repeated_cord() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypes.repeated_cord)
- return repeated_cord_;
- }
- inline ::google::protobuf::RepeatedPtrField< ::std::string>*
- TestAllTypes::mutable_repeated_cord() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypes.repeated_cord)
- return &repeated_cord_;
- }
- // repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_lazy_message = 57 [lazy = true];
- inline int TestAllTypes::repeated_lazy_message_size() const {
- return repeated_lazy_message_.size();
- }
- inline void TestAllTypes::clear_repeated_lazy_message() {
- repeated_lazy_message_.Clear();
- }
- inline ::protobuf_unittest::TestAllTypes_NestedMessage* TestAllTypes::mutable_repeated_lazy_message(int index) {
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypes.repeated_lazy_message)
- return repeated_lazy_message_.Mutable(index);
- }
- inline ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes_NestedMessage >*
- TestAllTypes::mutable_repeated_lazy_message() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypes.repeated_lazy_message)
- return &repeated_lazy_message_;
- }
- inline const ::protobuf_unittest::TestAllTypes_NestedMessage& TestAllTypes::repeated_lazy_message(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.repeated_lazy_message)
- return repeated_lazy_message_.Get(index);
- }
- inline ::protobuf_unittest::TestAllTypes_NestedMessage* TestAllTypes::add_repeated_lazy_message() {
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypes.repeated_lazy_message)
- return repeated_lazy_message_.Add();
- }
- inline const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes_NestedMessage >&
- TestAllTypes::repeated_lazy_message() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypes.repeated_lazy_message)
- return repeated_lazy_message_;
- }
- // optional int32 default_int32 = 61 [default = 41];
- inline bool TestAllTypes::has_default_int32() const {
- return (_has_bits_[0] & 0x80000000u) != 0;
- }
- inline void TestAllTypes::set_has_default_int32() {
- _has_bits_[0] |= 0x80000000u;
- }
- inline void TestAllTypes::clear_has_default_int32() {
- _has_bits_[0] &= ~0x80000000u;
- }
- inline void TestAllTypes::clear_default_int32() {
- default_int32_ = 41;
- clear_has_default_int32();
- }
- inline ::google::protobuf::int32 TestAllTypes::default_int32() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.default_int32)
- return default_int32_;
- }
- inline void TestAllTypes::set_default_int32(::google::protobuf::int32 value) {
- set_has_default_int32();
- default_int32_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.default_int32)
- }
- // optional int64 default_int64 = 62 [default = 42];
- inline bool TestAllTypes::has_default_int64() const {
- return (_has_bits_[1] & 0x00000001u) != 0;
- }
- inline void TestAllTypes::set_has_default_int64() {
- _has_bits_[1] |= 0x00000001u;
- }
- inline void TestAllTypes::clear_has_default_int64() {
- _has_bits_[1] &= ~0x00000001u;
- }
- inline void TestAllTypes::clear_default_int64() {
- default_int64_ = GOOGLE_LONGLONG(42);
- clear_has_default_int64();
- }
- inline ::google::protobuf::int64 TestAllTypes::default_int64() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.default_int64)
- return default_int64_;
- }
- inline void TestAllTypes::set_default_int64(::google::protobuf::int64 value) {
- set_has_default_int64();
- default_int64_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.default_int64)
- }
- // optional uint32 default_uint32 = 63 [default = 43];
- inline bool TestAllTypes::has_default_uint32() const {
- return (_has_bits_[1] & 0x00000004u) != 0;
- }
- inline void TestAllTypes::set_has_default_uint32() {
- _has_bits_[1] |= 0x00000004u;
- }
- inline void TestAllTypes::clear_has_default_uint32() {
- _has_bits_[1] &= ~0x00000004u;
- }
- inline void TestAllTypes::clear_default_uint32() {
- default_uint32_ = 43u;
- clear_has_default_uint32();
- }
- inline ::google::protobuf::uint32 TestAllTypes::default_uint32() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.default_uint32)
- return default_uint32_;
- }
- inline void TestAllTypes::set_default_uint32(::google::protobuf::uint32 value) {
- set_has_default_uint32();
- default_uint32_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.default_uint32)
- }
- // optional uint64 default_uint64 = 64 [default = 44];
- inline bool TestAllTypes::has_default_uint64() const {
- return (_has_bits_[1] & 0x00000002u) != 0;
- }
- inline void TestAllTypes::set_has_default_uint64() {
- _has_bits_[1] |= 0x00000002u;
- }
- inline void TestAllTypes::clear_has_default_uint64() {
- _has_bits_[1] &= ~0x00000002u;
- }
- inline void TestAllTypes::clear_default_uint64() {
- default_uint64_ = GOOGLE_ULONGLONG(44);
- clear_has_default_uint64();
- }
- inline ::google::protobuf::uint64 TestAllTypes::default_uint64() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.default_uint64)
- return default_uint64_;
- }
- inline void TestAllTypes::set_default_uint64(::google::protobuf::uint64 value) {
- set_has_default_uint64();
- default_uint64_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.default_uint64)
- }
- // optional sint32 default_sint32 = 65 [default = -45];
- inline bool TestAllTypes::has_default_sint32() const {
- return (_has_bits_[1] & 0x00000008u) != 0;
- }
- inline void TestAllTypes::set_has_default_sint32() {
- _has_bits_[1] |= 0x00000008u;
- }
- inline void TestAllTypes::clear_has_default_sint32() {
- _has_bits_[1] &= ~0x00000008u;
- }
- inline void TestAllTypes::clear_default_sint32() {
- default_sint32_ = -45;
- clear_has_default_sint32();
- }
- inline ::google::protobuf::int32 TestAllTypes::default_sint32() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.default_sint32)
- return default_sint32_;
- }
- inline void TestAllTypes::set_default_sint32(::google::protobuf::int32 value) {
- set_has_default_sint32();
- default_sint32_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.default_sint32)
- }
- // optional sint64 default_sint64 = 66 [default = 46];
- inline bool TestAllTypes::has_default_sint64() const {
- return (_has_bits_[1] & 0x00000010u) != 0;
- }
- inline void TestAllTypes::set_has_default_sint64() {
- _has_bits_[1] |= 0x00000010u;
- }
- inline void TestAllTypes::clear_has_default_sint64() {
- _has_bits_[1] &= ~0x00000010u;
- }
- inline void TestAllTypes::clear_default_sint64() {
- default_sint64_ = GOOGLE_LONGLONG(46);
- clear_has_default_sint64();
- }
- inline ::google::protobuf::int64 TestAllTypes::default_sint64() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.default_sint64)
- return default_sint64_;
- }
- inline void TestAllTypes::set_default_sint64(::google::protobuf::int64 value) {
- set_has_default_sint64();
- default_sint64_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.default_sint64)
- }
- // optional fixed32 default_fixed32 = 67 [default = 47];
- inline bool TestAllTypes::has_default_fixed32() const {
- return (_has_bits_[1] & 0x00000040u) != 0;
- }
- inline void TestAllTypes::set_has_default_fixed32() {
- _has_bits_[1] |= 0x00000040u;
- }
- inline void TestAllTypes::clear_has_default_fixed32() {
- _has_bits_[1] &= ~0x00000040u;
- }
- inline void TestAllTypes::clear_default_fixed32() {
- default_fixed32_ = 47u;
- clear_has_default_fixed32();
- }
- inline ::google::protobuf::uint32 TestAllTypes::default_fixed32() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.default_fixed32)
- return default_fixed32_;
- }
- inline void TestAllTypes::set_default_fixed32(::google::protobuf::uint32 value) {
- set_has_default_fixed32();
- default_fixed32_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.default_fixed32)
- }
- // optional fixed64 default_fixed64 = 68 [default = 48];
- inline bool TestAllTypes::has_default_fixed64() const {
- return (_has_bits_[1] & 0x00000020u) != 0;
- }
- inline void TestAllTypes::set_has_default_fixed64() {
- _has_bits_[1] |= 0x00000020u;
- }
- inline void TestAllTypes::clear_has_default_fixed64() {
- _has_bits_[1] &= ~0x00000020u;
- }
- inline void TestAllTypes::clear_default_fixed64() {
- default_fixed64_ = GOOGLE_ULONGLONG(48);
- clear_has_default_fixed64();
- }
- inline ::google::protobuf::uint64 TestAllTypes::default_fixed64() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.default_fixed64)
- return default_fixed64_;
- }
- inline void TestAllTypes::set_default_fixed64(::google::protobuf::uint64 value) {
- set_has_default_fixed64();
- default_fixed64_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.default_fixed64)
- }
- // optional sfixed32 default_sfixed32 = 69 [default = 49];
- inline bool TestAllTypes::has_default_sfixed32() const {
- return (_has_bits_[1] & 0x00000080u) != 0;
- }
- inline void TestAllTypes::set_has_default_sfixed32() {
- _has_bits_[1] |= 0x00000080u;
- }
- inline void TestAllTypes::clear_has_default_sfixed32() {
- _has_bits_[1] &= ~0x00000080u;
- }
- inline void TestAllTypes::clear_default_sfixed32() {
- default_sfixed32_ = 49;
- clear_has_default_sfixed32();
- }
- inline ::google::protobuf::int32 TestAllTypes::default_sfixed32() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.default_sfixed32)
- return default_sfixed32_;
- }
- inline void TestAllTypes::set_default_sfixed32(::google::protobuf::int32 value) {
- set_has_default_sfixed32();
- default_sfixed32_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.default_sfixed32)
- }
- // optional sfixed64 default_sfixed64 = 70 [default = -50];
- inline bool TestAllTypes::has_default_sfixed64() const {
- return (_has_bits_[1] & 0x00000100u) != 0;
- }
- inline void TestAllTypes::set_has_default_sfixed64() {
- _has_bits_[1] |= 0x00000100u;
- }
- inline void TestAllTypes::clear_has_default_sfixed64() {
- _has_bits_[1] &= ~0x00000100u;
- }
- inline void TestAllTypes::clear_default_sfixed64() {
- default_sfixed64_ = GOOGLE_LONGLONG(-50);
- clear_has_default_sfixed64();
- }
- inline ::google::protobuf::int64 TestAllTypes::default_sfixed64() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.default_sfixed64)
- return default_sfixed64_;
- }
- inline void TestAllTypes::set_default_sfixed64(::google::protobuf::int64 value) {
- set_has_default_sfixed64();
- default_sfixed64_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.default_sfixed64)
- }
- // optional float default_float = 71 [default = 51.5];
- inline bool TestAllTypes::has_default_float() const {
- return (_has_bits_[1] & 0x00000400u) != 0;
- }
- inline void TestAllTypes::set_has_default_float() {
- _has_bits_[1] |= 0x00000400u;
- }
- inline void TestAllTypes::clear_has_default_float() {
- _has_bits_[1] &= ~0x00000400u;
- }
- inline void TestAllTypes::clear_default_float() {
- default_float_ = 51.5f;
- clear_has_default_float();
- }
- inline float TestAllTypes::default_float() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.default_float)
- return default_float_;
- }
- inline void TestAllTypes::set_default_float(float value) {
- set_has_default_float();
- default_float_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.default_float)
- }
- // optional double default_double = 72 [default = 52000];
- inline bool TestAllTypes::has_default_double() const {
- return (_has_bits_[1] & 0x00000200u) != 0;
- }
- inline void TestAllTypes::set_has_default_double() {
- _has_bits_[1] |= 0x00000200u;
- }
- inline void TestAllTypes::clear_has_default_double() {
- _has_bits_[1] &= ~0x00000200u;
- }
- inline void TestAllTypes::clear_default_double() {
- default_double_ = 52000;
- clear_has_default_double();
- }
- inline double TestAllTypes::default_double() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.default_double)
- return default_double_;
- }
- inline void TestAllTypes::set_default_double(double value) {
- set_has_default_double();
- default_double_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.default_double)
- }
- // optional bool default_bool = 73 [default = true];
- inline bool TestAllTypes::has_default_bool() const {
- return (_has_bits_[1] & 0x00000800u) != 0;
- }
- inline void TestAllTypes::set_has_default_bool() {
- _has_bits_[1] |= 0x00000800u;
- }
- inline void TestAllTypes::clear_has_default_bool() {
- _has_bits_[1] &= ~0x00000800u;
- }
- inline void TestAllTypes::clear_default_bool() {
- default_bool_ = true;
- clear_has_default_bool();
- }
- inline bool TestAllTypes::default_bool() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.default_bool)
- return default_bool_;
- }
- inline void TestAllTypes::set_default_bool(bool value) {
- set_has_default_bool();
- default_bool_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.default_bool)
- }
- // optional string default_string = 74 [default = "hello"];
- inline bool TestAllTypes::has_default_string() const {
- return (_has_bits_[0] & 0x00000010u) != 0;
- }
- inline void TestAllTypes::set_has_default_string() {
- _has_bits_[0] |= 0x00000010u;
- }
- inline void TestAllTypes::clear_has_default_string() {
- _has_bits_[0] &= ~0x00000010u;
- }
- inline void TestAllTypes::clear_default_string() {
- default_string_.ClearToDefault(&::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_string_.get(), GetArenaNoVirtual());
- clear_has_default_string();
- }
- inline const ::std::string& TestAllTypes::default_string() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.default_string)
- return default_string_.Get();
- }
- inline void TestAllTypes::set_default_string(const ::std::string& value) {
- set_has_default_string();
- default_string_.Set(&::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_string_.get(), value, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.default_string)
- }
- #if LANG_CXX11
- inline void TestAllTypes::set_default_string(::std::string&& value) {
- set_has_default_string();
- default_string_.Set(
- &::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_string_.get(), ::std::move(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestAllTypes.default_string)
- }
- #endif
- inline void TestAllTypes::set_default_string(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- set_has_default_string();
- default_string_.Set(&::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_string_.get(), ::std::string(value),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestAllTypes.default_string)
- }
- inline void TestAllTypes::set_default_string(const char* value,
- size_t size) {
- set_has_default_string();
- default_string_.Set(&::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_string_.get(), ::std::string(
- reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestAllTypes.default_string)
- }
- inline ::std::string* TestAllTypes::mutable_default_string() {
- set_has_default_string();
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypes.default_string)
- return default_string_.Mutable(&::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_string_.get(), GetArenaNoVirtual());
- }
- inline ::std::string* TestAllTypes::release_default_string() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestAllTypes.default_string)
- if (!has_default_string()) {
- return NULL;
- }
- clear_has_default_string();
- return default_string_.ReleaseNonDefault(&::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_string_.get(), GetArenaNoVirtual());
- }
- inline void TestAllTypes::set_allocated_default_string(::std::string* default_string) {
- if (default_string != NULL) {
- set_has_default_string();
- } else {
- clear_has_default_string();
- }
- default_string_.SetAllocated(&::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_string_.get(), default_string,
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestAllTypes.default_string)
- }
- inline ::std::string* TestAllTypes::unsafe_arena_release_default_string() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestAllTypes.default_string)
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- clear_has_default_string();
- return default_string_.UnsafeArenaRelease(&::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_string_.get(),
- GetArenaNoVirtual());
- }
- inline void TestAllTypes::unsafe_arena_set_allocated_default_string(
- ::std::string* default_string) {
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- if (default_string != NULL) {
- set_has_default_string();
- } else {
- clear_has_default_string();
- }
- default_string_.UnsafeArenaSetAllocated(&::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_string_.get(),
- default_string, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestAllTypes.default_string)
- }
- // optional bytes default_bytes = 75 [default = "world"];
- inline bool TestAllTypes::has_default_bytes() const {
- return (_has_bits_[0] & 0x00000020u) != 0;
- }
- inline void TestAllTypes::set_has_default_bytes() {
- _has_bits_[0] |= 0x00000020u;
- }
- inline void TestAllTypes::clear_has_default_bytes() {
- _has_bits_[0] &= ~0x00000020u;
- }
- inline void TestAllTypes::clear_default_bytes() {
- default_bytes_.ClearToDefault(&::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_bytes_.get(), GetArenaNoVirtual());
- clear_has_default_bytes();
- }
- inline const ::std::string& TestAllTypes::default_bytes() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.default_bytes)
- return default_bytes_.Get();
- }
- inline void TestAllTypes::set_default_bytes(const ::std::string& value) {
- set_has_default_bytes();
- default_bytes_.Set(&::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_bytes_.get(), value, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.default_bytes)
- }
- #if LANG_CXX11
- inline void TestAllTypes::set_default_bytes(::std::string&& value) {
- set_has_default_bytes();
- default_bytes_.Set(
- &::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_bytes_.get(), ::std::move(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestAllTypes.default_bytes)
- }
- #endif
- inline void TestAllTypes::set_default_bytes(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- set_has_default_bytes();
- default_bytes_.Set(&::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_bytes_.get(), ::std::string(value),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestAllTypes.default_bytes)
- }
- inline void TestAllTypes::set_default_bytes(const void* value,
- size_t size) {
- set_has_default_bytes();
- default_bytes_.Set(&::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_bytes_.get(), ::std::string(
- reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestAllTypes.default_bytes)
- }
- inline ::std::string* TestAllTypes::mutable_default_bytes() {
- set_has_default_bytes();
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypes.default_bytes)
- return default_bytes_.Mutable(&::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_bytes_.get(), GetArenaNoVirtual());
- }
- inline ::std::string* TestAllTypes::release_default_bytes() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestAllTypes.default_bytes)
- if (!has_default_bytes()) {
- return NULL;
- }
- clear_has_default_bytes();
- return default_bytes_.ReleaseNonDefault(&::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_bytes_.get(), GetArenaNoVirtual());
- }
- inline void TestAllTypes::set_allocated_default_bytes(::std::string* default_bytes) {
- if (default_bytes != NULL) {
- set_has_default_bytes();
- } else {
- clear_has_default_bytes();
- }
- default_bytes_.SetAllocated(&::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_bytes_.get(), default_bytes,
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestAllTypes.default_bytes)
- }
- inline ::std::string* TestAllTypes::unsafe_arena_release_default_bytes() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestAllTypes.default_bytes)
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- clear_has_default_bytes();
- return default_bytes_.UnsafeArenaRelease(&::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_bytes_.get(),
- GetArenaNoVirtual());
- }
- inline void TestAllTypes::unsafe_arena_set_allocated_default_bytes(
- ::std::string* default_bytes) {
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- if (default_bytes != NULL) {
- set_has_default_bytes();
- } else {
- clear_has_default_bytes();
- }
- default_bytes_.UnsafeArenaSetAllocated(&::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_bytes_.get(),
- default_bytes, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestAllTypes.default_bytes)
- }
- // optional .protobuf_unittest.TestAllTypes.NestedEnum default_nested_enum = 81 [default = BAR];
- inline bool TestAllTypes::has_default_nested_enum() const {
- return (_has_bits_[1] & 0x00001000u) != 0;
- }
- inline void TestAllTypes::set_has_default_nested_enum() {
- _has_bits_[1] |= 0x00001000u;
- }
- inline void TestAllTypes::clear_has_default_nested_enum() {
- _has_bits_[1] &= ~0x00001000u;
- }
- inline void TestAllTypes::clear_default_nested_enum() {
- default_nested_enum_ = 2;
- clear_has_default_nested_enum();
- }
- inline ::protobuf_unittest::TestAllTypes_NestedEnum TestAllTypes::default_nested_enum() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.default_nested_enum)
- return static_cast< ::protobuf_unittest::TestAllTypes_NestedEnum >(default_nested_enum_);
- }
- inline void TestAllTypes::set_default_nested_enum(::protobuf_unittest::TestAllTypes_NestedEnum value) {
- assert(::protobuf_unittest::TestAllTypes_NestedEnum_IsValid(value));
- set_has_default_nested_enum();
- default_nested_enum_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.default_nested_enum)
- }
- // optional .protobuf_unittest.ForeignEnum default_foreign_enum = 82 [default = FOREIGN_BAR];
- inline bool TestAllTypes::has_default_foreign_enum() const {
- return (_has_bits_[1] & 0x00002000u) != 0;
- }
- inline void TestAllTypes::set_has_default_foreign_enum() {
- _has_bits_[1] |= 0x00002000u;
- }
- inline void TestAllTypes::clear_has_default_foreign_enum() {
- _has_bits_[1] &= ~0x00002000u;
- }
- inline void TestAllTypes::clear_default_foreign_enum() {
- default_foreign_enum_ = 5;
- clear_has_default_foreign_enum();
- }
- inline ::protobuf_unittest::ForeignEnum TestAllTypes::default_foreign_enum() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.default_foreign_enum)
- return static_cast< ::protobuf_unittest::ForeignEnum >(default_foreign_enum_);
- }
- inline void TestAllTypes::set_default_foreign_enum(::protobuf_unittest::ForeignEnum value) {
- assert(::protobuf_unittest::ForeignEnum_IsValid(value));
- set_has_default_foreign_enum();
- default_foreign_enum_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.default_foreign_enum)
- }
- // optional .protobuf_unittest_import.ImportEnum default_import_enum = 83 [default = IMPORT_BAR];
- inline bool TestAllTypes::has_default_import_enum() const {
- return (_has_bits_[0] & 0x08000000u) != 0;
- }
- inline void TestAllTypes::set_has_default_import_enum() {
- _has_bits_[0] |= 0x08000000u;
- }
- inline void TestAllTypes::clear_has_default_import_enum() {
- _has_bits_[0] &= ~0x08000000u;
- }
- inline void TestAllTypes::clear_default_import_enum() {
- default_import_enum_ = 8;
- clear_has_default_import_enum();
- }
- inline ::protobuf_unittest_import::ImportEnum TestAllTypes::default_import_enum() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.default_import_enum)
- return static_cast< ::protobuf_unittest_import::ImportEnum >(default_import_enum_);
- }
- inline void TestAllTypes::set_default_import_enum(::protobuf_unittest_import::ImportEnum value) {
- assert(::protobuf_unittest_import::ImportEnum_IsValid(value));
- set_has_default_import_enum();
- default_import_enum_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.default_import_enum)
- }
- // optional string default_string_piece = 84 [default = "abc", ctype = STRING_PIECE];
- inline bool TestAllTypes::has_default_string_piece() const {
- return (_has_bits_[0] & 0x00000040u) != 0;
- }
- inline void TestAllTypes::set_has_default_string_piece() {
- _has_bits_[0] |= 0x00000040u;
- }
- inline void TestAllTypes::clear_has_default_string_piece() {
- _has_bits_[0] &= ~0x00000040u;
- }
- inline void TestAllTypes::clear_default_string_piece() {
- default_string_piece_.ClearToDefault(&::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_string_piece_.get(), GetArenaNoVirtual());
- clear_has_default_string_piece();
- }
- inline const ::std::string& TestAllTypes::default_string_piece() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.default_string_piece)
- return default_string_piece_.Get();
- }
- inline void TestAllTypes::set_default_string_piece(const ::std::string& value) {
- set_has_default_string_piece();
- default_string_piece_.Set(&::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_string_piece_.get(), value, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.default_string_piece)
- }
- #if LANG_CXX11
- inline void TestAllTypes::set_default_string_piece(::std::string&& value) {
- set_has_default_string_piece();
- default_string_piece_.Set(
- &::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_string_piece_.get(), ::std::move(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestAllTypes.default_string_piece)
- }
- #endif
- inline void TestAllTypes::set_default_string_piece(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- set_has_default_string_piece();
- default_string_piece_.Set(&::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_string_piece_.get(), ::std::string(value),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestAllTypes.default_string_piece)
- }
- inline void TestAllTypes::set_default_string_piece(const char* value,
- size_t size) {
- set_has_default_string_piece();
- default_string_piece_.Set(&::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_string_piece_.get(), ::std::string(
- reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestAllTypes.default_string_piece)
- }
- inline ::std::string* TestAllTypes::mutable_default_string_piece() {
- set_has_default_string_piece();
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypes.default_string_piece)
- return default_string_piece_.Mutable(&::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_string_piece_.get(), GetArenaNoVirtual());
- }
- inline ::std::string* TestAllTypes::release_default_string_piece() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestAllTypes.default_string_piece)
- if (!has_default_string_piece()) {
- return NULL;
- }
- clear_has_default_string_piece();
- return default_string_piece_.ReleaseNonDefault(&::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_string_piece_.get(), GetArenaNoVirtual());
- }
- inline void TestAllTypes::set_allocated_default_string_piece(::std::string* default_string_piece) {
- if (default_string_piece != NULL) {
- set_has_default_string_piece();
- } else {
- clear_has_default_string_piece();
- }
- default_string_piece_.SetAllocated(&::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_string_piece_.get(), default_string_piece,
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestAllTypes.default_string_piece)
- }
- inline ::std::string* TestAllTypes::unsafe_arena_release_default_string_piece() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestAllTypes.default_string_piece)
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- clear_has_default_string_piece();
- return default_string_piece_.UnsafeArenaRelease(&::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_string_piece_.get(),
- GetArenaNoVirtual());
- }
- inline void TestAllTypes::unsafe_arena_set_allocated_default_string_piece(
- ::std::string* default_string_piece) {
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- if (default_string_piece != NULL) {
- set_has_default_string_piece();
- } else {
- clear_has_default_string_piece();
- }
- default_string_piece_.UnsafeArenaSetAllocated(&::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_string_piece_.get(),
- default_string_piece, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestAllTypes.default_string_piece)
- }
- // optional string default_cord = 85 [default = "123", ctype = CORD];
- inline bool TestAllTypes::has_default_cord() const {
- return (_has_bits_[0] & 0x00000080u) != 0;
- }
- inline void TestAllTypes::set_has_default_cord() {
- _has_bits_[0] |= 0x00000080u;
- }
- inline void TestAllTypes::clear_has_default_cord() {
- _has_bits_[0] &= ~0x00000080u;
- }
- inline void TestAllTypes::clear_default_cord() {
- default_cord_.ClearToDefault(&::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_cord_.get(), GetArenaNoVirtual());
- clear_has_default_cord();
- }
- inline const ::std::string& TestAllTypes::default_cord() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.default_cord)
- return default_cord_.Get();
- }
- inline void TestAllTypes::set_default_cord(const ::std::string& value) {
- set_has_default_cord();
- default_cord_.Set(&::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_cord_.get(), value, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.default_cord)
- }
- #if LANG_CXX11
- inline void TestAllTypes::set_default_cord(::std::string&& value) {
- set_has_default_cord();
- default_cord_.Set(
- &::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_cord_.get(), ::std::move(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestAllTypes.default_cord)
- }
- #endif
- inline void TestAllTypes::set_default_cord(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- set_has_default_cord();
- default_cord_.Set(&::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_cord_.get(), ::std::string(value),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestAllTypes.default_cord)
- }
- inline void TestAllTypes::set_default_cord(const char* value,
- size_t size) {
- set_has_default_cord();
- default_cord_.Set(&::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_cord_.get(), ::std::string(
- reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestAllTypes.default_cord)
- }
- inline ::std::string* TestAllTypes::mutable_default_cord() {
- set_has_default_cord();
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypes.default_cord)
- return default_cord_.Mutable(&::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_cord_.get(), GetArenaNoVirtual());
- }
- inline ::std::string* TestAllTypes::release_default_cord() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestAllTypes.default_cord)
- if (!has_default_cord()) {
- return NULL;
- }
- clear_has_default_cord();
- return default_cord_.ReleaseNonDefault(&::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_cord_.get(), GetArenaNoVirtual());
- }
- inline void TestAllTypes::set_allocated_default_cord(::std::string* default_cord) {
- if (default_cord != NULL) {
- set_has_default_cord();
- } else {
- clear_has_default_cord();
- }
- default_cord_.SetAllocated(&::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_cord_.get(), default_cord,
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestAllTypes.default_cord)
- }
- inline ::std::string* TestAllTypes::unsafe_arena_release_default_cord() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestAllTypes.default_cord)
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- clear_has_default_cord();
- return default_cord_.UnsafeArenaRelease(&::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_cord_.get(),
- GetArenaNoVirtual());
- }
- inline void TestAllTypes::unsafe_arena_set_allocated_default_cord(
- ::std::string* default_cord) {
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- if (default_cord != NULL) {
- set_has_default_cord();
- } else {
- clear_has_default_cord();
- }
- default_cord_.UnsafeArenaSetAllocated(&::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_cord_.get(),
- default_cord, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestAllTypes.default_cord)
- }
- // optional uint32 oneof_uint32 = 111;
- inline bool TestAllTypes::has_oneof_uint32() const {
- return oneof_field_case() == kOneofUint32;
- }
- inline void TestAllTypes::set_has_oneof_uint32() {
- _oneof_case_[0] = kOneofUint32;
- }
- inline void TestAllTypes::clear_oneof_uint32() {
- if (has_oneof_uint32()) {
- oneof_field_.oneof_uint32_ = 0u;
- clear_has_oneof_field();
- }
- }
- inline ::google::protobuf::uint32 TestAllTypes::oneof_uint32() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.oneof_uint32)
- if (has_oneof_uint32()) {
- return oneof_field_.oneof_uint32_;
- }
- return 0u;
- }
- inline void TestAllTypes::set_oneof_uint32(::google::protobuf::uint32 value) {
- if (!has_oneof_uint32()) {
- clear_oneof_field();
- set_has_oneof_uint32();
- }
- oneof_field_.oneof_uint32_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.oneof_uint32)
- }
- // optional .protobuf_unittest.TestAllTypes.NestedMessage oneof_nested_message = 112;
- inline bool TestAllTypes::has_oneof_nested_message() const {
- return oneof_field_case() == kOneofNestedMessage;
- }
- inline void TestAllTypes::set_has_oneof_nested_message() {
- _oneof_case_[0] = kOneofNestedMessage;
- }
- inline void TestAllTypes::clear_oneof_nested_message() {
- if (has_oneof_nested_message()) {
- if (GetArenaNoVirtual() == NULL) {
- delete oneof_field_.oneof_nested_message_;
- }
- clear_has_oneof_field();
- }
- }
- inline const ::protobuf_unittest::TestAllTypes_NestedMessage& TestAllTypes::_internal_oneof_nested_message() const {
- return *oneof_field_.oneof_nested_message_;
- }
- inline ::protobuf_unittest::TestAllTypes_NestedMessage* TestAllTypes::release_oneof_nested_message() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestAllTypes.oneof_nested_message)
- if (has_oneof_nested_message()) {
- clear_has_oneof_field();
- ::protobuf_unittest::TestAllTypes_NestedMessage* temp = oneof_field_.oneof_nested_message_;
- if (GetArenaNoVirtual() != NULL) {
- temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
- }
- oneof_field_.oneof_nested_message_ = NULL;
- return temp;
- } else {
- return NULL;
- }
- }
- inline const ::protobuf_unittest::TestAllTypes_NestedMessage& TestAllTypes::oneof_nested_message() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.oneof_nested_message)
- return has_oneof_nested_message()
- ? *oneof_field_.oneof_nested_message_
- : *reinterpret_cast< ::protobuf_unittest::TestAllTypes_NestedMessage*>(&::protobuf_unittest::_TestAllTypes_NestedMessage_default_instance_);
- }
- inline ::protobuf_unittest::TestAllTypes_NestedMessage* TestAllTypes::unsafe_arena_release_oneof_nested_message() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestAllTypes.oneof_nested_message)
- if (has_oneof_nested_message()) {
- clear_has_oneof_field();
- ::protobuf_unittest::TestAllTypes_NestedMessage* temp = oneof_field_.oneof_nested_message_;
- oneof_field_.oneof_nested_message_ = NULL;
- return temp;
- } else {
- return NULL;
- }
- }
- inline void TestAllTypes::unsafe_arena_set_allocated_oneof_nested_message(::protobuf_unittest::TestAllTypes_NestedMessage* oneof_nested_message) {
- clear_oneof_field();
- if (oneof_nested_message) {
- set_has_oneof_nested_message();
- oneof_field_.oneof_nested_message_ = oneof_nested_message;
- }
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestAllTypes.oneof_nested_message)
- }
- inline ::protobuf_unittest::TestAllTypes_NestedMessage* TestAllTypes::mutable_oneof_nested_message() {
- if (!has_oneof_nested_message()) {
- clear_oneof_field();
- set_has_oneof_nested_message();
- oneof_field_.oneof_nested_message_ = CreateMaybeMessage< ::protobuf_unittest::TestAllTypes_NestedMessage >(
- GetArenaNoVirtual());
- }
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypes.oneof_nested_message)
- return oneof_field_.oneof_nested_message_;
- }
- // optional string oneof_string = 113;
- inline bool TestAllTypes::has_oneof_string() const {
- return oneof_field_case() == kOneofString;
- }
- inline void TestAllTypes::set_has_oneof_string() {
- _oneof_case_[0] = kOneofString;
- }
- inline void TestAllTypes::clear_oneof_string() {
- if (has_oneof_string()) {
- oneof_field_.oneof_string_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- clear_has_oneof_field();
- }
- }
- inline const ::std::string& TestAllTypes::oneof_string() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.oneof_string)
- if (has_oneof_string()) {
- return oneof_field_.oneof_string_.Get();
- }
- return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
- }
- inline void TestAllTypes::set_oneof_string(const ::std::string& value) {
- if (!has_oneof_string()) {
- clear_oneof_field();
- set_has_oneof_string();
- oneof_field_.oneof_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- oneof_field_.oneof_string_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value,
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.oneof_string)
- }
- #if LANG_CXX11
- inline void TestAllTypes::set_oneof_string(::std::string&& value) {
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.oneof_string)
- if (!has_oneof_string()) {
- clear_oneof_field();
- set_has_oneof_string();
- oneof_field_.oneof_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- oneof_field_.oneof_string_.Set(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestAllTypes.oneof_string)
- }
- #endif
- inline void TestAllTypes::set_oneof_string(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- if (!has_oneof_string()) {
- clear_oneof_field();
- set_has_oneof_string();
- oneof_field_.oneof_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- oneof_field_.oneof_string_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- ::std::string(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestAllTypes.oneof_string)
- }
- inline void TestAllTypes::set_oneof_string(const char* value,
- size_t size) {
- if (!has_oneof_string()) {
- clear_oneof_field();
- set_has_oneof_string();
- oneof_field_.oneof_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- oneof_field_.oneof_string_.Set(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
- reinterpret_cast<const char*>(value), size),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestAllTypes.oneof_string)
- }
- inline ::std::string* TestAllTypes::mutable_oneof_string() {
- if (!has_oneof_string()) {
- clear_oneof_field();
- set_has_oneof_string();
- oneof_field_.oneof_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- return oneof_field_.oneof_string_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypes.oneof_string)
- }
- inline ::std::string* TestAllTypes::release_oneof_string() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestAllTypes.oneof_string)
- if (has_oneof_string()) {
- clear_has_oneof_field();
- return oneof_field_.oneof_string_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- } else {
- return NULL;
- }
- }
- inline void TestAllTypes::set_allocated_oneof_string(::std::string* oneof_string) {
- if (!has_oneof_string()) {
- oneof_field_.oneof_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- clear_oneof_field();
- if (oneof_string != NULL) {
- set_has_oneof_string();
- oneof_field_.oneof_string_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), oneof_string,
- GetArenaNoVirtual());
- }
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestAllTypes.oneof_string)
- }
- inline ::std::string* TestAllTypes::unsafe_arena_release_oneof_string() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestAllTypes.oneof_string)
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- if (has_oneof_string()) {
- clear_has_oneof_field();
- return oneof_field_.oneof_string_.UnsafeArenaRelease(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- } else {
- return NULL;
- }
- }
- inline void TestAllTypes::unsafe_arena_set_allocated_oneof_string(::std::string* oneof_string) {
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- if (!has_oneof_string()) {
- oneof_field_.oneof_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- clear_oneof_field();
- if (oneof_string) {
- set_has_oneof_string();
- oneof_field_.oneof_string_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), oneof_string, GetArenaNoVirtual());
- }
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestAllTypes.oneof_string)
- }
- // optional bytes oneof_bytes = 114;
- inline bool TestAllTypes::has_oneof_bytes() const {
- return oneof_field_case() == kOneofBytes;
- }
- inline void TestAllTypes::set_has_oneof_bytes() {
- _oneof_case_[0] = kOneofBytes;
- }
- inline void TestAllTypes::clear_oneof_bytes() {
- if (has_oneof_bytes()) {
- oneof_field_.oneof_bytes_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- clear_has_oneof_field();
- }
- }
- inline const ::std::string& TestAllTypes::oneof_bytes() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.oneof_bytes)
- if (has_oneof_bytes()) {
- return oneof_field_.oneof_bytes_.Get();
- }
- return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
- }
- inline void TestAllTypes::set_oneof_bytes(const ::std::string& value) {
- if (!has_oneof_bytes()) {
- clear_oneof_field();
- set_has_oneof_bytes();
- oneof_field_.oneof_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- oneof_field_.oneof_bytes_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value,
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.oneof_bytes)
- }
- #if LANG_CXX11
- inline void TestAllTypes::set_oneof_bytes(::std::string&& value) {
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.oneof_bytes)
- if (!has_oneof_bytes()) {
- clear_oneof_field();
- set_has_oneof_bytes();
- oneof_field_.oneof_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- oneof_field_.oneof_bytes_.Set(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestAllTypes.oneof_bytes)
- }
- #endif
- inline void TestAllTypes::set_oneof_bytes(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- if (!has_oneof_bytes()) {
- clear_oneof_field();
- set_has_oneof_bytes();
- oneof_field_.oneof_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- oneof_field_.oneof_bytes_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- ::std::string(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestAllTypes.oneof_bytes)
- }
- inline void TestAllTypes::set_oneof_bytes(const void* value,
- size_t size) {
- if (!has_oneof_bytes()) {
- clear_oneof_field();
- set_has_oneof_bytes();
- oneof_field_.oneof_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- oneof_field_.oneof_bytes_.Set(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
- reinterpret_cast<const char*>(value), size),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestAllTypes.oneof_bytes)
- }
- inline ::std::string* TestAllTypes::mutable_oneof_bytes() {
- if (!has_oneof_bytes()) {
- clear_oneof_field();
- set_has_oneof_bytes();
- oneof_field_.oneof_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- return oneof_field_.oneof_bytes_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypes.oneof_bytes)
- }
- inline ::std::string* TestAllTypes::release_oneof_bytes() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestAllTypes.oneof_bytes)
- if (has_oneof_bytes()) {
- clear_has_oneof_field();
- return oneof_field_.oneof_bytes_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- } else {
- return NULL;
- }
- }
- inline void TestAllTypes::set_allocated_oneof_bytes(::std::string* oneof_bytes) {
- if (!has_oneof_bytes()) {
- oneof_field_.oneof_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- clear_oneof_field();
- if (oneof_bytes != NULL) {
- set_has_oneof_bytes();
- oneof_field_.oneof_bytes_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), oneof_bytes,
- GetArenaNoVirtual());
- }
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestAllTypes.oneof_bytes)
- }
- inline ::std::string* TestAllTypes::unsafe_arena_release_oneof_bytes() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestAllTypes.oneof_bytes)
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- if (has_oneof_bytes()) {
- clear_has_oneof_field();
- return oneof_field_.oneof_bytes_.UnsafeArenaRelease(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- } else {
- return NULL;
- }
- }
- inline void TestAllTypes::unsafe_arena_set_allocated_oneof_bytes(::std::string* oneof_bytes) {
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- if (!has_oneof_bytes()) {
- oneof_field_.oneof_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- clear_oneof_field();
- if (oneof_bytes) {
- set_has_oneof_bytes();
- oneof_field_.oneof_bytes_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), oneof_bytes, GetArenaNoVirtual());
- }
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestAllTypes.oneof_bytes)
- }
- inline bool TestAllTypes::has_oneof_field() const {
- return oneof_field_case() != ONEOF_FIELD_NOT_SET;
- }
- inline void TestAllTypes::clear_has_oneof_field() {
- _oneof_case_[0] = ONEOF_FIELD_NOT_SET;
- }
- inline TestAllTypes::OneofFieldCase TestAllTypes::oneof_field_case() const {
- return TestAllTypes::OneofFieldCase(_oneof_case_[0]);
- }
- // -------------------------------------------------------------------
- // NestedTestAllTypes
- // optional .protobuf_unittest.NestedTestAllTypes child = 1;
- inline bool NestedTestAllTypes::has_child() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void NestedTestAllTypes::set_has_child() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void NestedTestAllTypes::clear_has_child() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void NestedTestAllTypes::clear_child() {
- if (child_ != NULL) child_->Clear();
- clear_has_child();
- }
- inline const ::protobuf_unittest::NestedTestAllTypes& NestedTestAllTypes::_internal_child() const {
- return *child_;
- }
- inline const ::protobuf_unittest::NestedTestAllTypes& NestedTestAllTypes::child() const {
- const ::protobuf_unittest::NestedTestAllTypes* p = child_;
- // @@protoc_insertion_point(field_get:protobuf_unittest.NestedTestAllTypes.child)
- return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::NestedTestAllTypes*>(
- &::protobuf_unittest::_NestedTestAllTypes_default_instance_);
- }
- inline ::protobuf_unittest::NestedTestAllTypes* NestedTestAllTypes::release_child() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.NestedTestAllTypes.child)
- clear_has_child();
- ::protobuf_unittest::NestedTestAllTypes* temp = child_;
- if (GetArenaNoVirtual() != NULL) {
- temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
- }
- child_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::NestedTestAllTypes* NestedTestAllTypes::unsafe_arena_release_child() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.NestedTestAllTypes.child)
- clear_has_child();
- ::protobuf_unittest::NestedTestAllTypes* temp = child_;
- child_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::NestedTestAllTypes* NestedTestAllTypes::mutable_child() {
- set_has_child();
- if (child_ == NULL) {
- auto* p = CreateMaybeMessage<::protobuf_unittest::NestedTestAllTypes>(GetArenaNoVirtual());
- child_ = p;
- }
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.NestedTestAllTypes.child)
- return child_;
- }
- inline void NestedTestAllTypes::set_allocated_child(::protobuf_unittest::NestedTestAllTypes* child) {
- ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
- if (message_arena == NULL) {
- delete child_;
- }
- if (child) {
- ::google::protobuf::Arena* submessage_arena =
- ::google::protobuf::Arena::GetArena(child);
- if (message_arena != submessage_arena) {
- child = ::google::protobuf::internal::GetOwnedMessage(
- message_arena, child, submessage_arena);
- }
- set_has_child();
- } else {
- clear_has_child();
- }
- child_ = child;
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.NestedTestAllTypes.child)
- }
- // optional .protobuf_unittest.TestAllTypes payload = 2;
- inline bool NestedTestAllTypes::has_payload() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
- }
- inline void NestedTestAllTypes::set_has_payload() {
- _has_bits_[0] |= 0x00000002u;
- }
- inline void NestedTestAllTypes::clear_has_payload() {
- _has_bits_[0] &= ~0x00000002u;
- }
- inline void NestedTestAllTypes::clear_payload() {
- if (payload_ != NULL) payload_->Clear();
- clear_has_payload();
- }
- inline const ::protobuf_unittest::TestAllTypes& NestedTestAllTypes::_internal_payload() const {
- return *payload_;
- }
- inline const ::protobuf_unittest::TestAllTypes& NestedTestAllTypes::payload() const {
- const ::protobuf_unittest::TestAllTypes* p = payload_;
- // @@protoc_insertion_point(field_get:protobuf_unittest.NestedTestAllTypes.payload)
- return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestAllTypes*>(
- &::protobuf_unittest::_TestAllTypes_default_instance_);
- }
- inline ::protobuf_unittest::TestAllTypes* NestedTestAllTypes::release_payload() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.NestedTestAllTypes.payload)
- clear_has_payload();
- ::protobuf_unittest::TestAllTypes* temp = payload_;
- if (GetArenaNoVirtual() != NULL) {
- temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
- }
- payload_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestAllTypes* NestedTestAllTypes::unsafe_arena_release_payload() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.NestedTestAllTypes.payload)
- clear_has_payload();
- ::protobuf_unittest::TestAllTypes* temp = payload_;
- payload_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestAllTypes* NestedTestAllTypes::mutable_payload() {
- set_has_payload();
- if (payload_ == NULL) {
- auto* p = CreateMaybeMessage<::protobuf_unittest::TestAllTypes>(GetArenaNoVirtual());
- payload_ = p;
- }
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.NestedTestAllTypes.payload)
- return payload_;
- }
- inline void NestedTestAllTypes::set_allocated_payload(::protobuf_unittest::TestAllTypes* payload) {
- ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
- if (message_arena == NULL) {
- delete payload_;
- }
- if (payload) {
- ::google::protobuf::Arena* submessage_arena =
- ::google::protobuf::Arena::GetArena(payload);
- if (message_arena != submessage_arena) {
- payload = ::google::protobuf::internal::GetOwnedMessage(
- message_arena, payload, submessage_arena);
- }
- set_has_payload();
- } else {
- clear_has_payload();
- }
- payload_ = payload;
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.NestedTestAllTypes.payload)
- }
- // repeated .protobuf_unittest.NestedTestAllTypes repeated_child = 3;
- inline int NestedTestAllTypes::repeated_child_size() const {
- return repeated_child_.size();
- }
- inline void NestedTestAllTypes::clear_repeated_child() {
- repeated_child_.Clear();
- }
- inline ::protobuf_unittest::NestedTestAllTypes* NestedTestAllTypes::mutable_repeated_child(int index) {
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.NestedTestAllTypes.repeated_child)
- return repeated_child_.Mutable(index);
- }
- inline ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::NestedTestAllTypes >*
- NestedTestAllTypes::mutable_repeated_child() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.NestedTestAllTypes.repeated_child)
- return &repeated_child_;
- }
- inline const ::protobuf_unittest::NestedTestAllTypes& NestedTestAllTypes::repeated_child(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.NestedTestAllTypes.repeated_child)
- return repeated_child_.Get(index);
- }
- inline ::protobuf_unittest::NestedTestAllTypes* NestedTestAllTypes::add_repeated_child() {
- // @@protoc_insertion_point(field_add:protobuf_unittest.NestedTestAllTypes.repeated_child)
- return repeated_child_.Add();
- }
- inline const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::NestedTestAllTypes >&
- NestedTestAllTypes::repeated_child() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.NestedTestAllTypes.repeated_child)
- return repeated_child_;
- }
- // -------------------------------------------------------------------
- // TestDeprecatedFields
- // optional int32 deprecated_int32 = 1 [deprecated = true];
- inline bool TestDeprecatedFields::has_deprecated_int32() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void TestDeprecatedFields::set_has_deprecated_int32() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void TestDeprecatedFields::clear_has_deprecated_int32() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void TestDeprecatedFields::clear_deprecated_int32() {
- deprecated_int32_ = 0;
- clear_has_deprecated_int32();
- }
- inline ::google::protobuf::int32 TestDeprecatedFields::deprecated_int32() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestDeprecatedFields.deprecated_int32)
- return deprecated_int32_;
- }
- inline void TestDeprecatedFields::set_deprecated_int32(::google::protobuf::int32 value) {
- set_has_deprecated_int32();
- deprecated_int32_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestDeprecatedFields.deprecated_int32)
- }
- // optional int32 deprecated_int32_in_oneof = 2 [deprecated = true];
- inline bool TestDeprecatedFields::has_deprecated_int32_in_oneof() const {
- return oneof_fields_case() == kDeprecatedInt32InOneof;
- }
- inline void TestDeprecatedFields::set_has_deprecated_int32_in_oneof() {
- _oneof_case_[0] = kDeprecatedInt32InOneof;
- }
- inline void TestDeprecatedFields::clear_deprecated_int32_in_oneof() {
- if (has_deprecated_int32_in_oneof()) {
- oneof_fields_.deprecated_int32_in_oneof_ = 0;
- clear_has_oneof_fields();
- }
- }
- inline ::google::protobuf::int32 TestDeprecatedFields::deprecated_int32_in_oneof() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestDeprecatedFields.deprecated_int32_in_oneof)
- if (has_deprecated_int32_in_oneof()) {
- return oneof_fields_.deprecated_int32_in_oneof_;
- }
- return 0;
- }
- inline void TestDeprecatedFields::set_deprecated_int32_in_oneof(::google::protobuf::int32 value) {
- if (!has_deprecated_int32_in_oneof()) {
- clear_oneof_fields();
- set_has_deprecated_int32_in_oneof();
- }
- oneof_fields_.deprecated_int32_in_oneof_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestDeprecatedFields.deprecated_int32_in_oneof)
- }
- inline bool TestDeprecatedFields::has_oneof_fields() const {
- return oneof_fields_case() != ONEOF_FIELDS_NOT_SET;
- }
- inline void TestDeprecatedFields::clear_has_oneof_fields() {
- _oneof_case_[0] = ONEOF_FIELDS_NOT_SET;
- }
- inline TestDeprecatedFields::OneofFieldsCase TestDeprecatedFields::oneof_fields_case() const {
- return TestDeprecatedFields::OneofFieldsCase(_oneof_case_[0]);
- }
- // -------------------------------------------------------------------
- // TestDeprecatedMessage
- // -------------------------------------------------------------------
- // ForeignMessage
- // optional int32 c = 1;
- inline bool ForeignMessage::has_c() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void ForeignMessage::set_has_c() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void ForeignMessage::clear_has_c() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void ForeignMessage::clear_c() {
- c_ = 0;
- clear_has_c();
- }
- inline ::google::protobuf::int32 ForeignMessage::c() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.ForeignMessage.c)
- return c_;
- }
- inline void ForeignMessage::set_c(::google::protobuf::int32 value) {
- set_has_c();
- c_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.ForeignMessage.c)
- }
- // optional int32 d = 2;
- inline bool ForeignMessage::has_d() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
- }
- inline void ForeignMessage::set_has_d() {
- _has_bits_[0] |= 0x00000002u;
- }
- inline void ForeignMessage::clear_has_d() {
- _has_bits_[0] &= ~0x00000002u;
- }
- inline void ForeignMessage::clear_d() {
- d_ = 0;
- clear_has_d();
- }
- inline ::google::protobuf::int32 ForeignMessage::d() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.ForeignMessage.d)
- return d_;
- }
- inline void ForeignMessage::set_d(::google::protobuf::int32 value) {
- set_has_d();
- d_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.ForeignMessage.d)
- }
- // -------------------------------------------------------------------
- // TestReservedFields
- // -------------------------------------------------------------------
- // TestAllExtensions
- // -------------------------------------------------------------------
- // OptionalGroup_extension
- // optional int32 a = 17;
- inline bool OptionalGroup_extension::has_a() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void OptionalGroup_extension::set_has_a() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void OptionalGroup_extension::clear_has_a() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void OptionalGroup_extension::clear_a() {
- a_ = 0;
- clear_has_a();
- }
- inline ::google::protobuf::int32 OptionalGroup_extension::a() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.OptionalGroup_extension.a)
- return a_;
- }
- inline void OptionalGroup_extension::set_a(::google::protobuf::int32 value) {
- set_has_a();
- a_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.OptionalGroup_extension.a)
- }
- // -------------------------------------------------------------------
- // RepeatedGroup_extension
- // optional int32 a = 47;
- inline bool RepeatedGroup_extension::has_a() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void RepeatedGroup_extension::set_has_a() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void RepeatedGroup_extension::clear_has_a() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void RepeatedGroup_extension::clear_a() {
- a_ = 0;
- clear_has_a();
- }
- inline ::google::protobuf::int32 RepeatedGroup_extension::a() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.RepeatedGroup_extension.a)
- return a_;
- }
- inline void RepeatedGroup_extension::set_a(::google::protobuf::int32 value) {
- set_has_a();
- a_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.RepeatedGroup_extension.a)
- }
- // -------------------------------------------------------------------
- // TestGroup_OptionalGroup
- // optional int32 a = 17;
- inline bool TestGroup_OptionalGroup::has_a() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void TestGroup_OptionalGroup::set_has_a() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void TestGroup_OptionalGroup::clear_has_a() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void TestGroup_OptionalGroup::clear_a() {
- a_ = 0;
- clear_has_a();
- }
- inline ::google::protobuf::int32 TestGroup_OptionalGroup::a() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestGroup.OptionalGroup.a)
- return a_;
- }
- inline void TestGroup_OptionalGroup::set_a(::google::protobuf::int32 value) {
- set_has_a();
- a_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestGroup.OptionalGroup.a)
- }
- // -------------------------------------------------------------------
- // TestGroup
- // optional group OptionalGroup = 16 { ... };
- inline bool TestGroup::has_optionalgroup() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void TestGroup::set_has_optionalgroup() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void TestGroup::clear_has_optionalgroup() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void TestGroup::clear_optionalgroup() {
- if (optionalgroup_ != NULL) optionalgroup_->Clear();
- clear_has_optionalgroup();
- }
- inline const ::protobuf_unittest::TestGroup_OptionalGroup& TestGroup::_internal_optionalgroup() const {
- return *optionalgroup_;
- }
- inline const ::protobuf_unittest::TestGroup_OptionalGroup& TestGroup::optionalgroup() const {
- const ::protobuf_unittest::TestGroup_OptionalGroup* p = optionalgroup_;
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestGroup.optionalgroup)
- return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestGroup_OptionalGroup*>(
- &::protobuf_unittest::_TestGroup_OptionalGroup_default_instance_);
- }
- inline ::protobuf_unittest::TestGroup_OptionalGroup* TestGroup::release_optionalgroup() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestGroup.optionalgroup)
- clear_has_optionalgroup();
- ::protobuf_unittest::TestGroup_OptionalGroup* temp = optionalgroup_;
- if (GetArenaNoVirtual() != NULL) {
- temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
- }
- optionalgroup_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestGroup_OptionalGroup* TestGroup::unsafe_arena_release_optionalgroup() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestGroup.optionalgroup)
- clear_has_optionalgroup();
- ::protobuf_unittest::TestGroup_OptionalGroup* temp = optionalgroup_;
- optionalgroup_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestGroup_OptionalGroup* TestGroup::mutable_optionalgroup() {
- set_has_optionalgroup();
- if (optionalgroup_ == NULL) {
- auto* p = CreateMaybeMessage<::protobuf_unittest::TestGroup_OptionalGroup>(GetArenaNoVirtual());
- optionalgroup_ = p;
- }
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestGroup.optionalgroup)
- return optionalgroup_;
- }
- inline void TestGroup::set_allocated_optionalgroup(::protobuf_unittest::TestGroup_OptionalGroup* optionalgroup) {
- ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
- if (message_arena == NULL) {
- delete optionalgroup_;
- }
- if (optionalgroup) {
- ::google::protobuf::Arena* submessage_arena =
- ::google::protobuf::Arena::GetArena(optionalgroup);
- if (message_arena != submessage_arena) {
- optionalgroup = ::google::protobuf::internal::GetOwnedMessage(
- message_arena, optionalgroup, submessage_arena);
- }
- set_has_optionalgroup();
- } else {
- clear_has_optionalgroup();
- }
- optionalgroup_ = optionalgroup;
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestGroup.optionalgroup)
- }
- // optional .protobuf_unittest.ForeignEnum optional_foreign_enum = 22;
- inline bool TestGroup::has_optional_foreign_enum() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
- }
- inline void TestGroup::set_has_optional_foreign_enum() {
- _has_bits_[0] |= 0x00000002u;
- }
- inline void TestGroup::clear_has_optional_foreign_enum() {
- _has_bits_[0] &= ~0x00000002u;
- }
- inline void TestGroup::clear_optional_foreign_enum() {
- optional_foreign_enum_ = 4;
- clear_has_optional_foreign_enum();
- }
- inline ::protobuf_unittest::ForeignEnum TestGroup::optional_foreign_enum() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestGroup.optional_foreign_enum)
- return static_cast< ::protobuf_unittest::ForeignEnum >(optional_foreign_enum_);
- }
- inline void TestGroup::set_optional_foreign_enum(::protobuf_unittest::ForeignEnum value) {
- assert(::protobuf_unittest::ForeignEnum_IsValid(value));
- set_has_optional_foreign_enum();
- optional_foreign_enum_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestGroup.optional_foreign_enum)
- }
- // -------------------------------------------------------------------
- // TestGroupExtension
- // -------------------------------------------------------------------
- // TestNestedExtension_OptionalGroup_extension
- // optional int32 a = 17;
- inline bool TestNestedExtension_OptionalGroup_extension::has_a() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void TestNestedExtension_OptionalGroup_extension::set_has_a() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void TestNestedExtension_OptionalGroup_extension::clear_has_a() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void TestNestedExtension_OptionalGroup_extension::clear_a() {
- a_ = 0;
- clear_has_a();
- }
- inline ::google::protobuf::int32 TestNestedExtension_OptionalGroup_extension::a() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestNestedExtension.OptionalGroup_extension.a)
- return a_;
- }
- inline void TestNestedExtension_OptionalGroup_extension::set_a(::google::protobuf::int32 value) {
- set_has_a();
- a_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestNestedExtension.OptionalGroup_extension.a)
- }
- // -------------------------------------------------------------------
- // TestNestedExtension
- // -------------------------------------------------------------------
- // TestRequired
- // required int32 a = 1;
- inline bool TestRequired::has_a() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void TestRequired::set_has_a() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void TestRequired::clear_has_a() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void TestRequired::clear_a() {
- a_ = 0;
- clear_has_a();
- }
- inline ::google::protobuf::int32 TestRequired::a() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequired.a)
- return a_;
- }
- inline void TestRequired::set_a(::google::protobuf::int32 value) {
- set_has_a();
- a_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequired.a)
- }
- // optional int32 dummy2 = 2;
- inline bool TestRequired::has_dummy2() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
- }
- inline void TestRequired::set_has_dummy2() {
- _has_bits_[0] |= 0x00000002u;
- }
- inline void TestRequired::clear_has_dummy2() {
- _has_bits_[0] &= ~0x00000002u;
- }
- inline void TestRequired::clear_dummy2() {
- dummy2_ = 0;
- clear_has_dummy2();
- }
- inline ::google::protobuf::int32 TestRequired::dummy2() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequired.dummy2)
- return dummy2_;
- }
- inline void TestRequired::set_dummy2(::google::protobuf::int32 value) {
- set_has_dummy2();
- dummy2_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequired.dummy2)
- }
- // required int32 b = 3;
- inline bool TestRequired::has_b() const {
- return (_has_bits_[0] & 0x00000004u) != 0;
- }
- inline void TestRequired::set_has_b() {
- _has_bits_[0] |= 0x00000004u;
- }
- inline void TestRequired::clear_has_b() {
- _has_bits_[0] &= ~0x00000004u;
- }
- inline void TestRequired::clear_b() {
- b_ = 0;
- clear_has_b();
- }
- inline ::google::protobuf::int32 TestRequired::b() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequired.b)
- return b_;
- }
- inline void TestRequired::set_b(::google::protobuf::int32 value) {
- set_has_b();
- b_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequired.b)
- }
- // optional int32 dummy4 = 4;
- inline bool TestRequired::has_dummy4() const {
- return (_has_bits_[0] & 0x00000008u) != 0;
- }
- inline void TestRequired::set_has_dummy4() {
- _has_bits_[0] |= 0x00000008u;
- }
- inline void TestRequired::clear_has_dummy4() {
- _has_bits_[0] &= ~0x00000008u;
- }
- inline void TestRequired::clear_dummy4() {
- dummy4_ = 0;
- clear_has_dummy4();
- }
- inline ::google::protobuf::int32 TestRequired::dummy4() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequired.dummy4)
- return dummy4_;
- }
- inline void TestRequired::set_dummy4(::google::protobuf::int32 value) {
- set_has_dummy4();
- dummy4_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequired.dummy4)
- }
- // optional int32 dummy5 = 5;
- inline bool TestRequired::has_dummy5() const {
- return (_has_bits_[0] & 0x00000010u) != 0;
- }
- inline void TestRequired::set_has_dummy5() {
- _has_bits_[0] |= 0x00000010u;
- }
- inline void TestRequired::clear_has_dummy5() {
- _has_bits_[0] &= ~0x00000010u;
- }
- inline void TestRequired::clear_dummy5() {
- dummy5_ = 0;
- clear_has_dummy5();
- }
- inline ::google::protobuf::int32 TestRequired::dummy5() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequired.dummy5)
- return dummy5_;
- }
- inline void TestRequired::set_dummy5(::google::protobuf::int32 value) {
- set_has_dummy5();
- dummy5_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequired.dummy5)
- }
- // optional int32 dummy6 = 6;
- inline bool TestRequired::has_dummy6() const {
- return (_has_bits_[0] & 0x00000020u) != 0;
- }
- inline void TestRequired::set_has_dummy6() {
- _has_bits_[0] |= 0x00000020u;
- }
- inline void TestRequired::clear_has_dummy6() {
- _has_bits_[0] &= ~0x00000020u;
- }
- inline void TestRequired::clear_dummy6() {
- dummy6_ = 0;
- clear_has_dummy6();
- }
- inline ::google::protobuf::int32 TestRequired::dummy6() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequired.dummy6)
- return dummy6_;
- }
- inline void TestRequired::set_dummy6(::google::protobuf::int32 value) {
- set_has_dummy6();
- dummy6_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequired.dummy6)
- }
- // optional int32 dummy7 = 7;
- inline bool TestRequired::has_dummy7() const {
- return (_has_bits_[0] & 0x00000040u) != 0;
- }
- inline void TestRequired::set_has_dummy7() {
- _has_bits_[0] |= 0x00000040u;
- }
- inline void TestRequired::clear_has_dummy7() {
- _has_bits_[0] &= ~0x00000040u;
- }
- inline void TestRequired::clear_dummy7() {
- dummy7_ = 0;
- clear_has_dummy7();
- }
- inline ::google::protobuf::int32 TestRequired::dummy7() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequired.dummy7)
- return dummy7_;
- }
- inline void TestRequired::set_dummy7(::google::protobuf::int32 value) {
- set_has_dummy7();
- dummy7_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequired.dummy7)
- }
- // optional int32 dummy8 = 8;
- inline bool TestRequired::has_dummy8() const {
- return (_has_bits_[0] & 0x00000080u) != 0;
- }
- inline void TestRequired::set_has_dummy8() {
- _has_bits_[0] |= 0x00000080u;
- }
- inline void TestRequired::clear_has_dummy8() {
- _has_bits_[0] &= ~0x00000080u;
- }
- inline void TestRequired::clear_dummy8() {
- dummy8_ = 0;
- clear_has_dummy8();
- }
- inline ::google::protobuf::int32 TestRequired::dummy8() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequired.dummy8)
- return dummy8_;
- }
- inline void TestRequired::set_dummy8(::google::protobuf::int32 value) {
- set_has_dummy8();
- dummy8_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequired.dummy8)
- }
- // optional int32 dummy9 = 9;
- inline bool TestRequired::has_dummy9() const {
- return (_has_bits_[0] & 0x00000100u) != 0;
- }
- inline void TestRequired::set_has_dummy9() {
- _has_bits_[0] |= 0x00000100u;
- }
- inline void TestRequired::clear_has_dummy9() {
- _has_bits_[0] &= ~0x00000100u;
- }
- inline void TestRequired::clear_dummy9() {
- dummy9_ = 0;
- clear_has_dummy9();
- }
- inline ::google::protobuf::int32 TestRequired::dummy9() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequired.dummy9)
- return dummy9_;
- }
- inline void TestRequired::set_dummy9(::google::protobuf::int32 value) {
- set_has_dummy9();
- dummy9_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequired.dummy9)
- }
- // optional int32 dummy10 = 10;
- inline bool TestRequired::has_dummy10() const {
- return (_has_bits_[0] & 0x00000200u) != 0;
- }
- inline void TestRequired::set_has_dummy10() {
- _has_bits_[0] |= 0x00000200u;
- }
- inline void TestRequired::clear_has_dummy10() {
- _has_bits_[0] &= ~0x00000200u;
- }
- inline void TestRequired::clear_dummy10() {
- dummy10_ = 0;
- clear_has_dummy10();
- }
- inline ::google::protobuf::int32 TestRequired::dummy10() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequired.dummy10)
- return dummy10_;
- }
- inline void TestRequired::set_dummy10(::google::protobuf::int32 value) {
- set_has_dummy10();
- dummy10_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequired.dummy10)
- }
- // optional int32 dummy11 = 11;
- inline bool TestRequired::has_dummy11() const {
- return (_has_bits_[0] & 0x00000400u) != 0;
- }
- inline void TestRequired::set_has_dummy11() {
- _has_bits_[0] |= 0x00000400u;
- }
- inline void TestRequired::clear_has_dummy11() {
- _has_bits_[0] &= ~0x00000400u;
- }
- inline void TestRequired::clear_dummy11() {
- dummy11_ = 0;
- clear_has_dummy11();
- }
- inline ::google::protobuf::int32 TestRequired::dummy11() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequired.dummy11)
- return dummy11_;
- }
- inline void TestRequired::set_dummy11(::google::protobuf::int32 value) {
- set_has_dummy11();
- dummy11_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequired.dummy11)
- }
- // optional int32 dummy12 = 12;
- inline bool TestRequired::has_dummy12() const {
- return (_has_bits_[0] & 0x00000800u) != 0;
- }
- inline void TestRequired::set_has_dummy12() {
- _has_bits_[0] |= 0x00000800u;
- }
- inline void TestRequired::clear_has_dummy12() {
- _has_bits_[0] &= ~0x00000800u;
- }
- inline void TestRequired::clear_dummy12() {
- dummy12_ = 0;
- clear_has_dummy12();
- }
- inline ::google::protobuf::int32 TestRequired::dummy12() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequired.dummy12)
- return dummy12_;
- }
- inline void TestRequired::set_dummy12(::google::protobuf::int32 value) {
- set_has_dummy12();
- dummy12_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequired.dummy12)
- }
- // optional int32 dummy13 = 13;
- inline bool TestRequired::has_dummy13() const {
- return (_has_bits_[0] & 0x00001000u) != 0;
- }
- inline void TestRequired::set_has_dummy13() {
- _has_bits_[0] |= 0x00001000u;
- }
- inline void TestRequired::clear_has_dummy13() {
- _has_bits_[0] &= ~0x00001000u;
- }
- inline void TestRequired::clear_dummy13() {
- dummy13_ = 0;
- clear_has_dummy13();
- }
- inline ::google::protobuf::int32 TestRequired::dummy13() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequired.dummy13)
- return dummy13_;
- }
- inline void TestRequired::set_dummy13(::google::protobuf::int32 value) {
- set_has_dummy13();
- dummy13_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequired.dummy13)
- }
- // optional int32 dummy14 = 14;
- inline bool TestRequired::has_dummy14() const {
- return (_has_bits_[0] & 0x00002000u) != 0;
- }
- inline void TestRequired::set_has_dummy14() {
- _has_bits_[0] |= 0x00002000u;
- }
- inline void TestRequired::clear_has_dummy14() {
- _has_bits_[0] &= ~0x00002000u;
- }
- inline void TestRequired::clear_dummy14() {
- dummy14_ = 0;
- clear_has_dummy14();
- }
- inline ::google::protobuf::int32 TestRequired::dummy14() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequired.dummy14)
- return dummy14_;
- }
- inline void TestRequired::set_dummy14(::google::protobuf::int32 value) {
- set_has_dummy14();
- dummy14_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequired.dummy14)
- }
- // optional int32 dummy15 = 15;
- inline bool TestRequired::has_dummy15() const {
- return (_has_bits_[0] & 0x00004000u) != 0;
- }
- inline void TestRequired::set_has_dummy15() {
- _has_bits_[0] |= 0x00004000u;
- }
- inline void TestRequired::clear_has_dummy15() {
- _has_bits_[0] &= ~0x00004000u;
- }
- inline void TestRequired::clear_dummy15() {
- dummy15_ = 0;
- clear_has_dummy15();
- }
- inline ::google::protobuf::int32 TestRequired::dummy15() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequired.dummy15)
- return dummy15_;
- }
- inline void TestRequired::set_dummy15(::google::protobuf::int32 value) {
- set_has_dummy15();
- dummy15_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequired.dummy15)
- }
- // optional int32 dummy16 = 16;
- inline bool TestRequired::has_dummy16() const {
- return (_has_bits_[0] & 0x00008000u) != 0;
- }
- inline void TestRequired::set_has_dummy16() {
- _has_bits_[0] |= 0x00008000u;
- }
- inline void TestRequired::clear_has_dummy16() {
- _has_bits_[0] &= ~0x00008000u;
- }
- inline void TestRequired::clear_dummy16() {
- dummy16_ = 0;
- clear_has_dummy16();
- }
- inline ::google::protobuf::int32 TestRequired::dummy16() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequired.dummy16)
- return dummy16_;
- }
- inline void TestRequired::set_dummy16(::google::protobuf::int32 value) {
- set_has_dummy16();
- dummy16_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequired.dummy16)
- }
- // optional int32 dummy17 = 17;
- inline bool TestRequired::has_dummy17() const {
- return (_has_bits_[0] & 0x00010000u) != 0;
- }
- inline void TestRequired::set_has_dummy17() {
- _has_bits_[0] |= 0x00010000u;
- }
- inline void TestRequired::clear_has_dummy17() {
- _has_bits_[0] &= ~0x00010000u;
- }
- inline void TestRequired::clear_dummy17() {
- dummy17_ = 0;
- clear_has_dummy17();
- }
- inline ::google::protobuf::int32 TestRequired::dummy17() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequired.dummy17)
- return dummy17_;
- }
- inline void TestRequired::set_dummy17(::google::protobuf::int32 value) {
- set_has_dummy17();
- dummy17_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequired.dummy17)
- }
- // optional int32 dummy18 = 18;
- inline bool TestRequired::has_dummy18() const {
- return (_has_bits_[0] & 0x00020000u) != 0;
- }
- inline void TestRequired::set_has_dummy18() {
- _has_bits_[0] |= 0x00020000u;
- }
- inline void TestRequired::clear_has_dummy18() {
- _has_bits_[0] &= ~0x00020000u;
- }
- inline void TestRequired::clear_dummy18() {
- dummy18_ = 0;
- clear_has_dummy18();
- }
- inline ::google::protobuf::int32 TestRequired::dummy18() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequired.dummy18)
- return dummy18_;
- }
- inline void TestRequired::set_dummy18(::google::protobuf::int32 value) {
- set_has_dummy18();
- dummy18_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequired.dummy18)
- }
- // optional int32 dummy19 = 19;
- inline bool TestRequired::has_dummy19() const {
- return (_has_bits_[0] & 0x00040000u) != 0;
- }
- inline void TestRequired::set_has_dummy19() {
- _has_bits_[0] |= 0x00040000u;
- }
- inline void TestRequired::clear_has_dummy19() {
- _has_bits_[0] &= ~0x00040000u;
- }
- inline void TestRequired::clear_dummy19() {
- dummy19_ = 0;
- clear_has_dummy19();
- }
- inline ::google::protobuf::int32 TestRequired::dummy19() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequired.dummy19)
- return dummy19_;
- }
- inline void TestRequired::set_dummy19(::google::protobuf::int32 value) {
- set_has_dummy19();
- dummy19_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequired.dummy19)
- }
- // optional int32 dummy20 = 20;
- inline bool TestRequired::has_dummy20() const {
- return (_has_bits_[0] & 0x00080000u) != 0;
- }
- inline void TestRequired::set_has_dummy20() {
- _has_bits_[0] |= 0x00080000u;
- }
- inline void TestRequired::clear_has_dummy20() {
- _has_bits_[0] &= ~0x00080000u;
- }
- inline void TestRequired::clear_dummy20() {
- dummy20_ = 0;
- clear_has_dummy20();
- }
- inline ::google::protobuf::int32 TestRequired::dummy20() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequired.dummy20)
- return dummy20_;
- }
- inline void TestRequired::set_dummy20(::google::protobuf::int32 value) {
- set_has_dummy20();
- dummy20_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequired.dummy20)
- }
- // optional int32 dummy21 = 21;
- inline bool TestRequired::has_dummy21() const {
- return (_has_bits_[0] & 0x00100000u) != 0;
- }
- inline void TestRequired::set_has_dummy21() {
- _has_bits_[0] |= 0x00100000u;
- }
- inline void TestRequired::clear_has_dummy21() {
- _has_bits_[0] &= ~0x00100000u;
- }
- inline void TestRequired::clear_dummy21() {
- dummy21_ = 0;
- clear_has_dummy21();
- }
- inline ::google::protobuf::int32 TestRequired::dummy21() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequired.dummy21)
- return dummy21_;
- }
- inline void TestRequired::set_dummy21(::google::protobuf::int32 value) {
- set_has_dummy21();
- dummy21_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequired.dummy21)
- }
- // optional int32 dummy22 = 22;
- inline bool TestRequired::has_dummy22() const {
- return (_has_bits_[0] & 0x00200000u) != 0;
- }
- inline void TestRequired::set_has_dummy22() {
- _has_bits_[0] |= 0x00200000u;
- }
- inline void TestRequired::clear_has_dummy22() {
- _has_bits_[0] &= ~0x00200000u;
- }
- inline void TestRequired::clear_dummy22() {
- dummy22_ = 0;
- clear_has_dummy22();
- }
- inline ::google::protobuf::int32 TestRequired::dummy22() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequired.dummy22)
- return dummy22_;
- }
- inline void TestRequired::set_dummy22(::google::protobuf::int32 value) {
- set_has_dummy22();
- dummy22_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequired.dummy22)
- }
- // optional int32 dummy23 = 23;
- inline bool TestRequired::has_dummy23() const {
- return (_has_bits_[0] & 0x00400000u) != 0;
- }
- inline void TestRequired::set_has_dummy23() {
- _has_bits_[0] |= 0x00400000u;
- }
- inline void TestRequired::clear_has_dummy23() {
- _has_bits_[0] &= ~0x00400000u;
- }
- inline void TestRequired::clear_dummy23() {
- dummy23_ = 0;
- clear_has_dummy23();
- }
- inline ::google::protobuf::int32 TestRequired::dummy23() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequired.dummy23)
- return dummy23_;
- }
- inline void TestRequired::set_dummy23(::google::protobuf::int32 value) {
- set_has_dummy23();
- dummy23_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequired.dummy23)
- }
- // optional int32 dummy24 = 24;
- inline bool TestRequired::has_dummy24() const {
- return (_has_bits_[0] & 0x00800000u) != 0;
- }
- inline void TestRequired::set_has_dummy24() {
- _has_bits_[0] |= 0x00800000u;
- }
- inline void TestRequired::clear_has_dummy24() {
- _has_bits_[0] &= ~0x00800000u;
- }
- inline void TestRequired::clear_dummy24() {
- dummy24_ = 0;
- clear_has_dummy24();
- }
- inline ::google::protobuf::int32 TestRequired::dummy24() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequired.dummy24)
- return dummy24_;
- }
- inline void TestRequired::set_dummy24(::google::protobuf::int32 value) {
- set_has_dummy24();
- dummy24_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequired.dummy24)
- }
- // optional int32 dummy25 = 25;
- inline bool TestRequired::has_dummy25() const {
- return (_has_bits_[0] & 0x01000000u) != 0;
- }
- inline void TestRequired::set_has_dummy25() {
- _has_bits_[0] |= 0x01000000u;
- }
- inline void TestRequired::clear_has_dummy25() {
- _has_bits_[0] &= ~0x01000000u;
- }
- inline void TestRequired::clear_dummy25() {
- dummy25_ = 0;
- clear_has_dummy25();
- }
- inline ::google::protobuf::int32 TestRequired::dummy25() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequired.dummy25)
- return dummy25_;
- }
- inline void TestRequired::set_dummy25(::google::protobuf::int32 value) {
- set_has_dummy25();
- dummy25_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequired.dummy25)
- }
- // optional int32 dummy26 = 26;
- inline bool TestRequired::has_dummy26() const {
- return (_has_bits_[0] & 0x02000000u) != 0;
- }
- inline void TestRequired::set_has_dummy26() {
- _has_bits_[0] |= 0x02000000u;
- }
- inline void TestRequired::clear_has_dummy26() {
- _has_bits_[0] &= ~0x02000000u;
- }
- inline void TestRequired::clear_dummy26() {
- dummy26_ = 0;
- clear_has_dummy26();
- }
- inline ::google::protobuf::int32 TestRequired::dummy26() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequired.dummy26)
- return dummy26_;
- }
- inline void TestRequired::set_dummy26(::google::protobuf::int32 value) {
- set_has_dummy26();
- dummy26_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequired.dummy26)
- }
- // optional int32 dummy27 = 27;
- inline bool TestRequired::has_dummy27() const {
- return (_has_bits_[0] & 0x04000000u) != 0;
- }
- inline void TestRequired::set_has_dummy27() {
- _has_bits_[0] |= 0x04000000u;
- }
- inline void TestRequired::clear_has_dummy27() {
- _has_bits_[0] &= ~0x04000000u;
- }
- inline void TestRequired::clear_dummy27() {
- dummy27_ = 0;
- clear_has_dummy27();
- }
- inline ::google::protobuf::int32 TestRequired::dummy27() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequired.dummy27)
- return dummy27_;
- }
- inline void TestRequired::set_dummy27(::google::protobuf::int32 value) {
- set_has_dummy27();
- dummy27_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequired.dummy27)
- }
- // optional int32 dummy28 = 28;
- inline bool TestRequired::has_dummy28() const {
- return (_has_bits_[0] & 0x08000000u) != 0;
- }
- inline void TestRequired::set_has_dummy28() {
- _has_bits_[0] |= 0x08000000u;
- }
- inline void TestRequired::clear_has_dummy28() {
- _has_bits_[0] &= ~0x08000000u;
- }
- inline void TestRequired::clear_dummy28() {
- dummy28_ = 0;
- clear_has_dummy28();
- }
- inline ::google::protobuf::int32 TestRequired::dummy28() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequired.dummy28)
- return dummy28_;
- }
- inline void TestRequired::set_dummy28(::google::protobuf::int32 value) {
- set_has_dummy28();
- dummy28_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequired.dummy28)
- }
- // optional int32 dummy29 = 29;
- inline bool TestRequired::has_dummy29() const {
- return (_has_bits_[0] & 0x10000000u) != 0;
- }
- inline void TestRequired::set_has_dummy29() {
- _has_bits_[0] |= 0x10000000u;
- }
- inline void TestRequired::clear_has_dummy29() {
- _has_bits_[0] &= ~0x10000000u;
- }
- inline void TestRequired::clear_dummy29() {
- dummy29_ = 0;
- clear_has_dummy29();
- }
- inline ::google::protobuf::int32 TestRequired::dummy29() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequired.dummy29)
- return dummy29_;
- }
- inline void TestRequired::set_dummy29(::google::protobuf::int32 value) {
- set_has_dummy29();
- dummy29_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequired.dummy29)
- }
- // optional int32 dummy30 = 30;
- inline bool TestRequired::has_dummy30() const {
- return (_has_bits_[0] & 0x20000000u) != 0;
- }
- inline void TestRequired::set_has_dummy30() {
- _has_bits_[0] |= 0x20000000u;
- }
- inline void TestRequired::clear_has_dummy30() {
- _has_bits_[0] &= ~0x20000000u;
- }
- inline void TestRequired::clear_dummy30() {
- dummy30_ = 0;
- clear_has_dummy30();
- }
- inline ::google::protobuf::int32 TestRequired::dummy30() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequired.dummy30)
- return dummy30_;
- }
- inline void TestRequired::set_dummy30(::google::protobuf::int32 value) {
- set_has_dummy30();
- dummy30_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequired.dummy30)
- }
- // optional int32 dummy31 = 31;
- inline bool TestRequired::has_dummy31() const {
- return (_has_bits_[0] & 0x40000000u) != 0;
- }
- inline void TestRequired::set_has_dummy31() {
- _has_bits_[0] |= 0x40000000u;
- }
- inline void TestRequired::clear_has_dummy31() {
- _has_bits_[0] &= ~0x40000000u;
- }
- inline void TestRequired::clear_dummy31() {
- dummy31_ = 0;
- clear_has_dummy31();
- }
- inline ::google::protobuf::int32 TestRequired::dummy31() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequired.dummy31)
- return dummy31_;
- }
- inline void TestRequired::set_dummy31(::google::protobuf::int32 value) {
- set_has_dummy31();
- dummy31_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequired.dummy31)
- }
- // optional int32 dummy32 = 32;
- inline bool TestRequired::has_dummy32() const {
- return (_has_bits_[0] & 0x80000000u) != 0;
- }
- inline void TestRequired::set_has_dummy32() {
- _has_bits_[0] |= 0x80000000u;
- }
- inline void TestRequired::clear_has_dummy32() {
- _has_bits_[0] &= ~0x80000000u;
- }
- inline void TestRequired::clear_dummy32() {
- dummy32_ = 0;
- clear_has_dummy32();
- }
- inline ::google::protobuf::int32 TestRequired::dummy32() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequired.dummy32)
- return dummy32_;
- }
- inline void TestRequired::set_dummy32(::google::protobuf::int32 value) {
- set_has_dummy32();
- dummy32_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequired.dummy32)
- }
- // required int32 c = 33;
- inline bool TestRequired::has_c() const {
- return (_has_bits_[1] & 0x00000001u) != 0;
- }
- inline void TestRequired::set_has_c() {
- _has_bits_[1] |= 0x00000001u;
- }
- inline void TestRequired::clear_has_c() {
- _has_bits_[1] &= ~0x00000001u;
- }
- inline void TestRequired::clear_c() {
- c_ = 0;
- clear_has_c();
- }
- inline ::google::protobuf::int32 TestRequired::c() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequired.c)
- return c_;
- }
- inline void TestRequired::set_c(::google::protobuf::int32 value) {
- set_has_c();
- c_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequired.c)
- }
- // -------------------------------------------------------------------
- // TestRequiredForeign
- // optional .protobuf_unittest.TestRequired optional_message = 1;
- inline bool TestRequiredForeign::has_optional_message() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void TestRequiredForeign::set_has_optional_message() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void TestRequiredForeign::clear_has_optional_message() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void TestRequiredForeign::clear_optional_message() {
- if (optional_message_ != NULL) optional_message_->Clear();
- clear_has_optional_message();
- }
- inline const ::protobuf_unittest::TestRequired& TestRequiredForeign::_internal_optional_message() const {
- return *optional_message_;
- }
- inline const ::protobuf_unittest::TestRequired& TestRequiredForeign::optional_message() const {
- const ::protobuf_unittest::TestRequired* p = optional_message_;
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequiredForeign.optional_message)
- return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestRequired*>(
- &::protobuf_unittest::_TestRequired_default_instance_);
- }
- inline ::protobuf_unittest::TestRequired* TestRequiredForeign::release_optional_message() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestRequiredForeign.optional_message)
- clear_has_optional_message();
- ::protobuf_unittest::TestRequired* temp = optional_message_;
- if (GetArenaNoVirtual() != NULL) {
- temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
- }
- optional_message_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestRequired* TestRequiredForeign::unsafe_arena_release_optional_message() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestRequiredForeign.optional_message)
- clear_has_optional_message();
- ::protobuf_unittest::TestRequired* temp = optional_message_;
- optional_message_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestRequired* TestRequiredForeign::mutable_optional_message() {
- set_has_optional_message();
- if (optional_message_ == NULL) {
- auto* p = CreateMaybeMessage<::protobuf_unittest::TestRequired>(GetArenaNoVirtual());
- optional_message_ = p;
- }
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestRequiredForeign.optional_message)
- return optional_message_;
- }
- inline void TestRequiredForeign::set_allocated_optional_message(::protobuf_unittest::TestRequired* optional_message) {
- ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
- if (message_arena == NULL) {
- delete optional_message_;
- }
- if (optional_message) {
- ::google::protobuf::Arena* submessage_arena =
- ::google::protobuf::Arena::GetArena(optional_message);
- if (message_arena != submessage_arena) {
- optional_message = ::google::protobuf::internal::GetOwnedMessage(
- message_arena, optional_message, submessage_arena);
- }
- set_has_optional_message();
- } else {
- clear_has_optional_message();
- }
- optional_message_ = optional_message;
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestRequiredForeign.optional_message)
- }
- // repeated .protobuf_unittest.TestRequired repeated_message = 2;
- inline int TestRequiredForeign::repeated_message_size() const {
- return repeated_message_.size();
- }
- inline void TestRequiredForeign::clear_repeated_message() {
- repeated_message_.Clear();
- }
- inline ::protobuf_unittest::TestRequired* TestRequiredForeign::mutable_repeated_message(int index) {
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestRequiredForeign.repeated_message)
- return repeated_message_.Mutable(index);
- }
- inline ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestRequired >*
- TestRequiredForeign::mutable_repeated_message() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestRequiredForeign.repeated_message)
- return &repeated_message_;
- }
- inline const ::protobuf_unittest::TestRequired& TestRequiredForeign::repeated_message(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequiredForeign.repeated_message)
- return repeated_message_.Get(index);
- }
- inline ::protobuf_unittest::TestRequired* TestRequiredForeign::add_repeated_message() {
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestRequiredForeign.repeated_message)
- return repeated_message_.Add();
- }
- inline const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestRequired >&
- TestRequiredForeign::repeated_message() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestRequiredForeign.repeated_message)
- return repeated_message_;
- }
- // optional int32 dummy = 3;
- inline bool TestRequiredForeign::has_dummy() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
- }
- inline void TestRequiredForeign::set_has_dummy() {
- _has_bits_[0] |= 0x00000002u;
- }
- inline void TestRequiredForeign::clear_has_dummy() {
- _has_bits_[0] &= ~0x00000002u;
- }
- inline void TestRequiredForeign::clear_dummy() {
- dummy_ = 0;
- clear_has_dummy();
- }
- inline ::google::protobuf::int32 TestRequiredForeign::dummy() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequiredForeign.dummy)
- return dummy_;
- }
- inline void TestRequiredForeign::set_dummy(::google::protobuf::int32 value) {
- set_has_dummy();
- dummy_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequiredForeign.dummy)
- }
- // -------------------------------------------------------------------
- // TestRequiredMessage
- // optional .protobuf_unittest.TestRequired optional_message = 1;
- inline bool TestRequiredMessage::has_optional_message() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void TestRequiredMessage::set_has_optional_message() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void TestRequiredMessage::clear_has_optional_message() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void TestRequiredMessage::clear_optional_message() {
- if (optional_message_ != NULL) optional_message_->Clear();
- clear_has_optional_message();
- }
- inline const ::protobuf_unittest::TestRequired& TestRequiredMessage::_internal_optional_message() const {
- return *optional_message_;
- }
- inline const ::protobuf_unittest::TestRequired& TestRequiredMessage::optional_message() const {
- const ::protobuf_unittest::TestRequired* p = optional_message_;
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequiredMessage.optional_message)
- return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestRequired*>(
- &::protobuf_unittest::_TestRequired_default_instance_);
- }
- inline ::protobuf_unittest::TestRequired* TestRequiredMessage::release_optional_message() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestRequiredMessage.optional_message)
- clear_has_optional_message();
- ::protobuf_unittest::TestRequired* temp = optional_message_;
- if (GetArenaNoVirtual() != NULL) {
- temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
- }
- optional_message_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestRequired* TestRequiredMessage::unsafe_arena_release_optional_message() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestRequiredMessage.optional_message)
- clear_has_optional_message();
- ::protobuf_unittest::TestRequired* temp = optional_message_;
- optional_message_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestRequired* TestRequiredMessage::mutable_optional_message() {
- set_has_optional_message();
- if (optional_message_ == NULL) {
- auto* p = CreateMaybeMessage<::protobuf_unittest::TestRequired>(GetArenaNoVirtual());
- optional_message_ = p;
- }
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestRequiredMessage.optional_message)
- return optional_message_;
- }
- inline void TestRequiredMessage::set_allocated_optional_message(::protobuf_unittest::TestRequired* optional_message) {
- ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
- if (message_arena == NULL) {
- delete optional_message_;
- }
- if (optional_message) {
- ::google::protobuf::Arena* submessage_arena =
- ::google::protobuf::Arena::GetArena(optional_message);
- if (message_arena != submessage_arena) {
- optional_message = ::google::protobuf::internal::GetOwnedMessage(
- message_arena, optional_message, submessage_arena);
- }
- set_has_optional_message();
- } else {
- clear_has_optional_message();
- }
- optional_message_ = optional_message;
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestRequiredMessage.optional_message)
- }
- // repeated .protobuf_unittest.TestRequired repeated_message = 2;
- inline int TestRequiredMessage::repeated_message_size() const {
- return repeated_message_.size();
- }
- inline void TestRequiredMessage::clear_repeated_message() {
- repeated_message_.Clear();
- }
- inline ::protobuf_unittest::TestRequired* TestRequiredMessage::mutable_repeated_message(int index) {
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestRequiredMessage.repeated_message)
- return repeated_message_.Mutable(index);
- }
- inline ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestRequired >*
- TestRequiredMessage::mutable_repeated_message() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestRequiredMessage.repeated_message)
- return &repeated_message_;
- }
- inline const ::protobuf_unittest::TestRequired& TestRequiredMessage::repeated_message(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequiredMessage.repeated_message)
- return repeated_message_.Get(index);
- }
- inline ::protobuf_unittest::TestRequired* TestRequiredMessage::add_repeated_message() {
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestRequiredMessage.repeated_message)
- return repeated_message_.Add();
- }
- inline const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestRequired >&
- TestRequiredMessage::repeated_message() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestRequiredMessage.repeated_message)
- return repeated_message_;
- }
- // required .protobuf_unittest.TestRequired required_message = 3;
- inline bool TestRequiredMessage::has_required_message() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
- }
- inline void TestRequiredMessage::set_has_required_message() {
- _has_bits_[0] |= 0x00000002u;
- }
- inline void TestRequiredMessage::clear_has_required_message() {
- _has_bits_[0] &= ~0x00000002u;
- }
- inline void TestRequiredMessage::clear_required_message() {
- if (required_message_ != NULL) required_message_->Clear();
- clear_has_required_message();
- }
- inline const ::protobuf_unittest::TestRequired& TestRequiredMessage::_internal_required_message() const {
- return *required_message_;
- }
- inline const ::protobuf_unittest::TestRequired& TestRequiredMessage::required_message() const {
- const ::protobuf_unittest::TestRequired* p = required_message_;
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequiredMessage.required_message)
- return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestRequired*>(
- &::protobuf_unittest::_TestRequired_default_instance_);
- }
- inline ::protobuf_unittest::TestRequired* TestRequiredMessage::release_required_message() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestRequiredMessage.required_message)
- clear_has_required_message();
- ::protobuf_unittest::TestRequired* temp = required_message_;
- if (GetArenaNoVirtual() != NULL) {
- temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
- }
- required_message_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestRequired* TestRequiredMessage::unsafe_arena_release_required_message() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestRequiredMessage.required_message)
- clear_has_required_message();
- ::protobuf_unittest::TestRequired* temp = required_message_;
- required_message_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestRequired* TestRequiredMessage::mutable_required_message() {
- set_has_required_message();
- if (required_message_ == NULL) {
- auto* p = CreateMaybeMessage<::protobuf_unittest::TestRequired>(GetArenaNoVirtual());
- required_message_ = p;
- }
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestRequiredMessage.required_message)
- return required_message_;
- }
- inline void TestRequiredMessage::set_allocated_required_message(::protobuf_unittest::TestRequired* required_message) {
- ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
- if (message_arena == NULL) {
- delete required_message_;
- }
- if (required_message) {
- ::google::protobuf::Arena* submessage_arena =
- ::google::protobuf::Arena::GetArena(required_message);
- if (message_arena != submessage_arena) {
- required_message = ::google::protobuf::internal::GetOwnedMessage(
- message_arena, required_message, submessage_arena);
- }
- set_has_required_message();
- } else {
- clear_has_required_message();
- }
- required_message_ = required_message;
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestRequiredMessage.required_message)
- }
- // -------------------------------------------------------------------
- // TestForeignNested
- // optional .protobuf_unittest.TestAllTypes.NestedMessage foreign_nested = 1;
- inline bool TestForeignNested::has_foreign_nested() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void TestForeignNested::set_has_foreign_nested() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void TestForeignNested::clear_has_foreign_nested() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void TestForeignNested::clear_foreign_nested() {
- if (foreign_nested_ != NULL) foreign_nested_->Clear();
- clear_has_foreign_nested();
- }
- inline const ::protobuf_unittest::TestAllTypes_NestedMessage& TestForeignNested::_internal_foreign_nested() const {
- return *foreign_nested_;
- }
- inline const ::protobuf_unittest::TestAllTypes_NestedMessage& TestForeignNested::foreign_nested() const {
- const ::protobuf_unittest::TestAllTypes_NestedMessage* p = foreign_nested_;
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestForeignNested.foreign_nested)
- return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestAllTypes_NestedMessage*>(
- &::protobuf_unittest::_TestAllTypes_NestedMessage_default_instance_);
- }
- inline ::protobuf_unittest::TestAllTypes_NestedMessage* TestForeignNested::release_foreign_nested() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestForeignNested.foreign_nested)
- clear_has_foreign_nested();
- ::protobuf_unittest::TestAllTypes_NestedMessage* temp = foreign_nested_;
- if (GetArenaNoVirtual() != NULL) {
- temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
- }
- foreign_nested_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestAllTypes_NestedMessage* TestForeignNested::unsafe_arena_release_foreign_nested() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestForeignNested.foreign_nested)
- clear_has_foreign_nested();
- ::protobuf_unittest::TestAllTypes_NestedMessage* temp = foreign_nested_;
- foreign_nested_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestAllTypes_NestedMessage* TestForeignNested::mutable_foreign_nested() {
- set_has_foreign_nested();
- if (foreign_nested_ == NULL) {
- auto* p = CreateMaybeMessage<::protobuf_unittest::TestAllTypes_NestedMessage>(GetArenaNoVirtual());
- foreign_nested_ = p;
- }
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestForeignNested.foreign_nested)
- return foreign_nested_;
- }
- inline void TestForeignNested::set_allocated_foreign_nested(::protobuf_unittest::TestAllTypes_NestedMessage* foreign_nested) {
- ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
- if (message_arena == NULL) {
- delete foreign_nested_;
- }
- if (foreign_nested) {
- ::google::protobuf::Arena* submessage_arena =
- ::google::protobuf::Arena::GetArena(foreign_nested);
- if (message_arena != submessage_arena) {
- foreign_nested = ::google::protobuf::internal::GetOwnedMessage(
- message_arena, foreign_nested, submessage_arena);
- }
- set_has_foreign_nested();
- } else {
- clear_has_foreign_nested();
- }
- foreign_nested_ = foreign_nested;
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestForeignNested.foreign_nested)
- }
- // -------------------------------------------------------------------
- // TestEmptyMessage
- // -------------------------------------------------------------------
- // TestEmptyMessageWithExtensions
- // -------------------------------------------------------------------
- // TestMultipleExtensionRanges
- // -------------------------------------------------------------------
- // TestReallyLargeTagNumber
- // optional int32 a = 1;
- inline bool TestReallyLargeTagNumber::has_a() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void TestReallyLargeTagNumber::set_has_a() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void TestReallyLargeTagNumber::clear_has_a() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void TestReallyLargeTagNumber::clear_a() {
- a_ = 0;
- clear_has_a();
- }
- inline ::google::protobuf::int32 TestReallyLargeTagNumber::a() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestReallyLargeTagNumber.a)
- return a_;
- }
- inline void TestReallyLargeTagNumber::set_a(::google::protobuf::int32 value) {
- set_has_a();
- a_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestReallyLargeTagNumber.a)
- }
- // optional int32 bb = 268435455;
- inline bool TestReallyLargeTagNumber::has_bb() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
- }
- inline void TestReallyLargeTagNumber::set_has_bb() {
- _has_bits_[0] |= 0x00000002u;
- }
- inline void TestReallyLargeTagNumber::clear_has_bb() {
- _has_bits_[0] &= ~0x00000002u;
- }
- inline void TestReallyLargeTagNumber::clear_bb() {
- bb_ = 0;
- clear_has_bb();
- }
- inline ::google::protobuf::int32 TestReallyLargeTagNumber::bb() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestReallyLargeTagNumber.bb)
- return bb_;
- }
- inline void TestReallyLargeTagNumber::set_bb(::google::protobuf::int32 value) {
- set_has_bb();
- bb_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestReallyLargeTagNumber.bb)
- }
- // -------------------------------------------------------------------
- // TestRecursiveMessage
- // optional .protobuf_unittest.TestRecursiveMessage a = 1;
- inline bool TestRecursiveMessage::has_a() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void TestRecursiveMessage::set_has_a() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void TestRecursiveMessage::clear_has_a() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void TestRecursiveMessage::clear_a() {
- if (a_ != NULL) a_->Clear();
- clear_has_a();
- }
- inline const ::protobuf_unittest::TestRecursiveMessage& TestRecursiveMessage::_internal_a() const {
- return *a_;
- }
- inline const ::protobuf_unittest::TestRecursiveMessage& TestRecursiveMessage::a() const {
- const ::protobuf_unittest::TestRecursiveMessage* p = a_;
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestRecursiveMessage.a)
- return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestRecursiveMessage*>(
- &::protobuf_unittest::_TestRecursiveMessage_default_instance_);
- }
- inline ::protobuf_unittest::TestRecursiveMessage* TestRecursiveMessage::release_a() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestRecursiveMessage.a)
- clear_has_a();
- ::protobuf_unittest::TestRecursiveMessage* temp = a_;
- if (GetArenaNoVirtual() != NULL) {
- temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
- }
- a_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestRecursiveMessage* TestRecursiveMessage::unsafe_arena_release_a() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestRecursiveMessage.a)
- clear_has_a();
- ::protobuf_unittest::TestRecursiveMessage* temp = a_;
- a_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestRecursiveMessage* TestRecursiveMessage::mutable_a() {
- set_has_a();
- if (a_ == NULL) {
- auto* p = CreateMaybeMessage<::protobuf_unittest::TestRecursiveMessage>(GetArenaNoVirtual());
- a_ = p;
- }
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestRecursiveMessage.a)
- return a_;
- }
- inline void TestRecursiveMessage::set_allocated_a(::protobuf_unittest::TestRecursiveMessage* a) {
- ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
- if (message_arena == NULL) {
- delete a_;
- }
- if (a) {
- ::google::protobuf::Arena* submessage_arena =
- ::google::protobuf::Arena::GetArena(a);
- if (message_arena != submessage_arena) {
- a = ::google::protobuf::internal::GetOwnedMessage(
- message_arena, a, submessage_arena);
- }
- set_has_a();
- } else {
- clear_has_a();
- }
- a_ = a;
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestRecursiveMessage.a)
- }
- // optional int32 i = 2;
- inline bool TestRecursiveMessage::has_i() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
- }
- inline void TestRecursiveMessage::set_has_i() {
- _has_bits_[0] |= 0x00000002u;
- }
- inline void TestRecursiveMessage::clear_has_i() {
- _has_bits_[0] &= ~0x00000002u;
- }
- inline void TestRecursiveMessage::clear_i() {
- i_ = 0;
- clear_has_i();
- }
- inline ::google::protobuf::int32 TestRecursiveMessage::i() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestRecursiveMessage.i)
- return i_;
- }
- inline void TestRecursiveMessage::set_i(::google::protobuf::int32 value) {
- set_has_i();
- i_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestRecursiveMessage.i)
- }
- // -------------------------------------------------------------------
- // TestMutualRecursionA_SubMessage
- // optional .protobuf_unittest.TestMutualRecursionB b = 1;
- inline bool TestMutualRecursionA_SubMessage::has_b() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void TestMutualRecursionA_SubMessage::set_has_b() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void TestMutualRecursionA_SubMessage::clear_has_b() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void TestMutualRecursionA_SubMessage::clear_b() {
- if (b_ != NULL) b_->Clear();
- clear_has_b();
- }
- inline const ::protobuf_unittest::TestMutualRecursionB& TestMutualRecursionA_SubMessage::_internal_b() const {
- return *b_;
- }
- inline const ::protobuf_unittest::TestMutualRecursionB& TestMutualRecursionA_SubMessage::b() const {
- const ::protobuf_unittest::TestMutualRecursionB* p = b_;
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestMutualRecursionA.SubMessage.b)
- return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestMutualRecursionB*>(
- &::protobuf_unittest::_TestMutualRecursionB_default_instance_);
- }
- inline ::protobuf_unittest::TestMutualRecursionB* TestMutualRecursionA_SubMessage::release_b() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestMutualRecursionA.SubMessage.b)
- clear_has_b();
- ::protobuf_unittest::TestMutualRecursionB* temp = b_;
- if (GetArenaNoVirtual() != NULL) {
- temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
- }
- b_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestMutualRecursionB* TestMutualRecursionA_SubMessage::unsafe_arena_release_b() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestMutualRecursionA.SubMessage.b)
- clear_has_b();
- ::protobuf_unittest::TestMutualRecursionB* temp = b_;
- b_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestMutualRecursionB* TestMutualRecursionA_SubMessage::mutable_b() {
- set_has_b();
- if (b_ == NULL) {
- auto* p = CreateMaybeMessage<::protobuf_unittest::TestMutualRecursionB>(GetArenaNoVirtual());
- b_ = p;
- }
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestMutualRecursionA.SubMessage.b)
- return b_;
- }
- inline void TestMutualRecursionA_SubMessage::set_allocated_b(::protobuf_unittest::TestMutualRecursionB* b) {
- ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
- if (message_arena == NULL) {
- delete b_;
- }
- if (b) {
- ::google::protobuf::Arena* submessage_arena =
- ::google::protobuf::Arena::GetArena(b);
- if (message_arena != submessage_arena) {
- b = ::google::protobuf::internal::GetOwnedMessage(
- message_arena, b, submessage_arena);
- }
- set_has_b();
- } else {
- clear_has_b();
- }
- b_ = b;
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestMutualRecursionA.SubMessage.b)
- }
- // -------------------------------------------------------------------
- // TestMutualRecursionA_SubGroup
- // optional .protobuf_unittest.TestMutualRecursionA.SubMessage sub_message = 3;
- inline bool TestMutualRecursionA_SubGroup::has_sub_message() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void TestMutualRecursionA_SubGroup::set_has_sub_message() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void TestMutualRecursionA_SubGroup::clear_has_sub_message() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void TestMutualRecursionA_SubGroup::clear_sub_message() {
- if (sub_message_ != NULL) sub_message_->Clear();
- clear_has_sub_message();
- }
- inline const ::protobuf_unittest::TestMutualRecursionA_SubMessage& TestMutualRecursionA_SubGroup::_internal_sub_message() const {
- return *sub_message_;
- }
- inline const ::protobuf_unittest::TestMutualRecursionA_SubMessage& TestMutualRecursionA_SubGroup::sub_message() const {
- const ::protobuf_unittest::TestMutualRecursionA_SubMessage* p = sub_message_;
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestMutualRecursionA.SubGroup.sub_message)
- return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestMutualRecursionA_SubMessage*>(
- &::protobuf_unittest::_TestMutualRecursionA_SubMessage_default_instance_);
- }
- inline ::protobuf_unittest::TestMutualRecursionA_SubMessage* TestMutualRecursionA_SubGroup::release_sub_message() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestMutualRecursionA.SubGroup.sub_message)
- clear_has_sub_message();
- ::protobuf_unittest::TestMutualRecursionA_SubMessage* temp = sub_message_;
- if (GetArenaNoVirtual() != NULL) {
- temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
- }
- sub_message_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestMutualRecursionA_SubMessage* TestMutualRecursionA_SubGroup::unsafe_arena_release_sub_message() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestMutualRecursionA.SubGroup.sub_message)
- clear_has_sub_message();
- ::protobuf_unittest::TestMutualRecursionA_SubMessage* temp = sub_message_;
- sub_message_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestMutualRecursionA_SubMessage* TestMutualRecursionA_SubGroup::mutable_sub_message() {
- set_has_sub_message();
- if (sub_message_ == NULL) {
- auto* p = CreateMaybeMessage<::protobuf_unittest::TestMutualRecursionA_SubMessage>(GetArenaNoVirtual());
- sub_message_ = p;
- }
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestMutualRecursionA.SubGroup.sub_message)
- return sub_message_;
- }
- inline void TestMutualRecursionA_SubGroup::set_allocated_sub_message(::protobuf_unittest::TestMutualRecursionA_SubMessage* sub_message) {
- ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
- if (message_arena == NULL) {
- delete sub_message_;
- }
- if (sub_message) {
- ::google::protobuf::Arena* submessage_arena =
- ::google::protobuf::Arena::GetArena(sub_message);
- if (message_arena != submessage_arena) {
- sub_message = ::google::protobuf::internal::GetOwnedMessage(
- message_arena, sub_message, submessage_arena);
- }
- set_has_sub_message();
- } else {
- clear_has_sub_message();
- }
- sub_message_ = sub_message;
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestMutualRecursionA.SubGroup.sub_message)
- }
- // optional .protobuf_unittest.TestAllTypes not_in_this_scc = 4;
- inline bool TestMutualRecursionA_SubGroup::has_not_in_this_scc() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
- }
- inline void TestMutualRecursionA_SubGroup::set_has_not_in_this_scc() {
- _has_bits_[0] |= 0x00000002u;
- }
- inline void TestMutualRecursionA_SubGroup::clear_has_not_in_this_scc() {
- _has_bits_[0] &= ~0x00000002u;
- }
- inline void TestMutualRecursionA_SubGroup::clear_not_in_this_scc() {
- if (not_in_this_scc_ != NULL) not_in_this_scc_->Clear();
- clear_has_not_in_this_scc();
- }
- inline const ::protobuf_unittest::TestAllTypes& TestMutualRecursionA_SubGroup::_internal_not_in_this_scc() const {
- return *not_in_this_scc_;
- }
- inline const ::protobuf_unittest::TestAllTypes& TestMutualRecursionA_SubGroup::not_in_this_scc() const {
- const ::protobuf_unittest::TestAllTypes* p = not_in_this_scc_;
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestMutualRecursionA.SubGroup.not_in_this_scc)
- return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestAllTypes*>(
- &::protobuf_unittest::_TestAllTypes_default_instance_);
- }
- inline ::protobuf_unittest::TestAllTypes* TestMutualRecursionA_SubGroup::release_not_in_this_scc() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestMutualRecursionA.SubGroup.not_in_this_scc)
- clear_has_not_in_this_scc();
- ::protobuf_unittest::TestAllTypes* temp = not_in_this_scc_;
- if (GetArenaNoVirtual() != NULL) {
- temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
- }
- not_in_this_scc_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestAllTypes* TestMutualRecursionA_SubGroup::unsafe_arena_release_not_in_this_scc() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestMutualRecursionA.SubGroup.not_in_this_scc)
- clear_has_not_in_this_scc();
- ::protobuf_unittest::TestAllTypes* temp = not_in_this_scc_;
- not_in_this_scc_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestAllTypes* TestMutualRecursionA_SubGroup::mutable_not_in_this_scc() {
- set_has_not_in_this_scc();
- if (not_in_this_scc_ == NULL) {
- auto* p = CreateMaybeMessage<::protobuf_unittest::TestAllTypes>(GetArenaNoVirtual());
- not_in_this_scc_ = p;
- }
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestMutualRecursionA.SubGroup.not_in_this_scc)
- return not_in_this_scc_;
- }
- inline void TestMutualRecursionA_SubGroup::set_allocated_not_in_this_scc(::protobuf_unittest::TestAllTypes* not_in_this_scc) {
- ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
- if (message_arena == NULL) {
- delete not_in_this_scc_;
- }
- if (not_in_this_scc) {
- ::google::protobuf::Arena* submessage_arena =
- ::google::protobuf::Arena::GetArena(not_in_this_scc);
- if (message_arena != submessage_arena) {
- not_in_this_scc = ::google::protobuf::internal::GetOwnedMessage(
- message_arena, not_in_this_scc, submessage_arena);
- }
- set_has_not_in_this_scc();
- } else {
- clear_has_not_in_this_scc();
- }
- not_in_this_scc_ = not_in_this_scc;
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestMutualRecursionA.SubGroup.not_in_this_scc)
- }
- // -------------------------------------------------------------------
- // TestMutualRecursionA
- // optional .protobuf_unittest.TestMutualRecursionB bb = 1;
- inline bool TestMutualRecursionA::has_bb() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void TestMutualRecursionA::set_has_bb() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void TestMutualRecursionA::clear_has_bb() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void TestMutualRecursionA::clear_bb() {
- if (bb_ != NULL) bb_->Clear();
- clear_has_bb();
- }
- inline const ::protobuf_unittest::TestMutualRecursionB& TestMutualRecursionA::_internal_bb() const {
- return *bb_;
- }
- inline const ::protobuf_unittest::TestMutualRecursionB& TestMutualRecursionA::bb() const {
- const ::protobuf_unittest::TestMutualRecursionB* p = bb_;
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestMutualRecursionA.bb)
- return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestMutualRecursionB*>(
- &::protobuf_unittest::_TestMutualRecursionB_default_instance_);
- }
- inline ::protobuf_unittest::TestMutualRecursionB* TestMutualRecursionA::release_bb() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestMutualRecursionA.bb)
- clear_has_bb();
- ::protobuf_unittest::TestMutualRecursionB* temp = bb_;
- if (GetArenaNoVirtual() != NULL) {
- temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
- }
- bb_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestMutualRecursionB* TestMutualRecursionA::unsafe_arena_release_bb() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestMutualRecursionA.bb)
- clear_has_bb();
- ::protobuf_unittest::TestMutualRecursionB* temp = bb_;
- bb_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestMutualRecursionB* TestMutualRecursionA::mutable_bb() {
- set_has_bb();
- if (bb_ == NULL) {
- auto* p = CreateMaybeMessage<::protobuf_unittest::TestMutualRecursionB>(GetArenaNoVirtual());
- bb_ = p;
- }
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestMutualRecursionA.bb)
- return bb_;
- }
- inline void TestMutualRecursionA::set_allocated_bb(::protobuf_unittest::TestMutualRecursionB* bb) {
- ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
- if (message_arena == NULL) {
- delete bb_;
- }
- if (bb) {
- ::google::protobuf::Arena* submessage_arena =
- ::google::protobuf::Arena::GetArena(bb);
- if (message_arena != submessage_arena) {
- bb = ::google::protobuf::internal::GetOwnedMessage(
- message_arena, bb, submessage_arena);
- }
- set_has_bb();
- } else {
- clear_has_bb();
- }
- bb_ = bb;
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestMutualRecursionA.bb)
- }
- // optional group SubGroup = 2 { ... };
- inline bool TestMutualRecursionA::has_subgroup() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
- }
- inline void TestMutualRecursionA::set_has_subgroup() {
- _has_bits_[0] |= 0x00000002u;
- }
- inline void TestMutualRecursionA::clear_has_subgroup() {
- _has_bits_[0] &= ~0x00000002u;
- }
- inline void TestMutualRecursionA::clear_subgroup() {
- if (subgroup_ != NULL) subgroup_->Clear();
- clear_has_subgroup();
- }
- inline const ::protobuf_unittest::TestMutualRecursionA_SubGroup& TestMutualRecursionA::_internal_subgroup() const {
- return *subgroup_;
- }
- inline const ::protobuf_unittest::TestMutualRecursionA_SubGroup& TestMutualRecursionA::subgroup() const {
- const ::protobuf_unittest::TestMutualRecursionA_SubGroup* p = subgroup_;
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestMutualRecursionA.subgroup)
- return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestMutualRecursionA_SubGroup*>(
- &::protobuf_unittest::_TestMutualRecursionA_SubGroup_default_instance_);
- }
- inline ::protobuf_unittest::TestMutualRecursionA_SubGroup* TestMutualRecursionA::release_subgroup() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestMutualRecursionA.subgroup)
- clear_has_subgroup();
- ::protobuf_unittest::TestMutualRecursionA_SubGroup* temp = subgroup_;
- if (GetArenaNoVirtual() != NULL) {
- temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
- }
- subgroup_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestMutualRecursionA_SubGroup* TestMutualRecursionA::unsafe_arena_release_subgroup() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestMutualRecursionA.subgroup)
- clear_has_subgroup();
- ::protobuf_unittest::TestMutualRecursionA_SubGroup* temp = subgroup_;
- subgroup_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestMutualRecursionA_SubGroup* TestMutualRecursionA::mutable_subgroup() {
- set_has_subgroup();
- if (subgroup_ == NULL) {
- auto* p = CreateMaybeMessage<::protobuf_unittest::TestMutualRecursionA_SubGroup>(GetArenaNoVirtual());
- subgroup_ = p;
- }
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestMutualRecursionA.subgroup)
- return subgroup_;
- }
- inline void TestMutualRecursionA::set_allocated_subgroup(::protobuf_unittest::TestMutualRecursionA_SubGroup* subgroup) {
- ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
- if (message_arena == NULL) {
- delete subgroup_;
- }
- if (subgroup) {
- ::google::protobuf::Arena* submessage_arena =
- ::google::protobuf::Arena::GetArena(subgroup);
- if (message_arena != submessage_arena) {
- subgroup = ::google::protobuf::internal::GetOwnedMessage(
- message_arena, subgroup, submessage_arena);
- }
- set_has_subgroup();
- } else {
- clear_has_subgroup();
- }
- subgroup_ = subgroup;
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestMutualRecursionA.subgroup)
- }
- // -------------------------------------------------------------------
- // TestMutualRecursionB
- // optional .protobuf_unittest.TestMutualRecursionA a = 1;
- inline bool TestMutualRecursionB::has_a() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void TestMutualRecursionB::set_has_a() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void TestMutualRecursionB::clear_has_a() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void TestMutualRecursionB::clear_a() {
- if (a_ != NULL) a_->Clear();
- clear_has_a();
- }
- inline const ::protobuf_unittest::TestMutualRecursionA& TestMutualRecursionB::_internal_a() const {
- return *a_;
- }
- inline const ::protobuf_unittest::TestMutualRecursionA& TestMutualRecursionB::a() const {
- const ::protobuf_unittest::TestMutualRecursionA* p = a_;
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestMutualRecursionB.a)
- return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestMutualRecursionA*>(
- &::protobuf_unittest::_TestMutualRecursionA_default_instance_);
- }
- inline ::protobuf_unittest::TestMutualRecursionA* TestMutualRecursionB::release_a() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestMutualRecursionB.a)
- clear_has_a();
- ::protobuf_unittest::TestMutualRecursionA* temp = a_;
- if (GetArenaNoVirtual() != NULL) {
- temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
- }
- a_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestMutualRecursionA* TestMutualRecursionB::unsafe_arena_release_a() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestMutualRecursionB.a)
- clear_has_a();
- ::protobuf_unittest::TestMutualRecursionA* temp = a_;
- a_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestMutualRecursionA* TestMutualRecursionB::mutable_a() {
- set_has_a();
- if (a_ == NULL) {
- auto* p = CreateMaybeMessage<::protobuf_unittest::TestMutualRecursionA>(GetArenaNoVirtual());
- a_ = p;
- }
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestMutualRecursionB.a)
- return a_;
- }
- inline void TestMutualRecursionB::set_allocated_a(::protobuf_unittest::TestMutualRecursionA* a) {
- ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
- if (message_arena == NULL) {
- delete a_;
- }
- if (a) {
- ::google::protobuf::Arena* submessage_arena =
- ::google::protobuf::Arena::GetArena(a);
- if (message_arena != submessage_arena) {
- a = ::google::protobuf::internal::GetOwnedMessage(
- message_arena, a, submessage_arena);
- }
- set_has_a();
- } else {
- clear_has_a();
- }
- a_ = a;
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestMutualRecursionB.a)
- }
- // optional int32 optional_int32 = 2;
- inline bool TestMutualRecursionB::has_optional_int32() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
- }
- inline void TestMutualRecursionB::set_has_optional_int32() {
- _has_bits_[0] |= 0x00000002u;
- }
- inline void TestMutualRecursionB::clear_has_optional_int32() {
- _has_bits_[0] &= ~0x00000002u;
- }
- inline void TestMutualRecursionB::clear_optional_int32() {
- optional_int32_ = 0;
- clear_has_optional_int32();
- }
- inline ::google::protobuf::int32 TestMutualRecursionB::optional_int32() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestMutualRecursionB.optional_int32)
- return optional_int32_;
- }
- inline void TestMutualRecursionB::set_optional_int32(::google::protobuf::int32 value) {
- set_has_optional_int32();
- optional_int32_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestMutualRecursionB.optional_int32)
- }
- // -------------------------------------------------------------------
- // TestIsInitialized_SubMessage_SubGroup
- // required int32 i = 2;
- inline bool TestIsInitialized_SubMessage_SubGroup::has_i() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void TestIsInitialized_SubMessage_SubGroup::set_has_i() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void TestIsInitialized_SubMessage_SubGroup::clear_has_i() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void TestIsInitialized_SubMessage_SubGroup::clear_i() {
- i_ = 0;
- clear_has_i();
- }
- inline ::google::protobuf::int32 TestIsInitialized_SubMessage_SubGroup::i() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestIsInitialized.SubMessage.SubGroup.i)
- return i_;
- }
- inline void TestIsInitialized_SubMessage_SubGroup::set_i(::google::protobuf::int32 value) {
- set_has_i();
- i_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestIsInitialized.SubMessage.SubGroup.i)
- }
- // -------------------------------------------------------------------
- // TestIsInitialized_SubMessage
- // optional group SubGroup = 1 { ... };
- inline bool TestIsInitialized_SubMessage::has_subgroup() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void TestIsInitialized_SubMessage::set_has_subgroup() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void TestIsInitialized_SubMessage::clear_has_subgroup() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void TestIsInitialized_SubMessage::clear_subgroup() {
- if (subgroup_ != NULL) subgroup_->Clear();
- clear_has_subgroup();
- }
- inline const ::protobuf_unittest::TestIsInitialized_SubMessage_SubGroup& TestIsInitialized_SubMessage::_internal_subgroup() const {
- return *subgroup_;
- }
- inline const ::protobuf_unittest::TestIsInitialized_SubMessage_SubGroup& TestIsInitialized_SubMessage::subgroup() const {
- const ::protobuf_unittest::TestIsInitialized_SubMessage_SubGroup* p = subgroup_;
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestIsInitialized.SubMessage.subgroup)
- return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestIsInitialized_SubMessage_SubGroup*>(
- &::protobuf_unittest::_TestIsInitialized_SubMessage_SubGroup_default_instance_);
- }
- inline ::protobuf_unittest::TestIsInitialized_SubMessage_SubGroup* TestIsInitialized_SubMessage::release_subgroup() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestIsInitialized.SubMessage.subgroup)
- clear_has_subgroup();
- ::protobuf_unittest::TestIsInitialized_SubMessage_SubGroup* temp = subgroup_;
- if (GetArenaNoVirtual() != NULL) {
- temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
- }
- subgroup_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestIsInitialized_SubMessage_SubGroup* TestIsInitialized_SubMessage::unsafe_arena_release_subgroup() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestIsInitialized.SubMessage.subgroup)
- clear_has_subgroup();
- ::protobuf_unittest::TestIsInitialized_SubMessage_SubGroup* temp = subgroup_;
- subgroup_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestIsInitialized_SubMessage_SubGroup* TestIsInitialized_SubMessage::mutable_subgroup() {
- set_has_subgroup();
- if (subgroup_ == NULL) {
- auto* p = CreateMaybeMessage<::protobuf_unittest::TestIsInitialized_SubMessage_SubGroup>(GetArenaNoVirtual());
- subgroup_ = p;
- }
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestIsInitialized.SubMessage.subgroup)
- return subgroup_;
- }
- inline void TestIsInitialized_SubMessage::set_allocated_subgroup(::protobuf_unittest::TestIsInitialized_SubMessage_SubGroup* subgroup) {
- ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
- if (message_arena == NULL) {
- delete subgroup_;
- }
- if (subgroup) {
- ::google::protobuf::Arena* submessage_arena =
- ::google::protobuf::Arena::GetArena(subgroup);
- if (message_arena != submessage_arena) {
- subgroup = ::google::protobuf::internal::GetOwnedMessage(
- message_arena, subgroup, submessage_arena);
- }
- set_has_subgroup();
- } else {
- clear_has_subgroup();
- }
- subgroup_ = subgroup;
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestIsInitialized.SubMessage.subgroup)
- }
- // -------------------------------------------------------------------
- // TestIsInitialized
- // optional .protobuf_unittest.TestIsInitialized.SubMessage sub_message = 1;
- inline bool TestIsInitialized::has_sub_message() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void TestIsInitialized::set_has_sub_message() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void TestIsInitialized::clear_has_sub_message() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void TestIsInitialized::clear_sub_message() {
- if (sub_message_ != NULL) sub_message_->Clear();
- clear_has_sub_message();
- }
- inline const ::protobuf_unittest::TestIsInitialized_SubMessage& TestIsInitialized::_internal_sub_message() const {
- return *sub_message_;
- }
- inline const ::protobuf_unittest::TestIsInitialized_SubMessage& TestIsInitialized::sub_message() const {
- const ::protobuf_unittest::TestIsInitialized_SubMessage* p = sub_message_;
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestIsInitialized.sub_message)
- return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestIsInitialized_SubMessage*>(
- &::protobuf_unittest::_TestIsInitialized_SubMessage_default_instance_);
- }
- inline ::protobuf_unittest::TestIsInitialized_SubMessage* TestIsInitialized::release_sub_message() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestIsInitialized.sub_message)
- clear_has_sub_message();
- ::protobuf_unittest::TestIsInitialized_SubMessage* temp = sub_message_;
- if (GetArenaNoVirtual() != NULL) {
- temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
- }
- sub_message_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestIsInitialized_SubMessage* TestIsInitialized::unsafe_arena_release_sub_message() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestIsInitialized.sub_message)
- clear_has_sub_message();
- ::protobuf_unittest::TestIsInitialized_SubMessage* temp = sub_message_;
- sub_message_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestIsInitialized_SubMessage* TestIsInitialized::mutable_sub_message() {
- set_has_sub_message();
- if (sub_message_ == NULL) {
- auto* p = CreateMaybeMessage<::protobuf_unittest::TestIsInitialized_SubMessage>(GetArenaNoVirtual());
- sub_message_ = p;
- }
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestIsInitialized.sub_message)
- return sub_message_;
- }
- inline void TestIsInitialized::set_allocated_sub_message(::protobuf_unittest::TestIsInitialized_SubMessage* sub_message) {
- ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
- if (message_arena == NULL) {
- delete sub_message_;
- }
- if (sub_message) {
- ::google::protobuf::Arena* submessage_arena =
- ::google::protobuf::Arena::GetArena(sub_message);
- if (message_arena != submessage_arena) {
- sub_message = ::google::protobuf::internal::GetOwnedMessage(
- message_arena, sub_message, submessage_arena);
- }
- set_has_sub_message();
- } else {
- clear_has_sub_message();
- }
- sub_message_ = sub_message;
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestIsInitialized.sub_message)
- }
- // -------------------------------------------------------------------
- // TestDupFieldNumber_Foo
- // optional int32 a = 1;
- inline bool TestDupFieldNumber_Foo::has_a() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void TestDupFieldNumber_Foo::set_has_a() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void TestDupFieldNumber_Foo::clear_has_a() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void TestDupFieldNumber_Foo::clear_a() {
- a_ = 0;
- clear_has_a();
- }
- inline ::google::protobuf::int32 TestDupFieldNumber_Foo::a() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestDupFieldNumber.Foo.a)
- return a_;
- }
- inline void TestDupFieldNumber_Foo::set_a(::google::protobuf::int32 value) {
- set_has_a();
- a_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestDupFieldNumber.Foo.a)
- }
- // -------------------------------------------------------------------
- // TestDupFieldNumber_Bar
- // optional int32 a = 1;
- inline bool TestDupFieldNumber_Bar::has_a() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void TestDupFieldNumber_Bar::set_has_a() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void TestDupFieldNumber_Bar::clear_has_a() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void TestDupFieldNumber_Bar::clear_a() {
- a_ = 0;
- clear_has_a();
- }
- inline ::google::protobuf::int32 TestDupFieldNumber_Bar::a() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestDupFieldNumber.Bar.a)
- return a_;
- }
- inline void TestDupFieldNumber_Bar::set_a(::google::protobuf::int32 value) {
- set_has_a();
- a_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestDupFieldNumber.Bar.a)
- }
- // -------------------------------------------------------------------
- // TestDupFieldNumber
- // optional int32 a = 1;
- inline bool TestDupFieldNumber::has_a() const {
- return (_has_bits_[0] & 0x00000004u) != 0;
- }
- inline void TestDupFieldNumber::set_has_a() {
- _has_bits_[0] |= 0x00000004u;
- }
- inline void TestDupFieldNumber::clear_has_a() {
- _has_bits_[0] &= ~0x00000004u;
- }
- inline void TestDupFieldNumber::clear_a() {
- a_ = 0;
- clear_has_a();
- }
- inline ::google::protobuf::int32 TestDupFieldNumber::a() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestDupFieldNumber.a)
- return a_;
- }
- inline void TestDupFieldNumber::set_a(::google::protobuf::int32 value) {
- set_has_a();
- a_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestDupFieldNumber.a)
- }
- // optional group Foo = 2 { ... };
- inline bool TestDupFieldNumber::has_foo() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void TestDupFieldNumber::set_has_foo() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void TestDupFieldNumber::clear_has_foo() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void TestDupFieldNumber::clear_foo() {
- if (foo_ != NULL) foo_->Clear();
- clear_has_foo();
- }
- inline const ::protobuf_unittest::TestDupFieldNumber_Foo& TestDupFieldNumber::_internal_foo() const {
- return *foo_;
- }
- inline const ::protobuf_unittest::TestDupFieldNumber_Foo& TestDupFieldNumber::foo() const {
- const ::protobuf_unittest::TestDupFieldNumber_Foo* p = foo_;
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestDupFieldNumber.foo)
- return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestDupFieldNumber_Foo*>(
- &::protobuf_unittest::_TestDupFieldNumber_Foo_default_instance_);
- }
- inline ::protobuf_unittest::TestDupFieldNumber_Foo* TestDupFieldNumber::release_foo() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestDupFieldNumber.foo)
- clear_has_foo();
- ::protobuf_unittest::TestDupFieldNumber_Foo* temp = foo_;
- if (GetArenaNoVirtual() != NULL) {
- temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
- }
- foo_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestDupFieldNumber_Foo* TestDupFieldNumber::unsafe_arena_release_foo() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestDupFieldNumber.foo)
- clear_has_foo();
- ::protobuf_unittest::TestDupFieldNumber_Foo* temp = foo_;
- foo_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestDupFieldNumber_Foo* TestDupFieldNumber::mutable_foo() {
- set_has_foo();
- if (foo_ == NULL) {
- auto* p = CreateMaybeMessage<::protobuf_unittest::TestDupFieldNumber_Foo>(GetArenaNoVirtual());
- foo_ = p;
- }
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestDupFieldNumber.foo)
- return foo_;
- }
- inline void TestDupFieldNumber::set_allocated_foo(::protobuf_unittest::TestDupFieldNumber_Foo* foo) {
- ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
- if (message_arena == NULL) {
- delete foo_;
- }
- if (foo) {
- ::google::protobuf::Arena* submessage_arena =
- ::google::protobuf::Arena::GetArena(foo);
- if (message_arena != submessage_arena) {
- foo = ::google::protobuf::internal::GetOwnedMessage(
- message_arena, foo, submessage_arena);
- }
- set_has_foo();
- } else {
- clear_has_foo();
- }
- foo_ = foo;
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestDupFieldNumber.foo)
- }
- // optional group Bar = 3 { ... };
- inline bool TestDupFieldNumber::has_bar() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
- }
- inline void TestDupFieldNumber::set_has_bar() {
- _has_bits_[0] |= 0x00000002u;
- }
- inline void TestDupFieldNumber::clear_has_bar() {
- _has_bits_[0] &= ~0x00000002u;
- }
- inline void TestDupFieldNumber::clear_bar() {
- if (bar_ != NULL) bar_->Clear();
- clear_has_bar();
- }
- inline const ::protobuf_unittest::TestDupFieldNumber_Bar& TestDupFieldNumber::_internal_bar() const {
- return *bar_;
- }
- inline const ::protobuf_unittest::TestDupFieldNumber_Bar& TestDupFieldNumber::bar() const {
- const ::protobuf_unittest::TestDupFieldNumber_Bar* p = bar_;
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestDupFieldNumber.bar)
- return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestDupFieldNumber_Bar*>(
- &::protobuf_unittest::_TestDupFieldNumber_Bar_default_instance_);
- }
- inline ::protobuf_unittest::TestDupFieldNumber_Bar* TestDupFieldNumber::release_bar() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestDupFieldNumber.bar)
- clear_has_bar();
- ::protobuf_unittest::TestDupFieldNumber_Bar* temp = bar_;
- if (GetArenaNoVirtual() != NULL) {
- temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
- }
- bar_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestDupFieldNumber_Bar* TestDupFieldNumber::unsafe_arena_release_bar() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestDupFieldNumber.bar)
- clear_has_bar();
- ::protobuf_unittest::TestDupFieldNumber_Bar* temp = bar_;
- bar_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestDupFieldNumber_Bar* TestDupFieldNumber::mutable_bar() {
- set_has_bar();
- if (bar_ == NULL) {
- auto* p = CreateMaybeMessage<::protobuf_unittest::TestDupFieldNumber_Bar>(GetArenaNoVirtual());
- bar_ = p;
- }
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestDupFieldNumber.bar)
- return bar_;
- }
- inline void TestDupFieldNumber::set_allocated_bar(::protobuf_unittest::TestDupFieldNumber_Bar* bar) {
- ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
- if (message_arena == NULL) {
- delete bar_;
- }
- if (bar) {
- ::google::protobuf::Arena* submessage_arena =
- ::google::protobuf::Arena::GetArena(bar);
- if (message_arena != submessage_arena) {
- bar = ::google::protobuf::internal::GetOwnedMessage(
- message_arena, bar, submessage_arena);
- }
- set_has_bar();
- } else {
- clear_has_bar();
- }
- bar_ = bar;
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestDupFieldNumber.bar)
- }
- // -------------------------------------------------------------------
- // TestEagerMessage
- // optional .protobuf_unittest.TestAllTypes sub_message = 1 [lazy = false];
- inline bool TestEagerMessage::has_sub_message() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void TestEagerMessage::set_has_sub_message() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void TestEagerMessage::clear_has_sub_message() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void TestEagerMessage::clear_sub_message() {
- if (sub_message_ != NULL) sub_message_->Clear();
- clear_has_sub_message();
- }
- inline const ::protobuf_unittest::TestAllTypes& TestEagerMessage::_internal_sub_message() const {
- return *sub_message_;
- }
- inline const ::protobuf_unittest::TestAllTypes& TestEagerMessage::sub_message() const {
- const ::protobuf_unittest::TestAllTypes* p = sub_message_;
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestEagerMessage.sub_message)
- return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestAllTypes*>(
- &::protobuf_unittest::_TestAllTypes_default_instance_);
- }
- inline ::protobuf_unittest::TestAllTypes* TestEagerMessage::release_sub_message() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestEagerMessage.sub_message)
- clear_has_sub_message();
- ::protobuf_unittest::TestAllTypes* temp = sub_message_;
- if (GetArenaNoVirtual() != NULL) {
- temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
- }
- sub_message_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestAllTypes* TestEagerMessage::unsafe_arena_release_sub_message() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestEagerMessage.sub_message)
- clear_has_sub_message();
- ::protobuf_unittest::TestAllTypes* temp = sub_message_;
- sub_message_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestAllTypes* TestEagerMessage::mutable_sub_message() {
- set_has_sub_message();
- if (sub_message_ == NULL) {
- auto* p = CreateMaybeMessage<::protobuf_unittest::TestAllTypes>(GetArenaNoVirtual());
- sub_message_ = p;
- }
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestEagerMessage.sub_message)
- return sub_message_;
- }
- inline void TestEagerMessage::set_allocated_sub_message(::protobuf_unittest::TestAllTypes* sub_message) {
- ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
- if (message_arena == NULL) {
- delete sub_message_;
- }
- if (sub_message) {
- ::google::protobuf::Arena* submessage_arena =
- ::google::protobuf::Arena::GetArena(sub_message);
- if (message_arena != submessage_arena) {
- sub_message = ::google::protobuf::internal::GetOwnedMessage(
- message_arena, sub_message, submessage_arena);
- }
- set_has_sub_message();
- } else {
- clear_has_sub_message();
- }
- sub_message_ = sub_message;
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestEagerMessage.sub_message)
- }
- // -------------------------------------------------------------------
- // TestLazyMessage
- // optional .protobuf_unittest.TestAllTypes sub_message = 1 [lazy = true];
- inline bool TestLazyMessage::has_sub_message() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void TestLazyMessage::set_has_sub_message() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void TestLazyMessage::clear_has_sub_message() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void TestLazyMessage::clear_sub_message() {
- if (sub_message_ != NULL) sub_message_->Clear();
- clear_has_sub_message();
- }
- inline const ::protobuf_unittest::TestAllTypes& TestLazyMessage::_internal_sub_message() const {
- return *sub_message_;
- }
- inline const ::protobuf_unittest::TestAllTypes& TestLazyMessage::sub_message() const {
- const ::protobuf_unittest::TestAllTypes* p = sub_message_;
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestLazyMessage.sub_message)
- return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestAllTypes*>(
- &::protobuf_unittest::_TestAllTypes_default_instance_);
- }
- inline ::protobuf_unittest::TestAllTypes* TestLazyMessage::release_sub_message() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestLazyMessage.sub_message)
- clear_has_sub_message();
- ::protobuf_unittest::TestAllTypes* temp = sub_message_;
- if (GetArenaNoVirtual() != NULL) {
- temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
- }
- sub_message_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestAllTypes* TestLazyMessage::unsafe_arena_release_sub_message() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestLazyMessage.sub_message)
- clear_has_sub_message();
- ::protobuf_unittest::TestAllTypes* temp = sub_message_;
- sub_message_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestAllTypes* TestLazyMessage::mutable_sub_message() {
- set_has_sub_message();
- if (sub_message_ == NULL) {
- auto* p = CreateMaybeMessage<::protobuf_unittest::TestAllTypes>(GetArenaNoVirtual());
- sub_message_ = p;
- }
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestLazyMessage.sub_message)
- return sub_message_;
- }
- inline void TestLazyMessage::set_allocated_sub_message(::protobuf_unittest::TestAllTypes* sub_message) {
- ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
- if (message_arena == NULL) {
- delete sub_message_;
- }
- if (sub_message) {
- ::google::protobuf::Arena* submessage_arena =
- ::google::protobuf::Arena::GetArena(sub_message);
- if (message_arena != submessage_arena) {
- sub_message = ::google::protobuf::internal::GetOwnedMessage(
- message_arena, sub_message, submessage_arena);
- }
- set_has_sub_message();
- } else {
- clear_has_sub_message();
- }
- sub_message_ = sub_message;
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestLazyMessage.sub_message)
- }
- // -------------------------------------------------------------------
- // TestNestedMessageHasBits_NestedMessage
- // repeated int32 nestedmessage_repeated_int32 = 1;
- inline int TestNestedMessageHasBits_NestedMessage::nestedmessage_repeated_int32_size() const {
- return nestedmessage_repeated_int32_.size();
- }
- inline void TestNestedMessageHasBits_NestedMessage::clear_nestedmessage_repeated_int32() {
- nestedmessage_repeated_int32_.Clear();
- }
- inline ::google::protobuf::int32 TestNestedMessageHasBits_NestedMessage::nestedmessage_repeated_int32(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestNestedMessageHasBits.NestedMessage.nestedmessage_repeated_int32)
- return nestedmessage_repeated_int32_.Get(index);
- }
- inline void TestNestedMessageHasBits_NestedMessage::set_nestedmessage_repeated_int32(int index, ::google::protobuf::int32 value) {
- nestedmessage_repeated_int32_.Set(index, value);
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestNestedMessageHasBits.NestedMessage.nestedmessage_repeated_int32)
- }
- inline void TestNestedMessageHasBits_NestedMessage::add_nestedmessage_repeated_int32(::google::protobuf::int32 value) {
- nestedmessage_repeated_int32_.Add(value);
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestNestedMessageHasBits.NestedMessage.nestedmessage_repeated_int32)
- }
- inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
- TestNestedMessageHasBits_NestedMessage::nestedmessage_repeated_int32() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestNestedMessageHasBits.NestedMessage.nestedmessage_repeated_int32)
- return nestedmessage_repeated_int32_;
- }
- inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
- TestNestedMessageHasBits_NestedMessage::mutable_nestedmessage_repeated_int32() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestNestedMessageHasBits.NestedMessage.nestedmessage_repeated_int32)
- return &nestedmessage_repeated_int32_;
- }
- // repeated .protobuf_unittest.ForeignMessage nestedmessage_repeated_foreignmessage = 2;
- inline int TestNestedMessageHasBits_NestedMessage::nestedmessage_repeated_foreignmessage_size() const {
- return nestedmessage_repeated_foreignmessage_.size();
- }
- inline void TestNestedMessageHasBits_NestedMessage::clear_nestedmessage_repeated_foreignmessage() {
- nestedmessage_repeated_foreignmessage_.Clear();
- }
- inline ::protobuf_unittest::ForeignMessage* TestNestedMessageHasBits_NestedMessage::mutable_nestedmessage_repeated_foreignmessage(int index) {
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestNestedMessageHasBits.NestedMessage.nestedmessage_repeated_foreignmessage)
- return nestedmessage_repeated_foreignmessage_.Mutable(index);
- }
- inline ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::ForeignMessage >*
- TestNestedMessageHasBits_NestedMessage::mutable_nestedmessage_repeated_foreignmessage() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestNestedMessageHasBits.NestedMessage.nestedmessage_repeated_foreignmessage)
- return &nestedmessage_repeated_foreignmessage_;
- }
- inline const ::protobuf_unittest::ForeignMessage& TestNestedMessageHasBits_NestedMessage::nestedmessage_repeated_foreignmessage(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestNestedMessageHasBits.NestedMessage.nestedmessage_repeated_foreignmessage)
- return nestedmessage_repeated_foreignmessage_.Get(index);
- }
- inline ::protobuf_unittest::ForeignMessage* TestNestedMessageHasBits_NestedMessage::add_nestedmessage_repeated_foreignmessage() {
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestNestedMessageHasBits.NestedMessage.nestedmessage_repeated_foreignmessage)
- return nestedmessage_repeated_foreignmessage_.Add();
- }
- inline const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::ForeignMessage >&
- TestNestedMessageHasBits_NestedMessage::nestedmessage_repeated_foreignmessage() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestNestedMessageHasBits.NestedMessage.nestedmessage_repeated_foreignmessage)
- return nestedmessage_repeated_foreignmessage_;
- }
- // -------------------------------------------------------------------
- // TestNestedMessageHasBits
- // optional .protobuf_unittest.TestNestedMessageHasBits.NestedMessage optional_nested_message = 1;
- inline bool TestNestedMessageHasBits::has_optional_nested_message() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void TestNestedMessageHasBits::set_has_optional_nested_message() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void TestNestedMessageHasBits::clear_has_optional_nested_message() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void TestNestedMessageHasBits::clear_optional_nested_message() {
- if (optional_nested_message_ != NULL) optional_nested_message_->Clear();
- clear_has_optional_nested_message();
- }
- inline const ::protobuf_unittest::TestNestedMessageHasBits_NestedMessage& TestNestedMessageHasBits::_internal_optional_nested_message() const {
- return *optional_nested_message_;
- }
- inline const ::protobuf_unittest::TestNestedMessageHasBits_NestedMessage& TestNestedMessageHasBits::optional_nested_message() const {
- const ::protobuf_unittest::TestNestedMessageHasBits_NestedMessage* p = optional_nested_message_;
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestNestedMessageHasBits.optional_nested_message)
- return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestNestedMessageHasBits_NestedMessage*>(
- &::protobuf_unittest::_TestNestedMessageHasBits_NestedMessage_default_instance_);
- }
- inline ::protobuf_unittest::TestNestedMessageHasBits_NestedMessage* TestNestedMessageHasBits::release_optional_nested_message() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestNestedMessageHasBits.optional_nested_message)
- clear_has_optional_nested_message();
- ::protobuf_unittest::TestNestedMessageHasBits_NestedMessage* temp = optional_nested_message_;
- if (GetArenaNoVirtual() != NULL) {
- temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
- }
- optional_nested_message_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestNestedMessageHasBits_NestedMessage* TestNestedMessageHasBits::unsafe_arena_release_optional_nested_message() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestNestedMessageHasBits.optional_nested_message)
- clear_has_optional_nested_message();
- ::protobuf_unittest::TestNestedMessageHasBits_NestedMessage* temp = optional_nested_message_;
- optional_nested_message_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestNestedMessageHasBits_NestedMessage* TestNestedMessageHasBits::mutable_optional_nested_message() {
- set_has_optional_nested_message();
- if (optional_nested_message_ == NULL) {
- auto* p = CreateMaybeMessage<::protobuf_unittest::TestNestedMessageHasBits_NestedMessage>(GetArenaNoVirtual());
- optional_nested_message_ = p;
- }
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestNestedMessageHasBits.optional_nested_message)
- return optional_nested_message_;
- }
- inline void TestNestedMessageHasBits::set_allocated_optional_nested_message(::protobuf_unittest::TestNestedMessageHasBits_NestedMessage* optional_nested_message) {
- ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
- if (message_arena == NULL) {
- delete optional_nested_message_;
- }
- if (optional_nested_message) {
- ::google::protobuf::Arena* submessage_arena =
- ::google::protobuf::Arena::GetArena(optional_nested_message);
- if (message_arena != submessage_arena) {
- optional_nested_message = ::google::protobuf::internal::GetOwnedMessage(
- message_arena, optional_nested_message, submessage_arena);
- }
- set_has_optional_nested_message();
- } else {
- clear_has_optional_nested_message();
- }
- optional_nested_message_ = optional_nested_message;
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestNestedMessageHasBits.optional_nested_message)
- }
- // -------------------------------------------------------------------
- // TestCamelCaseFieldNames
- // optional int32 PrimitiveField = 1;
- inline bool TestCamelCaseFieldNames::has_primitivefield() const {
- return (_has_bits_[0] & 0x00000010u) != 0;
- }
- inline void TestCamelCaseFieldNames::set_has_primitivefield() {
- _has_bits_[0] |= 0x00000010u;
- }
- inline void TestCamelCaseFieldNames::clear_has_primitivefield() {
- _has_bits_[0] &= ~0x00000010u;
- }
- inline void TestCamelCaseFieldNames::clear_primitivefield() {
- primitivefield_ = 0;
- clear_has_primitivefield();
- }
- inline ::google::protobuf::int32 TestCamelCaseFieldNames::primitivefield() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestCamelCaseFieldNames.PrimitiveField)
- return primitivefield_;
- }
- inline void TestCamelCaseFieldNames::set_primitivefield(::google::protobuf::int32 value) {
- set_has_primitivefield();
- primitivefield_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestCamelCaseFieldNames.PrimitiveField)
- }
- // optional string StringField = 2;
- inline bool TestCamelCaseFieldNames::has_stringfield() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void TestCamelCaseFieldNames::set_has_stringfield() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void TestCamelCaseFieldNames::clear_has_stringfield() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void TestCamelCaseFieldNames::clear_stringfield() {
- stringfield_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- clear_has_stringfield();
- }
- inline const ::std::string& TestCamelCaseFieldNames::stringfield() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestCamelCaseFieldNames.StringField)
- return stringfield_.Get();
- }
- inline void TestCamelCaseFieldNames::set_stringfield(const ::std::string& value) {
- set_has_stringfield();
- stringfield_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestCamelCaseFieldNames.StringField)
- }
- #if LANG_CXX11
- inline void TestCamelCaseFieldNames::set_stringfield(::std::string&& value) {
- set_has_stringfield();
- stringfield_.Set(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestCamelCaseFieldNames.StringField)
- }
- #endif
- inline void TestCamelCaseFieldNames::set_stringfield(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- set_has_stringfield();
- stringfield_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestCamelCaseFieldNames.StringField)
- }
- inline void TestCamelCaseFieldNames::set_stringfield(const char* value,
- size_t size) {
- set_has_stringfield();
- stringfield_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
- reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestCamelCaseFieldNames.StringField)
- }
- inline ::std::string* TestCamelCaseFieldNames::mutable_stringfield() {
- set_has_stringfield();
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestCamelCaseFieldNames.StringField)
- return stringfield_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- }
- inline ::std::string* TestCamelCaseFieldNames::release_stringfield() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestCamelCaseFieldNames.StringField)
- if (!has_stringfield()) {
- return NULL;
- }
- clear_has_stringfield();
- return stringfield_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- }
- inline void TestCamelCaseFieldNames::set_allocated_stringfield(::std::string* stringfield) {
- if (stringfield != NULL) {
- set_has_stringfield();
- } else {
- clear_has_stringfield();
- }
- stringfield_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), stringfield,
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestCamelCaseFieldNames.StringField)
- }
- inline ::std::string* TestCamelCaseFieldNames::unsafe_arena_release_stringfield() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestCamelCaseFieldNames.StringField)
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- clear_has_stringfield();
- return stringfield_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- }
- inline void TestCamelCaseFieldNames::unsafe_arena_set_allocated_stringfield(
- ::std::string* stringfield) {
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- if (stringfield != NULL) {
- set_has_stringfield();
- } else {
- clear_has_stringfield();
- }
- stringfield_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- stringfield, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestCamelCaseFieldNames.StringField)
- }
- // optional .protobuf_unittest.ForeignEnum EnumField = 3;
- inline bool TestCamelCaseFieldNames::has_enumfield() const {
- return (_has_bits_[0] & 0x00000020u) != 0;
- }
- inline void TestCamelCaseFieldNames::set_has_enumfield() {
- _has_bits_[0] |= 0x00000020u;
- }
- inline void TestCamelCaseFieldNames::clear_has_enumfield() {
- _has_bits_[0] &= ~0x00000020u;
- }
- inline void TestCamelCaseFieldNames::clear_enumfield() {
- enumfield_ = 4;
- clear_has_enumfield();
- }
- inline ::protobuf_unittest::ForeignEnum TestCamelCaseFieldNames::enumfield() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestCamelCaseFieldNames.EnumField)
- return static_cast< ::protobuf_unittest::ForeignEnum >(enumfield_);
- }
- inline void TestCamelCaseFieldNames::set_enumfield(::protobuf_unittest::ForeignEnum value) {
- assert(::protobuf_unittest::ForeignEnum_IsValid(value));
- set_has_enumfield();
- enumfield_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestCamelCaseFieldNames.EnumField)
- }
- // optional .protobuf_unittest.ForeignMessage MessageField = 4;
- inline bool TestCamelCaseFieldNames::has_messagefield() const {
- return (_has_bits_[0] & 0x00000008u) != 0;
- }
- inline void TestCamelCaseFieldNames::set_has_messagefield() {
- _has_bits_[0] |= 0x00000008u;
- }
- inline void TestCamelCaseFieldNames::clear_has_messagefield() {
- _has_bits_[0] &= ~0x00000008u;
- }
- inline void TestCamelCaseFieldNames::clear_messagefield() {
- if (messagefield_ != NULL) messagefield_->Clear();
- clear_has_messagefield();
- }
- inline const ::protobuf_unittest::ForeignMessage& TestCamelCaseFieldNames::_internal_messagefield() const {
- return *messagefield_;
- }
- inline const ::protobuf_unittest::ForeignMessage& TestCamelCaseFieldNames::messagefield() const {
- const ::protobuf_unittest::ForeignMessage* p = messagefield_;
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestCamelCaseFieldNames.MessageField)
- return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::ForeignMessage*>(
- &::protobuf_unittest::_ForeignMessage_default_instance_);
- }
- inline ::protobuf_unittest::ForeignMessage* TestCamelCaseFieldNames::release_messagefield() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestCamelCaseFieldNames.MessageField)
- clear_has_messagefield();
- ::protobuf_unittest::ForeignMessage* temp = messagefield_;
- if (GetArenaNoVirtual() != NULL) {
- temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
- }
- messagefield_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::ForeignMessage* TestCamelCaseFieldNames::unsafe_arena_release_messagefield() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestCamelCaseFieldNames.MessageField)
- clear_has_messagefield();
- ::protobuf_unittest::ForeignMessage* temp = messagefield_;
- messagefield_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::ForeignMessage* TestCamelCaseFieldNames::mutable_messagefield() {
- set_has_messagefield();
- if (messagefield_ == NULL) {
- auto* p = CreateMaybeMessage<::protobuf_unittest::ForeignMessage>(GetArenaNoVirtual());
- messagefield_ = p;
- }
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestCamelCaseFieldNames.MessageField)
- return messagefield_;
- }
- inline void TestCamelCaseFieldNames::set_allocated_messagefield(::protobuf_unittest::ForeignMessage* messagefield) {
- ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
- if (message_arena == NULL) {
- delete messagefield_;
- }
- if (messagefield) {
- ::google::protobuf::Arena* submessage_arena =
- ::google::protobuf::Arena::GetArena(messagefield);
- if (message_arena != submessage_arena) {
- messagefield = ::google::protobuf::internal::GetOwnedMessage(
- message_arena, messagefield, submessage_arena);
- }
- set_has_messagefield();
- } else {
- clear_has_messagefield();
- }
- messagefield_ = messagefield;
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestCamelCaseFieldNames.MessageField)
- }
- // optional string StringPieceField = 5 [ctype = STRING_PIECE];
- inline bool TestCamelCaseFieldNames::has_stringpiecefield() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
- }
- inline void TestCamelCaseFieldNames::set_has_stringpiecefield() {
- _has_bits_[0] |= 0x00000002u;
- }
- inline void TestCamelCaseFieldNames::clear_has_stringpiecefield() {
- _has_bits_[0] &= ~0x00000002u;
- }
- inline void TestCamelCaseFieldNames::clear_stringpiecefield() {
- stringpiecefield_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- clear_has_stringpiecefield();
- }
- inline const ::std::string& TestCamelCaseFieldNames::stringpiecefield() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestCamelCaseFieldNames.StringPieceField)
- return stringpiecefield_.Get();
- }
- inline void TestCamelCaseFieldNames::set_stringpiecefield(const ::std::string& value) {
- set_has_stringpiecefield();
- stringpiecefield_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestCamelCaseFieldNames.StringPieceField)
- }
- #if LANG_CXX11
- inline void TestCamelCaseFieldNames::set_stringpiecefield(::std::string&& value) {
- set_has_stringpiecefield();
- stringpiecefield_.Set(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestCamelCaseFieldNames.StringPieceField)
- }
- #endif
- inline void TestCamelCaseFieldNames::set_stringpiecefield(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- set_has_stringpiecefield();
- stringpiecefield_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestCamelCaseFieldNames.StringPieceField)
- }
- inline void TestCamelCaseFieldNames::set_stringpiecefield(const char* value,
- size_t size) {
- set_has_stringpiecefield();
- stringpiecefield_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
- reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestCamelCaseFieldNames.StringPieceField)
- }
- inline ::std::string* TestCamelCaseFieldNames::mutable_stringpiecefield() {
- set_has_stringpiecefield();
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestCamelCaseFieldNames.StringPieceField)
- return stringpiecefield_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- }
- inline ::std::string* TestCamelCaseFieldNames::release_stringpiecefield() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestCamelCaseFieldNames.StringPieceField)
- if (!has_stringpiecefield()) {
- return NULL;
- }
- clear_has_stringpiecefield();
- return stringpiecefield_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- }
- inline void TestCamelCaseFieldNames::set_allocated_stringpiecefield(::std::string* stringpiecefield) {
- if (stringpiecefield != NULL) {
- set_has_stringpiecefield();
- } else {
- clear_has_stringpiecefield();
- }
- stringpiecefield_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), stringpiecefield,
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestCamelCaseFieldNames.StringPieceField)
- }
- inline ::std::string* TestCamelCaseFieldNames::unsafe_arena_release_stringpiecefield() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestCamelCaseFieldNames.StringPieceField)
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- clear_has_stringpiecefield();
- return stringpiecefield_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- }
- inline void TestCamelCaseFieldNames::unsafe_arena_set_allocated_stringpiecefield(
- ::std::string* stringpiecefield) {
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- if (stringpiecefield != NULL) {
- set_has_stringpiecefield();
- } else {
- clear_has_stringpiecefield();
- }
- stringpiecefield_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- stringpiecefield, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestCamelCaseFieldNames.StringPieceField)
- }
- // optional string CordField = 6 [ctype = CORD];
- inline bool TestCamelCaseFieldNames::has_cordfield() const {
- return (_has_bits_[0] & 0x00000004u) != 0;
- }
- inline void TestCamelCaseFieldNames::set_has_cordfield() {
- _has_bits_[0] |= 0x00000004u;
- }
- inline void TestCamelCaseFieldNames::clear_has_cordfield() {
- _has_bits_[0] &= ~0x00000004u;
- }
- inline void TestCamelCaseFieldNames::clear_cordfield() {
- cordfield_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- clear_has_cordfield();
- }
- inline const ::std::string& TestCamelCaseFieldNames::cordfield() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestCamelCaseFieldNames.CordField)
- return cordfield_.Get();
- }
- inline void TestCamelCaseFieldNames::set_cordfield(const ::std::string& value) {
- set_has_cordfield();
- cordfield_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestCamelCaseFieldNames.CordField)
- }
- #if LANG_CXX11
- inline void TestCamelCaseFieldNames::set_cordfield(::std::string&& value) {
- set_has_cordfield();
- cordfield_.Set(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestCamelCaseFieldNames.CordField)
- }
- #endif
- inline void TestCamelCaseFieldNames::set_cordfield(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- set_has_cordfield();
- cordfield_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestCamelCaseFieldNames.CordField)
- }
- inline void TestCamelCaseFieldNames::set_cordfield(const char* value,
- size_t size) {
- set_has_cordfield();
- cordfield_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
- reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestCamelCaseFieldNames.CordField)
- }
- inline ::std::string* TestCamelCaseFieldNames::mutable_cordfield() {
- set_has_cordfield();
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestCamelCaseFieldNames.CordField)
- return cordfield_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- }
- inline ::std::string* TestCamelCaseFieldNames::release_cordfield() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestCamelCaseFieldNames.CordField)
- if (!has_cordfield()) {
- return NULL;
- }
- clear_has_cordfield();
- return cordfield_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- }
- inline void TestCamelCaseFieldNames::set_allocated_cordfield(::std::string* cordfield) {
- if (cordfield != NULL) {
- set_has_cordfield();
- } else {
- clear_has_cordfield();
- }
- cordfield_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), cordfield,
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestCamelCaseFieldNames.CordField)
- }
- inline ::std::string* TestCamelCaseFieldNames::unsafe_arena_release_cordfield() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestCamelCaseFieldNames.CordField)
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- clear_has_cordfield();
- return cordfield_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- }
- inline void TestCamelCaseFieldNames::unsafe_arena_set_allocated_cordfield(
- ::std::string* cordfield) {
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- if (cordfield != NULL) {
- set_has_cordfield();
- } else {
- clear_has_cordfield();
- }
- cordfield_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- cordfield, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestCamelCaseFieldNames.CordField)
- }
- // repeated int32 RepeatedPrimitiveField = 7;
- inline int TestCamelCaseFieldNames::repeatedprimitivefield_size() const {
- return repeatedprimitivefield_.size();
- }
- inline void TestCamelCaseFieldNames::clear_repeatedprimitivefield() {
- repeatedprimitivefield_.Clear();
- }
- inline ::google::protobuf::int32 TestCamelCaseFieldNames::repeatedprimitivefield(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestCamelCaseFieldNames.RepeatedPrimitiveField)
- return repeatedprimitivefield_.Get(index);
- }
- inline void TestCamelCaseFieldNames::set_repeatedprimitivefield(int index, ::google::protobuf::int32 value) {
- repeatedprimitivefield_.Set(index, value);
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestCamelCaseFieldNames.RepeatedPrimitiveField)
- }
- inline void TestCamelCaseFieldNames::add_repeatedprimitivefield(::google::protobuf::int32 value) {
- repeatedprimitivefield_.Add(value);
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestCamelCaseFieldNames.RepeatedPrimitiveField)
- }
- inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
- TestCamelCaseFieldNames::repeatedprimitivefield() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestCamelCaseFieldNames.RepeatedPrimitiveField)
- return repeatedprimitivefield_;
- }
- inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
- TestCamelCaseFieldNames::mutable_repeatedprimitivefield() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestCamelCaseFieldNames.RepeatedPrimitiveField)
- return &repeatedprimitivefield_;
- }
- // repeated string RepeatedStringField = 8;
- inline int TestCamelCaseFieldNames::repeatedstringfield_size() const {
- return repeatedstringfield_.size();
- }
- inline void TestCamelCaseFieldNames::clear_repeatedstringfield() {
- repeatedstringfield_.Clear();
- }
- inline const ::std::string& TestCamelCaseFieldNames::repeatedstringfield(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestCamelCaseFieldNames.RepeatedStringField)
- return repeatedstringfield_.Get(index);
- }
- inline ::std::string* TestCamelCaseFieldNames::mutable_repeatedstringfield(int index) {
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestCamelCaseFieldNames.RepeatedStringField)
- return repeatedstringfield_.Mutable(index);
- }
- inline void TestCamelCaseFieldNames::set_repeatedstringfield(int index, const ::std::string& value) {
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestCamelCaseFieldNames.RepeatedStringField)
- repeatedstringfield_.Mutable(index)->assign(value);
- }
- #if LANG_CXX11
- inline void TestCamelCaseFieldNames::set_repeatedstringfield(int index, ::std::string&& value) {
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestCamelCaseFieldNames.RepeatedStringField)
- repeatedstringfield_.Mutable(index)->assign(std::move(value));
- }
- #endif
- inline void TestCamelCaseFieldNames::set_repeatedstringfield(int index, const char* value) {
- GOOGLE_DCHECK(value != NULL);
- repeatedstringfield_.Mutable(index)->assign(value);
- // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestCamelCaseFieldNames.RepeatedStringField)
- }
- inline void TestCamelCaseFieldNames::set_repeatedstringfield(int index, const char* value, size_t size) {
- repeatedstringfield_.Mutable(index)->assign(
- reinterpret_cast<const char*>(value), size);
- // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestCamelCaseFieldNames.RepeatedStringField)
- }
- inline ::std::string* TestCamelCaseFieldNames::add_repeatedstringfield() {
- // @@protoc_insertion_point(field_add_mutable:protobuf_unittest.TestCamelCaseFieldNames.RepeatedStringField)
- return repeatedstringfield_.Add();
- }
- inline void TestCamelCaseFieldNames::add_repeatedstringfield(const ::std::string& value) {
- repeatedstringfield_.Add()->assign(value);
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestCamelCaseFieldNames.RepeatedStringField)
- }
- #if LANG_CXX11
- inline void TestCamelCaseFieldNames::add_repeatedstringfield(::std::string&& value) {
- repeatedstringfield_.Add(std::move(value));
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestCamelCaseFieldNames.RepeatedStringField)
- }
- #endif
- inline void TestCamelCaseFieldNames::add_repeatedstringfield(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- repeatedstringfield_.Add()->assign(value);
- // @@protoc_insertion_point(field_add_char:protobuf_unittest.TestCamelCaseFieldNames.RepeatedStringField)
- }
- inline void TestCamelCaseFieldNames::add_repeatedstringfield(const char* value, size_t size) {
- repeatedstringfield_.Add()->assign(reinterpret_cast<const char*>(value), size);
- // @@protoc_insertion_point(field_add_pointer:protobuf_unittest.TestCamelCaseFieldNames.RepeatedStringField)
- }
- inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
- TestCamelCaseFieldNames::repeatedstringfield() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestCamelCaseFieldNames.RepeatedStringField)
- return repeatedstringfield_;
- }
- inline ::google::protobuf::RepeatedPtrField< ::std::string>*
- TestCamelCaseFieldNames::mutable_repeatedstringfield() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestCamelCaseFieldNames.RepeatedStringField)
- return &repeatedstringfield_;
- }
- // repeated .protobuf_unittest.ForeignEnum RepeatedEnumField = 9;
- inline int TestCamelCaseFieldNames::repeatedenumfield_size() const {
- return repeatedenumfield_.size();
- }
- inline void TestCamelCaseFieldNames::clear_repeatedenumfield() {
- repeatedenumfield_.Clear();
- }
- inline ::protobuf_unittest::ForeignEnum TestCamelCaseFieldNames::repeatedenumfield(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestCamelCaseFieldNames.RepeatedEnumField)
- return static_cast< ::protobuf_unittest::ForeignEnum >(repeatedenumfield_.Get(index));
- }
- inline void TestCamelCaseFieldNames::set_repeatedenumfield(int index, ::protobuf_unittest::ForeignEnum value) {
- assert(::protobuf_unittest::ForeignEnum_IsValid(value));
- repeatedenumfield_.Set(index, value);
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestCamelCaseFieldNames.RepeatedEnumField)
- }
- inline void TestCamelCaseFieldNames::add_repeatedenumfield(::protobuf_unittest::ForeignEnum value) {
- assert(::protobuf_unittest::ForeignEnum_IsValid(value));
- repeatedenumfield_.Add(value);
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestCamelCaseFieldNames.RepeatedEnumField)
- }
- inline const ::google::protobuf::RepeatedField<int>&
- TestCamelCaseFieldNames::repeatedenumfield() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestCamelCaseFieldNames.RepeatedEnumField)
- return repeatedenumfield_;
- }
- inline ::google::protobuf::RepeatedField<int>*
- TestCamelCaseFieldNames::mutable_repeatedenumfield() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestCamelCaseFieldNames.RepeatedEnumField)
- return &repeatedenumfield_;
- }
- // repeated .protobuf_unittest.ForeignMessage RepeatedMessageField = 10;
- inline int TestCamelCaseFieldNames::repeatedmessagefield_size() const {
- return repeatedmessagefield_.size();
- }
- inline void TestCamelCaseFieldNames::clear_repeatedmessagefield() {
- repeatedmessagefield_.Clear();
- }
- inline ::protobuf_unittest::ForeignMessage* TestCamelCaseFieldNames::mutable_repeatedmessagefield(int index) {
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestCamelCaseFieldNames.RepeatedMessageField)
- return repeatedmessagefield_.Mutable(index);
- }
- inline ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::ForeignMessage >*
- TestCamelCaseFieldNames::mutable_repeatedmessagefield() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestCamelCaseFieldNames.RepeatedMessageField)
- return &repeatedmessagefield_;
- }
- inline const ::protobuf_unittest::ForeignMessage& TestCamelCaseFieldNames::repeatedmessagefield(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestCamelCaseFieldNames.RepeatedMessageField)
- return repeatedmessagefield_.Get(index);
- }
- inline ::protobuf_unittest::ForeignMessage* TestCamelCaseFieldNames::add_repeatedmessagefield() {
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestCamelCaseFieldNames.RepeatedMessageField)
- return repeatedmessagefield_.Add();
- }
- inline const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::ForeignMessage >&
- TestCamelCaseFieldNames::repeatedmessagefield() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestCamelCaseFieldNames.RepeatedMessageField)
- return repeatedmessagefield_;
- }
- // repeated string RepeatedStringPieceField = 11 [ctype = STRING_PIECE];
- inline int TestCamelCaseFieldNames::repeatedstringpiecefield_size() const {
- return repeatedstringpiecefield_.size();
- }
- inline void TestCamelCaseFieldNames::clear_repeatedstringpiecefield() {
- repeatedstringpiecefield_.Clear();
- }
- inline const ::std::string& TestCamelCaseFieldNames::repeatedstringpiecefield(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestCamelCaseFieldNames.RepeatedStringPieceField)
- return repeatedstringpiecefield_.Get(index);
- }
- inline ::std::string* TestCamelCaseFieldNames::mutable_repeatedstringpiecefield(int index) {
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestCamelCaseFieldNames.RepeatedStringPieceField)
- return repeatedstringpiecefield_.Mutable(index);
- }
- inline void TestCamelCaseFieldNames::set_repeatedstringpiecefield(int index, const ::std::string& value) {
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestCamelCaseFieldNames.RepeatedStringPieceField)
- repeatedstringpiecefield_.Mutable(index)->assign(value);
- }
- #if LANG_CXX11
- inline void TestCamelCaseFieldNames::set_repeatedstringpiecefield(int index, ::std::string&& value) {
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestCamelCaseFieldNames.RepeatedStringPieceField)
- repeatedstringpiecefield_.Mutable(index)->assign(std::move(value));
- }
- #endif
- inline void TestCamelCaseFieldNames::set_repeatedstringpiecefield(int index, const char* value) {
- GOOGLE_DCHECK(value != NULL);
- repeatedstringpiecefield_.Mutable(index)->assign(value);
- // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestCamelCaseFieldNames.RepeatedStringPieceField)
- }
- inline void TestCamelCaseFieldNames::set_repeatedstringpiecefield(int index, const char* value, size_t size) {
- repeatedstringpiecefield_.Mutable(index)->assign(
- reinterpret_cast<const char*>(value), size);
- // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestCamelCaseFieldNames.RepeatedStringPieceField)
- }
- inline ::std::string* TestCamelCaseFieldNames::add_repeatedstringpiecefield() {
- // @@protoc_insertion_point(field_add_mutable:protobuf_unittest.TestCamelCaseFieldNames.RepeatedStringPieceField)
- return repeatedstringpiecefield_.Add();
- }
- inline void TestCamelCaseFieldNames::add_repeatedstringpiecefield(const ::std::string& value) {
- repeatedstringpiecefield_.Add()->assign(value);
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestCamelCaseFieldNames.RepeatedStringPieceField)
- }
- #if LANG_CXX11
- inline void TestCamelCaseFieldNames::add_repeatedstringpiecefield(::std::string&& value) {
- repeatedstringpiecefield_.Add(std::move(value));
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestCamelCaseFieldNames.RepeatedStringPieceField)
- }
- #endif
- inline void TestCamelCaseFieldNames::add_repeatedstringpiecefield(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- repeatedstringpiecefield_.Add()->assign(value);
- // @@protoc_insertion_point(field_add_char:protobuf_unittest.TestCamelCaseFieldNames.RepeatedStringPieceField)
- }
- inline void TestCamelCaseFieldNames::add_repeatedstringpiecefield(const char* value, size_t size) {
- repeatedstringpiecefield_.Add()->assign(reinterpret_cast<const char*>(value), size);
- // @@protoc_insertion_point(field_add_pointer:protobuf_unittest.TestCamelCaseFieldNames.RepeatedStringPieceField)
- }
- inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
- TestCamelCaseFieldNames::repeatedstringpiecefield() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestCamelCaseFieldNames.RepeatedStringPieceField)
- return repeatedstringpiecefield_;
- }
- inline ::google::protobuf::RepeatedPtrField< ::std::string>*
- TestCamelCaseFieldNames::mutable_repeatedstringpiecefield() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestCamelCaseFieldNames.RepeatedStringPieceField)
- return &repeatedstringpiecefield_;
- }
- // repeated string RepeatedCordField = 12 [ctype = CORD];
- inline int TestCamelCaseFieldNames::repeatedcordfield_size() const {
- return repeatedcordfield_.size();
- }
- inline void TestCamelCaseFieldNames::clear_repeatedcordfield() {
- repeatedcordfield_.Clear();
- }
- inline const ::std::string& TestCamelCaseFieldNames::repeatedcordfield(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestCamelCaseFieldNames.RepeatedCordField)
- return repeatedcordfield_.Get(index);
- }
- inline ::std::string* TestCamelCaseFieldNames::mutable_repeatedcordfield(int index) {
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestCamelCaseFieldNames.RepeatedCordField)
- return repeatedcordfield_.Mutable(index);
- }
- inline void TestCamelCaseFieldNames::set_repeatedcordfield(int index, const ::std::string& value) {
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestCamelCaseFieldNames.RepeatedCordField)
- repeatedcordfield_.Mutable(index)->assign(value);
- }
- #if LANG_CXX11
- inline void TestCamelCaseFieldNames::set_repeatedcordfield(int index, ::std::string&& value) {
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestCamelCaseFieldNames.RepeatedCordField)
- repeatedcordfield_.Mutable(index)->assign(std::move(value));
- }
- #endif
- inline void TestCamelCaseFieldNames::set_repeatedcordfield(int index, const char* value) {
- GOOGLE_DCHECK(value != NULL);
- repeatedcordfield_.Mutable(index)->assign(value);
- // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestCamelCaseFieldNames.RepeatedCordField)
- }
- inline void TestCamelCaseFieldNames::set_repeatedcordfield(int index, const char* value, size_t size) {
- repeatedcordfield_.Mutable(index)->assign(
- reinterpret_cast<const char*>(value), size);
- // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestCamelCaseFieldNames.RepeatedCordField)
- }
- inline ::std::string* TestCamelCaseFieldNames::add_repeatedcordfield() {
- // @@protoc_insertion_point(field_add_mutable:protobuf_unittest.TestCamelCaseFieldNames.RepeatedCordField)
- return repeatedcordfield_.Add();
- }
- inline void TestCamelCaseFieldNames::add_repeatedcordfield(const ::std::string& value) {
- repeatedcordfield_.Add()->assign(value);
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestCamelCaseFieldNames.RepeatedCordField)
- }
- #if LANG_CXX11
- inline void TestCamelCaseFieldNames::add_repeatedcordfield(::std::string&& value) {
- repeatedcordfield_.Add(std::move(value));
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestCamelCaseFieldNames.RepeatedCordField)
- }
- #endif
- inline void TestCamelCaseFieldNames::add_repeatedcordfield(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- repeatedcordfield_.Add()->assign(value);
- // @@protoc_insertion_point(field_add_char:protobuf_unittest.TestCamelCaseFieldNames.RepeatedCordField)
- }
- inline void TestCamelCaseFieldNames::add_repeatedcordfield(const char* value, size_t size) {
- repeatedcordfield_.Add()->assign(reinterpret_cast<const char*>(value), size);
- // @@protoc_insertion_point(field_add_pointer:protobuf_unittest.TestCamelCaseFieldNames.RepeatedCordField)
- }
- inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
- TestCamelCaseFieldNames::repeatedcordfield() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestCamelCaseFieldNames.RepeatedCordField)
- return repeatedcordfield_;
- }
- inline ::google::protobuf::RepeatedPtrField< ::std::string>*
- TestCamelCaseFieldNames::mutable_repeatedcordfield() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestCamelCaseFieldNames.RepeatedCordField)
- return &repeatedcordfield_;
- }
- // -------------------------------------------------------------------
- // TestFieldOrderings_NestedMessage
- // optional int64 oo = 2;
- inline bool TestFieldOrderings_NestedMessage::has_oo() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void TestFieldOrderings_NestedMessage::set_has_oo() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void TestFieldOrderings_NestedMessage::clear_has_oo() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void TestFieldOrderings_NestedMessage::clear_oo() {
- oo_ = GOOGLE_LONGLONG(0);
- clear_has_oo();
- }
- inline ::google::protobuf::int64 TestFieldOrderings_NestedMessage::oo() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestFieldOrderings.NestedMessage.oo)
- return oo_;
- }
- inline void TestFieldOrderings_NestedMessage::set_oo(::google::protobuf::int64 value) {
- set_has_oo();
- oo_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestFieldOrderings.NestedMessage.oo)
- }
- // optional int32 bb = 1;
- inline bool TestFieldOrderings_NestedMessage::has_bb() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
- }
- inline void TestFieldOrderings_NestedMessage::set_has_bb() {
- _has_bits_[0] |= 0x00000002u;
- }
- inline void TestFieldOrderings_NestedMessage::clear_has_bb() {
- _has_bits_[0] &= ~0x00000002u;
- }
- inline void TestFieldOrderings_NestedMessage::clear_bb() {
- bb_ = 0;
- clear_has_bb();
- }
- inline ::google::protobuf::int32 TestFieldOrderings_NestedMessage::bb() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestFieldOrderings.NestedMessage.bb)
- return bb_;
- }
- inline void TestFieldOrderings_NestedMessage::set_bb(::google::protobuf::int32 value) {
- set_has_bb();
- bb_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestFieldOrderings.NestedMessage.bb)
- }
- // -------------------------------------------------------------------
- // TestFieldOrderings
- // optional string my_string = 11;
- inline bool TestFieldOrderings::has_my_string() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void TestFieldOrderings::set_has_my_string() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void TestFieldOrderings::clear_has_my_string() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void TestFieldOrderings::clear_my_string() {
- my_string_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- clear_has_my_string();
- }
- inline const ::std::string& TestFieldOrderings::my_string() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestFieldOrderings.my_string)
- return my_string_.Get();
- }
- inline void TestFieldOrderings::set_my_string(const ::std::string& value) {
- set_has_my_string();
- my_string_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestFieldOrderings.my_string)
- }
- #if LANG_CXX11
- inline void TestFieldOrderings::set_my_string(::std::string&& value) {
- set_has_my_string();
- my_string_.Set(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestFieldOrderings.my_string)
- }
- #endif
- inline void TestFieldOrderings::set_my_string(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- set_has_my_string();
- my_string_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestFieldOrderings.my_string)
- }
- inline void TestFieldOrderings::set_my_string(const char* value,
- size_t size) {
- set_has_my_string();
- my_string_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
- reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestFieldOrderings.my_string)
- }
- inline ::std::string* TestFieldOrderings::mutable_my_string() {
- set_has_my_string();
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestFieldOrderings.my_string)
- return my_string_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- }
- inline ::std::string* TestFieldOrderings::release_my_string() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestFieldOrderings.my_string)
- if (!has_my_string()) {
- return NULL;
- }
- clear_has_my_string();
- return my_string_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- }
- inline void TestFieldOrderings::set_allocated_my_string(::std::string* my_string) {
- if (my_string != NULL) {
- set_has_my_string();
- } else {
- clear_has_my_string();
- }
- my_string_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), my_string,
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestFieldOrderings.my_string)
- }
- inline ::std::string* TestFieldOrderings::unsafe_arena_release_my_string() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestFieldOrderings.my_string)
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- clear_has_my_string();
- return my_string_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- }
- inline void TestFieldOrderings::unsafe_arena_set_allocated_my_string(
- ::std::string* my_string) {
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- if (my_string != NULL) {
- set_has_my_string();
- } else {
- clear_has_my_string();
- }
- my_string_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- my_string, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestFieldOrderings.my_string)
- }
- // optional int64 my_int = 1;
- inline bool TestFieldOrderings::has_my_int() const {
- return (_has_bits_[0] & 0x00000004u) != 0;
- }
- inline void TestFieldOrderings::set_has_my_int() {
- _has_bits_[0] |= 0x00000004u;
- }
- inline void TestFieldOrderings::clear_has_my_int() {
- _has_bits_[0] &= ~0x00000004u;
- }
- inline void TestFieldOrderings::clear_my_int() {
- my_int_ = GOOGLE_LONGLONG(0);
- clear_has_my_int();
- }
- inline ::google::protobuf::int64 TestFieldOrderings::my_int() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestFieldOrderings.my_int)
- return my_int_;
- }
- inline void TestFieldOrderings::set_my_int(::google::protobuf::int64 value) {
- set_has_my_int();
- my_int_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestFieldOrderings.my_int)
- }
- // optional float my_float = 101;
- inline bool TestFieldOrderings::has_my_float() const {
- return (_has_bits_[0] & 0x00000008u) != 0;
- }
- inline void TestFieldOrderings::set_has_my_float() {
- _has_bits_[0] |= 0x00000008u;
- }
- inline void TestFieldOrderings::clear_has_my_float() {
- _has_bits_[0] &= ~0x00000008u;
- }
- inline void TestFieldOrderings::clear_my_float() {
- my_float_ = 0;
- clear_has_my_float();
- }
- inline float TestFieldOrderings::my_float() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestFieldOrderings.my_float)
- return my_float_;
- }
- inline void TestFieldOrderings::set_my_float(float value) {
- set_has_my_float();
- my_float_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestFieldOrderings.my_float)
- }
- // optional .protobuf_unittest.TestFieldOrderings.NestedMessage optional_nested_message = 200;
- inline bool TestFieldOrderings::has_optional_nested_message() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
- }
- inline void TestFieldOrderings::set_has_optional_nested_message() {
- _has_bits_[0] |= 0x00000002u;
- }
- inline void TestFieldOrderings::clear_has_optional_nested_message() {
- _has_bits_[0] &= ~0x00000002u;
- }
- inline void TestFieldOrderings::clear_optional_nested_message() {
- if (optional_nested_message_ != NULL) optional_nested_message_->Clear();
- clear_has_optional_nested_message();
- }
- inline const ::protobuf_unittest::TestFieldOrderings_NestedMessage& TestFieldOrderings::_internal_optional_nested_message() const {
- return *optional_nested_message_;
- }
- inline const ::protobuf_unittest::TestFieldOrderings_NestedMessage& TestFieldOrderings::optional_nested_message() const {
- const ::protobuf_unittest::TestFieldOrderings_NestedMessage* p = optional_nested_message_;
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestFieldOrderings.optional_nested_message)
- return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestFieldOrderings_NestedMessage*>(
- &::protobuf_unittest::_TestFieldOrderings_NestedMessage_default_instance_);
- }
- inline ::protobuf_unittest::TestFieldOrderings_NestedMessage* TestFieldOrderings::release_optional_nested_message() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestFieldOrderings.optional_nested_message)
- clear_has_optional_nested_message();
- ::protobuf_unittest::TestFieldOrderings_NestedMessage* temp = optional_nested_message_;
- if (GetArenaNoVirtual() != NULL) {
- temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
- }
- optional_nested_message_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestFieldOrderings_NestedMessage* TestFieldOrderings::unsafe_arena_release_optional_nested_message() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestFieldOrderings.optional_nested_message)
- clear_has_optional_nested_message();
- ::protobuf_unittest::TestFieldOrderings_NestedMessage* temp = optional_nested_message_;
- optional_nested_message_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestFieldOrderings_NestedMessage* TestFieldOrderings::mutable_optional_nested_message() {
- set_has_optional_nested_message();
- if (optional_nested_message_ == NULL) {
- auto* p = CreateMaybeMessage<::protobuf_unittest::TestFieldOrderings_NestedMessage>(GetArenaNoVirtual());
- optional_nested_message_ = p;
- }
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestFieldOrderings.optional_nested_message)
- return optional_nested_message_;
- }
- inline void TestFieldOrderings::set_allocated_optional_nested_message(::protobuf_unittest::TestFieldOrderings_NestedMessage* optional_nested_message) {
- ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
- if (message_arena == NULL) {
- delete optional_nested_message_;
- }
- if (optional_nested_message) {
- ::google::protobuf::Arena* submessage_arena =
- ::google::protobuf::Arena::GetArena(optional_nested_message);
- if (message_arena != submessage_arena) {
- optional_nested_message = ::google::protobuf::internal::GetOwnedMessage(
- message_arena, optional_nested_message, submessage_arena);
- }
- set_has_optional_nested_message();
- } else {
- clear_has_optional_nested_message();
- }
- optional_nested_message_ = optional_nested_message;
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestFieldOrderings.optional_nested_message)
- }
- // -------------------------------------------------------------------
- // TestExtensionOrderings1
- // optional string my_string = 1;
- inline bool TestExtensionOrderings1::has_my_string() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void TestExtensionOrderings1::set_has_my_string() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void TestExtensionOrderings1::clear_has_my_string() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void TestExtensionOrderings1::clear_my_string() {
- my_string_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- clear_has_my_string();
- }
- inline const ::std::string& TestExtensionOrderings1::my_string() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtensionOrderings1.my_string)
- return my_string_.Get();
- }
- inline void TestExtensionOrderings1::set_my_string(const ::std::string& value) {
- set_has_my_string();
- my_string_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtensionOrderings1.my_string)
- }
- #if LANG_CXX11
- inline void TestExtensionOrderings1::set_my_string(::std::string&& value) {
- set_has_my_string();
- my_string_.Set(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestExtensionOrderings1.my_string)
- }
- #endif
- inline void TestExtensionOrderings1::set_my_string(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- set_has_my_string();
- my_string_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestExtensionOrderings1.my_string)
- }
- inline void TestExtensionOrderings1::set_my_string(const char* value,
- size_t size) {
- set_has_my_string();
- my_string_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
- reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestExtensionOrderings1.my_string)
- }
- inline ::std::string* TestExtensionOrderings1::mutable_my_string() {
- set_has_my_string();
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestExtensionOrderings1.my_string)
- return my_string_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- }
- inline ::std::string* TestExtensionOrderings1::release_my_string() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestExtensionOrderings1.my_string)
- if (!has_my_string()) {
- return NULL;
- }
- clear_has_my_string();
- return my_string_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- }
- inline void TestExtensionOrderings1::set_allocated_my_string(::std::string* my_string) {
- if (my_string != NULL) {
- set_has_my_string();
- } else {
- clear_has_my_string();
- }
- my_string_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), my_string,
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestExtensionOrderings1.my_string)
- }
- inline ::std::string* TestExtensionOrderings1::unsafe_arena_release_my_string() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestExtensionOrderings1.my_string)
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- clear_has_my_string();
- return my_string_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- }
- inline void TestExtensionOrderings1::unsafe_arena_set_allocated_my_string(
- ::std::string* my_string) {
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- if (my_string != NULL) {
- set_has_my_string();
- } else {
- clear_has_my_string();
- }
- my_string_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- my_string, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestExtensionOrderings1.my_string)
- }
- // -------------------------------------------------------------------
- // TestExtensionOrderings2_TestExtensionOrderings3
- // optional string my_string = 1;
- inline bool TestExtensionOrderings2_TestExtensionOrderings3::has_my_string() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void TestExtensionOrderings2_TestExtensionOrderings3::set_has_my_string() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void TestExtensionOrderings2_TestExtensionOrderings3::clear_has_my_string() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void TestExtensionOrderings2_TestExtensionOrderings3::clear_my_string() {
- my_string_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- clear_has_my_string();
- }
- inline const ::std::string& TestExtensionOrderings2_TestExtensionOrderings3::my_string() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtensionOrderings2.TestExtensionOrderings3.my_string)
- return my_string_.Get();
- }
- inline void TestExtensionOrderings2_TestExtensionOrderings3::set_my_string(const ::std::string& value) {
- set_has_my_string();
- my_string_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtensionOrderings2.TestExtensionOrderings3.my_string)
- }
- #if LANG_CXX11
- inline void TestExtensionOrderings2_TestExtensionOrderings3::set_my_string(::std::string&& value) {
- set_has_my_string();
- my_string_.Set(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestExtensionOrderings2.TestExtensionOrderings3.my_string)
- }
- #endif
- inline void TestExtensionOrderings2_TestExtensionOrderings3::set_my_string(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- set_has_my_string();
- my_string_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestExtensionOrderings2.TestExtensionOrderings3.my_string)
- }
- inline void TestExtensionOrderings2_TestExtensionOrderings3::set_my_string(const char* value,
- size_t size) {
- set_has_my_string();
- my_string_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
- reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestExtensionOrderings2.TestExtensionOrderings3.my_string)
- }
- inline ::std::string* TestExtensionOrderings2_TestExtensionOrderings3::mutable_my_string() {
- set_has_my_string();
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestExtensionOrderings2.TestExtensionOrderings3.my_string)
- return my_string_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- }
- inline ::std::string* TestExtensionOrderings2_TestExtensionOrderings3::release_my_string() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestExtensionOrderings2.TestExtensionOrderings3.my_string)
- if (!has_my_string()) {
- return NULL;
- }
- clear_has_my_string();
- return my_string_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- }
- inline void TestExtensionOrderings2_TestExtensionOrderings3::set_allocated_my_string(::std::string* my_string) {
- if (my_string != NULL) {
- set_has_my_string();
- } else {
- clear_has_my_string();
- }
- my_string_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), my_string,
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestExtensionOrderings2.TestExtensionOrderings3.my_string)
- }
- inline ::std::string* TestExtensionOrderings2_TestExtensionOrderings3::unsafe_arena_release_my_string() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestExtensionOrderings2.TestExtensionOrderings3.my_string)
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- clear_has_my_string();
- return my_string_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- }
- inline void TestExtensionOrderings2_TestExtensionOrderings3::unsafe_arena_set_allocated_my_string(
- ::std::string* my_string) {
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- if (my_string != NULL) {
- set_has_my_string();
- } else {
- clear_has_my_string();
- }
- my_string_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- my_string, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestExtensionOrderings2.TestExtensionOrderings3.my_string)
- }
- // -------------------------------------------------------------------
- // TestExtensionOrderings2
- // optional string my_string = 1;
- inline bool TestExtensionOrderings2::has_my_string() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void TestExtensionOrderings2::set_has_my_string() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void TestExtensionOrderings2::clear_has_my_string() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void TestExtensionOrderings2::clear_my_string() {
- my_string_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- clear_has_my_string();
- }
- inline const ::std::string& TestExtensionOrderings2::my_string() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtensionOrderings2.my_string)
- return my_string_.Get();
- }
- inline void TestExtensionOrderings2::set_my_string(const ::std::string& value) {
- set_has_my_string();
- my_string_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtensionOrderings2.my_string)
- }
- #if LANG_CXX11
- inline void TestExtensionOrderings2::set_my_string(::std::string&& value) {
- set_has_my_string();
- my_string_.Set(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestExtensionOrderings2.my_string)
- }
- #endif
- inline void TestExtensionOrderings2::set_my_string(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- set_has_my_string();
- my_string_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestExtensionOrderings2.my_string)
- }
- inline void TestExtensionOrderings2::set_my_string(const char* value,
- size_t size) {
- set_has_my_string();
- my_string_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
- reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestExtensionOrderings2.my_string)
- }
- inline ::std::string* TestExtensionOrderings2::mutable_my_string() {
- set_has_my_string();
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestExtensionOrderings2.my_string)
- return my_string_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- }
- inline ::std::string* TestExtensionOrderings2::release_my_string() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestExtensionOrderings2.my_string)
- if (!has_my_string()) {
- return NULL;
- }
- clear_has_my_string();
- return my_string_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- }
- inline void TestExtensionOrderings2::set_allocated_my_string(::std::string* my_string) {
- if (my_string != NULL) {
- set_has_my_string();
- } else {
- clear_has_my_string();
- }
- my_string_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), my_string,
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestExtensionOrderings2.my_string)
- }
- inline ::std::string* TestExtensionOrderings2::unsafe_arena_release_my_string() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestExtensionOrderings2.my_string)
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- clear_has_my_string();
- return my_string_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- }
- inline void TestExtensionOrderings2::unsafe_arena_set_allocated_my_string(
- ::std::string* my_string) {
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- if (my_string != NULL) {
- set_has_my_string();
- } else {
- clear_has_my_string();
- }
- my_string_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- my_string, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestExtensionOrderings2.my_string)
- }
- // -------------------------------------------------------------------
- // TestExtremeDefaultValues
- // optional bytes escaped_bytes = 1 [default = "\000\001\007\010\014\n\r\t\013\\\'\"\376"];
- inline bool TestExtremeDefaultValues::has_escaped_bytes() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void TestExtremeDefaultValues::set_has_escaped_bytes() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void TestExtremeDefaultValues::clear_has_escaped_bytes() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void TestExtremeDefaultValues::clear_escaped_bytes() {
- escaped_bytes_.ClearToDefault(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_escaped_bytes_.get(), GetArenaNoVirtual());
- clear_has_escaped_bytes();
- }
- inline const ::std::string& TestExtremeDefaultValues::escaped_bytes() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtremeDefaultValues.escaped_bytes)
- return escaped_bytes_.Get();
- }
- inline void TestExtremeDefaultValues::set_escaped_bytes(const ::std::string& value) {
- set_has_escaped_bytes();
- escaped_bytes_.Set(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_escaped_bytes_.get(), value, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtremeDefaultValues.escaped_bytes)
- }
- #if LANG_CXX11
- inline void TestExtremeDefaultValues::set_escaped_bytes(::std::string&& value) {
- set_has_escaped_bytes();
- escaped_bytes_.Set(
- &::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_escaped_bytes_.get(), ::std::move(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestExtremeDefaultValues.escaped_bytes)
- }
- #endif
- inline void TestExtremeDefaultValues::set_escaped_bytes(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- set_has_escaped_bytes();
- escaped_bytes_.Set(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_escaped_bytes_.get(), ::std::string(value),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestExtremeDefaultValues.escaped_bytes)
- }
- inline void TestExtremeDefaultValues::set_escaped_bytes(const void* value,
- size_t size) {
- set_has_escaped_bytes();
- escaped_bytes_.Set(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_escaped_bytes_.get(), ::std::string(
- reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestExtremeDefaultValues.escaped_bytes)
- }
- inline ::std::string* TestExtremeDefaultValues::mutable_escaped_bytes() {
- set_has_escaped_bytes();
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestExtremeDefaultValues.escaped_bytes)
- return escaped_bytes_.Mutable(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_escaped_bytes_.get(), GetArenaNoVirtual());
- }
- inline ::std::string* TestExtremeDefaultValues::release_escaped_bytes() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestExtremeDefaultValues.escaped_bytes)
- if (!has_escaped_bytes()) {
- return NULL;
- }
- clear_has_escaped_bytes();
- return escaped_bytes_.ReleaseNonDefault(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_escaped_bytes_.get(), GetArenaNoVirtual());
- }
- inline void TestExtremeDefaultValues::set_allocated_escaped_bytes(::std::string* escaped_bytes) {
- if (escaped_bytes != NULL) {
- set_has_escaped_bytes();
- } else {
- clear_has_escaped_bytes();
- }
- escaped_bytes_.SetAllocated(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_escaped_bytes_.get(), escaped_bytes,
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestExtremeDefaultValues.escaped_bytes)
- }
- inline ::std::string* TestExtremeDefaultValues::unsafe_arena_release_escaped_bytes() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestExtremeDefaultValues.escaped_bytes)
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- clear_has_escaped_bytes();
- return escaped_bytes_.UnsafeArenaRelease(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_escaped_bytes_.get(),
- GetArenaNoVirtual());
- }
- inline void TestExtremeDefaultValues::unsafe_arena_set_allocated_escaped_bytes(
- ::std::string* escaped_bytes) {
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- if (escaped_bytes != NULL) {
- set_has_escaped_bytes();
- } else {
- clear_has_escaped_bytes();
- }
- escaped_bytes_.UnsafeArenaSetAllocated(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_escaped_bytes_.get(),
- escaped_bytes, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestExtremeDefaultValues.escaped_bytes)
- }
- // optional uint32 large_uint32 = 2 [default = 4294967295];
- inline bool TestExtremeDefaultValues::has_large_uint32() const {
- return (_has_bits_[0] & 0x00000400u) != 0;
- }
- inline void TestExtremeDefaultValues::set_has_large_uint32() {
- _has_bits_[0] |= 0x00000400u;
- }
- inline void TestExtremeDefaultValues::clear_has_large_uint32() {
- _has_bits_[0] &= ~0x00000400u;
- }
- inline void TestExtremeDefaultValues::clear_large_uint32() {
- large_uint32_ = 4294967295u;
- clear_has_large_uint32();
- }
- inline ::google::protobuf::uint32 TestExtremeDefaultValues::large_uint32() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtremeDefaultValues.large_uint32)
- return large_uint32_;
- }
- inline void TestExtremeDefaultValues::set_large_uint32(::google::protobuf::uint32 value) {
- set_has_large_uint32();
- large_uint32_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtremeDefaultValues.large_uint32)
- }
- // optional uint64 large_uint64 = 3 [default = 18446744073709551615];
- inline bool TestExtremeDefaultValues::has_large_uint64() const {
- return (_has_bits_[0] & 0x00000200u) != 0;
- }
- inline void TestExtremeDefaultValues::set_has_large_uint64() {
- _has_bits_[0] |= 0x00000200u;
- }
- inline void TestExtremeDefaultValues::clear_has_large_uint64() {
- _has_bits_[0] &= ~0x00000200u;
- }
- inline void TestExtremeDefaultValues::clear_large_uint64() {
- large_uint64_ = GOOGLE_ULONGLONG(18446744073709551615);
- clear_has_large_uint64();
- }
- inline ::google::protobuf::uint64 TestExtremeDefaultValues::large_uint64() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtremeDefaultValues.large_uint64)
- return large_uint64_;
- }
- inline void TestExtremeDefaultValues::set_large_uint64(::google::protobuf::uint64 value) {
- set_has_large_uint64();
- large_uint64_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtremeDefaultValues.large_uint64)
- }
- // optional int32 small_int32 = 4 [default = -2147483647];
- inline bool TestExtremeDefaultValues::has_small_int32() const {
- return (_has_bits_[0] & 0x00000800u) != 0;
- }
- inline void TestExtremeDefaultValues::set_has_small_int32() {
- _has_bits_[0] |= 0x00000800u;
- }
- inline void TestExtremeDefaultValues::clear_has_small_int32() {
- _has_bits_[0] &= ~0x00000800u;
- }
- inline void TestExtremeDefaultValues::clear_small_int32() {
- small_int32_ = -2147483647;
- clear_has_small_int32();
- }
- inline ::google::protobuf::int32 TestExtremeDefaultValues::small_int32() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtremeDefaultValues.small_int32)
- return small_int32_;
- }
- inline void TestExtremeDefaultValues::set_small_int32(::google::protobuf::int32 value) {
- set_has_small_int32();
- small_int32_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtremeDefaultValues.small_int32)
- }
- // optional int64 small_int64 = 5 [default = -9223372036854775807];
- inline bool TestExtremeDefaultValues::has_small_int64() const {
- return (_has_bits_[0] & 0x00001000u) != 0;
- }
- inline void TestExtremeDefaultValues::set_has_small_int64() {
- _has_bits_[0] |= 0x00001000u;
- }
- inline void TestExtremeDefaultValues::clear_has_small_int64() {
- _has_bits_[0] &= ~0x00001000u;
- }
- inline void TestExtremeDefaultValues::clear_small_int64() {
- small_int64_ = GOOGLE_LONGLONG(-9223372036854775807);
- clear_has_small_int64();
- }
- inline ::google::protobuf::int64 TestExtremeDefaultValues::small_int64() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtremeDefaultValues.small_int64)
- return small_int64_;
- }
- inline void TestExtremeDefaultValues::set_small_int64(::google::protobuf::int64 value) {
- set_has_small_int64();
- small_int64_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtremeDefaultValues.small_int64)
- }
- // optional int32 really_small_int32 = 21 [default = -2147483648];
- inline bool TestExtremeDefaultValues::has_really_small_int32() const {
- return (_has_bits_[0] & 0x02000000u) != 0;
- }
- inline void TestExtremeDefaultValues::set_has_really_small_int32() {
- _has_bits_[0] |= 0x02000000u;
- }
- inline void TestExtremeDefaultValues::clear_has_really_small_int32() {
- _has_bits_[0] &= ~0x02000000u;
- }
- inline void TestExtremeDefaultValues::clear_really_small_int32() {
- really_small_int32_ = (~0x7fffffff);
- clear_has_really_small_int32();
- }
- inline ::google::protobuf::int32 TestExtremeDefaultValues::really_small_int32() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtremeDefaultValues.really_small_int32)
- return really_small_int32_;
- }
- inline void TestExtremeDefaultValues::set_really_small_int32(::google::protobuf::int32 value) {
- set_has_really_small_int32();
- really_small_int32_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtremeDefaultValues.really_small_int32)
- }
- // optional int64 really_small_int64 = 22 [default = -9223372036854775808];
- inline bool TestExtremeDefaultValues::has_really_small_int64() const {
- return (_has_bits_[0] & 0x04000000u) != 0;
- }
- inline void TestExtremeDefaultValues::set_has_really_small_int64() {
- _has_bits_[0] |= 0x04000000u;
- }
- inline void TestExtremeDefaultValues::clear_has_really_small_int64() {
- _has_bits_[0] &= ~0x04000000u;
- }
- inline void TestExtremeDefaultValues::clear_really_small_int64() {
- really_small_int64_ = GOOGLE_LONGLONG(~0x7fffffffffffffff);
- clear_has_really_small_int64();
- }
- inline ::google::protobuf::int64 TestExtremeDefaultValues::really_small_int64() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtremeDefaultValues.really_small_int64)
- return really_small_int64_;
- }
- inline void TestExtremeDefaultValues::set_really_small_int64(::google::protobuf::int64 value) {
- set_has_really_small_int64();
- really_small_int64_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtremeDefaultValues.really_small_int64)
- }
- // optional string utf8_string = 6 [default = "\341\210\264"];
- inline bool TestExtremeDefaultValues::has_utf8_string() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
- }
- inline void TestExtremeDefaultValues::set_has_utf8_string() {
- _has_bits_[0] |= 0x00000002u;
- }
- inline void TestExtremeDefaultValues::clear_has_utf8_string() {
- _has_bits_[0] &= ~0x00000002u;
- }
- inline void TestExtremeDefaultValues::clear_utf8_string() {
- utf8_string_.ClearToDefault(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_utf8_string_.get(), GetArenaNoVirtual());
- clear_has_utf8_string();
- }
- inline const ::std::string& TestExtremeDefaultValues::utf8_string() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtremeDefaultValues.utf8_string)
- return utf8_string_.Get();
- }
- inline void TestExtremeDefaultValues::set_utf8_string(const ::std::string& value) {
- set_has_utf8_string();
- utf8_string_.Set(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_utf8_string_.get(), value, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtremeDefaultValues.utf8_string)
- }
- #if LANG_CXX11
- inline void TestExtremeDefaultValues::set_utf8_string(::std::string&& value) {
- set_has_utf8_string();
- utf8_string_.Set(
- &::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_utf8_string_.get(), ::std::move(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestExtremeDefaultValues.utf8_string)
- }
- #endif
- inline void TestExtremeDefaultValues::set_utf8_string(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- set_has_utf8_string();
- utf8_string_.Set(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_utf8_string_.get(), ::std::string(value),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestExtremeDefaultValues.utf8_string)
- }
- inline void TestExtremeDefaultValues::set_utf8_string(const char* value,
- size_t size) {
- set_has_utf8_string();
- utf8_string_.Set(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_utf8_string_.get(), ::std::string(
- reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestExtremeDefaultValues.utf8_string)
- }
- inline ::std::string* TestExtremeDefaultValues::mutable_utf8_string() {
- set_has_utf8_string();
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestExtremeDefaultValues.utf8_string)
- return utf8_string_.Mutable(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_utf8_string_.get(), GetArenaNoVirtual());
- }
- inline ::std::string* TestExtremeDefaultValues::release_utf8_string() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestExtremeDefaultValues.utf8_string)
- if (!has_utf8_string()) {
- return NULL;
- }
- clear_has_utf8_string();
- return utf8_string_.ReleaseNonDefault(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_utf8_string_.get(), GetArenaNoVirtual());
- }
- inline void TestExtremeDefaultValues::set_allocated_utf8_string(::std::string* utf8_string) {
- if (utf8_string != NULL) {
- set_has_utf8_string();
- } else {
- clear_has_utf8_string();
- }
- utf8_string_.SetAllocated(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_utf8_string_.get(), utf8_string,
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestExtremeDefaultValues.utf8_string)
- }
- inline ::std::string* TestExtremeDefaultValues::unsafe_arena_release_utf8_string() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestExtremeDefaultValues.utf8_string)
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- clear_has_utf8_string();
- return utf8_string_.UnsafeArenaRelease(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_utf8_string_.get(),
- GetArenaNoVirtual());
- }
- inline void TestExtremeDefaultValues::unsafe_arena_set_allocated_utf8_string(
- ::std::string* utf8_string) {
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- if (utf8_string != NULL) {
- set_has_utf8_string();
- } else {
- clear_has_utf8_string();
- }
- utf8_string_.UnsafeArenaSetAllocated(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_utf8_string_.get(),
- utf8_string, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestExtremeDefaultValues.utf8_string)
- }
- // optional float zero_float = 7 [default = 0];
- inline bool TestExtremeDefaultValues::has_zero_float() const {
- return (_has_bits_[0] & 0x00000100u) != 0;
- }
- inline void TestExtremeDefaultValues::set_has_zero_float() {
- _has_bits_[0] |= 0x00000100u;
- }
- inline void TestExtremeDefaultValues::clear_has_zero_float() {
- _has_bits_[0] &= ~0x00000100u;
- }
- inline void TestExtremeDefaultValues::clear_zero_float() {
- zero_float_ = 0;
- clear_has_zero_float();
- }
- inline float TestExtremeDefaultValues::zero_float() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtremeDefaultValues.zero_float)
- return zero_float_;
- }
- inline void TestExtremeDefaultValues::set_zero_float(float value) {
- set_has_zero_float();
- zero_float_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtremeDefaultValues.zero_float)
- }
- // optional float one_float = 8 [default = 1];
- inline bool TestExtremeDefaultValues::has_one_float() const {
- return (_has_bits_[0] & 0x00002000u) != 0;
- }
- inline void TestExtremeDefaultValues::set_has_one_float() {
- _has_bits_[0] |= 0x00002000u;
- }
- inline void TestExtremeDefaultValues::clear_has_one_float() {
- _has_bits_[0] &= ~0x00002000u;
- }
- inline void TestExtremeDefaultValues::clear_one_float() {
- one_float_ = 1;
- clear_has_one_float();
- }
- inline float TestExtremeDefaultValues::one_float() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtremeDefaultValues.one_float)
- return one_float_;
- }
- inline void TestExtremeDefaultValues::set_one_float(float value) {
- set_has_one_float();
- one_float_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtremeDefaultValues.one_float)
- }
- // optional float small_float = 9 [default = 1.5];
- inline bool TestExtremeDefaultValues::has_small_float() const {
- return (_has_bits_[0] & 0x00004000u) != 0;
- }
- inline void TestExtremeDefaultValues::set_has_small_float() {
- _has_bits_[0] |= 0x00004000u;
- }
- inline void TestExtremeDefaultValues::clear_has_small_float() {
- _has_bits_[0] &= ~0x00004000u;
- }
- inline void TestExtremeDefaultValues::clear_small_float() {
- small_float_ = 1.5f;
- clear_has_small_float();
- }
- inline float TestExtremeDefaultValues::small_float() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtremeDefaultValues.small_float)
- return small_float_;
- }
- inline void TestExtremeDefaultValues::set_small_float(float value) {
- set_has_small_float();
- small_float_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtremeDefaultValues.small_float)
- }
- // optional float negative_one_float = 10 [default = -1];
- inline bool TestExtremeDefaultValues::has_negative_one_float() const {
- return (_has_bits_[0] & 0x00008000u) != 0;
- }
- inline void TestExtremeDefaultValues::set_has_negative_one_float() {
- _has_bits_[0] |= 0x00008000u;
- }
- inline void TestExtremeDefaultValues::clear_has_negative_one_float() {
- _has_bits_[0] &= ~0x00008000u;
- }
- inline void TestExtremeDefaultValues::clear_negative_one_float() {
- negative_one_float_ = -1;
- clear_has_negative_one_float();
- }
- inline float TestExtremeDefaultValues::negative_one_float() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtremeDefaultValues.negative_one_float)
- return negative_one_float_;
- }
- inline void TestExtremeDefaultValues::set_negative_one_float(float value) {
- set_has_negative_one_float();
- negative_one_float_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtremeDefaultValues.negative_one_float)
- }
- // optional float negative_float = 11 [default = -1.5];
- inline bool TestExtremeDefaultValues::has_negative_float() const {
- return (_has_bits_[0] & 0x00010000u) != 0;
- }
- inline void TestExtremeDefaultValues::set_has_negative_float() {
- _has_bits_[0] |= 0x00010000u;
- }
- inline void TestExtremeDefaultValues::clear_has_negative_float() {
- _has_bits_[0] &= ~0x00010000u;
- }
- inline void TestExtremeDefaultValues::clear_negative_float() {
- negative_float_ = -1.5f;
- clear_has_negative_float();
- }
- inline float TestExtremeDefaultValues::negative_float() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtremeDefaultValues.negative_float)
- return negative_float_;
- }
- inline void TestExtremeDefaultValues::set_negative_float(float value) {
- set_has_negative_float();
- negative_float_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtremeDefaultValues.negative_float)
- }
- // optional float large_float = 12 [default = 2e+08];
- inline bool TestExtremeDefaultValues::has_large_float() const {
- return (_has_bits_[0] & 0x00020000u) != 0;
- }
- inline void TestExtremeDefaultValues::set_has_large_float() {
- _has_bits_[0] |= 0x00020000u;
- }
- inline void TestExtremeDefaultValues::clear_has_large_float() {
- _has_bits_[0] &= ~0x00020000u;
- }
- inline void TestExtremeDefaultValues::clear_large_float() {
- large_float_ = 2e+08f;
- clear_has_large_float();
- }
- inline float TestExtremeDefaultValues::large_float() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtremeDefaultValues.large_float)
- return large_float_;
- }
- inline void TestExtremeDefaultValues::set_large_float(float value) {
- set_has_large_float();
- large_float_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtremeDefaultValues.large_float)
- }
- // optional float small_negative_float = 13 [default = -8e-28];
- inline bool TestExtremeDefaultValues::has_small_negative_float() const {
- return (_has_bits_[0] & 0x00040000u) != 0;
- }
- inline void TestExtremeDefaultValues::set_has_small_negative_float() {
- _has_bits_[0] |= 0x00040000u;
- }
- inline void TestExtremeDefaultValues::clear_has_small_negative_float() {
- _has_bits_[0] &= ~0x00040000u;
- }
- inline void TestExtremeDefaultValues::clear_small_negative_float() {
- small_negative_float_ = -8e-28f;
- clear_has_small_negative_float();
- }
- inline float TestExtremeDefaultValues::small_negative_float() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtremeDefaultValues.small_negative_float)
- return small_negative_float_;
- }
- inline void TestExtremeDefaultValues::set_small_negative_float(float value) {
- set_has_small_negative_float();
- small_negative_float_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtremeDefaultValues.small_negative_float)
- }
- // optional double inf_double = 14 [default = inf];
- inline bool TestExtremeDefaultValues::has_inf_double() const {
- return (_has_bits_[0] & 0x00080000u) != 0;
- }
- inline void TestExtremeDefaultValues::set_has_inf_double() {
- _has_bits_[0] |= 0x00080000u;
- }
- inline void TestExtremeDefaultValues::clear_has_inf_double() {
- _has_bits_[0] &= ~0x00080000u;
- }
- inline void TestExtremeDefaultValues::clear_inf_double() {
- inf_double_ = ::google::protobuf::internal::Infinity();
- clear_has_inf_double();
- }
- inline double TestExtremeDefaultValues::inf_double() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtremeDefaultValues.inf_double)
- return inf_double_;
- }
- inline void TestExtremeDefaultValues::set_inf_double(double value) {
- set_has_inf_double();
- inf_double_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtremeDefaultValues.inf_double)
- }
- // optional double neg_inf_double = 15 [default = -inf];
- inline bool TestExtremeDefaultValues::has_neg_inf_double() const {
- return (_has_bits_[0] & 0x00100000u) != 0;
- }
- inline void TestExtremeDefaultValues::set_has_neg_inf_double() {
- _has_bits_[0] |= 0x00100000u;
- }
- inline void TestExtremeDefaultValues::clear_has_neg_inf_double() {
- _has_bits_[0] &= ~0x00100000u;
- }
- inline void TestExtremeDefaultValues::clear_neg_inf_double() {
- neg_inf_double_ = -::google::protobuf::internal::Infinity();
- clear_has_neg_inf_double();
- }
- inline double TestExtremeDefaultValues::neg_inf_double() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtremeDefaultValues.neg_inf_double)
- return neg_inf_double_;
- }
- inline void TestExtremeDefaultValues::set_neg_inf_double(double value) {
- set_has_neg_inf_double();
- neg_inf_double_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtremeDefaultValues.neg_inf_double)
- }
- // optional double nan_double = 16 [default = nan];
- inline bool TestExtremeDefaultValues::has_nan_double() const {
- return (_has_bits_[0] & 0x00200000u) != 0;
- }
- inline void TestExtremeDefaultValues::set_has_nan_double() {
- _has_bits_[0] |= 0x00200000u;
- }
- inline void TestExtremeDefaultValues::clear_has_nan_double() {
- _has_bits_[0] &= ~0x00200000u;
- }
- inline void TestExtremeDefaultValues::clear_nan_double() {
- nan_double_ = ::google::protobuf::internal::NaN();
- clear_has_nan_double();
- }
- inline double TestExtremeDefaultValues::nan_double() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtremeDefaultValues.nan_double)
- return nan_double_;
- }
- inline void TestExtremeDefaultValues::set_nan_double(double value) {
- set_has_nan_double();
- nan_double_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtremeDefaultValues.nan_double)
- }
- // optional float inf_float = 17 [default = inf];
- inline bool TestExtremeDefaultValues::has_inf_float() const {
- return (_has_bits_[0] & 0x00400000u) != 0;
- }
- inline void TestExtremeDefaultValues::set_has_inf_float() {
- _has_bits_[0] |= 0x00400000u;
- }
- inline void TestExtremeDefaultValues::clear_has_inf_float() {
- _has_bits_[0] &= ~0x00400000u;
- }
- inline void TestExtremeDefaultValues::clear_inf_float() {
- inf_float_ = static_cast<float>(::google::protobuf::internal::Infinity());
- clear_has_inf_float();
- }
- inline float TestExtremeDefaultValues::inf_float() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtremeDefaultValues.inf_float)
- return inf_float_;
- }
- inline void TestExtremeDefaultValues::set_inf_float(float value) {
- set_has_inf_float();
- inf_float_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtremeDefaultValues.inf_float)
- }
- // optional float neg_inf_float = 18 [default = -inf];
- inline bool TestExtremeDefaultValues::has_neg_inf_float() const {
- return (_has_bits_[0] & 0x00800000u) != 0;
- }
- inline void TestExtremeDefaultValues::set_has_neg_inf_float() {
- _has_bits_[0] |= 0x00800000u;
- }
- inline void TestExtremeDefaultValues::clear_has_neg_inf_float() {
- _has_bits_[0] &= ~0x00800000u;
- }
- inline void TestExtremeDefaultValues::clear_neg_inf_float() {
- neg_inf_float_ = static_cast<float>(-::google::protobuf::internal::Infinity());
- clear_has_neg_inf_float();
- }
- inline float TestExtremeDefaultValues::neg_inf_float() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtremeDefaultValues.neg_inf_float)
- return neg_inf_float_;
- }
- inline void TestExtremeDefaultValues::set_neg_inf_float(float value) {
- set_has_neg_inf_float();
- neg_inf_float_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtremeDefaultValues.neg_inf_float)
- }
- // optional float nan_float = 19 [default = nan];
- inline bool TestExtremeDefaultValues::has_nan_float() const {
- return (_has_bits_[0] & 0x01000000u) != 0;
- }
- inline void TestExtremeDefaultValues::set_has_nan_float() {
- _has_bits_[0] |= 0x01000000u;
- }
- inline void TestExtremeDefaultValues::clear_has_nan_float() {
- _has_bits_[0] &= ~0x01000000u;
- }
- inline void TestExtremeDefaultValues::clear_nan_float() {
- nan_float_ = static_cast<float>(::google::protobuf::internal::NaN());
- clear_has_nan_float();
- }
- inline float TestExtremeDefaultValues::nan_float() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtremeDefaultValues.nan_float)
- return nan_float_;
- }
- inline void TestExtremeDefaultValues::set_nan_float(float value) {
- set_has_nan_float();
- nan_float_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtremeDefaultValues.nan_float)
- }
- // optional string cpp_trigraph = 20 [default = "? ? ?? ?? ??? ??/ ??-"];
- inline bool TestExtremeDefaultValues::has_cpp_trigraph() const {
- return (_has_bits_[0] & 0x00000004u) != 0;
- }
- inline void TestExtremeDefaultValues::set_has_cpp_trigraph() {
- _has_bits_[0] |= 0x00000004u;
- }
- inline void TestExtremeDefaultValues::clear_has_cpp_trigraph() {
- _has_bits_[0] &= ~0x00000004u;
- }
- inline void TestExtremeDefaultValues::clear_cpp_trigraph() {
- cpp_trigraph_.ClearToDefault(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_cpp_trigraph_.get(), GetArenaNoVirtual());
- clear_has_cpp_trigraph();
- }
- inline const ::std::string& TestExtremeDefaultValues::cpp_trigraph() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtremeDefaultValues.cpp_trigraph)
- return cpp_trigraph_.Get();
- }
- inline void TestExtremeDefaultValues::set_cpp_trigraph(const ::std::string& value) {
- set_has_cpp_trigraph();
- cpp_trigraph_.Set(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_cpp_trigraph_.get(), value, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtremeDefaultValues.cpp_trigraph)
- }
- #if LANG_CXX11
- inline void TestExtremeDefaultValues::set_cpp_trigraph(::std::string&& value) {
- set_has_cpp_trigraph();
- cpp_trigraph_.Set(
- &::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_cpp_trigraph_.get(), ::std::move(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestExtremeDefaultValues.cpp_trigraph)
- }
- #endif
- inline void TestExtremeDefaultValues::set_cpp_trigraph(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- set_has_cpp_trigraph();
- cpp_trigraph_.Set(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_cpp_trigraph_.get(), ::std::string(value),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestExtremeDefaultValues.cpp_trigraph)
- }
- inline void TestExtremeDefaultValues::set_cpp_trigraph(const char* value,
- size_t size) {
- set_has_cpp_trigraph();
- cpp_trigraph_.Set(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_cpp_trigraph_.get(), ::std::string(
- reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestExtremeDefaultValues.cpp_trigraph)
- }
- inline ::std::string* TestExtremeDefaultValues::mutable_cpp_trigraph() {
- set_has_cpp_trigraph();
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestExtremeDefaultValues.cpp_trigraph)
- return cpp_trigraph_.Mutable(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_cpp_trigraph_.get(), GetArenaNoVirtual());
- }
- inline ::std::string* TestExtremeDefaultValues::release_cpp_trigraph() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestExtremeDefaultValues.cpp_trigraph)
- if (!has_cpp_trigraph()) {
- return NULL;
- }
- clear_has_cpp_trigraph();
- return cpp_trigraph_.ReleaseNonDefault(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_cpp_trigraph_.get(), GetArenaNoVirtual());
- }
- inline void TestExtremeDefaultValues::set_allocated_cpp_trigraph(::std::string* cpp_trigraph) {
- if (cpp_trigraph != NULL) {
- set_has_cpp_trigraph();
- } else {
- clear_has_cpp_trigraph();
- }
- cpp_trigraph_.SetAllocated(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_cpp_trigraph_.get(), cpp_trigraph,
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestExtremeDefaultValues.cpp_trigraph)
- }
- inline ::std::string* TestExtremeDefaultValues::unsafe_arena_release_cpp_trigraph() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestExtremeDefaultValues.cpp_trigraph)
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- clear_has_cpp_trigraph();
- return cpp_trigraph_.UnsafeArenaRelease(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_cpp_trigraph_.get(),
- GetArenaNoVirtual());
- }
- inline void TestExtremeDefaultValues::unsafe_arena_set_allocated_cpp_trigraph(
- ::std::string* cpp_trigraph) {
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- if (cpp_trigraph != NULL) {
- set_has_cpp_trigraph();
- } else {
- clear_has_cpp_trigraph();
- }
- cpp_trigraph_.UnsafeArenaSetAllocated(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_cpp_trigraph_.get(),
- cpp_trigraph, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestExtremeDefaultValues.cpp_trigraph)
- }
- // optional string string_with_zero = 23 [default = "hel\000lo"];
- inline bool TestExtremeDefaultValues::has_string_with_zero() const {
- return (_has_bits_[0] & 0x00000008u) != 0;
- }
- inline void TestExtremeDefaultValues::set_has_string_with_zero() {
- _has_bits_[0] |= 0x00000008u;
- }
- inline void TestExtremeDefaultValues::clear_has_string_with_zero() {
- _has_bits_[0] &= ~0x00000008u;
- }
- inline void TestExtremeDefaultValues::clear_string_with_zero() {
- string_with_zero_.ClearToDefault(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_string_with_zero_.get(), GetArenaNoVirtual());
- clear_has_string_with_zero();
- }
- inline const ::std::string& TestExtremeDefaultValues::string_with_zero() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtremeDefaultValues.string_with_zero)
- return string_with_zero_.Get();
- }
- inline void TestExtremeDefaultValues::set_string_with_zero(const ::std::string& value) {
- set_has_string_with_zero();
- string_with_zero_.Set(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_string_with_zero_.get(), value, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtremeDefaultValues.string_with_zero)
- }
- #if LANG_CXX11
- inline void TestExtremeDefaultValues::set_string_with_zero(::std::string&& value) {
- set_has_string_with_zero();
- string_with_zero_.Set(
- &::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_string_with_zero_.get(), ::std::move(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestExtremeDefaultValues.string_with_zero)
- }
- #endif
- inline void TestExtremeDefaultValues::set_string_with_zero(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- set_has_string_with_zero();
- string_with_zero_.Set(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_string_with_zero_.get(), ::std::string(value),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestExtremeDefaultValues.string_with_zero)
- }
- inline void TestExtremeDefaultValues::set_string_with_zero(const char* value,
- size_t size) {
- set_has_string_with_zero();
- string_with_zero_.Set(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_string_with_zero_.get(), ::std::string(
- reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestExtremeDefaultValues.string_with_zero)
- }
- inline ::std::string* TestExtremeDefaultValues::mutable_string_with_zero() {
- set_has_string_with_zero();
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestExtremeDefaultValues.string_with_zero)
- return string_with_zero_.Mutable(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_string_with_zero_.get(), GetArenaNoVirtual());
- }
- inline ::std::string* TestExtremeDefaultValues::release_string_with_zero() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestExtremeDefaultValues.string_with_zero)
- if (!has_string_with_zero()) {
- return NULL;
- }
- clear_has_string_with_zero();
- return string_with_zero_.ReleaseNonDefault(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_string_with_zero_.get(), GetArenaNoVirtual());
- }
- inline void TestExtremeDefaultValues::set_allocated_string_with_zero(::std::string* string_with_zero) {
- if (string_with_zero != NULL) {
- set_has_string_with_zero();
- } else {
- clear_has_string_with_zero();
- }
- string_with_zero_.SetAllocated(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_string_with_zero_.get(), string_with_zero,
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestExtremeDefaultValues.string_with_zero)
- }
- inline ::std::string* TestExtremeDefaultValues::unsafe_arena_release_string_with_zero() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestExtremeDefaultValues.string_with_zero)
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- clear_has_string_with_zero();
- return string_with_zero_.UnsafeArenaRelease(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_string_with_zero_.get(),
- GetArenaNoVirtual());
- }
- inline void TestExtremeDefaultValues::unsafe_arena_set_allocated_string_with_zero(
- ::std::string* string_with_zero) {
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- if (string_with_zero != NULL) {
- set_has_string_with_zero();
- } else {
- clear_has_string_with_zero();
- }
- string_with_zero_.UnsafeArenaSetAllocated(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_string_with_zero_.get(),
- string_with_zero, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestExtremeDefaultValues.string_with_zero)
- }
- // optional bytes bytes_with_zero = 24 [default = "wor\000ld"];
- inline bool TestExtremeDefaultValues::has_bytes_with_zero() const {
- return (_has_bits_[0] & 0x00000010u) != 0;
- }
- inline void TestExtremeDefaultValues::set_has_bytes_with_zero() {
- _has_bits_[0] |= 0x00000010u;
- }
- inline void TestExtremeDefaultValues::clear_has_bytes_with_zero() {
- _has_bits_[0] &= ~0x00000010u;
- }
- inline void TestExtremeDefaultValues::clear_bytes_with_zero() {
- bytes_with_zero_.ClearToDefault(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_bytes_with_zero_.get(), GetArenaNoVirtual());
- clear_has_bytes_with_zero();
- }
- inline const ::std::string& TestExtremeDefaultValues::bytes_with_zero() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtremeDefaultValues.bytes_with_zero)
- return bytes_with_zero_.Get();
- }
- inline void TestExtremeDefaultValues::set_bytes_with_zero(const ::std::string& value) {
- set_has_bytes_with_zero();
- bytes_with_zero_.Set(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_bytes_with_zero_.get(), value, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtremeDefaultValues.bytes_with_zero)
- }
- #if LANG_CXX11
- inline void TestExtremeDefaultValues::set_bytes_with_zero(::std::string&& value) {
- set_has_bytes_with_zero();
- bytes_with_zero_.Set(
- &::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_bytes_with_zero_.get(), ::std::move(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestExtremeDefaultValues.bytes_with_zero)
- }
- #endif
- inline void TestExtremeDefaultValues::set_bytes_with_zero(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- set_has_bytes_with_zero();
- bytes_with_zero_.Set(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_bytes_with_zero_.get(), ::std::string(value),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestExtremeDefaultValues.bytes_with_zero)
- }
- inline void TestExtremeDefaultValues::set_bytes_with_zero(const void* value,
- size_t size) {
- set_has_bytes_with_zero();
- bytes_with_zero_.Set(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_bytes_with_zero_.get(), ::std::string(
- reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestExtremeDefaultValues.bytes_with_zero)
- }
- inline ::std::string* TestExtremeDefaultValues::mutable_bytes_with_zero() {
- set_has_bytes_with_zero();
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestExtremeDefaultValues.bytes_with_zero)
- return bytes_with_zero_.Mutable(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_bytes_with_zero_.get(), GetArenaNoVirtual());
- }
- inline ::std::string* TestExtremeDefaultValues::release_bytes_with_zero() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestExtremeDefaultValues.bytes_with_zero)
- if (!has_bytes_with_zero()) {
- return NULL;
- }
- clear_has_bytes_with_zero();
- return bytes_with_zero_.ReleaseNonDefault(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_bytes_with_zero_.get(), GetArenaNoVirtual());
- }
- inline void TestExtremeDefaultValues::set_allocated_bytes_with_zero(::std::string* bytes_with_zero) {
- if (bytes_with_zero != NULL) {
- set_has_bytes_with_zero();
- } else {
- clear_has_bytes_with_zero();
- }
- bytes_with_zero_.SetAllocated(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_bytes_with_zero_.get(), bytes_with_zero,
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestExtremeDefaultValues.bytes_with_zero)
- }
- inline ::std::string* TestExtremeDefaultValues::unsafe_arena_release_bytes_with_zero() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestExtremeDefaultValues.bytes_with_zero)
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- clear_has_bytes_with_zero();
- return bytes_with_zero_.UnsafeArenaRelease(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_bytes_with_zero_.get(),
- GetArenaNoVirtual());
- }
- inline void TestExtremeDefaultValues::unsafe_arena_set_allocated_bytes_with_zero(
- ::std::string* bytes_with_zero) {
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- if (bytes_with_zero != NULL) {
- set_has_bytes_with_zero();
- } else {
- clear_has_bytes_with_zero();
- }
- bytes_with_zero_.UnsafeArenaSetAllocated(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_bytes_with_zero_.get(),
- bytes_with_zero, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestExtremeDefaultValues.bytes_with_zero)
- }
- // optional string string_piece_with_zero = 25 [default = "ab\000c", ctype = STRING_PIECE];
- inline bool TestExtremeDefaultValues::has_string_piece_with_zero() const {
- return (_has_bits_[0] & 0x00000020u) != 0;
- }
- inline void TestExtremeDefaultValues::set_has_string_piece_with_zero() {
- _has_bits_[0] |= 0x00000020u;
- }
- inline void TestExtremeDefaultValues::clear_has_string_piece_with_zero() {
- _has_bits_[0] &= ~0x00000020u;
- }
- inline void TestExtremeDefaultValues::clear_string_piece_with_zero() {
- string_piece_with_zero_.ClearToDefault(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_string_piece_with_zero_.get(), GetArenaNoVirtual());
- clear_has_string_piece_with_zero();
- }
- inline const ::std::string& TestExtremeDefaultValues::string_piece_with_zero() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtremeDefaultValues.string_piece_with_zero)
- return string_piece_with_zero_.Get();
- }
- inline void TestExtremeDefaultValues::set_string_piece_with_zero(const ::std::string& value) {
- set_has_string_piece_with_zero();
- string_piece_with_zero_.Set(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_string_piece_with_zero_.get(), value, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtremeDefaultValues.string_piece_with_zero)
- }
- #if LANG_CXX11
- inline void TestExtremeDefaultValues::set_string_piece_with_zero(::std::string&& value) {
- set_has_string_piece_with_zero();
- string_piece_with_zero_.Set(
- &::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_string_piece_with_zero_.get(), ::std::move(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestExtremeDefaultValues.string_piece_with_zero)
- }
- #endif
- inline void TestExtremeDefaultValues::set_string_piece_with_zero(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- set_has_string_piece_with_zero();
- string_piece_with_zero_.Set(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_string_piece_with_zero_.get(), ::std::string(value),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestExtremeDefaultValues.string_piece_with_zero)
- }
- inline void TestExtremeDefaultValues::set_string_piece_with_zero(const char* value,
- size_t size) {
- set_has_string_piece_with_zero();
- string_piece_with_zero_.Set(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_string_piece_with_zero_.get(), ::std::string(
- reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestExtremeDefaultValues.string_piece_with_zero)
- }
- inline ::std::string* TestExtremeDefaultValues::mutable_string_piece_with_zero() {
- set_has_string_piece_with_zero();
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestExtremeDefaultValues.string_piece_with_zero)
- return string_piece_with_zero_.Mutable(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_string_piece_with_zero_.get(), GetArenaNoVirtual());
- }
- inline ::std::string* TestExtremeDefaultValues::release_string_piece_with_zero() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestExtremeDefaultValues.string_piece_with_zero)
- if (!has_string_piece_with_zero()) {
- return NULL;
- }
- clear_has_string_piece_with_zero();
- return string_piece_with_zero_.ReleaseNonDefault(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_string_piece_with_zero_.get(), GetArenaNoVirtual());
- }
- inline void TestExtremeDefaultValues::set_allocated_string_piece_with_zero(::std::string* string_piece_with_zero) {
- if (string_piece_with_zero != NULL) {
- set_has_string_piece_with_zero();
- } else {
- clear_has_string_piece_with_zero();
- }
- string_piece_with_zero_.SetAllocated(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_string_piece_with_zero_.get(), string_piece_with_zero,
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestExtremeDefaultValues.string_piece_with_zero)
- }
- inline ::std::string* TestExtremeDefaultValues::unsafe_arena_release_string_piece_with_zero() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestExtremeDefaultValues.string_piece_with_zero)
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- clear_has_string_piece_with_zero();
- return string_piece_with_zero_.UnsafeArenaRelease(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_string_piece_with_zero_.get(),
- GetArenaNoVirtual());
- }
- inline void TestExtremeDefaultValues::unsafe_arena_set_allocated_string_piece_with_zero(
- ::std::string* string_piece_with_zero) {
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- if (string_piece_with_zero != NULL) {
- set_has_string_piece_with_zero();
- } else {
- clear_has_string_piece_with_zero();
- }
- string_piece_with_zero_.UnsafeArenaSetAllocated(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_string_piece_with_zero_.get(),
- string_piece_with_zero, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestExtremeDefaultValues.string_piece_with_zero)
- }
- // optional string cord_with_zero = 26 [default = "12\0003", ctype = CORD];
- inline bool TestExtremeDefaultValues::has_cord_with_zero() const {
- return (_has_bits_[0] & 0x00000040u) != 0;
- }
- inline void TestExtremeDefaultValues::set_has_cord_with_zero() {
- _has_bits_[0] |= 0x00000040u;
- }
- inline void TestExtremeDefaultValues::clear_has_cord_with_zero() {
- _has_bits_[0] &= ~0x00000040u;
- }
- inline void TestExtremeDefaultValues::clear_cord_with_zero() {
- cord_with_zero_.ClearToDefault(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_cord_with_zero_.get(), GetArenaNoVirtual());
- clear_has_cord_with_zero();
- }
- inline const ::std::string& TestExtremeDefaultValues::cord_with_zero() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtremeDefaultValues.cord_with_zero)
- return cord_with_zero_.Get();
- }
- inline void TestExtremeDefaultValues::set_cord_with_zero(const ::std::string& value) {
- set_has_cord_with_zero();
- cord_with_zero_.Set(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_cord_with_zero_.get(), value, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtremeDefaultValues.cord_with_zero)
- }
- #if LANG_CXX11
- inline void TestExtremeDefaultValues::set_cord_with_zero(::std::string&& value) {
- set_has_cord_with_zero();
- cord_with_zero_.Set(
- &::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_cord_with_zero_.get(), ::std::move(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestExtremeDefaultValues.cord_with_zero)
- }
- #endif
- inline void TestExtremeDefaultValues::set_cord_with_zero(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- set_has_cord_with_zero();
- cord_with_zero_.Set(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_cord_with_zero_.get(), ::std::string(value),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestExtremeDefaultValues.cord_with_zero)
- }
- inline void TestExtremeDefaultValues::set_cord_with_zero(const char* value,
- size_t size) {
- set_has_cord_with_zero();
- cord_with_zero_.Set(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_cord_with_zero_.get(), ::std::string(
- reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestExtremeDefaultValues.cord_with_zero)
- }
- inline ::std::string* TestExtremeDefaultValues::mutable_cord_with_zero() {
- set_has_cord_with_zero();
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestExtremeDefaultValues.cord_with_zero)
- return cord_with_zero_.Mutable(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_cord_with_zero_.get(), GetArenaNoVirtual());
- }
- inline ::std::string* TestExtremeDefaultValues::release_cord_with_zero() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestExtremeDefaultValues.cord_with_zero)
- if (!has_cord_with_zero()) {
- return NULL;
- }
- clear_has_cord_with_zero();
- return cord_with_zero_.ReleaseNonDefault(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_cord_with_zero_.get(), GetArenaNoVirtual());
- }
- inline void TestExtremeDefaultValues::set_allocated_cord_with_zero(::std::string* cord_with_zero) {
- if (cord_with_zero != NULL) {
- set_has_cord_with_zero();
- } else {
- clear_has_cord_with_zero();
- }
- cord_with_zero_.SetAllocated(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_cord_with_zero_.get(), cord_with_zero,
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestExtremeDefaultValues.cord_with_zero)
- }
- inline ::std::string* TestExtremeDefaultValues::unsafe_arena_release_cord_with_zero() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestExtremeDefaultValues.cord_with_zero)
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- clear_has_cord_with_zero();
- return cord_with_zero_.UnsafeArenaRelease(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_cord_with_zero_.get(),
- GetArenaNoVirtual());
- }
- inline void TestExtremeDefaultValues::unsafe_arena_set_allocated_cord_with_zero(
- ::std::string* cord_with_zero) {
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- if (cord_with_zero != NULL) {
- set_has_cord_with_zero();
- } else {
- clear_has_cord_with_zero();
- }
- cord_with_zero_.UnsafeArenaSetAllocated(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_cord_with_zero_.get(),
- cord_with_zero, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestExtremeDefaultValues.cord_with_zero)
- }
- // optional string replacement_string = 27 [default = "${unknown}"];
- inline bool TestExtremeDefaultValues::has_replacement_string() const {
- return (_has_bits_[0] & 0x00000080u) != 0;
- }
- inline void TestExtremeDefaultValues::set_has_replacement_string() {
- _has_bits_[0] |= 0x00000080u;
- }
- inline void TestExtremeDefaultValues::clear_has_replacement_string() {
- _has_bits_[0] &= ~0x00000080u;
- }
- inline void TestExtremeDefaultValues::clear_replacement_string() {
- replacement_string_.ClearToDefault(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_replacement_string_.get(), GetArenaNoVirtual());
- clear_has_replacement_string();
- }
- inline const ::std::string& TestExtremeDefaultValues::replacement_string() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtremeDefaultValues.replacement_string)
- return replacement_string_.Get();
- }
- inline void TestExtremeDefaultValues::set_replacement_string(const ::std::string& value) {
- set_has_replacement_string();
- replacement_string_.Set(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_replacement_string_.get(), value, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtremeDefaultValues.replacement_string)
- }
- #if LANG_CXX11
- inline void TestExtremeDefaultValues::set_replacement_string(::std::string&& value) {
- set_has_replacement_string();
- replacement_string_.Set(
- &::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_replacement_string_.get(), ::std::move(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestExtremeDefaultValues.replacement_string)
- }
- #endif
- inline void TestExtremeDefaultValues::set_replacement_string(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- set_has_replacement_string();
- replacement_string_.Set(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_replacement_string_.get(), ::std::string(value),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestExtremeDefaultValues.replacement_string)
- }
- inline void TestExtremeDefaultValues::set_replacement_string(const char* value,
- size_t size) {
- set_has_replacement_string();
- replacement_string_.Set(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_replacement_string_.get(), ::std::string(
- reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestExtremeDefaultValues.replacement_string)
- }
- inline ::std::string* TestExtremeDefaultValues::mutable_replacement_string() {
- set_has_replacement_string();
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestExtremeDefaultValues.replacement_string)
- return replacement_string_.Mutable(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_replacement_string_.get(), GetArenaNoVirtual());
- }
- inline ::std::string* TestExtremeDefaultValues::release_replacement_string() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestExtremeDefaultValues.replacement_string)
- if (!has_replacement_string()) {
- return NULL;
- }
- clear_has_replacement_string();
- return replacement_string_.ReleaseNonDefault(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_replacement_string_.get(), GetArenaNoVirtual());
- }
- inline void TestExtremeDefaultValues::set_allocated_replacement_string(::std::string* replacement_string) {
- if (replacement_string != NULL) {
- set_has_replacement_string();
- } else {
- clear_has_replacement_string();
- }
- replacement_string_.SetAllocated(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_replacement_string_.get(), replacement_string,
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestExtremeDefaultValues.replacement_string)
- }
- inline ::std::string* TestExtremeDefaultValues::unsafe_arena_release_replacement_string() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestExtremeDefaultValues.replacement_string)
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- clear_has_replacement_string();
- return replacement_string_.UnsafeArenaRelease(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_replacement_string_.get(),
- GetArenaNoVirtual());
- }
- inline void TestExtremeDefaultValues::unsafe_arena_set_allocated_replacement_string(
- ::std::string* replacement_string) {
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- if (replacement_string != NULL) {
- set_has_replacement_string();
- } else {
- clear_has_replacement_string();
- }
- replacement_string_.UnsafeArenaSetAllocated(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_replacement_string_.get(),
- replacement_string, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestExtremeDefaultValues.replacement_string)
- }
- // -------------------------------------------------------------------
- // SparseEnumMessage
- // optional .protobuf_unittest.TestSparseEnum sparse_enum = 1;
- inline bool SparseEnumMessage::has_sparse_enum() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void SparseEnumMessage::set_has_sparse_enum() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void SparseEnumMessage::clear_has_sparse_enum() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void SparseEnumMessage::clear_sparse_enum() {
- sparse_enum_ = 123;
- clear_has_sparse_enum();
- }
- inline ::protobuf_unittest::TestSparseEnum SparseEnumMessage::sparse_enum() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.SparseEnumMessage.sparse_enum)
- return static_cast< ::protobuf_unittest::TestSparseEnum >(sparse_enum_);
- }
- inline void SparseEnumMessage::set_sparse_enum(::protobuf_unittest::TestSparseEnum value) {
- assert(::protobuf_unittest::TestSparseEnum_IsValid(value));
- set_has_sparse_enum();
- sparse_enum_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.SparseEnumMessage.sparse_enum)
- }
- // -------------------------------------------------------------------
- // OneString
- // optional string data = 1;
- inline bool OneString::has_data() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void OneString::set_has_data() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void OneString::clear_has_data() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void OneString::clear_data() {
- data_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- clear_has_data();
- }
- inline const ::std::string& OneString::data() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.OneString.data)
- return data_.Get();
- }
- inline void OneString::set_data(const ::std::string& value) {
- set_has_data();
- data_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set:protobuf_unittest.OneString.data)
- }
- #if LANG_CXX11
- inline void OneString::set_data(::std::string&& value) {
- set_has_data();
- data_.Set(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.OneString.data)
- }
- #endif
- inline void OneString::set_data(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- set_has_data();
- data_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_char:protobuf_unittest.OneString.data)
- }
- inline void OneString::set_data(const char* value,
- size_t size) {
- set_has_data();
- data_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
- reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.OneString.data)
- }
- inline ::std::string* OneString::mutable_data() {
- set_has_data();
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.OneString.data)
- return data_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- }
- inline ::std::string* OneString::release_data() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.OneString.data)
- if (!has_data()) {
- return NULL;
- }
- clear_has_data();
- return data_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- }
- inline void OneString::set_allocated_data(::std::string* data) {
- if (data != NULL) {
- set_has_data();
- } else {
- clear_has_data();
- }
- data_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), data,
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.OneString.data)
- }
- inline ::std::string* OneString::unsafe_arena_release_data() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.OneString.data)
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- clear_has_data();
- return data_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- }
- inline void OneString::unsafe_arena_set_allocated_data(
- ::std::string* data) {
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- if (data != NULL) {
- set_has_data();
- } else {
- clear_has_data();
- }
- data_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- data, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.OneString.data)
- }
- // -------------------------------------------------------------------
- // MoreString
- // repeated string data = 1;
- inline int MoreString::data_size() const {
- return data_.size();
- }
- inline void MoreString::clear_data() {
- data_.Clear();
- }
- inline const ::std::string& MoreString::data(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.MoreString.data)
- return data_.Get(index);
- }
- inline ::std::string* MoreString::mutable_data(int index) {
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.MoreString.data)
- return data_.Mutable(index);
- }
- inline void MoreString::set_data(int index, const ::std::string& value) {
- // @@protoc_insertion_point(field_set:protobuf_unittest.MoreString.data)
- data_.Mutable(index)->assign(value);
- }
- #if LANG_CXX11
- inline void MoreString::set_data(int index, ::std::string&& value) {
- // @@protoc_insertion_point(field_set:protobuf_unittest.MoreString.data)
- data_.Mutable(index)->assign(std::move(value));
- }
- #endif
- inline void MoreString::set_data(int index, const char* value) {
- GOOGLE_DCHECK(value != NULL);
- data_.Mutable(index)->assign(value);
- // @@protoc_insertion_point(field_set_char:protobuf_unittest.MoreString.data)
- }
- inline void MoreString::set_data(int index, const char* value, size_t size) {
- data_.Mutable(index)->assign(
- reinterpret_cast<const char*>(value), size);
- // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.MoreString.data)
- }
- inline ::std::string* MoreString::add_data() {
- // @@protoc_insertion_point(field_add_mutable:protobuf_unittest.MoreString.data)
- return data_.Add();
- }
- inline void MoreString::add_data(const ::std::string& value) {
- data_.Add()->assign(value);
- // @@protoc_insertion_point(field_add:protobuf_unittest.MoreString.data)
- }
- #if LANG_CXX11
- inline void MoreString::add_data(::std::string&& value) {
- data_.Add(std::move(value));
- // @@protoc_insertion_point(field_add:protobuf_unittest.MoreString.data)
- }
- #endif
- inline void MoreString::add_data(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- data_.Add()->assign(value);
- // @@protoc_insertion_point(field_add_char:protobuf_unittest.MoreString.data)
- }
- inline void MoreString::add_data(const char* value, size_t size) {
- data_.Add()->assign(reinterpret_cast<const char*>(value), size);
- // @@protoc_insertion_point(field_add_pointer:protobuf_unittest.MoreString.data)
- }
- inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
- MoreString::data() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.MoreString.data)
- return data_;
- }
- inline ::google::protobuf::RepeatedPtrField< ::std::string>*
- MoreString::mutable_data() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.MoreString.data)
- return &data_;
- }
- // -------------------------------------------------------------------
- // OneBytes
- // optional bytes data = 1;
- inline bool OneBytes::has_data() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void OneBytes::set_has_data() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void OneBytes::clear_has_data() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void OneBytes::clear_data() {
- data_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- clear_has_data();
- }
- inline const ::std::string& OneBytes::data() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.OneBytes.data)
- return data_.Get();
- }
- inline void OneBytes::set_data(const ::std::string& value) {
- set_has_data();
- data_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set:protobuf_unittest.OneBytes.data)
- }
- #if LANG_CXX11
- inline void OneBytes::set_data(::std::string&& value) {
- set_has_data();
- data_.Set(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.OneBytes.data)
- }
- #endif
- inline void OneBytes::set_data(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- set_has_data();
- data_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_char:protobuf_unittest.OneBytes.data)
- }
- inline void OneBytes::set_data(const void* value,
- size_t size) {
- set_has_data();
- data_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
- reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.OneBytes.data)
- }
- inline ::std::string* OneBytes::mutable_data() {
- set_has_data();
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.OneBytes.data)
- return data_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- }
- inline ::std::string* OneBytes::release_data() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.OneBytes.data)
- if (!has_data()) {
- return NULL;
- }
- clear_has_data();
- return data_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- }
- inline void OneBytes::set_allocated_data(::std::string* data) {
- if (data != NULL) {
- set_has_data();
- } else {
- clear_has_data();
- }
- data_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), data,
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.OneBytes.data)
- }
- inline ::std::string* OneBytes::unsafe_arena_release_data() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.OneBytes.data)
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- clear_has_data();
- return data_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- }
- inline void OneBytes::unsafe_arena_set_allocated_data(
- ::std::string* data) {
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- if (data != NULL) {
- set_has_data();
- } else {
- clear_has_data();
- }
- data_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- data, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.OneBytes.data)
- }
- // -------------------------------------------------------------------
- // MoreBytes
- // repeated bytes data = 1;
- inline int MoreBytes::data_size() const {
- return data_.size();
- }
- inline void MoreBytes::clear_data() {
- data_.Clear();
- }
- inline const ::std::string& MoreBytes::data(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.MoreBytes.data)
- return data_.Get(index);
- }
- inline ::std::string* MoreBytes::mutable_data(int index) {
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.MoreBytes.data)
- return data_.Mutable(index);
- }
- inline void MoreBytes::set_data(int index, const ::std::string& value) {
- // @@protoc_insertion_point(field_set:protobuf_unittest.MoreBytes.data)
- data_.Mutable(index)->assign(value);
- }
- #if LANG_CXX11
- inline void MoreBytes::set_data(int index, ::std::string&& value) {
- // @@protoc_insertion_point(field_set:protobuf_unittest.MoreBytes.data)
- data_.Mutable(index)->assign(std::move(value));
- }
- #endif
- inline void MoreBytes::set_data(int index, const char* value) {
- GOOGLE_DCHECK(value != NULL);
- data_.Mutable(index)->assign(value);
- // @@protoc_insertion_point(field_set_char:protobuf_unittest.MoreBytes.data)
- }
- inline void MoreBytes::set_data(int index, const void* value, size_t size) {
- data_.Mutable(index)->assign(
- reinterpret_cast<const char*>(value), size);
- // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.MoreBytes.data)
- }
- inline ::std::string* MoreBytes::add_data() {
- // @@protoc_insertion_point(field_add_mutable:protobuf_unittest.MoreBytes.data)
- return data_.Add();
- }
- inline void MoreBytes::add_data(const ::std::string& value) {
- data_.Add()->assign(value);
- // @@protoc_insertion_point(field_add:protobuf_unittest.MoreBytes.data)
- }
- #if LANG_CXX11
- inline void MoreBytes::add_data(::std::string&& value) {
- data_.Add(std::move(value));
- // @@protoc_insertion_point(field_add:protobuf_unittest.MoreBytes.data)
- }
- #endif
- inline void MoreBytes::add_data(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- data_.Add()->assign(value);
- // @@protoc_insertion_point(field_add_char:protobuf_unittest.MoreBytes.data)
- }
- inline void MoreBytes::add_data(const void* value, size_t size) {
- data_.Add()->assign(reinterpret_cast<const char*>(value), size);
- // @@protoc_insertion_point(field_add_pointer:protobuf_unittest.MoreBytes.data)
- }
- inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
- MoreBytes::data() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.MoreBytes.data)
- return data_;
- }
- inline ::google::protobuf::RepeatedPtrField< ::std::string>*
- MoreBytes::mutable_data() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.MoreBytes.data)
- return &data_;
- }
- // -------------------------------------------------------------------
- // Int32Message
- // optional int32 data = 1;
- inline bool Int32Message::has_data() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void Int32Message::set_has_data() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void Int32Message::clear_has_data() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void Int32Message::clear_data() {
- data_ = 0;
- clear_has_data();
- }
- inline ::google::protobuf::int32 Int32Message::data() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.Int32Message.data)
- return data_;
- }
- inline void Int32Message::set_data(::google::protobuf::int32 value) {
- set_has_data();
- data_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.Int32Message.data)
- }
- // -------------------------------------------------------------------
- // Uint32Message
- // optional uint32 data = 1;
- inline bool Uint32Message::has_data() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void Uint32Message::set_has_data() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void Uint32Message::clear_has_data() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void Uint32Message::clear_data() {
- data_ = 0u;
- clear_has_data();
- }
- inline ::google::protobuf::uint32 Uint32Message::data() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.Uint32Message.data)
- return data_;
- }
- inline void Uint32Message::set_data(::google::protobuf::uint32 value) {
- set_has_data();
- data_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.Uint32Message.data)
- }
- // -------------------------------------------------------------------
- // Int64Message
- // optional int64 data = 1;
- inline bool Int64Message::has_data() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void Int64Message::set_has_data() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void Int64Message::clear_has_data() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void Int64Message::clear_data() {
- data_ = GOOGLE_LONGLONG(0);
- clear_has_data();
- }
- inline ::google::protobuf::int64 Int64Message::data() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.Int64Message.data)
- return data_;
- }
- inline void Int64Message::set_data(::google::protobuf::int64 value) {
- set_has_data();
- data_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.Int64Message.data)
- }
- // -------------------------------------------------------------------
- // Uint64Message
- // optional uint64 data = 1;
- inline bool Uint64Message::has_data() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void Uint64Message::set_has_data() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void Uint64Message::clear_has_data() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void Uint64Message::clear_data() {
- data_ = GOOGLE_ULONGLONG(0);
- clear_has_data();
- }
- inline ::google::protobuf::uint64 Uint64Message::data() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.Uint64Message.data)
- return data_;
- }
- inline void Uint64Message::set_data(::google::protobuf::uint64 value) {
- set_has_data();
- data_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.Uint64Message.data)
- }
- // -------------------------------------------------------------------
- // BoolMessage
- // optional bool data = 1;
- inline bool BoolMessage::has_data() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void BoolMessage::set_has_data() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void BoolMessage::clear_has_data() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void BoolMessage::clear_data() {
- data_ = false;
- clear_has_data();
- }
- inline bool BoolMessage::data() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.BoolMessage.data)
- return data_;
- }
- inline void BoolMessage::set_data(bool value) {
- set_has_data();
- data_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.BoolMessage.data)
- }
- // -------------------------------------------------------------------
- // TestOneof_FooGroup
- // optional int32 a = 5;
- inline bool TestOneof_FooGroup::has_a() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
- }
- inline void TestOneof_FooGroup::set_has_a() {
- _has_bits_[0] |= 0x00000002u;
- }
- inline void TestOneof_FooGroup::clear_has_a() {
- _has_bits_[0] &= ~0x00000002u;
- }
- inline void TestOneof_FooGroup::clear_a() {
- a_ = 0;
- clear_has_a();
- }
- inline ::google::protobuf::int32 TestOneof_FooGroup::a() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneof.FooGroup.a)
- return a_;
- }
- inline void TestOneof_FooGroup::set_a(::google::protobuf::int32 value) {
- set_has_a();
- a_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneof.FooGroup.a)
- }
- // optional string b = 6;
- inline bool TestOneof_FooGroup::has_b() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void TestOneof_FooGroup::set_has_b() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void TestOneof_FooGroup::clear_has_b() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void TestOneof_FooGroup::clear_b() {
- b_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- clear_has_b();
- }
- inline const ::std::string& TestOneof_FooGroup::b() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneof.FooGroup.b)
- return b_.Get();
- }
- inline void TestOneof_FooGroup::set_b(const ::std::string& value) {
- set_has_b();
- b_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneof.FooGroup.b)
- }
- #if LANG_CXX11
- inline void TestOneof_FooGroup::set_b(::std::string&& value) {
- set_has_b();
- b_.Set(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestOneof.FooGroup.b)
- }
- #endif
- inline void TestOneof_FooGroup::set_b(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- set_has_b();
- b_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestOneof.FooGroup.b)
- }
- inline void TestOneof_FooGroup::set_b(const char* value,
- size_t size) {
- set_has_b();
- b_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
- reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestOneof.FooGroup.b)
- }
- inline ::std::string* TestOneof_FooGroup::mutable_b() {
- set_has_b();
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestOneof.FooGroup.b)
- return b_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- }
- inline ::std::string* TestOneof_FooGroup::release_b() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestOneof.FooGroup.b)
- if (!has_b()) {
- return NULL;
- }
- clear_has_b();
- return b_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- }
- inline void TestOneof_FooGroup::set_allocated_b(::std::string* b) {
- if (b != NULL) {
- set_has_b();
- } else {
- clear_has_b();
- }
- b_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), b,
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestOneof.FooGroup.b)
- }
- inline ::std::string* TestOneof_FooGroup::unsafe_arena_release_b() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestOneof.FooGroup.b)
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- clear_has_b();
- return b_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- }
- inline void TestOneof_FooGroup::unsafe_arena_set_allocated_b(
- ::std::string* b) {
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- if (b != NULL) {
- set_has_b();
- } else {
- clear_has_b();
- }
- b_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- b, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestOneof.FooGroup.b)
- }
- // -------------------------------------------------------------------
- // TestOneof
- // optional int32 foo_int = 1;
- inline bool TestOneof::has_foo_int() const {
- return foo_case() == kFooInt;
- }
- inline void TestOneof::set_has_foo_int() {
- _oneof_case_[0] = kFooInt;
- }
- inline void TestOneof::clear_foo_int() {
- if (has_foo_int()) {
- foo_.foo_int_ = 0;
- clear_has_foo();
- }
- }
- inline ::google::protobuf::int32 TestOneof::foo_int() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneof.foo_int)
- if (has_foo_int()) {
- return foo_.foo_int_;
- }
- return 0;
- }
- inline void TestOneof::set_foo_int(::google::protobuf::int32 value) {
- if (!has_foo_int()) {
- clear_foo();
- set_has_foo_int();
- }
- foo_.foo_int_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneof.foo_int)
- }
- // optional string foo_string = 2;
- inline bool TestOneof::has_foo_string() const {
- return foo_case() == kFooString;
- }
- inline void TestOneof::set_has_foo_string() {
- _oneof_case_[0] = kFooString;
- }
- inline void TestOneof::clear_foo_string() {
- if (has_foo_string()) {
- foo_.foo_string_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- clear_has_foo();
- }
- }
- inline const ::std::string& TestOneof::foo_string() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneof.foo_string)
- if (has_foo_string()) {
- return foo_.foo_string_.Get();
- }
- return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
- }
- inline void TestOneof::set_foo_string(const ::std::string& value) {
- if (!has_foo_string()) {
- clear_foo();
- set_has_foo_string();
- foo_.foo_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- foo_.foo_string_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value,
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneof.foo_string)
- }
- #if LANG_CXX11
- inline void TestOneof::set_foo_string(::std::string&& value) {
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneof.foo_string)
- if (!has_foo_string()) {
- clear_foo();
- set_has_foo_string();
- foo_.foo_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- foo_.foo_string_.Set(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestOneof.foo_string)
- }
- #endif
- inline void TestOneof::set_foo_string(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- if (!has_foo_string()) {
- clear_foo();
- set_has_foo_string();
- foo_.foo_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- foo_.foo_string_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- ::std::string(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestOneof.foo_string)
- }
- inline void TestOneof::set_foo_string(const char* value,
- size_t size) {
- if (!has_foo_string()) {
- clear_foo();
- set_has_foo_string();
- foo_.foo_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- foo_.foo_string_.Set(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
- reinterpret_cast<const char*>(value), size),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestOneof.foo_string)
- }
- inline ::std::string* TestOneof::mutable_foo_string() {
- if (!has_foo_string()) {
- clear_foo();
- set_has_foo_string();
- foo_.foo_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- return foo_.foo_string_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestOneof.foo_string)
- }
- inline ::std::string* TestOneof::release_foo_string() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestOneof.foo_string)
- if (has_foo_string()) {
- clear_has_foo();
- return foo_.foo_string_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- } else {
- return NULL;
- }
- }
- inline void TestOneof::set_allocated_foo_string(::std::string* foo_string) {
- if (!has_foo_string()) {
- foo_.foo_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- clear_foo();
- if (foo_string != NULL) {
- set_has_foo_string();
- foo_.foo_string_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), foo_string,
- GetArenaNoVirtual());
- }
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestOneof.foo_string)
- }
- inline ::std::string* TestOneof::unsafe_arena_release_foo_string() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestOneof.foo_string)
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- if (has_foo_string()) {
- clear_has_foo();
- return foo_.foo_string_.UnsafeArenaRelease(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- } else {
- return NULL;
- }
- }
- inline void TestOneof::unsafe_arena_set_allocated_foo_string(::std::string* foo_string) {
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- if (!has_foo_string()) {
- foo_.foo_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- clear_foo();
- if (foo_string) {
- set_has_foo_string();
- foo_.foo_string_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), foo_string, GetArenaNoVirtual());
- }
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestOneof.foo_string)
- }
- // optional .protobuf_unittest.TestAllTypes foo_message = 3;
- inline bool TestOneof::has_foo_message() const {
- return foo_case() == kFooMessage;
- }
- inline void TestOneof::set_has_foo_message() {
- _oneof_case_[0] = kFooMessage;
- }
- inline void TestOneof::clear_foo_message() {
- if (has_foo_message()) {
- if (GetArenaNoVirtual() == NULL) {
- delete foo_.foo_message_;
- }
- clear_has_foo();
- }
- }
- inline const ::protobuf_unittest::TestAllTypes& TestOneof::_internal_foo_message() const {
- return *foo_.foo_message_;
- }
- inline ::protobuf_unittest::TestAllTypes* TestOneof::release_foo_message() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestOneof.foo_message)
- if (has_foo_message()) {
- clear_has_foo();
- ::protobuf_unittest::TestAllTypes* temp = foo_.foo_message_;
- if (GetArenaNoVirtual() != NULL) {
- temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
- }
- foo_.foo_message_ = NULL;
- return temp;
- } else {
- return NULL;
- }
- }
- inline const ::protobuf_unittest::TestAllTypes& TestOneof::foo_message() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneof.foo_message)
- return has_foo_message()
- ? *foo_.foo_message_
- : *reinterpret_cast< ::protobuf_unittest::TestAllTypes*>(&::protobuf_unittest::_TestAllTypes_default_instance_);
- }
- inline ::protobuf_unittest::TestAllTypes* TestOneof::unsafe_arena_release_foo_message() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestOneof.foo_message)
- if (has_foo_message()) {
- clear_has_foo();
- ::protobuf_unittest::TestAllTypes* temp = foo_.foo_message_;
- foo_.foo_message_ = NULL;
- return temp;
- } else {
- return NULL;
- }
- }
- inline void TestOneof::unsafe_arena_set_allocated_foo_message(::protobuf_unittest::TestAllTypes* foo_message) {
- clear_foo();
- if (foo_message) {
- set_has_foo_message();
- foo_.foo_message_ = foo_message;
- }
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestOneof.foo_message)
- }
- inline ::protobuf_unittest::TestAllTypes* TestOneof::mutable_foo_message() {
- if (!has_foo_message()) {
- clear_foo();
- set_has_foo_message();
- foo_.foo_message_ = CreateMaybeMessage< ::protobuf_unittest::TestAllTypes >(
- GetArenaNoVirtual());
- }
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestOneof.foo_message)
- return foo_.foo_message_;
- }
- // optional group FooGroup = 4 { ... };
- inline bool TestOneof::has_foogroup() const {
- return foo_case() == kFoogroup;
- }
- inline void TestOneof::set_has_foogroup() {
- _oneof_case_[0] = kFoogroup;
- }
- inline void TestOneof::clear_foogroup() {
- if (has_foogroup()) {
- if (GetArenaNoVirtual() == NULL) {
- delete foo_.foogroup_;
- }
- clear_has_foo();
- }
- }
- inline const ::protobuf_unittest::TestOneof_FooGroup& TestOneof::_internal_foogroup() const {
- return *foo_.foogroup_;
- }
- inline ::protobuf_unittest::TestOneof_FooGroup* TestOneof::release_foogroup() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestOneof.foogroup)
- if (has_foogroup()) {
- clear_has_foo();
- ::protobuf_unittest::TestOneof_FooGroup* temp = foo_.foogroup_;
- if (GetArenaNoVirtual() != NULL) {
- temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
- }
- foo_.foogroup_ = NULL;
- return temp;
- } else {
- return NULL;
- }
- }
- inline const ::protobuf_unittest::TestOneof_FooGroup& TestOneof::foogroup() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneof.foogroup)
- return has_foogroup()
- ? *foo_.foogroup_
- : *reinterpret_cast< ::protobuf_unittest::TestOneof_FooGroup*>(&::protobuf_unittest::_TestOneof_FooGroup_default_instance_);
- }
- inline ::protobuf_unittest::TestOneof_FooGroup* TestOneof::unsafe_arena_release_foogroup() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestOneof.foogroup)
- if (has_foogroup()) {
- clear_has_foo();
- ::protobuf_unittest::TestOneof_FooGroup* temp = foo_.foogroup_;
- foo_.foogroup_ = NULL;
- return temp;
- } else {
- return NULL;
- }
- }
- inline void TestOneof::unsafe_arena_set_allocated_foogroup(::protobuf_unittest::TestOneof_FooGroup* foogroup) {
- clear_foo();
- if (foogroup) {
- set_has_foogroup();
- foo_.foogroup_ = foogroup;
- }
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestOneof.foogroup)
- }
- inline ::protobuf_unittest::TestOneof_FooGroup* TestOneof::mutable_foogroup() {
- if (!has_foogroup()) {
- clear_foo();
- set_has_foogroup();
- foo_.foogroup_ = CreateMaybeMessage< ::protobuf_unittest::TestOneof_FooGroup >(
- GetArenaNoVirtual());
- }
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestOneof.foogroup)
- return foo_.foogroup_;
- }
- inline bool TestOneof::has_foo() const {
- return foo_case() != FOO_NOT_SET;
- }
- inline void TestOneof::clear_has_foo() {
- _oneof_case_[0] = FOO_NOT_SET;
- }
- inline TestOneof::FooCase TestOneof::foo_case() const {
- return TestOneof::FooCase(_oneof_case_[0]);
- }
- // -------------------------------------------------------------------
- // TestOneofBackwardsCompatible_FooGroup
- // optional int32 a = 5;
- inline bool TestOneofBackwardsCompatible_FooGroup::has_a() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
- }
- inline void TestOneofBackwardsCompatible_FooGroup::set_has_a() {
- _has_bits_[0] |= 0x00000002u;
- }
- inline void TestOneofBackwardsCompatible_FooGroup::clear_has_a() {
- _has_bits_[0] &= ~0x00000002u;
- }
- inline void TestOneofBackwardsCompatible_FooGroup::clear_a() {
- a_ = 0;
- clear_has_a();
- }
- inline ::google::protobuf::int32 TestOneofBackwardsCompatible_FooGroup::a() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneofBackwardsCompatible.FooGroup.a)
- return a_;
- }
- inline void TestOneofBackwardsCompatible_FooGroup::set_a(::google::protobuf::int32 value) {
- set_has_a();
- a_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneofBackwardsCompatible.FooGroup.a)
- }
- // optional string b = 6;
- inline bool TestOneofBackwardsCompatible_FooGroup::has_b() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void TestOneofBackwardsCompatible_FooGroup::set_has_b() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void TestOneofBackwardsCompatible_FooGroup::clear_has_b() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void TestOneofBackwardsCompatible_FooGroup::clear_b() {
- b_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- clear_has_b();
- }
- inline const ::std::string& TestOneofBackwardsCompatible_FooGroup::b() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneofBackwardsCompatible.FooGroup.b)
- return b_.Get();
- }
- inline void TestOneofBackwardsCompatible_FooGroup::set_b(const ::std::string& value) {
- set_has_b();
- b_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneofBackwardsCompatible.FooGroup.b)
- }
- #if LANG_CXX11
- inline void TestOneofBackwardsCompatible_FooGroup::set_b(::std::string&& value) {
- set_has_b();
- b_.Set(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestOneofBackwardsCompatible.FooGroup.b)
- }
- #endif
- inline void TestOneofBackwardsCompatible_FooGroup::set_b(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- set_has_b();
- b_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestOneofBackwardsCompatible.FooGroup.b)
- }
- inline void TestOneofBackwardsCompatible_FooGroup::set_b(const char* value,
- size_t size) {
- set_has_b();
- b_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
- reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestOneofBackwardsCompatible.FooGroup.b)
- }
- inline ::std::string* TestOneofBackwardsCompatible_FooGroup::mutable_b() {
- set_has_b();
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestOneofBackwardsCompatible.FooGroup.b)
- return b_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- }
- inline ::std::string* TestOneofBackwardsCompatible_FooGroup::release_b() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestOneofBackwardsCompatible.FooGroup.b)
- if (!has_b()) {
- return NULL;
- }
- clear_has_b();
- return b_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- }
- inline void TestOneofBackwardsCompatible_FooGroup::set_allocated_b(::std::string* b) {
- if (b != NULL) {
- set_has_b();
- } else {
- clear_has_b();
- }
- b_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), b,
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestOneofBackwardsCompatible.FooGroup.b)
- }
- inline ::std::string* TestOneofBackwardsCompatible_FooGroup::unsafe_arena_release_b() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestOneofBackwardsCompatible.FooGroup.b)
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- clear_has_b();
- return b_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- }
- inline void TestOneofBackwardsCompatible_FooGroup::unsafe_arena_set_allocated_b(
- ::std::string* b) {
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- if (b != NULL) {
- set_has_b();
- } else {
- clear_has_b();
- }
- b_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- b, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestOneofBackwardsCompatible.FooGroup.b)
- }
- // -------------------------------------------------------------------
- // TestOneofBackwardsCompatible
- // optional int32 foo_int = 1;
- inline bool TestOneofBackwardsCompatible::has_foo_int() const {
- return (_has_bits_[0] & 0x00000008u) != 0;
- }
- inline void TestOneofBackwardsCompatible::set_has_foo_int() {
- _has_bits_[0] |= 0x00000008u;
- }
- inline void TestOneofBackwardsCompatible::clear_has_foo_int() {
- _has_bits_[0] &= ~0x00000008u;
- }
- inline void TestOneofBackwardsCompatible::clear_foo_int() {
- foo_int_ = 0;
- clear_has_foo_int();
- }
- inline ::google::protobuf::int32 TestOneofBackwardsCompatible::foo_int() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneofBackwardsCompatible.foo_int)
- return foo_int_;
- }
- inline void TestOneofBackwardsCompatible::set_foo_int(::google::protobuf::int32 value) {
- set_has_foo_int();
- foo_int_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneofBackwardsCompatible.foo_int)
- }
- // optional string foo_string = 2;
- inline bool TestOneofBackwardsCompatible::has_foo_string() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void TestOneofBackwardsCompatible::set_has_foo_string() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void TestOneofBackwardsCompatible::clear_has_foo_string() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void TestOneofBackwardsCompatible::clear_foo_string() {
- foo_string_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- clear_has_foo_string();
- }
- inline const ::std::string& TestOneofBackwardsCompatible::foo_string() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneofBackwardsCompatible.foo_string)
- return foo_string_.Get();
- }
- inline void TestOneofBackwardsCompatible::set_foo_string(const ::std::string& value) {
- set_has_foo_string();
- foo_string_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneofBackwardsCompatible.foo_string)
- }
- #if LANG_CXX11
- inline void TestOneofBackwardsCompatible::set_foo_string(::std::string&& value) {
- set_has_foo_string();
- foo_string_.Set(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestOneofBackwardsCompatible.foo_string)
- }
- #endif
- inline void TestOneofBackwardsCompatible::set_foo_string(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- set_has_foo_string();
- foo_string_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestOneofBackwardsCompatible.foo_string)
- }
- inline void TestOneofBackwardsCompatible::set_foo_string(const char* value,
- size_t size) {
- set_has_foo_string();
- foo_string_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
- reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestOneofBackwardsCompatible.foo_string)
- }
- inline ::std::string* TestOneofBackwardsCompatible::mutable_foo_string() {
- set_has_foo_string();
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestOneofBackwardsCompatible.foo_string)
- return foo_string_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- }
- inline ::std::string* TestOneofBackwardsCompatible::release_foo_string() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestOneofBackwardsCompatible.foo_string)
- if (!has_foo_string()) {
- return NULL;
- }
- clear_has_foo_string();
- return foo_string_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- }
- inline void TestOneofBackwardsCompatible::set_allocated_foo_string(::std::string* foo_string) {
- if (foo_string != NULL) {
- set_has_foo_string();
- } else {
- clear_has_foo_string();
- }
- foo_string_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), foo_string,
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestOneofBackwardsCompatible.foo_string)
- }
- inline ::std::string* TestOneofBackwardsCompatible::unsafe_arena_release_foo_string() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestOneofBackwardsCompatible.foo_string)
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- clear_has_foo_string();
- return foo_string_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- }
- inline void TestOneofBackwardsCompatible::unsafe_arena_set_allocated_foo_string(
- ::std::string* foo_string) {
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- if (foo_string != NULL) {
- set_has_foo_string();
- } else {
- clear_has_foo_string();
- }
- foo_string_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- foo_string, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestOneofBackwardsCompatible.foo_string)
- }
- // optional .protobuf_unittest.TestAllTypes foo_message = 3;
- inline bool TestOneofBackwardsCompatible::has_foo_message() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
- }
- inline void TestOneofBackwardsCompatible::set_has_foo_message() {
- _has_bits_[0] |= 0x00000002u;
- }
- inline void TestOneofBackwardsCompatible::clear_has_foo_message() {
- _has_bits_[0] &= ~0x00000002u;
- }
- inline void TestOneofBackwardsCompatible::clear_foo_message() {
- if (foo_message_ != NULL) foo_message_->Clear();
- clear_has_foo_message();
- }
- inline const ::protobuf_unittest::TestAllTypes& TestOneofBackwardsCompatible::_internal_foo_message() const {
- return *foo_message_;
- }
- inline const ::protobuf_unittest::TestAllTypes& TestOneofBackwardsCompatible::foo_message() const {
- const ::protobuf_unittest::TestAllTypes* p = foo_message_;
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneofBackwardsCompatible.foo_message)
- return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestAllTypes*>(
- &::protobuf_unittest::_TestAllTypes_default_instance_);
- }
- inline ::protobuf_unittest::TestAllTypes* TestOneofBackwardsCompatible::release_foo_message() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestOneofBackwardsCompatible.foo_message)
- clear_has_foo_message();
- ::protobuf_unittest::TestAllTypes* temp = foo_message_;
- if (GetArenaNoVirtual() != NULL) {
- temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
- }
- foo_message_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestAllTypes* TestOneofBackwardsCompatible::unsafe_arena_release_foo_message() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestOneofBackwardsCompatible.foo_message)
- clear_has_foo_message();
- ::protobuf_unittest::TestAllTypes* temp = foo_message_;
- foo_message_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestAllTypes* TestOneofBackwardsCompatible::mutable_foo_message() {
- set_has_foo_message();
- if (foo_message_ == NULL) {
- auto* p = CreateMaybeMessage<::protobuf_unittest::TestAllTypes>(GetArenaNoVirtual());
- foo_message_ = p;
- }
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestOneofBackwardsCompatible.foo_message)
- return foo_message_;
- }
- inline void TestOneofBackwardsCompatible::set_allocated_foo_message(::protobuf_unittest::TestAllTypes* foo_message) {
- ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
- if (message_arena == NULL) {
- delete foo_message_;
- }
- if (foo_message) {
- ::google::protobuf::Arena* submessage_arena =
- ::google::protobuf::Arena::GetArena(foo_message);
- if (message_arena != submessage_arena) {
- foo_message = ::google::protobuf::internal::GetOwnedMessage(
- message_arena, foo_message, submessage_arena);
- }
- set_has_foo_message();
- } else {
- clear_has_foo_message();
- }
- foo_message_ = foo_message;
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestOneofBackwardsCompatible.foo_message)
- }
- // optional group FooGroup = 4 { ... };
- inline bool TestOneofBackwardsCompatible::has_foogroup() const {
- return (_has_bits_[0] & 0x00000004u) != 0;
- }
- inline void TestOneofBackwardsCompatible::set_has_foogroup() {
- _has_bits_[0] |= 0x00000004u;
- }
- inline void TestOneofBackwardsCompatible::clear_has_foogroup() {
- _has_bits_[0] &= ~0x00000004u;
- }
- inline void TestOneofBackwardsCompatible::clear_foogroup() {
- if (foogroup_ != NULL) foogroup_->Clear();
- clear_has_foogroup();
- }
- inline const ::protobuf_unittest::TestOneofBackwardsCompatible_FooGroup& TestOneofBackwardsCompatible::_internal_foogroup() const {
- return *foogroup_;
- }
- inline const ::protobuf_unittest::TestOneofBackwardsCompatible_FooGroup& TestOneofBackwardsCompatible::foogroup() const {
- const ::protobuf_unittest::TestOneofBackwardsCompatible_FooGroup* p = foogroup_;
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneofBackwardsCompatible.foogroup)
- return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestOneofBackwardsCompatible_FooGroup*>(
- &::protobuf_unittest::_TestOneofBackwardsCompatible_FooGroup_default_instance_);
- }
- inline ::protobuf_unittest::TestOneofBackwardsCompatible_FooGroup* TestOneofBackwardsCompatible::release_foogroup() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestOneofBackwardsCompatible.foogroup)
- clear_has_foogroup();
- ::protobuf_unittest::TestOneofBackwardsCompatible_FooGroup* temp = foogroup_;
- if (GetArenaNoVirtual() != NULL) {
- temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
- }
- foogroup_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestOneofBackwardsCompatible_FooGroup* TestOneofBackwardsCompatible::unsafe_arena_release_foogroup() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestOneofBackwardsCompatible.foogroup)
- clear_has_foogroup();
- ::protobuf_unittest::TestOneofBackwardsCompatible_FooGroup* temp = foogroup_;
- foogroup_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestOneofBackwardsCompatible_FooGroup* TestOneofBackwardsCompatible::mutable_foogroup() {
- set_has_foogroup();
- if (foogroup_ == NULL) {
- auto* p = CreateMaybeMessage<::protobuf_unittest::TestOneofBackwardsCompatible_FooGroup>(GetArenaNoVirtual());
- foogroup_ = p;
- }
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestOneofBackwardsCompatible.foogroup)
- return foogroup_;
- }
- inline void TestOneofBackwardsCompatible::set_allocated_foogroup(::protobuf_unittest::TestOneofBackwardsCompatible_FooGroup* foogroup) {
- ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
- if (message_arena == NULL) {
- delete foogroup_;
- }
- if (foogroup) {
- ::google::protobuf::Arena* submessage_arena =
- ::google::protobuf::Arena::GetArena(foogroup);
- if (message_arena != submessage_arena) {
- foogroup = ::google::protobuf::internal::GetOwnedMessage(
- message_arena, foogroup, submessage_arena);
- }
- set_has_foogroup();
- } else {
- clear_has_foogroup();
- }
- foogroup_ = foogroup;
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestOneofBackwardsCompatible.foogroup)
- }
- // -------------------------------------------------------------------
- // TestOneof2_FooGroup
- // optional int32 a = 9;
- inline bool TestOneof2_FooGroup::has_a() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
- }
- inline void TestOneof2_FooGroup::set_has_a() {
- _has_bits_[0] |= 0x00000002u;
- }
- inline void TestOneof2_FooGroup::clear_has_a() {
- _has_bits_[0] &= ~0x00000002u;
- }
- inline void TestOneof2_FooGroup::clear_a() {
- a_ = 0;
- clear_has_a();
- }
- inline ::google::protobuf::int32 TestOneof2_FooGroup::a() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneof2.FooGroup.a)
- return a_;
- }
- inline void TestOneof2_FooGroup::set_a(::google::protobuf::int32 value) {
- set_has_a();
- a_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneof2.FooGroup.a)
- }
- // optional string b = 10;
- inline bool TestOneof2_FooGroup::has_b() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void TestOneof2_FooGroup::set_has_b() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void TestOneof2_FooGroup::clear_has_b() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void TestOneof2_FooGroup::clear_b() {
- b_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- clear_has_b();
- }
- inline const ::std::string& TestOneof2_FooGroup::b() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneof2.FooGroup.b)
- return b_.Get();
- }
- inline void TestOneof2_FooGroup::set_b(const ::std::string& value) {
- set_has_b();
- b_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneof2.FooGroup.b)
- }
- #if LANG_CXX11
- inline void TestOneof2_FooGroup::set_b(::std::string&& value) {
- set_has_b();
- b_.Set(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestOneof2.FooGroup.b)
- }
- #endif
- inline void TestOneof2_FooGroup::set_b(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- set_has_b();
- b_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestOneof2.FooGroup.b)
- }
- inline void TestOneof2_FooGroup::set_b(const char* value,
- size_t size) {
- set_has_b();
- b_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
- reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestOneof2.FooGroup.b)
- }
- inline ::std::string* TestOneof2_FooGroup::mutable_b() {
- set_has_b();
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestOneof2.FooGroup.b)
- return b_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- }
- inline ::std::string* TestOneof2_FooGroup::release_b() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestOneof2.FooGroup.b)
- if (!has_b()) {
- return NULL;
- }
- clear_has_b();
- return b_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- }
- inline void TestOneof2_FooGroup::set_allocated_b(::std::string* b) {
- if (b != NULL) {
- set_has_b();
- } else {
- clear_has_b();
- }
- b_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), b,
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestOneof2.FooGroup.b)
- }
- inline ::std::string* TestOneof2_FooGroup::unsafe_arena_release_b() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestOneof2.FooGroup.b)
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- clear_has_b();
- return b_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- }
- inline void TestOneof2_FooGroup::unsafe_arena_set_allocated_b(
- ::std::string* b) {
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- if (b != NULL) {
- set_has_b();
- } else {
- clear_has_b();
- }
- b_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- b, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestOneof2.FooGroup.b)
- }
- // -------------------------------------------------------------------
- // TestOneof2_NestedMessage
- // optional int64 qux_int = 1;
- inline bool TestOneof2_NestedMessage::has_qux_int() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void TestOneof2_NestedMessage::set_has_qux_int() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void TestOneof2_NestedMessage::clear_has_qux_int() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void TestOneof2_NestedMessage::clear_qux_int() {
- qux_int_ = GOOGLE_LONGLONG(0);
- clear_has_qux_int();
- }
- inline ::google::protobuf::int64 TestOneof2_NestedMessage::qux_int() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneof2.NestedMessage.qux_int)
- return qux_int_;
- }
- inline void TestOneof2_NestedMessage::set_qux_int(::google::protobuf::int64 value) {
- set_has_qux_int();
- qux_int_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneof2.NestedMessage.qux_int)
- }
- // repeated int32 corge_int = 2;
- inline int TestOneof2_NestedMessage::corge_int_size() const {
- return corge_int_.size();
- }
- inline void TestOneof2_NestedMessage::clear_corge_int() {
- corge_int_.Clear();
- }
- inline ::google::protobuf::int32 TestOneof2_NestedMessage::corge_int(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneof2.NestedMessage.corge_int)
- return corge_int_.Get(index);
- }
- inline void TestOneof2_NestedMessage::set_corge_int(int index, ::google::protobuf::int32 value) {
- corge_int_.Set(index, value);
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneof2.NestedMessage.corge_int)
- }
- inline void TestOneof2_NestedMessage::add_corge_int(::google::protobuf::int32 value) {
- corge_int_.Add(value);
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestOneof2.NestedMessage.corge_int)
- }
- inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
- TestOneof2_NestedMessage::corge_int() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestOneof2.NestedMessage.corge_int)
- return corge_int_;
- }
- inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
- TestOneof2_NestedMessage::mutable_corge_int() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestOneof2.NestedMessage.corge_int)
- return &corge_int_;
- }
- // -------------------------------------------------------------------
- // TestOneof2
- // optional int32 foo_int = 1;
- inline bool TestOneof2::has_foo_int() const {
- return foo_case() == kFooInt;
- }
- inline void TestOneof2::set_has_foo_int() {
- _oneof_case_[0] = kFooInt;
- }
- inline void TestOneof2::clear_foo_int() {
- if (has_foo_int()) {
- foo_.foo_int_ = 0;
- clear_has_foo();
- }
- }
- inline ::google::protobuf::int32 TestOneof2::foo_int() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneof2.foo_int)
- if (has_foo_int()) {
- return foo_.foo_int_;
- }
- return 0;
- }
- inline void TestOneof2::set_foo_int(::google::protobuf::int32 value) {
- if (!has_foo_int()) {
- clear_foo();
- set_has_foo_int();
- }
- foo_.foo_int_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneof2.foo_int)
- }
- // optional string foo_string = 2;
- inline bool TestOneof2::has_foo_string() const {
- return foo_case() == kFooString;
- }
- inline void TestOneof2::set_has_foo_string() {
- _oneof_case_[0] = kFooString;
- }
- inline void TestOneof2::clear_foo_string() {
- if (has_foo_string()) {
- foo_.foo_string_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- clear_has_foo();
- }
- }
- inline const ::std::string& TestOneof2::foo_string() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneof2.foo_string)
- if (has_foo_string()) {
- return foo_.foo_string_.Get();
- }
- return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
- }
- inline void TestOneof2::set_foo_string(const ::std::string& value) {
- if (!has_foo_string()) {
- clear_foo();
- set_has_foo_string();
- foo_.foo_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- foo_.foo_string_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value,
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneof2.foo_string)
- }
- #if LANG_CXX11
- inline void TestOneof2::set_foo_string(::std::string&& value) {
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneof2.foo_string)
- if (!has_foo_string()) {
- clear_foo();
- set_has_foo_string();
- foo_.foo_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- foo_.foo_string_.Set(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestOneof2.foo_string)
- }
- #endif
- inline void TestOneof2::set_foo_string(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- if (!has_foo_string()) {
- clear_foo();
- set_has_foo_string();
- foo_.foo_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- foo_.foo_string_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- ::std::string(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestOneof2.foo_string)
- }
- inline void TestOneof2::set_foo_string(const char* value,
- size_t size) {
- if (!has_foo_string()) {
- clear_foo();
- set_has_foo_string();
- foo_.foo_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- foo_.foo_string_.Set(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
- reinterpret_cast<const char*>(value), size),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestOneof2.foo_string)
- }
- inline ::std::string* TestOneof2::mutable_foo_string() {
- if (!has_foo_string()) {
- clear_foo();
- set_has_foo_string();
- foo_.foo_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- return foo_.foo_string_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestOneof2.foo_string)
- }
- inline ::std::string* TestOneof2::release_foo_string() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestOneof2.foo_string)
- if (has_foo_string()) {
- clear_has_foo();
- return foo_.foo_string_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- } else {
- return NULL;
- }
- }
- inline void TestOneof2::set_allocated_foo_string(::std::string* foo_string) {
- if (!has_foo_string()) {
- foo_.foo_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- clear_foo();
- if (foo_string != NULL) {
- set_has_foo_string();
- foo_.foo_string_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), foo_string,
- GetArenaNoVirtual());
- }
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestOneof2.foo_string)
- }
- inline ::std::string* TestOneof2::unsafe_arena_release_foo_string() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestOneof2.foo_string)
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- if (has_foo_string()) {
- clear_has_foo();
- return foo_.foo_string_.UnsafeArenaRelease(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- } else {
- return NULL;
- }
- }
- inline void TestOneof2::unsafe_arena_set_allocated_foo_string(::std::string* foo_string) {
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- if (!has_foo_string()) {
- foo_.foo_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- clear_foo();
- if (foo_string) {
- set_has_foo_string();
- foo_.foo_string_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), foo_string, GetArenaNoVirtual());
- }
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestOneof2.foo_string)
- }
- // optional string foo_cord = 3 [ctype = CORD];
- inline bool TestOneof2::has_foo_cord() const {
- return foo_case() == kFooCord;
- }
- inline void TestOneof2::set_has_foo_cord() {
- _oneof_case_[0] = kFooCord;
- }
- inline void TestOneof2::clear_foo_cord() {
- if (has_foo_cord()) {
- foo_.foo_cord_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- clear_has_foo();
- }
- }
- inline const ::std::string& TestOneof2::foo_cord() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneof2.foo_cord)
- if (has_foo_cord()) {
- return foo_.foo_cord_.Get();
- }
- return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
- }
- inline void TestOneof2::set_foo_cord(const ::std::string& value) {
- if (!has_foo_cord()) {
- clear_foo();
- set_has_foo_cord();
- foo_.foo_cord_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- foo_.foo_cord_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value,
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneof2.foo_cord)
- }
- #if LANG_CXX11
- inline void TestOneof2::set_foo_cord(::std::string&& value) {
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneof2.foo_cord)
- if (!has_foo_cord()) {
- clear_foo();
- set_has_foo_cord();
- foo_.foo_cord_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- foo_.foo_cord_.Set(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestOneof2.foo_cord)
- }
- #endif
- inline void TestOneof2::set_foo_cord(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- if (!has_foo_cord()) {
- clear_foo();
- set_has_foo_cord();
- foo_.foo_cord_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- foo_.foo_cord_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- ::std::string(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestOneof2.foo_cord)
- }
- inline void TestOneof2::set_foo_cord(const char* value,
- size_t size) {
- if (!has_foo_cord()) {
- clear_foo();
- set_has_foo_cord();
- foo_.foo_cord_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- foo_.foo_cord_.Set(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
- reinterpret_cast<const char*>(value), size),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestOneof2.foo_cord)
- }
- inline ::std::string* TestOneof2::mutable_foo_cord() {
- if (!has_foo_cord()) {
- clear_foo();
- set_has_foo_cord();
- foo_.foo_cord_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- return foo_.foo_cord_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestOneof2.foo_cord)
- }
- inline ::std::string* TestOneof2::release_foo_cord() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestOneof2.foo_cord)
- if (has_foo_cord()) {
- clear_has_foo();
- return foo_.foo_cord_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- } else {
- return NULL;
- }
- }
- inline void TestOneof2::set_allocated_foo_cord(::std::string* foo_cord) {
- if (!has_foo_cord()) {
- foo_.foo_cord_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- clear_foo();
- if (foo_cord != NULL) {
- set_has_foo_cord();
- foo_.foo_cord_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), foo_cord,
- GetArenaNoVirtual());
- }
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestOneof2.foo_cord)
- }
- inline ::std::string* TestOneof2::unsafe_arena_release_foo_cord() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestOneof2.foo_cord)
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- if (has_foo_cord()) {
- clear_has_foo();
- return foo_.foo_cord_.UnsafeArenaRelease(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- } else {
- return NULL;
- }
- }
- inline void TestOneof2::unsafe_arena_set_allocated_foo_cord(::std::string* foo_cord) {
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- if (!has_foo_cord()) {
- foo_.foo_cord_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- clear_foo();
- if (foo_cord) {
- set_has_foo_cord();
- foo_.foo_cord_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), foo_cord, GetArenaNoVirtual());
- }
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestOneof2.foo_cord)
- }
- // optional string foo_string_piece = 4 [ctype = STRING_PIECE];
- inline bool TestOneof2::has_foo_string_piece() const {
- return foo_case() == kFooStringPiece;
- }
- inline void TestOneof2::set_has_foo_string_piece() {
- _oneof_case_[0] = kFooStringPiece;
- }
- inline void TestOneof2::clear_foo_string_piece() {
- if (has_foo_string_piece()) {
- foo_.foo_string_piece_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- clear_has_foo();
- }
- }
- inline const ::std::string& TestOneof2::foo_string_piece() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneof2.foo_string_piece)
- if (has_foo_string_piece()) {
- return foo_.foo_string_piece_.Get();
- }
- return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
- }
- inline void TestOneof2::set_foo_string_piece(const ::std::string& value) {
- if (!has_foo_string_piece()) {
- clear_foo();
- set_has_foo_string_piece();
- foo_.foo_string_piece_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- foo_.foo_string_piece_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value,
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneof2.foo_string_piece)
- }
- #if LANG_CXX11
- inline void TestOneof2::set_foo_string_piece(::std::string&& value) {
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneof2.foo_string_piece)
- if (!has_foo_string_piece()) {
- clear_foo();
- set_has_foo_string_piece();
- foo_.foo_string_piece_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- foo_.foo_string_piece_.Set(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestOneof2.foo_string_piece)
- }
- #endif
- inline void TestOneof2::set_foo_string_piece(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- if (!has_foo_string_piece()) {
- clear_foo();
- set_has_foo_string_piece();
- foo_.foo_string_piece_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- foo_.foo_string_piece_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- ::std::string(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestOneof2.foo_string_piece)
- }
- inline void TestOneof2::set_foo_string_piece(const char* value,
- size_t size) {
- if (!has_foo_string_piece()) {
- clear_foo();
- set_has_foo_string_piece();
- foo_.foo_string_piece_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- foo_.foo_string_piece_.Set(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
- reinterpret_cast<const char*>(value), size),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestOneof2.foo_string_piece)
- }
- inline ::std::string* TestOneof2::mutable_foo_string_piece() {
- if (!has_foo_string_piece()) {
- clear_foo();
- set_has_foo_string_piece();
- foo_.foo_string_piece_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- return foo_.foo_string_piece_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestOneof2.foo_string_piece)
- }
- inline ::std::string* TestOneof2::release_foo_string_piece() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestOneof2.foo_string_piece)
- if (has_foo_string_piece()) {
- clear_has_foo();
- return foo_.foo_string_piece_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- } else {
- return NULL;
- }
- }
- inline void TestOneof2::set_allocated_foo_string_piece(::std::string* foo_string_piece) {
- if (!has_foo_string_piece()) {
- foo_.foo_string_piece_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- clear_foo();
- if (foo_string_piece != NULL) {
- set_has_foo_string_piece();
- foo_.foo_string_piece_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), foo_string_piece,
- GetArenaNoVirtual());
- }
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestOneof2.foo_string_piece)
- }
- inline ::std::string* TestOneof2::unsafe_arena_release_foo_string_piece() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestOneof2.foo_string_piece)
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- if (has_foo_string_piece()) {
- clear_has_foo();
- return foo_.foo_string_piece_.UnsafeArenaRelease(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- } else {
- return NULL;
- }
- }
- inline void TestOneof2::unsafe_arena_set_allocated_foo_string_piece(::std::string* foo_string_piece) {
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- if (!has_foo_string_piece()) {
- foo_.foo_string_piece_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- clear_foo();
- if (foo_string_piece) {
- set_has_foo_string_piece();
- foo_.foo_string_piece_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), foo_string_piece, GetArenaNoVirtual());
- }
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestOneof2.foo_string_piece)
- }
- // optional bytes foo_bytes = 5;
- inline bool TestOneof2::has_foo_bytes() const {
- return foo_case() == kFooBytes;
- }
- inline void TestOneof2::set_has_foo_bytes() {
- _oneof_case_[0] = kFooBytes;
- }
- inline void TestOneof2::clear_foo_bytes() {
- if (has_foo_bytes()) {
- foo_.foo_bytes_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- clear_has_foo();
- }
- }
- inline const ::std::string& TestOneof2::foo_bytes() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneof2.foo_bytes)
- if (has_foo_bytes()) {
- return foo_.foo_bytes_.Get();
- }
- return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
- }
- inline void TestOneof2::set_foo_bytes(const ::std::string& value) {
- if (!has_foo_bytes()) {
- clear_foo();
- set_has_foo_bytes();
- foo_.foo_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- foo_.foo_bytes_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value,
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneof2.foo_bytes)
- }
- #if LANG_CXX11
- inline void TestOneof2::set_foo_bytes(::std::string&& value) {
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneof2.foo_bytes)
- if (!has_foo_bytes()) {
- clear_foo();
- set_has_foo_bytes();
- foo_.foo_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- foo_.foo_bytes_.Set(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestOneof2.foo_bytes)
- }
- #endif
- inline void TestOneof2::set_foo_bytes(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- if (!has_foo_bytes()) {
- clear_foo();
- set_has_foo_bytes();
- foo_.foo_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- foo_.foo_bytes_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- ::std::string(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestOneof2.foo_bytes)
- }
- inline void TestOneof2::set_foo_bytes(const void* value,
- size_t size) {
- if (!has_foo_bytes()) {
- clear_foo();
- set_has_foo_bytes();
- foo_.foo_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- foo_.foo_bytes_.Set(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
- reinterpret_cast<const char*>(value), size),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestOneof2.foo_bytes)
- }
- inline ::std::string* TestOneof2::mutable_foo_bytes() {
- if (!has_foo_bytes()) {
- clear_foo();
- set_has_foo_bytes();
- foo_.foo_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- return foo_.foo_bytes_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestOneof2.foo_bytes)
- }
- inline ::std::string* TestOneof2::release_foo_bytes() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestOneof2.foo_bytes)
- if (has_foo_bytes()) {
- clear_has_foo();
- return foo_.foo_bytes_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- } else {
- return NULL;
- }
- }
- inline void TestOneof2::set_allocated_foo_bytes(::std::string* foo_bytes) {
- if (!has_foo_bytes()) {
- foo_.foo_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- clear_foo();
- if (foo_bytes != NULL) {
- set_has_foo_bytes();
- foo_.foo_bytes_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), foo_bytes,
- GetArenaNoVirtual());
- }
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestOneof2.foo_bytes)
- }
- inline ::std::string* TestOneof2::unsafe_arena_release_foo_bytes() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestOneof2.foo_bytes)
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- if (has_foo_bytes()) {
- clear_has_foo();
- return foo_.foo_bytes_.UnsafeArenaRelease(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- } else {
- return NULL;
- }
- }
- inline void TestOneof2::unsafe_arena_set_allocated_foo_bytes(::std::string* foo_bytes) {
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- if (!has_foo_bytes()) {
- foo_.foo_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- clear_foo();
- if (foo_bytes) {
- set_has_foo_bytes();
- foo_.foo_bytes_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), foo_bytes, GetArenaNoVirtual());
- }
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestOneof2.foo_bytes)
- }
- // optional .protobuf_unittest.TestOneof2.NestedEnum foo_enum = 6;
- inline bool TestOneof2::has_foo_enum() const {
- return foo_case() == kFooEnum;
- }
- inline void TestOneof2::set_has_foo_enum() {
- _oneof_case_[0] = kFooEnum;
- }
- inline void TestOneof2::clear_foo_enum() {
- if (has_foo_enum()) {
- foo_.foo_enum_ = 1;
- clear_has_foo();
- }
- }
- inline ::protobuf_unittest::TestOneof2_NestedEnum TestOneof2::foo_enum() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneof2.foo_enum)
- if (has_foo_enum()) {
- return static_cast< ::protobuf_unittest::TestOneof2_NestedEnum >(foo_.foo_enum_);
- }
- return static_cast< ::protobuf_unittest::TestOneof2_NestedEnum >(1);
- }
- inline void TestOneof2::set_foo_enum(::protobuf_unittest::TestOneof2_NestedEnum value) {
- assert(::protobuf_unittest::TestOneof2_NestedEnum_IsValid(value));
- if (!has_foo_enum()) {
- clear_foo();
- set_has_foo_enum();
- }
- foo_.foo_enum_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneof2.foo_enum)
- }
- // optional .protobuf_unittest.TestOneof2.NestedMessage foo_message = 7;
- inline bool TestOneof2::has_foo_message() const {
- return foo_case() == kFooMessage;
- }
- inline void TestOneof2::set_has_foo_message() {
- _oneof_case_[0] = kFooMessage;
- }
- inline void TestOneof2::clear_foo_message() {
- if (has_foo_message()) {
- if (GetArenaNoVirtual() == NULL) {
- delete foo_.foo_message_;
- }
- clear_has_foo();
- }
- }
- inline const ::protobuf_unittest::TestOneof2_NestedMessage& TestOneof2::_internal_foo_message() const {
- return *foo_.foo_message_;
- }
- inline ::protobuf_unittest::TestOneof2_NestedMessage* TestOneof2::release_foo_message() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestOneof2.foo_message)
- if (has_foo_message()) {
- clear_has_foo();
- ::protobuf_unittest::TestOneof2_NestedMessage* temp = foo_.foo_message_;
- if (GetArenaNoVirtual() != NULL) {
- temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
- }
- foo_.foo_message_ = NULL;
- return temp;
- } else {
- return NULL;
- }
- }
- inline const ::protobuf_unittest::TestOneof2_NestedMessage& TestOneof2::foo_message() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneof2.foo_message)
- return has_foo_message()
- ? *foo_.foo_message_
- : *reinterpret_cast< ::protobuf_unittest::TestOneof2_NestedMessage*>(&::protobuf_unittest::_TestOneof2_NestedMessage_default_instance_);
- }
- inline ::protobuf_unittest::TestOneof2_NestedMessage* TestOneof2::unsafe_arena_release_foo_message() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestOneof2.foo_message)
- if (has_foo_message()) {
- clear_has_foo();
- ::protobuf_unittest::TestOneof2_NestedMessage* temp = foo_.foo_message_;
- foo_.foo_message_ = NULL;
- return temp;
- } else {
- return NULL;
- }
- }
- inline void TestOneof2::unsafe_arena_set_allocated_foo_message(::protobuf_unittest::TestOneof2_NestedMessage* foo_message) {
- clear_foo();
- if (foo_message) {
- set_has_foo_message();
- foo_.foo_message_ = foo_message;
- }
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestOneof2.foo_message)
- }
- inline ::protobuf_unittest::TestOneof2_NestedMessage* TestOneof2::mutable_foo_message() {
- if (!has_foo_message()) {
- clear_foo();
- set_has_foo_message();
- foo_.foo_message_ = CreateMaybeMessage< ::protobuf_unittest::TestOneof2_NestedMessage >(
- GetArenaNoVirtual());
- }
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestOneof2.foo_message)
- return foo_.foo_message_;
- }
- // optional group FooGroup = 8 { ... };
- inline bool TestOneof2::has_foogroup() const {
- return foo_case() == kFoogroup;
- }
- inline void TestOneof2::set_has_foogroup() {
- _oneof_case_[0] = kFoogroup;
- }
- inline void TestOneof2::clear_foogroup() {
- if (has_foogroup()) {
- if (GetArenaNoVirtual() == NULL) {
- delete foo_.foogroup_;
- }
- clear_has_foo();
- }
- }
- inline const ::protobuf_unittest::TestOneof2_FooGroup& TestOneof2::_internal_foogroup() const {
- return *foo_.foogroup_;
- }
- inline ::protobuf_unittest::TestOneof2_FooGroup* TestOneof2::release_foogroup() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestOneof2.foogroup)
- if (has_foogroup()) {
- clear_has_foo();
- ::protobuf_unittest::TestOneof2_FooGroup* temp = foo_.foogroup_;
- if (GetArenaNoVirtual() != NULL) {
- temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
- }
- foo_.foogroup_ = NULL;
- return temp;
- } else {
- return NULL;
- }
- }
- inline const ::protobuf_unittest::TestOneof2_FooGroup& TestOneof2::foogroup() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneof2.foogroup)
- return has_foogroup()
- ? *foo_.foogroup_
- : *reinterpret_cast< ::protobuf_unittest::TestOneof2_FooGroup*>(&::protobuf_unittest::_TestOneof2_FooGroup_default_instance_);
- }
- inline ::protobuf_unittest::TestOneof2_FooGroup* TestOneof2::unsafe_arena_release_foogroup() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestOneof2.foogroup)
- if (has_foogroup()) {
- clear_has_foo();
- ::protobuf_unittest::TestOneof2_FooGroup* temp = foo_.foogroup_;
- foo_.foogroup_ = NULL;
- return temp;
- } else {
- return NULL;
- }
- }
- inline void TestOneof2::unsafe_arena_set_allocated_foogroup(::protobuf_unittest::TestOneof2_FooGroup* foogroup) {
- clear_foo();
- if (foogroup) {
- set_has_foogroup();
- foo_.foogroup_ = foogroup;
- }
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestOneof2.foogroup)
- }
- inline ::protobuf_unittest::TestOneof2_FooGroup* TestOneof2::mutable_foogroup() {
- if (!has_foogroup()) {
- clear_foo();
- set_has_foogroup();
- foo_.foogroup_ = CreateMaybeMessage< ::protobuf_unittest::TestOneof2_FooGroup >(
- GetArenaNoVirtual());
- }
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestOneof2.foogroup)
- return foo_.foogroup_;
- }
- // optional .protobuf_unittest.TestOneof2.NestedMessage foo_lazy_message = 11 [lazy = true];
- inline bool TestOneof2::has_foo_lazy_message() const {
- return foo_case() == kFooLazyMessage;
- }
- inline void TestOneof2::set_has_foo_lazy_message() {
- _oneof_case_[0] = kFooLazyMessage;
- }
- inline void TestOneof2::clear_foo_lazy_message() {
- if (has_foo_lazy_message()) {
- if (GetArenaNoVirtual() == NULL) {
- delete foo_.foo_lazy_message_;
- }
- clear_has_foo();
- }
- }
- inline const ::protobuf_unittest::TestOneof2_NestedMessage& TestOneof2::_internal_foo_lazy_message() const {
- return *foo_.foo_lazy_message_;
- }
- inline ::protobuf_unittest::TestOneof2_NestedMessage* TestOneof2::release_foo_lazy_message() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestOneof2.foo_lazy_message)
- if (has_foo_lazy_message()) {
- clear_has_foo();
- ::protobuf_unittest::TestOneof2_NestedMessage* temp = foo_.foo_lazy_message_;
- if (GetArenaNoVirtual() != NULL) {
- temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
- }
- foo_.foo_lazy_message_ = NULL;
- return temp;
- } else {
- return NULL;
- }
- }
- inline const ::protobuf_unittest::TestOneof2_NestedMessage& TestOneof2::foo_lazy_message() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneof2.foo_lazy_message)
- return has_foo_lazy_message()
- ? *foo_.foo_lazy_message_
- : *reinterpret_cast< ::protobuf_unittest::TestOneof2_NestedMessage*>(&::protobuf_unittest::_TestOneof2_NestedMessage_default_instance_);
- }
- inline ::protobuf_unittest::TestOneof2_NestedMessage* TestOneof2::unsafe_arena_release_foo_lazy_message() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestOneof2.foo_lazy_message)
- if (has_foo_lazy_message()) {
- clear_has_foo();
- ::protobuf_unittest::TestOneof2_NestedMessage* temp = foo_.foo_lazy_message_;
- foo_.foo_lazy_message_ = NULL;
- return temp;
- } else {
- return NULL;
- }
- }
- inline void TestOneof2::unsafe_arena_set_allocated_foo_lazy_message(::protobuf_unittest::TestOneof2_NestedMessage* foo_lazy_message) {
- clear_foo();
- if (foo_lazy_message) {
- set_has_foo_lazy_message();
- foo_.foo_lazy_message_ = foo_lazy_message;
- }
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestOneof2.foo_lazy_message)
- }
- inline ::protobuf_unittest::TestOneof2_NestedMessage* TestOneof2::mutable_foo_lazy_message() {
- if (!has_foo_lazy_message()) {
- clear_foo();
- set_has_foo_lazy_message();
- foo_.foo_lazy_message_ = CreateMaybeMessage< ::protobuf_unittest::TestOneof2_NestedMessage >(
- GetArenaNoVirtual());
- }
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestOneof2.foo_lazy_message)
- return foo_.foo_lazy_message_;
- }
- // optional int32 bar_int = 12 [default = 5];
- inline bool TestOneof2::has_bar_int() const {
- return bar_case() == kBarInt;
- }
- inline void TestOneof2::set_has_bar_int() {
- _oneof_case_[1] = kBarInt;
- }
- inline void TestOneof2::clear_bar_int() {
- if (has_bar_int()) {
- bar_.bar_int_ = 5;
- clear_has_bar();
- }
- }
- inline ::google::protobuf::int32 TestOneof2::bar_int() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneof2.bar_int)
- if (has_bar_int()) {
- return bar_.bar_int_;
- }
- return 5;
- }
- inline void TestOneof2::set_bar_int(::google::protobuf::int32 value) {
- if (!has_bar_int()) {
- clear_bar();
- set_has_bar_int();
- }
- bar_.bar_int_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneof2.bar_int)
- }
- // optional string bar_string = 13 [default = "STRING"];
- inline bool TestOneof2::has_bar_string() const {
- return bar_case() == kBarString;
- }
- inline void TestOneof2::set_has_bar_string() {
- _oneof_case_[1] = kBarString;
- }
- inline void TestOneof2::clear_bar_string() {
- if (has_bar_string()) {
- bar_.bar_string_.Destroy(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_string_.get(),
- GetArenaNoVirtual());
- clear_has_bar();
- }
- }
- inline const ::std::string& TestOneof2::bar_string() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneof2.bar_string)
- if (has_bar_string()) {
- return bar_.bar_string_.Get();
- }
- return *&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_string_.get();
- }
- inline void TestOneof2::set_bar_string(const ::std::string& value) {
- if (!has_bar_string()) {
- clear_bar();
- set_has_bar_string();
- bar_.bar_string_.UnsafeSetDefault(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_string_.get());
- }
- bar_.bar_string_.Set(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_string_.get(), value,
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneof2.bar_string)
- }
- #if LANG_CXX11
- inline void TestOneof2::set_bar_string(::std::string&& value) {
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneof2.bar_string)
- if (!has_bar_string()) {
- clear_bar();
- set_has_bar_string();
- bar_.bar_string_.UnsafeSetDefault(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_string_.get());
- }
- bar_.bar_string_.Set(
- &::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_string_.get(), ::std::move(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestOneof2.bar_string)
- }
- #endif
- inline void TestOneof2::set_bar_string(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- if (!has_bar_string()) {
- clear_bar();
- set_has_bar_string();
- bar_.bar_string_.UnsafeSetDefault(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_string_.get());
- }
- bar_.bar_string_.Set(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_string_.get(),
- ::std::string(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestOneof2.bar_string)
- }
- inline void TestOneof2::set_bar_string(const char* value,
- size_t size) {
- if (!has_bar_string()) {
- clear_bar();
- set_has_bar_string();
- bar_.bar_string_.UnsafeSetDefault(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_string_.get());
- }
- bar_.bar_string_.Set(
- &::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_string_.get(), ::std::string(
- reinterpret_cast<const char*>(value), size),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestOneof2.bar_string)
- }
- inline ::std::string* TestOneof2::mutable_bar_string() {
- if (!has_bar_string()) {
- clear_bar();
- set_has_bar_string();
- bar_.bar_string_.UnsafeSetDefault(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_string_.get());
- }
- return bar_.bar_string_.Mutable(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_string_.get(),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestOneof2.bar_string)
- }
- inline ::std::string* TestOneof2::release_bar_string() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestOneof2.bar_string)
- if (has_bar_string()) {
- clear_has_bar();
- return bar_.bar_string_.Release(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_string_.get(),
- GetArenaNoVirtual());
- } else {
- return NULL;
- }
- }
- inline void TestOneof2::set_allocated_bar_string(::std::string* bar_string) {
- if (!has_bar_string()) {
- bar_.bar_string_.UnsafeSetDefault(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_string_.get());
- }
- clear_bar();
- if (bar_string != NULL) {
- set_has_bar_string();
- bar_.bar_string_.SetAllocated(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_string_.get(), bar_string,
- GetArenaNoVirtual());
- }
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestOneof2.bar_string)
- }
- inline ::std::string* TestOneof2::unsafe_arena_release_bar_string() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestOneof2.bar_string)
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- if (has_bar_string()) {
- clear_has_bar();
- return bar_.bar_string_.UnsafeArenaRelease(
- &::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_string_.get(), GetArenaNoVirtual());
- } else {
- return NULL;
- }
- }
- inline void TestOneof2::unsafe_arena_set_allocated_bar_string(::std::string* bar_string) {
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- if (!has_bar_string()) {
- bar_.bar_string_.UnsafeSetDefault(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_string_.get());
- }
- clear_bar();
- if (bar_string) {
- set_has_bar_string();
- bar_.bar_string_.UnsafeArenaSetAllocated(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_string_.get(), bar_string, GetArenaNoVirtual());
- }
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestOneof2.bar_string)
- }
- // optional string bar_cord = 14 [default = "CORD", ctype = CORD];
- inline bool TestOneof2::has_bar_cord() const {
- return bar_case() == kBarCord;
- }
- inline void TestOneof2::set_has_bar_cord() {
- _oneof_case_[1] = kBarCord;
- }
- inline void TestOneof2::clear_bar_cord() {
- if (has_bar_cord()) {
- bar_.bar_cord_.Destroy(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_cord_.get(),
- GetArenaNoVirtual());
- clear_has_bar();
- }
- }
- inline const ::std::string& TestOneof2::bar_cord() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneof2.bar_cord)
- if (has_bar_cord()) {
- return bar_.bar_cord_.Get();
- }
- return *&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_cord_.get();
- }
- inline void TestOneof2::set_bar_cord(const ::std::string& value) {
- if (!has_bar_cord()) {
- clear_bar();
- set_has_bar_cord();
- bar_.bar_cord_.UnsafeSetDefault(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_cord_.get());
- }
- bar_.bar_cord_.Set(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_cord_.get(), value,
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneof2.bar_cord)
- }
- #if LANG_CXX11
- inline void TestOneof2::set_bar_cord(::std::string&& value) {
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneof2.bar_cord)
- if (!has_bar_cord()) {
- clear_bar();
- set_has_bar_cord();
- bar_.bar_cord_.UnsafeSetDefault(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_cord_.get());
- }
- bar_.bar_cord_.Set(
- &::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_cord_.get(), ::std::move(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestOneof2.bar_cord)
- }
- #endif
- inline void TestOneof2::set_bar_cord(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- if (!has_bar_cord()) {
- clear_bar();
- set_has_bar_cord();
- bar_.bar_cord_.UnsafeSetDefault(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_cord_.get());
- }
- bar_.bar_cord_.Set(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_cord_.get(),
- ::std::string(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestOneof2.bar_cord)
- }
- inline void TestOneof2::set_bar_cord(const char* value,
- size_t size) {
- if (!has_bar_cord()) {
- clear_bar();
- set_has_bar_cord();
- bar_.bar_cord_.UnsafeSetDefault(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_cord_.get());
- }
- bar_.bar_cord_.Set(
- &::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_cord_.get(), ::std::string(
- reinterpret_cast<const char*>(value), size),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestOneof2.bar_cord)
- }
- inline ::std::string* TestOneof2::mutable_bar_cord() {
- if (!has_bar_cord()) {
- clear_bar();
- set_has_bar_cord();
- bar_.bar_cord_.UnsafeSetDefault(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_cord_.get());
- }
- return bar_.bar_cord_.Mutable(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_cord_.get(),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestOneof2.bar_cord)
- }
- inline ::std::string* TestOneof2::release_bar_cord() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestOneof2.bar_cord)
- if (has_bar_cord()) {
- clear_has_bar();
- return bar_.bar_cord_.Release(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_cord_.get(),
- GetArenaNoVirtual());
- } else {
- return NULL;
- }
- }
- inline void TestOneof2::set_allocated_bar_cord(::std::string* bar_cord) {
- if (!has_bar_cord()) {
- bar_.bar_cord_.UnsafeSetDefault(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_cord_.get());
- }
- clear_bar();
- if (bar_cord != NULL) {
- set_has_bar_cord();
- bar_.bar_cord_.SetAllocated(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_cord_.get(), bar_cord,
- GetArenaNoVirtual());
- }
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestOneof2.bar_cord)
- }
- inline ::std::string* TestOneof2::unsafe_arena_release_bar_cord() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestOneof2.bar_cord)
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- if (has_bar_cord()) {
- clear_has_bar();
- return bar_.bar_cord_.UnsafeArenaRelease(
- &::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_cord_.get(), GetArenaNoVirtual());
- } else {
- return NULL;
- }
- }
- inline void TestOneof2::unsafe_arena_set_allocated_bar_cord(::std::string* bar_cord) {
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- if (!has_bar_cord()) {
- bar_.bar_cord_.UnsafeSetDefault(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_cord_.get());
- }
- clear_bar();
- if (bar_cord) {
- set_has_bar_cord();
- bar_.bar_cord_.UnsafeArenaSetAllocated(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_cord_.get(), bar_cord, GetArenaNoVirtual());
- }
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestOneof2.bar_cord)
- }
- // optional string bar_string_piece = 15 [default = "SPIECE", ctype = STRING_PIECE];
- inline bool TestOneof2::has_bar_string_piece() const {
- return bar_case() == kBarStringPiece;
- }
- inline void TestOneof2::set_has_bar_string_piece() {
- _oneof_case_[1] = kBarStringPiece;
- }
- inline void TestOneof2::clear_bar_string_piece() {
- if (has_bar_string_piece()) {
- bar_.bar_string_piece_.Destroy(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_string_piece_.get(),
- GetArenaNoVirtual());
- clear_has_bar();
- }
- }
- inline const ::std::string& TestOneof2::bar_string_piece() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneof2.bar_string_piece)
- if (has_bar_string_piece()) {
- return bar_.bar_string_piece_.Get();
- }
- return *&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_string_piece_.get();
- }
- inline void TestOneof2::set_bar_string_piece(const ::std::string& value) {
- if (!has_bar_string_piece()) {
- clear_bar();
- set_has_bar_string_piece();
- bar_.bar_string_piece_.UnsafeSetDefault(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_string_piece_.get());
- }
- bar_.bar_string_piece_.Set(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_string_piece_.get(), value,
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneof2.bar_string_piece)
- }
- #if LANG_CXX11
- inline void TestOneof2::set_bar_string_piece(::std::string&& value) {
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneof2.bar_string_piece)
- if (!has_bar_string_piece()) {
- clear_bar();
- set_has_bar_string_piece();
- bar_.bar_string_piece_.UnsafeSetDefault(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_string_piece_.get());
- }
- bar_.bar_string_piece_.Set(
- &::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_string_piece_.get(), ::std::move(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestOneof2.bar_string_piece)
- }
- #endif
- inline void TestOneof2::set_bar_string_piece(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- if (!has_bar_string_piece()) {
- clear_bar();
- set_has_bar_string_piece();
- bar_.bar_string_piece_.UnsafeSetDefault(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_string_piece_.get());
- }
- bar_.bar_string_piece_.Set(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_string_piece_.get(),
- ::std::string(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestOneof2.bar_string_piece)
- }
- inline void TestOneof2::set_bar_string_piece(const char* value,
- size_t size) {
- if (!has_bar_string_piece()) {
- clear_bar();
- set_has_bar_string_piece();
- bar_.bar_string_piece_.UnsafeSetDefault(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_string_piece_.get());
- }
- bar_.bar_string_piece_.Set(
- &::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_string_piece_.get(), ::std::string(
- reinterpret_cast<const char*>(value), size),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestOneof2.bar_string_piece)
- }
- inline ::std::string* TestOneof2::mutable_bar_string_piece() {
- if (!has_bar_string_piece()) {
- clear_bar();
- set_has_bar_string_piece();
- bar_.bar_string_piece_.UnsafeSetDefault(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_string_piece_.get());
- }
- return bar_.bar_string_piece_.Mutable(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_string_piece_.get(),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestOneof2.bar_string_piece)
- }
- inline ::std::string* TestOneof2::release_bar_string_piece() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestOneof2.bar_string_piece)
- if (has_bar_string_piece()) {
- clear_has_bar();
- return bar_.bar_string_piece_.Release(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_string_piece_.get(),
- GetArenaNoVirtual());
- } else {
- return NULL;
- }
- }
- inline void TestOneof2::set_allocated_bar_string_piece(::std::string* bar_string_piece) {
- if (!has_bar_string_piece()) {
- bar_.bar_string_piece_.UnsafeSetDefault(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_string_piece_.get());
- }
- clear_bar();
- if (bar_string_piece != NULL) {
- set_has_bar_string_piece();
- bar_.bar_string_piece_.SetAllocated(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_string_piece_.get(), bar_string_piece,
- GetArenaNoVirtual());
- }
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestOneof2.bar_string_piece)
- }
- inline ::std::string* TestOneof2::unsafe_arena_release_bar_string_piece() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestOneof2.bar_string_piece)
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- if (has_bar_string_piece()) {
- clear_has_bar();
- return bar_.bar_string_piece_.UnsafeArenaRelease(
- &::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_string_piece_.get(), GetArenaNoVirtual());
- } else {
- return NULL;
- }
- }
- inline void TestOneof2::unsafe_arena_set_allocated_bar_string_piece(::std::string* bar_string_piece) {
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- if (!has_bar_string_piece()) {
- bar_.bar_string_piece_.UnsafeSetDefault(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_string_piece_.get());
- }
- clear_bar();
- if (bar_string_piece) {
- set_has_bar_string_piece();
- bar_.bar_string_piece_.UnsafeArenaSetAllocated(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_string_piece_.get(), bar_string_piece, GetArenaNoVirtual());
- }
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestOneof2.bar_string_piece)
- }
- // optional bytes bar_bytes = 16 [default = "BYTES"];
- inline bool TestOneof2::has_bar_bytes() const {
- return bar_case() == kBarBytes;
- }
- inline void TestOneof2::set_has_bar_bytes() {
- _oneof_case_[1] = kBarBytes;
- }
- inline void TestOneof2::clear_bar_bytes() {
- if (has_bar_bytes()) {
- bar_.bar_bytes_.Destroy(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_bytes_.get(),
- GetArenaNoVirtual());
- clear_has_bar();
- }
- }
- inline const ::std::string& TestOneof2::bar_bytes() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneof2.bar_bytes)
- if (has_bar_bytes()) {
- return bar_.bar_bytes_.Get();
- }
- return *&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_bytes_.get();
- }
- inline void TestOneof2::set_bar_bytes(const ::std::string& value) {
- if (!has_bar_bytes()) {
- clear_bar();
- set_has_bar_bytes();
- bar_.bar_bytes_.UnsafeSetDefault(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_bytes_.get());
- }
- bar_.bar_bytes_.Set(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_bytes_.get(), value,
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneof2.bar_bytes)
- }
- #if LANG_CXX11
- inline void TestOneof2::set_bar_bytes(::std::string&& value) {
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneof2.bar_bytes)
- if (!has_bar_bytes()) {
- clear_bar();
- set_has_bar_bytes();
- bar_.bar_bytes_.UnsafeSetDefault(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_bytes_.get());
- }
- bar_.bar_bytes_.Set(
- &::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_bytes_.get(), ::std::move(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestOneof2.bar_bytes)
- }
- #endif
- inline void TestOneof2::set_bar_bytes(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- if (!has_bar_bytes()) {
- clear_bar();
- set_has_bar_bytes();
- bar_.bar_bytes_.UnsafeSetDefault(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_bytes_.get());
- }
- bar_.bar_bytes_.Set(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_bytes_.get(),
- ::std::string(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestOneof2.bar_bytes)
- }
- inline void TestOneof2::set_bar_bytes(const void* value,
- size_t size) {
- if (!has_bar_bytes()) {
- clear_bar();
- set_has_bar_bytes();
- bar_.bar_bytes_.UnsafeSetDefault(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_bytes_.get());
- }
- bar_.bar_bytes_.Set(
- &::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_bytes_.get(), ::std::string(
- reinterpret_cast<const char*>(value), size),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestOneof2.bar_bytes)
- }
- inline ::std::string* TestOneof2::mutable_bar_bytes() {
- if (!has_bar_bytes()) {
- clear_bar();
- set_has_bar_bytes();
- bar_.bar_bytes_.UnsafeSetDefault(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_bytes_.get());
- }
- return bar_.bar_bytes_.Mutable(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_bytes_.get(),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestOneof2.bar_bytes)
- }
- inline ::std::string* TestOneof2::release_bar_bytes() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestOneof2.bar_bytes)
- if (has_bar_bytes()) {
- clear_has_bar();
- return bar_.bar_bytes_.Release(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_bytes_.get(),
- GetArenaNoVirtual());
- } else {
- return NULL;
- }
- }
- inline void TestOneof2::set_allocated_bar_bytes(::std::string* bar_bytes) {
- if (!has_bar_bytes()) {
- bar_.bar_bytes_.UnsafeSetDefault(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_bytes_.get());
- }
- clear_bar();
- if (bar_bytes != NULL) {
- set_has_bar_bytes();
- bar_.bar_bytes_.SetAllocated(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_bytes_.get(), bar_bytes,
- GetArenaNoVirtual());
- }
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestOneof2.bar_bytes)
- }
- inline ::std::string* TestOneof2::unsafe_arena_release_bar_bytes() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestOneof2.bar_bytes)
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- if (has_bar_bytes()) {
- clear_has_bar();
- return bar_.bar_bytes_.UnsafeArenaRelease(
- &::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_bytes_.get(), GetArenaNoVirtual());
- } else {
- return NULL;
- }
- }
- inline void TestOneof2::unsafe_arena_set_allocated_bar_bytes(::std::string* bar_bytes) {
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- if (!has_bar_bytes()) {
- bar_.bar_bytes_.UnsafeSetDefault(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_bytes_.get());
- }
- clear_bar();
- if (bar_bytes) {
- set_has_bar_bytes();
- bar_.bar_bytes_.UnsafeArenaSetAllocated(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_bytes_.get(), bar_bytes, GetArenaNoVirtual());
- }
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestOneof2.bar_bytes)
- }
- // optional .protobuf_unittest.TestOneof2.NestedEnum bar_enum = 17 [default = BAR];
- inline bool TestOneof2::has_bar_enum() const {
- return bar_case() == kBarEnum;
- }
- inline void TestOneof2::set_has_bar_enum() {
- _oneof_case_[1] = kBarEnum;
- }
- inline void TestOneof2::clear_bar_enum() {
- if (has_bar_enum()) {
- bar_.bar_enum_ = 2;
- clear_has_bar();
- }
- }
- inline ::protobuf_unittest::TestOneof2_NestedEnum TestOneof2::bar_enum() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneof2.bar_enum)
- if (has_bar_enum()) {
- return static_cast< ::protobuf_unittest::TestOneof2_NestedEnum >(bar_.bar_enum_);
- }
- return static_cast< ::protobuf_unittest::TestOneof2_NestedEnum >(2);
- }
- inline void TestOneof2::set_bar_enum(::protobuf_unittest::TestOneof2_NestedEnum value) {
- assert(::protobuf_unittest::TestOneof2_NestedEnum_IsValid(value));
- if (!has_bar_enum()) {
- clear_bar();
- set_has_bar_enum();
- }
- bar_.bar_enum_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneof2.bar_enum)
- }
- // optional int32 baz_int = 18;
- inline bool TestOneof2::has_baz_int() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
- }
- inline void TestOneof2::set_has_baz_int() {
- _has_bits_[0] |= 0x00000002u;
- }
- inline void TestOneof2::clear_has_baz_int() {
- _has_bits_[0] &= ~0x00000002u;
- }
- inline void TestOneof2::clear_baz_int() {
- baz_int_ = 0;
- clear_has_baz_int();
- }
- inline ::google::protobuf::int32 TestOneof2::baz_int() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneof2.baz_int)
- return baz_int_;
- }
- inline void TestOneof2::set_baz_int(::google::protobuf::int32 value) {
- set_has_baz_int();
- baz_int_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneof2.baz_int)
- }
- // optional string baz_string = 19 [default = "BAZ"];
- inline bool TestOneof2::has_baz_string() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void TestOneof2::set_has_baz_string() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void TestOneof2::clear_has_baz_string() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void TestOneof2::clear_baz_string() {
- baz_string_.ClearToDefault(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_baz_string_.get(), GetArenaNoVirtual());
- clear_has_baz_string();
- }
- inline const ::std::string& TestOneof2::baz_string() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneof2.baz_string)
- return baz_string_.Get();
- }
- inline void TestOneof2::set_baz_string(const ::std::string& value) {
- set_has_baz_string();
- baz_string_.Set(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_baz_string_.get(), value, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneof2.baz_string)
- }
- #if LANG_CXX11
- inline void TestOneof2::set_baz_string(::std::string&& value) {
- set_has_baz_string();
- baz_string_.Set(
- &::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_baz_string_.get(), ::std::move(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestOneof2.baz_string)
- }
- #endif
- inline void TestOneof2::set_baz_string(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- set_has_baz_string();
- baz_string_.Set(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_baz_string_.get(), ::std::string(value),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestOneof2.baz_string)
- }
- inline void TestOneof2::set_baz_string(const char* value,
- size_t size) {
- set_has_baz_string();
- baz_string_.Set(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_baz_string_.get(), ::std::string(
- reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestOneof2.baz_string)
- }
- inline ::std::string* TestOneof2::mutable_baz_string() {
- set_has_baz_string();
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestOneof2.baz_string)
- return baz_string_.Mutable(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_baz_string_.get(), GetArenaNoVirtual());
- }
- inline ::std::string* TestOneof2::release_baz_string() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestOneof2.baz_string)
- if (!has_baz_string()) {
- return NULL;
- }
- clear_has_baz_string();
- return baz_string_.ReleaseNonDefault(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_baz_string_.get(), GetArenaNoVirtual());
- }
- inline void TestOneof2::set_allocated_baz_string(::std::string* baz_string) {
- if (baz_string != NULL) {
- set_has_baz_string();
- } else {
- clear_has_baz_string();
- }
- baz_string_.SetAllocated(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_baz_string_.get(), baz_string,
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestOneof2.baz_string)
- }
- inline ::std::string* TestOneof2::unsafe_arena_release_baz_string() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestOneof2.baz_string)
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- clear_has_baz_string();
- return baz_string_.UnsafeArenaRelease(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_baz_string_.get(),
- GetArenaNoVirtual());
- }
- inline void TestOneof2::unsafe_arena_set_allocated_baz_string(
- ::std::string* baz_string) {
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- if (baz_string != NULL) {
- set_has_baz_string();
- } else {
- clear_has_baz_string();
- }
- baz_string_.UnsafeArenaSetAllocated(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_baz_string_.get(),
- baz_string, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestOneof2.baz_string)
- }
- inline bool TestOneof2::has_foo() const {
- return foo_case() != FOO_NOT_SET;
- }
- inline void TestOneof2::clear_has_foo() {
- _oneof_case_[0] = FOO_NOT_SET;
- }
- inline bool TestOneof2::has_bar() const {
- return bar_case() != BAR_NOT_SET;
- }
- inline void TestOneof2::clear_has_bar() {
- _oneof_case_[1] = BAR_NOT_SET;
- }
- inline TestOneof2::FooCase TestOneof2::foo_case() const {
- return TestOneof2::FooCase(_oneof_case_[0]);
- }
- inline TestOneof2::BarCase TestOneof2::bar_case() const {
- return TestOneof2::BarCase(_oneof_case_[1]);
- }
- // -------------------------------------------------------------------
- // TestRequiredOneof_NestedMessage
- // required double required_double = 1;
- inline bool TestRequiredOneof_NestedMessage::has_required_double() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void TestRequiredOneof_NestedMessage::set_has_required_double() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void TestRequiredOneof_NestedMessage::clear_has_required_double() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void TestRequiredOneof_NestedMessage::clear_required_double() {
- required_double_ = 0;
- clear_has_required_double();
- }
- inline double TestRequiredOneof_NestedMessage::required_double() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequiredOneof.NestedMessage.required_double)
- return required_double_;
- }
- inline void TestRequiredOneof_NestedMessage::set_required_double(double value) {
- set_has_required_double();
- required_double_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequiredOneof.NestedMessage.required_double)
- }
- // -------------------------------------------------------------------
- // TestRequiredOneof
- // optional int32 foo_int = 1;
- inline bool TestRequiredOneof::has_foo_int() const {
- return foo_case() == kFooInt;
- }
- inline void TestRequiredOneof::set_has_foo_int() {
- _oneof_case_[0] = kFooInt;
- }
- inline void TestRequiredOneof::clear_foo_int() {
- if (has_foo_int()) {
- foo_.foo_int_ = 0;
- clear_has_foo();
- }
- }
- inline ::google::protobuf::int32 TestRequiredOneof::foo_int() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequiredOneof.foo_int)
- if (has_foo_int()) {
- return foo_.foo_int_;
- }
- return 0;
- }
- inline void TestRequiredOneof::set_foo_int(::google::protobuf::int32 value) {
- if (!has_foo_int()) {
- clear_foo();
- set_has_foo_int();
- }
- foo_.foo_int_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequiredOneof.foo_int)
- }
- // optional string foo_string = 2;
- inline bool TestRequiredOneof::has_foo_string() const {
- return foo_case() == kFooString;
- }
- inline void TestRequiredOneof::set_has_foo_string() {
- _oneof_case_[0] = kFooString;
- }
- inline void TestRequiredOneof::clear_foo_string() {
- if (has_foo_string()) {
- foo_.foo_string_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- clear_has_foo();
- }
- }
- inline const ::std::string& TestRequiredOneof::foo_string() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequiredOneof.foo_string)
- if (has_foo_string()) {
- return foo_.foo_string_.Get();
- }
- return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
- }
- inline void TestRequiredOneof::set_foo_string(const ::std::string& value) {
- if (!has_foo_string()) {
- clear_foo();
- set_has_foo_string();
- foo_.foo_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- foo_.foo_string_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value,
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequiredOneof.foo_string)
- }
- #if LANG_CXX11
- inline void TestRequiredOneof::set_foo_string(::std::string&& value) {
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequiredOneof.foo_string)
- if (!has_foo_string()) {
- clear_foo();
- set_has_foo_string();
- foo_.foo_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- foo_.foo_string_.Set(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestRequiredOneof.foo_string)
- }
- #endif
- inline void TestRequiredOneof::set_foo_string(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- if (!has_foo_string()) {
- clear_foo();
- set_has_foo_string();
- foo_.foo_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- foo_.foo_string_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- ::std::string(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestRequiredOneof.foo_string)
- }
- inline void TestRequiredOneof::set_foo_string(const char* value,
- size_t size) {
- if (!has_foo_string()) {
- clear_foo();
- set_has_foo_string();
- foo_.foo_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- foo_.foo_string_.Set(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
- reinterpret_cast<const char*>(value), size),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestRequiredOneof.foo_string)
- }
- inline ::std::string* TestRequiredOneof::mutable_foo_string() {
- if (!has_foo_string()) {
- clear_foo();
- set_has_foo_string();
- foo_.foo_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- return foo_.foo_string_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestRequiredOneof.foo_string)
- }
- inline ::std::string* TestRequiredOneof::release_foo_string() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestRequiredOneof.foo_string)
- if (has_foo_string()) {
- clear_has_foo();
- return foo_.foo_string_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- } else {
- return NULL;
- }
- }
- inline void TestRequiredOneof::set_allocated_foo_string(::std::string* foo_string) {
- if (!has_foo_string()) {
- foo_.foo_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- clear_foo();
- if (foo_string != NULL) {
- set_has_foo_string();
- foo_.foo_string_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), foo_string,
- GetArenaNoVirtual());
- }
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestRequiredOneof.foo_string)
- }
- inline ::std::string* TestRequiredOneof::unsafe_arena_release_foo_string() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestRequiredOneof.foo_string)
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- if (has_foo_string()) {
- clear_has_foo();
- return foo_.foo_string_.UnsafeArenaRelease(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- } else {
- return NULL;
- }
- }
- inline void TestRequiredOneof::unsafe_arena_set_allocated_foo_string(::std::string* foo_string) {
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- if (!has_foo_string()) {
- foo_.foo_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- clear_foo();
- if (foo_string) {
- set_has_foo_string();
- foo_.foo_string_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), foo_string, GetArenaNoVirtual());
- }
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestRequiredOneof.foo_string)
- }
- // optional .protobuf_unittest.TestRequiredOneof.NestedMessage foo_message = 3;
- inline bool TestRequiredOneof::has_foo_message() const {
- return foo_case() == kFooMessage;
- }
- inline void TestRequiredOneof::set_has_foo_message() {
- _oneof_case_[0] = kFooMessage;
- }
- inline void TestRequiredOneof::clear_foo_message() {
- if (has_foo_message()) {
- if (GetArenaNoVirtual() == NULL) {
- delete foo_.foo_message_;
- }
- clear_has_foo();
- }
- }
- inline const ::protobuf_unittest::TestRequiredOneof_NestedMessage& TestRequiredOneof::_internal_foo_message() const {
- return *foo_.foo_message_;
- }
- inline ::protobuf_unittest::TestRequiredOneof_NestedMessage* TestRequiredOneof::release_foo_message() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestRequiredOneof.foo_message)
- if (has_foo_message()) {
- clear_has_foo();
- ::protobuf_unittest::TestRequiredOneof_NestedMessage* temp = foo_.foo_message_;
- if (GetArenaNoVirtual() != NULL) {
- temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
- }
- foo_.foo_message_ = NULL;
- return temp;
- } else {
- return NULL;
- }
- }
- inline const ::protobuf_unittest::TestRequiredOneof_NestedMessage& TestRequiredOneof::foo_message() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequiredOneof.foo_message)
- return has_foo_message()
- ? *foo_.foo_message_
- : *reinterpret_cast< ::protobuf_unittest::TestRequiredOneof_NestedMessage*>(&::protobuf_unittest::_TestRequiredOneof_NestedMessage_default_instance_);
- }
- inline ::protobuf_unittest::TestRequiredOneof_NestedMessage* TestRequiredOneof::unsafe_arena_release_foo_message() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestRequiredOneof.foo_message)
- if (has_foo_message()) {
- clear_has_foo();
- ::protobuf_unittest::TestRequiredOneof_NestedMessage* temp = foo_.foo_message_;
- foo_.foo_message_ = NULL;
- return temp;
- } else {
- return NULL;
- }
- }
- inline void TestRequiredOneof::unsafe_arena_set_allocated_foo_message(::protobuf_unittest::TestRequiredOneof_NestedMessage* foo_message) {
- clear_foo();
- if (foo_message) {
- set_has_foo_message();
- foo_.foo_message_ = foo_message;
- }
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestRequiredOneof.foo_message)
- }
- inline ::protobuf_unittest::TestRequiredOneof_NestedMessage* TestRequiredOneof::mutable_foo_message() {
- if (!has_foo_message()) {
- clear_foo();
- set_has_foo_message();
- foo_.foo_message_ = CreateMaybeMessage< ::protobuf_unittest::TestRequiredOneof_NestedMessage >(
- GetArenaNoVirtual());
- }
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestRequiredOneof.foo_message)
- return foo_.foo_message_;
- }
- inline bool TestRequiredOneof::has_foo() const {
- return foo_case() != FOO_NOT_SET;
- }
- inline void TestRequiredOneof::clear_has_foo() {
- _oneof_case_[0] = FOO_NOT_SET;
- }
- inline TestRequiredOneof::FooCase TestRequiredOneof::foo_case() const {
- return TestRequiredOneof::FooCase(_oneof_case_[0]);
- }
- // -------------------------------------------------------------------
- // TestPackedTypes
- // repeated int32 packed_int32 = 90 [packed = true];
- inline int TestPackedTypes::packed_int32_size() const {
- return packed_int32_.size();
- }
- inline void TestPackedTypes::clear_packed_int32() {
- packed_int32_.Clear();
- }
- inline ::google::protobuf::int32 TestPackedTypes::packed_int32(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestPackedTypes.packed_int32)
- return packed_int32_.Get(index);
- }
- inline void TestPackedTypes::set_packed_int32(int index, ::google::protobuf::int32 value) {
- packed_int32_.Set(index, value);
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestPackedTypes.packed_int32)
- }
- inline void TestPackedTypes::add_packed_int32(::google::protobuf::int32 value) {
- packed_int32_.Add(value);
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestPackedTypes.packed_int32)
- }
- inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
- TestPackedTypes::packed_int32() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestPackedTypes.packed_int32)
- return packed_int32_;
- }
- inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
- TestPackedTypes::mutable_packed_int32() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestPackedTypes.packed_int32)
- return &packed_int32_;
- }
- // repeated int64 packed_int64 = 91 [packed = true];
- inline int TestPackedTypes::packed_int64_size() const {
- return packed_int64_.size();
- }
- inline void TestPackedTypes::clear_packed_int64() {
- packed_int64_.Clear();
- }
- inline ::google::protobuf::int64 TestPackedTypes::packed_int64(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestPackedTypes.packed_int64)
- return packed_int64_.Get(index);
- }
- inline void TestPackedTypes::set_packed_int64(int index, ::google::protobuf::int64 value) {
- packed_int64_.Set(index, value);
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestPackedTypes.packed_int64)
- }
- inline void TestPackedTypes::add_packed_int64(::google::protobuf::int64 value) {
- packed_int64_.Add(value);
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestPackedTypes.packed_int64)
- }
- inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
- TestPackedTypes::packed_int64() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestPackedTypes.packed_int64)
- return packed_int64_;
- }
- inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
- TestPackedTypes::mutable_packed_int64() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestPackedTypes.packed_int64)
- return &packed_int64_;
- }
- // repeated uint32 packed_uint32 = 92 [packed = true];
- inline int TestPackedTypes::packed_uint32_size() const {
- return packed_uint32_.size();
- }
- inline void TestPackedTypes::clear_packed_uint32() {
- packed_uint32_.Clear();
- }
- inline ::google::protobuf::uint32 TestPackedTypes::packed_uint32(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestPackedTypes.packed_uint32)
- return packed_uint32_.Get(index);
- }
- inline void TestPackedTypes::set_packed_uint32(int index, ::google::protobuf::uint32 value) {
- packed_uint32_.Set(index, value);
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestPackedTypes.packed_uint32)
- }
- inline void TestPackedTypes::add_packed_uint32(::google::protobuf::uint32 value) {
- packed_uint32_.Add(value);
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestPackedTypes.packed_uint32)
- }
- inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
- TestPackedTypes::packed_uint32() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestPackedTypes.packed_uint32)
- return packed_uint32_;
- }
- inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
- TestPackedTypes::mutable_packed_uint32() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestPackedTypes.packed_uint32)
- return &packed_uint32_;
- }
- // repeated uint64 packed_uint64 = 93 [packed = true];
- inline int TestPackedTypes::packed_uint64_size() const {
- return packed_uint64_.size();
- }
- inline void TestPackedTypes::clear_packed_uint64() {
- packed_uint64_.Clear();
- }
- inline ::google::protobuf::uint64 TestPackedTypes::packed_uint64(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestPackedTypes.packed_uint64)
- return packed_uint64_.Get(index);
- }
- inline void TestPackedTypes::set_packed_uint64(int index, ::google::protobuf::uint64 value) {
- packed_uint64_.Set(index, value);
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestPackedTypes.packed_uint64)
- }
- inline void TestPackedTypes::add_packed_uint64(::google::protobuf::uint64 value) {
- packed_uint64_.Add(value);
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestPackedTypes.packed_uint64)
- }
- inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
- TestPackedTypes::packed_uint64() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestPackedTypes.packed_uint64)
- return packed_uint64_;
- }
- inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
- TestPackedTypes::mutable_packed_uint64() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestPackedTypes.packed_uint64)
- return &packed_uint64_;
- }
- // repeated sint32 packed_sint32 = 94 [packed = true];
- inline int TestPackedTypes::packed_sint32_size() const {
- return packed_sint32_.size();
- }
- inline void TestPackedTypes::clear_packed_sint32() {
- packed_sint32_.Clear();
- }
- inline ::google::protobuf::int32 TestPackedTypes::packed_sint32(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestPackedTypes.packed_sint32)
- return packed_sint32_.Get(index);
- }
- inline void TestPackedTypes::set_packed_sint32(int index, ::google::protobuf::int32 value) {
- packed_sint32_.Set(index, value);
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestPackedTypes.packed_sint32)
- }
- inline void TestPackedTypes::add_packed_sint32(::google::protobuf::int32 value) {
- packed_sint32_.Add(value);
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestPackedTypes.packed_sint32)
- }
- inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
- TestPackedTypes::packed_sint32() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestPackedTypes.packed_sint32)
- return packed_sint32_;
- }
- inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
- TestPackedTypes::mutable_packed_sint32() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestPackedTypes.packed_sint32)
- return &packed_sint32_;
- }
- // repeated sint64 packed_sint64 = 95 [packed = true];
- inline int TestPackedTypes::packed_sint64_size() const {
- return packed_sint64_.size();
- }
- inline void TestPackedTypes::clear_packed_sint64() {
- packed_sint64_.Clear();
- }
- inline ::google::protobuf::int64 TestPackedTypes::packed_sint64(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestPackedTypes.packed_sint64)
- return packed_sint64_.Get(index);
- }
- inline void TestPackedTypes::set_packed_sint64(int index, ::google::protobuf::int64 value) {
- packed_sint64_.Set(index, value);
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestPackedTypes.packed_sint64)
- }
- inline void TestPackedTypes::add_packed_sint64(::google::protobuf::int64 value) {
- packed_sint64_.Add(value);
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestPackedTypes.packed_sint64)
- }
- inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
- TestPackedTypes::packed_sint64() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestPackedTypes.packed_sint64)
- return packed_sint64_;
- }
- inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
- TestPackedTypes::mutable_packed_sint64() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestPackedTypes.packed_sint64)
- return &packed_sint64_;
- }
- // repeated fixed32 packed_fixed32 = 96 [packed = true];
- inline int TestPackedTypes::packed_fixed32_size() const {
- return packed_fixed32_.size();
- }
- inline void TestPackedTypes::clear_packed_fixed32() {
- packed_fixed32_.Clear();
- }
- inline ::google::protobuf::uint32 TestPackedTypes::packed_fixed32(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestPackedTypes.packed_fixed32)
- return packed_fixed32_.Get(index);
- }
- inline void TestPackedTypes::set_packed_fixed32(int index, ::google::protobuf::uint32 value) {
- packed_fixed32_.Set(index, value);
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestPackedTypes.packed_fixed32)
- }
- inline void TestPackedTypes::add_packed_fixed32(::google::protobuf::uint32 value) {
- packed_fixed32_.Add(value);
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestPackedTypes.packed_fixed32)
- }
- inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
- TestPackedTypes::packed_fixed32() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestPackedTypes.packed_fixed32)
- return packed_fixed32_;
- }
- inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
- TestPackedTypes::mutable_packed_fixed32() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestPackedTypes.packed_fixed32)
- return &packed_fixed32_;
- }
- // repeated fixed64 packed_fixed64 = 97 [packed = true];
- inline int TestPackedTypes::packed_fixed64_size() const {
- return packed_fixed64_.size();
- }
- inline void TestPackedTypes::clear_packed_fixed64() {
- packed_fixed64_.Clear();
- }
- inline ::google::protobuf::uint64 TestPackedTypes::packed_fixed64(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestPackedTypes.packed_fixed64)
- return packed_fixed64_.Get(index);
- }
- inline void TestPackedTypes::set_packed_fixed64(int index, ::google::protobuf::uint64 value) {
- packed_fixed64_.Set(index, value);
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestPackedTypes.packed_fixed64)
- }
- inline void TestPackedTypes::add_packed_fixed64(::google::protobuf::uint64 value) {
- packed_fixed64_.Add(value);
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestPackedTypes.packed_fixed64)
- }
- inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
- TestPackedTypes::packed_fixed64() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestPackedTypes.packed_fixed64)
- return packed_fixed64_;
- }
- inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
- TestPackedTypes::mutable_packed_fixed64() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestPackedTypes.packed_fixed64)
- return &packed_fixed64_;
- }
- // repeated sfixed32 packed_sfixed32 = 98 [packed = true];
- inline int TestPackedTypes::packed_sfixed32_size() const {
- return packed_sfixed32_.size();
- }
- inline void TestPackedTypes::clear_packed_sfixed32() {
- packed_sfixed32_.Clear();
- }
- inline ::google::protobuf::int32 TestPackedTypes::packed_sfixed32(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestPackedTypes.packed_sfixed32)
- return packed_sfixed32_.Get(index);
- }
- inline void TestPackedTypes::set_packed_sfixed32(int index, ::google::protobuf::int32 value) {
- packed_sfixed32_.Set(index, value);
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestPackedTypes.packed_sfixed32)
- }
- inline void TestPackedTypes::add_packed_sfixed32(::google::protobuf::int32 value) {
- packed_sfixed32_.Add(value);
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestPackedTypes.packed_sfixed32)
- }
- inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
- TestPackedTypes::packed_sfixed32() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestPackedTypes.packed_sfixed32)
- return packed_sfixed32_;
- }
- inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
- TestPackedTypes::mutable_packed_sfixed32() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestPackedTypes.packed_sfixed32)
- return &packed_sfixed32_;
- }
- // repeated sfixed64 packed_sfixed64 = 99 [packed = true];
- inline int TestPackedTypes::packed_sfixed64_size() const {
- return packed_sfixed64_.size();
- }
- inline void TestPackedTypes::clear_packed_sfixed64() {
- packed_sfixed64_.Clear();
- }
- inline ::google::protobuf::int64 TestPackedTypes::packed_sfixed64(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestPackedTypes.packed_sfixed64)
- return packed_sfixed64_.Get(index);
- }
- inline void TestPackedTypes::set_packed_sfixed64(int index, ::google::protobuf::int64 value) {
- packed_sfixed64_.Set(index, value);
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestPackedTypes.packed_sfixed64)
- }
- inline void TestPackedTypes::add_packed_sfixed64(::google::protobuf::int64 value) {
- packed_sfixed64_.Add(value);
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestPackedTypes.packed_sfixed64)
- }
- inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
- TestPackedTypes::packed_sfixed64() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestPackedTypes.packed_sfixed64)
- return packed_sfixed64_;
- }
- inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
- TestPackedTypes::mutable_packed_sfixed64() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestPackedTypes.packed_sfixed64)
- return &packed_sfixed64_;
- }
- // repeated float packed_float = 100 [packed = true];
- inline int TestPackedTypes::packed_float_size() const {
- return packed_float_.size();
- }
- inline void TestPackedTypes::clear_packed_float() {
- packed_float_.Clear();
- }
- inline float TestPackedTypes::packed_float(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestPackedTypes.packed_float)
- return packed_float_.Get(index);
- }
- inline void TestPackedTypes::set_packed_float(int index, float value) {
- packed_float_.Set(index, value);
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestPackedTypes.packed_float)
- }
- inline void TestPackedTypes::add_packed_float(float value) {
- packed_float_.Add(value);
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestPackedTypes.packed_float)
- }
- inline const ::google::protobuf::RepeatedField< float >&
- TestPackedTypes::packed_float() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestPackedTypes.packed_float)
- return packed_float_;
- }
- inline ::google::protobuf::RepeatedField< float >*
- TestPackedTypes::mutable_packed_float() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestPackedTypes.packed_float)
- return &packed_float_;
- }
- // repeated double packed_double = 101 [packed = true];
- inline int TestPackedTypes::packed_double_size() const {
- return packed_double_.size();
- }
- inline void TestPackedTypes::clear_packed_double() {
- packed_double_.Clear();
- }
- inline double TestPackedTypes::packed_double(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestPackedTypes.packed_double)
- return packed_double_.Get(index);
- }
- inline void TestPackedTypes::set_packed_double(int index, double value) {
- packed_double_.Set(index, value);
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestPackedTypes.packed_double)
- }
- inline void TestPackedTypes::add_packed_double(double value) {
- packed_double_.Add(value);
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestPackedTypes.packed_double)
- }
- inline const ::google::protobuf::RepeatedField< double >&
- TestPackedTypes::packed_double() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestPackedTypes.packed_double)
- return packed_double_;
- }
- inline ::google::protobuf::RepeatedField< double >*
- TestPackedTypes::mutable_packed_double() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestPackedTypes.packed_double)
- return &packed_double_;
- }
- // repeated bool packed_bool = 102 [packed = true];
- inline int TestPackedTypes::packed_bool_size() const {
- return packed_bool_.size();
- }
- inline void TestPackedTypes::clear_packed_bool() {
- packed_bool_.Clear();
- }
- inline bool TestPackedTypes::packed_bool(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestPackedTypes.packed_bool)
- return packed_bool_.Get(index);
- }
- inline void TestPackedTypes::set_packed_bool(int index, bool value) {
- packed_bool_.Set(index, value);
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestPackedTypes.packed_bool)
- }
- inline void TestPackedTypes::add_packed_bool(bool value) {
- packed_bool_.Add(value);
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestPackedTypes.packed_bool)
- }
- inline const ::google::protobuf::RepeatedField< bool >&
- TestPackedTypes::packed_bool() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestPackedTypes.packed_bool)
- return packed_bool_;
- }
- inline ::google::protobuf::RepeatedField< bool >*
- TestPackedTypes::mutable_packed_bool() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestPackedTypes.packed_bool)
- return &packed_bool_;
- }
- // repeated .protobuf_unittest.ForeignEnum packed_enum = 103 [packed = true];
- inline int TestPackedTypes::packed_enum_size() const {
- return packed_enum_.size();
- }
- inline void TestPackedTypes::clear_packed_enum() {
- packed_enum_.Clear();
- }
- inline ::protobuf_unittest::ForeignEnum TestPackedTypes::packed_enum(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestPackedTypes.packed_enum)
- return static_cast< ::protobuf_unittest::ForeignEnum >(packed_enum_.Get(index));
- }
- inline void TestPackedTypes::set_packed_enum(int index, ::protobuf_unittest::ForeignEnum value) {
- assert(::protobuf_unittest::ForeignEnum_IsValid(value));
- packed_enum_.Set(index, value);
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestPackedTypes.packed_enum)
- }
- inline void TestPackedTypes::add_packed_enum(::protobuf_unittest::ForeignEnum value) {
- assert(::protobuf_unittest::ForeignEnum_IsValid(value));
- packed_enum_.Add(value);
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestPackedTypes.packed_enum)
- }
- inline const ::google::protobuf::RepeatedField<int>&
- TestPackedTypes::packed_enum() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestPackedTypes.packed_enum)
- return packed_enum_;
- }
- inline ::google::protobuf::RepeatedField<int>*
- TestPackedTypes::mutable_packed_enum() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestPackedTypes.packed_enum)
- return &packed_enum_;
- }
- // -------------------------------------------------------------------
- // TestUnpackedTypes
- // repeated int32 unpacked_int32 = 90 [packed = false];
- inline int TestUnpackedTypes::unpacked_int32_size() const {
- return unpacked_int32_.size();
- }
- inline void TestUnpackedTypes::clear_unpacked_int32() {
- unpacked_int32_.Clear();
- }
- inline ::google::protobuf::int32 TestUnpackedTypes::unpacked_int32(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestUnpackedTypes.unpacked_int32)
- return unpacked_int32_.Get(index);
- }
- inline void TestUnpackedTypes::set_unpacked_int32(int index, ::google::protobuf::int32 value) {
- unpacked_int32_.Set(index, value);
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestUnpackedTypes.unpacked_int32)
- }
- inline void TestUnpackedTypes::add_unpacked_int32(::google::protobuf::int32 value) {
- unpacked_int32_.Add(value);
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestUnpackedTypes.unpacked_int32)
- }
- inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
- TestUnpackedTypes::unpacked_int32() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestUnpackedTypes.unpacked_int32)
- return unpacked_int32_;
- }
- inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
- TestUnpackedTypes::mutable_unpacked_int32() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestUnpackedTypes.unpacked_int32)
- return &unpacked_int32_;
- }
- // repeated int64 unpacked_int64 = 91 [packed = false];
- inline int TestUnpackedTypes::unpacked_int64_size() const {
- return unpacked_int64_.size();
- }
- inline void TestUnpackedTypes::clear_unpacked_int64() {
- unpacked_int64_.Clear();
- }
- inline ::google::protobuf::int64 TestUnpackedTypes::unpacked_int64(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestUnpackedTypes.unpacked_int64)
- return unpacked_int64_.Get(index);
- }
- inline void TestUnpackedTypes::set_unpacked_int64(int index, ::google::protobuf::int64 value) {
- unpacked_int64_.Set(index, value);
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestUnpackedTypes.unpacked_int64)
- }
- inline void TestUnpackedTypes::add_unpacked_int64(::google::protobuf::int64 value) {
- unpacked_int64_.Add(value);
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestUnpackedTypes.unpacked_int64)
- }
- inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
- TestUnpackedTypes::unpacked_int64() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestUnpackedTypes.unpacked_int64)
- return unpacked_int64_;
- }
- inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
- TestUnpackedTypes::mutable_unpacked_int64() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestUnpackedTypes.unpacked_int64)
- return &unpacked_int64_;
- }
- // repeated uint32 unpacked_uint32 = 92 [packed = false];
- inline int TestUnpackedTypes::unpacked_uint32_size() const {
- return unpacked_uint32_.size();
- }
- inline void TestUnpackedTypes::clear_unpacked_uint32() {
- unpacked_uint32_.Clear();
- }
- inline ::google::protobuf::uint32 TestUnpackedTypes::unpacked_uint32(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestUnpackedTypes.unpacked_uint32)
- return unpacked_uint32_.Get(index);
- }
- inline void TestUnpackedTypes::set_unpacked_uint32(int index, ::google::protobuf::uint32 value) {
- unpacked_uint32_.Set(index, value);
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestUnpackedTypes.unpacked_uint32)
- }
- inline void TestUnpackedTypes::add_unpacked_uint32(::google::protobuf::uint32 value) {
- unpacked_uint32_.Add(value);
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestUnpackedTypes.unpacked_uint32)
- }
- inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
- TestUnpackedTypes::unpacked_uint32() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestUnpackedTypes.unpacked_uint32)
- return unpacked_uint32_;
- }
- inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
- TestUnpackedTypes::mutable_unpacked_uint32() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestUnpackedTypes.unpacked_uint32)
- return &unpacked_uint32_;
- }
- // repeated uint64 unpacked_uint64 = 93 [packed = false];
- inline int TestUnpackedTypes::unpacked_uint64_size() const {
- return unpacked_uint64_.size();
- }
- inline void TestUnpackedTypes::clear_unpacked_uint64() {
- unpacked_uint64_.Clear();
- }
- inline ::google::protobuf::uint64 TestUnpackedTypes::unpacked_uint64(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestUnpackedTypes.unpacked_uint64)
- return unpacked_uint64_.Get(index);
- }
- inline void TestUnpackedTypes::set_unpacked_uint64(int index, ::google::protobuf::uint64 value) {
- unpacked_uint64_.Set(index, value);
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestUnpackedTypes.unpacked_uint64)
- }
- inline void TestUnpackedTypes::add_unpacked_uint64(::google::protobuf::uint64 value) {
- unpacked_uint64_.Add(value);
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestUnpackedTypes.unpacked_uint64)
- }
- inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
- TestUnpackedTypes::unpacked_uint64() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestUnpackedTypes.unpacked_uint64)
- return unpacked_uint64_;
- }
- inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
- TestUnpackedTypes::mutable_unpacked_uint64() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestUnpackedTypes.unpacked_uint64)
- return &unpacked_uint64_;
- }
- // repeated sint32 unpacked_sint32 = 94 [packed = false];
- inline int TestUnpackedTypes::unpacked_sint32_size() const {
- return unpacked_sint32_.size();
- }
- inline void TestUnpackedTypes::clear_unpacked_sint32() {
- unpacked_sint32_.Clear();
- }
- inline ::google::protobuf::int32 TestUnpackedTypes::unpacked_sint32(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestUnpackedTypes.unpacked_sint32)
- return unpacked_sint32_.Get(index);
- }
- inline void TestUnpackedTypes::set_unpacked_sint32(int index, ::google::protobuf::int32 value) {
- unpacked_sint32_.Set(index, value);
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestUnpackedTypes.unpacked_sint32)
- }
- inline void TestUnpackedTypes::add_unpacked_sint32(::google::protobuf::int32 value) {
- unpacked_sint32_.Add(value);
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestUnpackedTypes.unpacked_sint32)
- }
- inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
- TestUnpackedTypes::unpacked_sint32() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestUnpackedTypes.unpacked_sint32)
- return unpacked_sint32_;
- }
- inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
- TestUnpackedTypes::mutable_unpacked_sint32() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestUnpackedTypes.unpacked_sint32)
- return &unpacked_sint32_;
- }
- // repeated sint64 unpacked_sint64 = 95 [packed = false];
- inline int TestUnpackedTypes::unpacked_sint64_size() const {
- return unpacked_sint64_.size();
- }
- inline void TestUnpackedTypes::clear_unpacked_sint64() {
- unpacked_sint64_.Clear();
- }
- inline ::google::protobuf::int64 TestUnpackedTypes::unpacked_sint64(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestUnpackedTypes.unpacked_sint64)
- return unpacked_sint64_.Get(index);
- }
- inline void TestUnpackedTypes::set_unpacked_sint64(int index, ::google::protobuf::int64 value) {
- unpacked_sint64_.Set(index, value);
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestUnpackedTypes.unpacked_sint64)
- }
- inline void TestUnpackedTypes::add_unpacked_sint64(::google::protobuf::int64 value) {
- unpacked_sint64_.Add(value);
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestUnpackedTypes.unpacked_sint64)
- }
- inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
- TestUnpackedTypes::unpacked_sint64() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestUnpackedTypes.unpacked_sint64)
- return unpacked_sint64_;
- }
- inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
- TestUnpackedTypes::mutable_unpacked_sint64() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestUnpackedTypes.unpacked_sint64)
- return &unpacked_sint64_;
- }
- // repeated fixed32 unpacked_fixed32 = 96 [packed = false];
- inline int TestUnpackedTypes::unpacked_fixed32_size() const {
- return unpacked_fixed32_.size();
- }
- inline void TestUnpackedTypes::clear_unpacked_fixed32() {
- unpacked_fixed32_.Clear();
- }
- inline ::google::protobuf::uint32 TestUnpackedTypes::unpacked_fixed32(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestUnpackedTypes.unpacked_fixed32)
- return unpacked_fixed32_.Get(index);
- }
- inline void TestUnpackedTypes::set_unpacked_fixed32(int index, ::google::protobuf::uint32 value) {
- unpacked_fixed32_.Set(index, value);
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestUnpackedTypes.unpacked_fixed32)
- }
- inline void TestUnpackedTypes::add_unpacked_fixed32(::google::protobuf::uint32 value) {
- unpacked_fixed32_.Add(value);
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestUnpackedTypes.unpacked_fixed32)
- }
- inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
- TestUnpackedTypes::unpacked_fixed32() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestUnpackedTypes.unpacked_fixed32)
- return unpacked_fixed32_;
- }
- inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
- TestUnpackedTypes::mutable_unpacked_fixed32() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestUnpackedTypes.unpacked_fixed32)
- return &unpacked_fixed32_;
- }
- // repeated fixed64 unpacked_fixed64 = 97 [packed = false];
- inline int TestUnpackedTypes::unpacked_fixed64_size() const {
- return unpacked_fixed64_.size();
- }
- inline void TestUnpackedTypes::clear_unpacked_fixed64() {
- unpacked_fixed64_.Clear();
- }
- inline ::google::protobuf::uint64 TestUnpackedTypes::unpacked_fixed64(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestUnpackedTypes.unpacked_fixed64)
- return unpacked_fixed64_.Get(index);
- }
- inline void TestUnpackedTypes::set_unpacked_fixed64(int index, ::google::protobuf::uint64 value) {
- unpacked_fixed64_.Set(index, value);
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestUnpackedTypes.unpacked_fixed64)
- }
- inline void TestUnpackedTypes::add_unpacked_fixed64(::google::protobuf::uint64 value) {
- unpacked_fixed64_.Add(value);
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestUnpackedTypes.unpacked_fixed64)
- }
- inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
- TestUnpackedTypes::unpacked_fixed64() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestUnpackedTypes.unpacked_fixed64)
- return unpacked_fixed64_;
- }
- inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
- TestUnpackedTypes::mutable_unpacked_fixed64() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestUnpackedTypes.unpacked_fixed64)
- return &unpacked_fixed64_;
- }
- // repeated sfixed32 unpacked_sfixed32 = 98 [packed = false];
- inline int TestUnpackedTypes::unpacked_sfixed32_size() const {
- return unpacked_sfixed32_.size();
- }
- inline void TestUnpackedTypes::clear_unpacked_sfixed32() {
- unpacked_sfixed32_.Clear();
- }
- inline ::google::protobuf::int32 TestUnpackedTypes::unpacked_sfixed32(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestUnpackedTypes.unpacked_sfixed32)
- return unpacked_sfixed32_.Get(index);
- }
- inline void TestUnpackedTypes::set_unpacked_sfixed32(int index, ::google::protobuf::int32 value) {
- unpacked_sfixed32_.Set(index, value);
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestUnpackedTypes.unpacked_sfixed32)
- }
- inline void TestUnpackedTypes::add_unpacked_sfixed32(::google::protobuf::int32 value) {
- unpacked_sfixed32_.Add(value);
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestUnpackedTypes.unpacked_sfixed32)
- }
- inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
- TestUnpackedTypes::unpacked_sfixed32() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestUnpackedTypes.unpacked_sfixed32)
- return unpacked_sfixed32_;
- }
- inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
- TestUnpackedTypes::mutable_unpacked_sfixed32() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestUnpackedTypes.unpacked_sfixed32)
- return &unpacked_sfixed32_;
- }
- // repeated sfixed64 unpacked_sfixed64 = 99 [packed = false];
- inline int TestUnpackedTypes::unpacked_sfixed64_size() const {
- return unpacked_sfixed64_.size();
- }
- inline void TestUnpackedTypes::clear_unpacked_sfixed64() {
- unpacked_sfixed64_.Clear();
- }
- inline ::google::protobuf::int64 TestUnpackedTypes::unpacked_sfixed64(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestUnpackedTypes.unpacked_sfixed64)
- return unpacked_sfixed64_.Get(index);
- }
- inline void TestUnpackedTypes::set_unpacked_sfixed64(int index, ::google::protobuf::int64 value) {
- unpacked_sfixed64_.Set(index, value);
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestUnpackedTypes.unpacked_sfixed64)
- }
- inline void TestUnpackedTypes::add_unpacked_sfixed64(::google::protobuf::int64 value) {
- unpacked_sfixed64_.Add(value);
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestUnpackedTypes.unpacked_sfixed64)
- }
- inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
- TestUnpackedTypes::unpacked_sfixed64() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestUnpackedTypes.unpacked_sfixed64)
- return unpacked_sfixed64_;
- }
- inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
- TestUnpackedTypes::mutable_unpacked_sfixed64() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestUnpackedTypes.unpacked_sfixed64)
- return &unpacked_sfixed64_;
- }
- // repeated float unpacked_float = 100 [packed = false];
- inline int TestUnpackedTypes::unpacked_float_size() const {
- return unpacked_float_.size();
- }
- inline void TestUnpackedTypes::clear_unpacked_float() {
- unpacked_float_.Clear();
- }
- inline float TestUnpackedTypes::unpacked_float(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestUnpackedTypes.unpacked_float)
- return unpacked_float_.Get(index);
- }
- inline void TestUnpackedTypes::set_unpacked_float(int index, float value) {
- unpacked_float_.Set(index, value);
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestUnpackedTypes.unpacked_float)
- }
- inline void TestUnpackedTypes::add_unpacked_float(float value) {
- unpacked_float_.Add(value);
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestUnpackedTypes.unpacked_float)
- }
- inline const ::google::protobuf::RepeatedField< float >&
- TestUnpackedTypes::unpacked_float() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestUnpackedTypes.unpacked_float)
- return unpacked_float_;
- }
- inline ::google::protobuf::RepeatedField< float >*
- TestUnpackedTypes::mutable_unpacked_float() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestUnpackedTypes.unpacked_float)
- return &unpacked_float_;
- }
- // repeated double unpacked_double = 101 [packed = false];
- inline int TestUnpackedTypes::unpacked_double_size() const {
- return unpacked_double_.size();
- }
- inline void TestUnpackedTypes::clear_unpacked_double() {
- unpacked_double_.Clear();
- }
- inline double TestUnpackedTypes::unpacked_double(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestUnpackedTypes.unpacked_double)
- return unpacked_double_.Get(index);
- }
- inline void TestUnpackedTypes::set_unpacked_double(int index, double value) {
- unpacked_double_.Set(index, value);
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestUnpackedTypes.unpacked_double)
- }
- inline void TestUnpackedTypes::add_unpacked_double(double value) {
- unpacked_double_.Add(value);
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestUnpackedTypes.unpacked_double)
- }
- inline const ::google::protobuf::RepeatedField< double >&
- TestUnpackedTypes::unpacked_double() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestUnpackedTypes.unpacked_double)
- return unpacked_double_;
- }
- inline ::google::protobuf::RepeatedField< double >*
- TestUnpackedTypes::mutable_unpacked_double() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestUnpackedTypes.unpacked_double)
- return &unpacked_double_;
- }
- // repeated bool unpacked_bool = 102 [packed = false];
- inline int TestUnpackedTypes::unpacked_bool_size() const {
- return unpacked_bool_.size();
- }
- inline void TestUnpackedTypes::clear_unpacked_bool() {
- unpacked_bool_.Clear();
- }
- inline bool TestUnpackedTypes::unpacked_bool(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestUnpackedTypes.unpacked_bool)
- return unpacked_bool_.Get(index);
- }
- inline void TestUnpackedTypes::set_unpacked_bool(int index, bool value) {
- unpacked_bool_.Set(index, value);
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestUnpackedTypes.unpacked_bool)
- }
- inline void TestUnpackedTypes::add_unpacked_bool(bool value) {
- unpacked_bool_.Add(value);
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestUnpackedTypes.unpacked_bool)
- }
- inline const ::google::protobuf::RepeatedField< bool >&
- TestUnpackedTypes::unpacked_bool() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestUnpackedTypes.unpacked_bool)
- return unpacked_bool_;
- }
- inline ::google::protobuf::RepeatedField< bool >*
- TestUnpackedTypes::mutable_unpacked_bool() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestUnpackedTypes.unpacked_bool)
- return &unpacked_bool_;
- }
- // repeated .protobuf_unittest.ForeignEnum unpacked_enum = 103 [packed = false];
- inline int TestUnpackedTypes::unpacked_enum_size() const {
- return unpacked_enum_.size();
- }
- inline void TestUnpackedTypes::clear_unpacked_enum() {
- unpacked_enum_.Clear();
- }
- inline ::protobuf_unittest::ForeignEnum TestUnpackedTypes::unpacked_enum(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestUnpackedTypes.unpacked_enum)
- return static_cast< ::protobuf_unittest::ForeignEnum >(unpacked_enum_.Get(index));
- }
- inline void TestUnpackedTypes::set_unpacked_enum(int index, ::protobuf_unittest::ForeignEnum value) {
- assert(::protobuf_unittest::ForeignEnum_IsValid(value));
- unpacked_enum_.Set(index, value);
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestUnpackedTypes.unpacked_enum)
- }
- inline void TestUnpackedTypes::add_unpacked_enum(::protobuf_unittest::ForeignEnum value) {
- assert(::protobuf_unittest::ForeignEnum_IsValid(value));
- unpacked_enum_.Add(value);
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestUnpackedTypes.unpacked_enum)
- }
- inline const ::google::protobuf::RepeatedField<int>&
- TestUnpackedTypes::unpacked_enum() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestUnpackedTypes.unpacked_enum)
- return unpacked_enum_;
- }
- inline ::google::protobuf::RepeatedField<int>*
- TestUnpackedTypes::mutable_unpacked_enum() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestUnpackedTypes.unpacked_enum)
- return &unpacked_enum_;
- }
- // -------------------------------------------------------------------
- // TestPackedExtensions
- // -------------------------------------------------------------------
- // TestUnpackedExtensions
- // -------------------------------------------------------------------
- // TestDynamicExtensions_DynamicMessageType
- // optional int32 dynamic_field = 2100;
- inline bool TestDynamicExtensions_DynamicMessageType::has_dynamic_field() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void TestDynamicExtensions_DynamicMessageType::set_has_dynamic_field() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void TestDynamicExtensions_DynamicMessageType::clear_has_dynamic_field() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void TestDynamicExtensions_DynamicMessageType::clear_dynamic_field() {
- dynamic_field_ = 0;
- clear_has_dynamic_field();
- }
- inline ::google::protobuf::int32 TestDynamicExtensions_DynamicMessageType::dynamic_field() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestDynamicExtensions.DynamicMessageType.dynamic_field)
- return dynamic_field_;
- }
- inline void TestDynamicExtensions_DynamicMessageType::set_dynamic_field(::google::protobuf::int32 value) {
- set_has_dynamic_field();
- dynamic_field_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestDynamicExtensions.DynamicMessageType.dynamic_field)
- }
- // -------------------------------------------------------------------
- // TestDynamicExtensions
- // optional fixed32 scalar_extension = 2000;
- inline bool TestDynamicExtensions::has_scalar_extension() const {
- return (_has_bits_[0] & 0x00000004u) != 0;
- }
- inline void TestDynamicExtensions::set_has_scalar_extension() {
- _has_bits_[0] |= 0x00000004u;
- }
- inline void TestDynamicExtensions::clear_has_scalar_extension() {
- _has_bits_[0] &= ~0x00000004u;
- }
- inline void TestDynamicExtensions::clear_scalar_extension() {
- scalar_extension_ = 0u;
- clear_has_scalar_extension();
- }
- inline ::google::protobuf::uint32 TestDynamicExtensions::scalar_extension() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestDynamicExtensions.scalar_extension)
- return scalar_extension_;
- }
- inline void TestDynamicExtensions::set_scalar_extension(::google::protobuf::uint32 value) {
- set_has_scalar_extension();
- scalar_extension_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestDynamicExtensions.scalar_extension)
- }
- // optional .protobuf_unittest.ForeignEnum enum_extension = 2001;
- inline bool TestDynamicExtensions::has_enum_extension() const {
- return (_has_bits_[0] & 0x00000008u) != 0;
- }
- inline void TestDynamicExtensions::set_has_enum_extension() {
- _has_bits_[0] |= 0x00000008u;
- }
- inline void TestDynamicExtensions::clear_has_enum_extension() {
- _has_bits_[0] &= ~0x00000008u;
- }
- inline void TestDynamicExtensions::clear_enum_extension() {
- enum_extension_ = 4;
- clear_has_enum_extension();
- }
- inline ::protobuf_unittest::ForeignEnum TestDynamicExtensions::enum_extension() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestDynamicExtensions.enum_extension)
- return static_cast< ::protobuf_unittest::ForeignEnum >(enum_extension_);
- }
- inline void TestDynamicExtensions::set_enum_extension(::protobuf_unittest::ForeignEnum value) {
- assert(::protobuf_unittest::ForeignEnum_IsValid(value));
- set_has_enum_extension();
- enum_extension_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestDynamicExtensions.enum_extension)
- }
- // optional .protobuf_unittest.TestDynamicExtensions.DynamicEnumType dynamic_enum_extension = 2002;
- inline bool TestDynamicExtensions::has_dynamic_enum_extension() const {
- return (_has_bits_[0] & 0x00000010u) != 0;
- }
- inline void TestDynamicExtensions::set_has_dynamic_enum_extension() {
- _has_bits_[0] |= 0x00000010u;
- }
- inline void TestDynamicExtensions::clear_has_dynamic_enum_extension() {
- _has_bits_[0] &= ~0x00000010u;
- }
- inline void TestDynamicExtensions::clear_dynamic_enum_extension() {
- dynamic_enum_extension_ = 2200;
- clear_has_dynamic_enum_extension();
- }
- inline ::protobuf_unittest::TestDynamicExtensions_DynamicEnumType TestDynamicExtensions::dynamic_enum_extension() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestDynamicExtensions.dynamic_enum_extension)
- return static_cast< ::protobuf_unittest::TestDynamicExtensions_DynamicEnumType >(dynamic_enum_extension_);
- }
- inline void TestDynamicExtensions::set_dynamic_enum_extension(::protobuf_unittest::TestDynamicExtensions_DynamicEnumType value) {
- assert(::protobuf_unittest::TestDynamicExtensions_DynamicEnumType_IsValid(value));
- set_has_dynamic_enum_extension();
- dynamic_enum_extension_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestDynamicExtensions.dynamic_enum_extension)
- }
- // optional .protobuf_unittest.ForeignMessage message_extension = 2003;
- inline bool TestDynamicExtensions::has_message_extension() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void TestDynamicExtensions::set_has_message_extension() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void TestDynamicExtensions::clear_has_message_extension() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void TestDynamicExtensions::clear_message_extension() {
- if (message_extension_ != NULL) message_extension_->Clear();
- clear_has_message_extension();
- }
- inline const ::protobuf_unittest::ForeignMessage& TestDynamicExtensions::_internal_message_extension() const {
- return *message_extension_;
- }
- inline const ::protobuf_unittest::ForeignMessage& TestDynamicExtensions::message_extension() const {
- const ::protobuf_unittest::ForeignMessage* p = message_extension_;
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestDynamicExtensions.message_extension)
- return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::ForeignMessage*>(
- &::protobuf_unittest::_ForeignMessage_default_instance_);
- }
- inline ::protobuf_unittest::ForeignMessage* TestDynamicExtensions::release_message_extension() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestDynamicExtensions.message_extension)
- clear_has_message_extension();
- ::protobuf_unittest::ForeignMessage* temp = message_extension_;
- if (GetArenaNoVirtual() != NULL) {
- temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
- }
- message_extension_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::ForeignMessage* TestDynamicExtensions::unsafe_arena_release_message_extension() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestDynamicExtensions.message_extension)
- clear_has_message_extension();
- ::protobuf_unittest::ForeignMessage* temp = message_extension_;
- message_extension_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::ForeignMessage* TestDynamicExtensions::mutable_message_extension() {
- set_has_message_extension();
- if (message_extension_ == NULL) {
- auto* p = CreateMaybeMessage<::protobuf_unittest::ForeignMessage>(GetArenaNoVirtual());
- message_extension_ = p;
- }
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestDynamicExtensions.message_extension)
- return message_extension_;
- }
- inline void TestDynamicExtensions::set_allocated_message_extension(::protobuf_unittest::ForeignMessage* message_extension) {
- ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
- if (message_arena == NULL) {
- delete message_extension_;
- }
- if (message_extension) {
- ::google::protobuf::Arena* submessage_arena =
- ::google::protobuf::Arena::GetArena(message_extension);
- if (message_arena != submessage_arena) {
- message_extension = ::google::protobuf::internal::GetOwnedMessage(
- message_arena, message_extension, submessage_arena);
- }
- set_has_message_extension();
- } else {
- clear_has_message_extension();
- }
- message_extension_ = message_extension;
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestDynamicExtensions.message_extension)
- }
- // optional .protobuf_unittest.TestDynamicExtensions.DynamicMessageType dynamic_message_extension = 2004;
- inline bool TestDynamicExtensions::has_dynamic_message_extension() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
- }
- inline void TestDynamicExtensions::set_has_dynamic_message_extension() {
- _has_bits_[0] |= 0x00000002u;
- }
- inline void TestDynamicExtensions::clear_has_dynamic_message_extension() {
- _has_bits_[0] &= ~0x00000002u;
- }
- inline void TestDynamicExtensions::clear_dynamic_message_extension() {
- if (dynamic_message_extension_ != NULL) dynamic_message_extension_->Clear();
- clear_has_dynamic_message_extension();
- }
- inline const ::protobuf_unittest::TestDynamicExtensions_DynamicMessageType& TestDynamicExtensions::_internal_dynamic_message_extension() const {
- return *dynamic_message_extension_;
- }
- inline const ::protobuf_unittest::TestDynamicExtensions_DynamicMessageType& TestDynamicExtensions::dynamic_message_extension() const {
- const ::protobuf_unittest::TestDynamicExtensions_DynamicMessageType* p = dynamic_message_extension_;
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestDynamicExtensions.dynamic_message_extension)
- return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestDynamicExtensions_DynamicMessageType*>(
- &::protobuf_unittest::_TestDynamicExtensions_DynamicMessageType_default_instance_);
- }
- inline ::protobuf_unittest::TestDynamicExtensions_DynamicMessageType* TestDynamicExtensions::release_dynamic_message_extension() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestDynamicExtensions.dynamic_message_extension)
- clear_has_dynamic_message_extension();
- ::protobuf_unittest::TestDynamicExtensions_DynamicMessageType* temp = dynamic_message_extension_;
- if (GetArenaNoVirtual() != NULL) {
- temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
- }
- dynamic_message_extension_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestDynamicExtensions_DynamicMessageType* TestDynamicExtensions::unsafe_arena_release_dynamic_message_extension() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestDynamicExtensions.dynamic_message_extension)
- clear_has_dynamic_message_extension();
- ::protobuf_unittest::TestDynamicExtensions_DynamicMessageType* temp = dynamic_message_extension_;
- dynamic_message_extension_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestDynamicExtensions_DynamicMessageType* TestDynamicExtensions::mutable_dynamic_message_extension() {
- set_has_dynamic_message_extension();
- if (dynamic_message_extension_ == NULL) {
- auto* p = CreateMaybeMessage<::protobuf_unittest::TestDynamicExtensions_DynamicMessageType>(GetArenaNoVirtual());
- dynamic_message_extension_ = p;
- }
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestDynamicExtensions.dynamic_message_extension)
- return dynamic_message_extension_;
- }
- inline void TestDynamicExtensions::set_allocated_dynamic_message_extension(::protobuf_unittest::TestDynamicExtensions_DynamicMessageType* dynamic_message_extension) {
- ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
- if (message_arena == NULL) {
- delete dynamic_message_extension_;
- }
- if (dynamic_message_extension) {
- ::google::protobuf::Arena* submessage_arena =
- ::google::protobuf::Arena::GetArena(dynamic_message_extension);
- if (message_arena != submessage_arena) {
- dynamic_message_extension = ::google::protobuf::internal::GetOwnedMessage(
- message_arena, dynamic_message_extension, submessage_arena);
- }
- set_has_dynamic_message_extension();
- } else {
- clear_has_dynamic_message_extension();
- }
- dynamic_message_extension_ = dynamic_message_extension;
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestDynamicExtensions.dynamic_message_extension)
- }
- // repeated string repeated_extension = 2005;
- inline int TestDynamicExtensions::repeated_extension_size() const {
- return repeated_extension_.size();
- }
- inline void TestDynamicExtensions::clear_repeated_extension() {
- repeated_extension_.Clear();
- }
- inline const ::std::string& TestDynamicExtensions::repeated_extension(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestDynamicExtensions.repeated_extension)
- return repeated_extension_.Get(index);
- }
- inline ::std::string* TestDynamicExtensions::mutable_repeated_extension(int index) {
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestDynamicExtensions.repeated_extension)
- return repeated_extension_.Mutable(index);
- }
- inline void TestDynamicExtensions::set_repeated_extension(int index, const ::std::string& value) {
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestDynamicExtensions.repeated_extension)
- repeated_extension_.Mutable(index)->assign(value);
- }
- #if LANG_CXX11
- inline void TestDynamicExtensions::set_repeated_extension(int index, ::std::string&& value) {
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestDynamicExtensions.repeated_extension)
- repeated_extension_.Mutable(index)->assign(std::move(value));
- }
- #endif
- inline void TestDynamicExtensions::set_repeated_extension(int index, const char* value) {
- GOOGLE_DCHECK(value != NULL);
- repeated_extension_.Mutable(index)->assign(value);
- // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestDynamicExtensions.repeated_extension)
- }
- inline void TestDynamicExtensions::set_repeated_extension(int index, const char* value, size_t size) {
- repeated_extension_.Mutable(index)->assign(
- reinterpret_cast<const char*>(value), size);
- // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestDynamicExtensions.repeated_extension)
- }
- inline ::std::string* TestDynamicExtensions::add_repeated_extension() {
- // @@protoc_insertion_point(field_add_mutable:protobuf_unittest.TestDynamicExtensions.repeated_extension)
- return repeated_extension_.Add();
- }
- inline void TestDynamicExtensions::add_repeated_extension(const ::std::string& value) {
- repeated_extension_.Add()->assign(value);
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestDynamicExtensions.repeated_extension)
- }
- #if LANG_CXX11
- inline void TestDynamicExtensions::add_repeated_extension(::std::string&& value) {
- repeated_extension_.Add(std::move(value));
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestDynamicExtensions.repeated_extension)
- }
- #endif
- inline void TestDynamicExtensions::add_repeated_extension(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- repeated_extension_.Add()->assign(value);
- // @@protoc_insertion_point(field_add_char:protobuf_unittest.TestDynamicExtensions.repeated_extension)
- }
- inline void TestDynamicExtensions::add_repeated_extension(const char* value, size_t size) {
- repeated_extension_.Add()->assign(reinterpret_cast<const char*>(value), size);
- // @@protoc_insertion_point(field_add_pointer:protobuf_unittest.TestDynamicExtensions.repeated_extension)
- }
- inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
- TestDynamicExtensions::repeated_extension() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestDynamicExtensions.repeated_extension)
- return repeated_extension_;
- }
- inline ::google::protobuf::RepeatedPtrField< ::std::string>*
- TestDynamicExtensions::mutable_repeated_extension() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestDynamicExtensions.repeated_extension)
- return &repeated_extension_;
- }
- // repeated sint32 packed_extension = 2006 [packed = true];
- inline int TestDynamicExtensions::packed_extension_size() const {
- return packed_extension_.size();
- }
- inline void TestDynamicExtensions::clear_packed_extension() {
- packed_extension_.Clear();
- }
- inline ::google::protobuf::int32 TestDynamicExtensions::packed_extension(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestDynamicExtensions.packed_extension)
- return packed_extension_.Get(index);
- }
- inline void TestDynamicExtensions::set_packed_extension(int index, ::google::protobuf::int32 value) {
- packed_extension_.Set(index, value);
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestDynamicExtensions.packed_extension)
- }
- inline void TestDynamicExtensions::add_packed_extension(::google::protobuf::int32 value) {
- packed_extension_.Add(value);
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestDynamicExtensions.packed_extension)
- }
- inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
- TestDynamicExtensions::packed_extension() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestDynamicExtensions.packed_extension)
- return packed_extension_;
- }
- inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
- TestDynamicExtensions::mutable_packed_extension() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestDynamicExtensions.packed_extension)
- return &packed_extension_;
- }
- // -------------------------------------------------------------------
- // TestRepeatedScalarDifferentTagSizes
- // repeated fixed32 repeated_fixed32 = 12;
- inline int TestRepeatedScalarDifferentTagSizes::repeated_fixed32_size() const {
- return repeated_fixed32_.size();
- }
- inline void TestRepeatedScalarDifferentTagSizes::clear_repeated_fixed32() {
- repeated_fixed32_.Clear();
- }
- inline ::google::protobuf::uint32 TestRepeatedScalarDifferentTagSizes::repeated_fixed32(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestRepeatedScalarDifferentTagSizes.repeated_fixed32)
- return repeated_fixed32_.Get(index);
- }
- inline void TestRepeatedScalarDifferentTagSizes::set_repeated_fixed32(int index, ::google::protobuf::uint32 value) {
- repeated_fixed32_.Set(index, value);
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestRepeatedScalarDifferentTagSizes.repeated_fixed32)
- }
- inline void TestRepeatedScalarDifferentTagSizes::add_repeated_fixed32(::google::protobuf::uint32 value) {
- repeated_fixed32_.Add(value);
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestRepeatedScalarDifferentTagSizes.repeated_fixed32)
- }
- inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
- TestRepeatedScalarDifferentTagSizes::repeated_fixed32() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestRepeatedScalarDifferentTagSizes.repeated_fixed32)
- return repeated_fixed32_;
- }
- inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
- TestRepeatedScalarDifferentTagSizes::mutable_repeated_fixed32() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestRepeatedScalarDifferentTagSizes.repeated_fixed32)
- return &repeated_fixed32_;
- }
- // repeated int32 repeated_int32 = 13;
- inline int TestRepeatedScalarDifferentTagSizes::repeated_int32_size() const {
- return repeated_int32_.size();
- }
- inline void TestRepeatedScalarDifferentTagSizes::clear_repeated_int32() {
- repeated_int32_.Clear();
- }
- inline ::google::protobuf::int32 TestRepeatedScalarDifferentTagSizes::repeated_int32(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestRepeatedScalarDifferentTagSizes.repeated_int32)
- return repeated_int32_.Get(index);
- }
- inline void TestRepeatedScalarDifferentTagSizes::set_repeated_int32(int index, ::google::protobuf::int32 value) {
- repeated_int32_.Set(index, value);
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestRepeatedScalarDifferentTagSizes.repeated_int32)
- }
- inline void TestRepeatedScalarDifferentTagSizes::add_repeated_int32(::google::protobuf::int32 value) {
- repeated_int32_.Add(value);
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestRepeatedScalarDifferentTagSizes.repeated_int32)
- }
- inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
- TestRepeatedScalarDifferentTagSizes::repeated_int32() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestRepeatedScalarDifferentTagSizes.repeated_int32)
- return repeated_int32_;
- }
- inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
- TestRepeatedScalarDifferentTagSizes::mutable_repeated_int32() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestRepeatedScalarDifferentTagSizes.repeated_int32)
- return &repeated_int32_;
- }
- // repeated fixed64 repeated_fixed64 = 2046;
- inline int TestRepeatedScalarDifferentTagSizes::repeated_fixed64_size() const {
- return repeated_fixed64_.size();
- }
- inline void TestRepeatedScalarDifferentTagSizes::clear_repeated_fixed64() {
- repeated_fixed64_.Clear();
- }
- inline ::google::protobuf::uint64 TestRepeatedScalarDifferentTagSizes::repeated_fixed64(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestRepeatedScalarDifferentTagSizes.repeated_fixed64)
- return repeated_fixed64_.Get(index);
- }
- inline void TestRepeatedScalarDifferentTagSizes::set_repeated_fixed64(int index, ::google::protobuf::uint64 value) {
- repeated_fixed64_.Set(index, value);
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestRepeatedScalarDifferentTagSizes.repeated_fixed64)
- }
- inline void TestRepeatedScalarDifferentTagSizes::add_repeated_fixed64(::google::protobuf::uint64 value) {
- repeated_fixed64_.Add(value);
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestRepeatedScalarDifferentTagSizes.repeated_fixed64)
- }
- inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
- TestRepeatedScalarDifferentTagSizes::repeated_fixed64() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestRepeatedScalarDifferentTagSizes.repeated_fixed64)
- return repeated_fixed64_;
- }
- inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
- TestRepeatedScalarDifferentTagSizes::mutable_repeated_fixed64() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestRepeatedScalarDifferentTagSizes.repeated_fixed64)
- return &repeated_fixed64_;
- }
- // repeated int64 repeated_int64 = 2047;
- inline int TestRepeatedScalarDifferentTagSizes::repeated_int64_size() const {
- return repeated_int64_.size();
- }
- inline void TestRepeatedScalarDifferentTagSizes::clear_repeated_int64() {
- repeated_int64_.Clear();
- }
- inline ::google::protobuf::int64 TestRepeatedScalarDifferentTagSizes::repeated_int64(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestRepeatedScalarDifferentTagSizes.repeated_int64)
- return repeated_int64_.Get(index);
- }
- inline void TestRepeatedScalarDifferentTagSizes::set_repeated_int64(int index, ::google::protobuf::int64 value) {
- repeated_int64_.Set(index, value);
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestRepeatedScalarDifferentTagSizes.repeated_int64)
- }
- inline void TestRepeatedScalarDifferentTagSizes::add_repeated_int64(::google::protobuf::int64 value) {
- repeated_int64_.Add(value);
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestRepeatedScalarDifferentTagSizes.repeated_int64)
- }
- inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
- TestRepeatedScalarDifferentTagSizes::repeated_int64() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestRepeatedScalarDifferentTagSizes.repeated_int64)
- return repeated_int64_;
- }
- inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
- TestRepeatedScalarDifferentTagSizes::mutable_repeated_int64() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestRepeatedScalarDifferentTagSizes.repeated_int64)
- return &repeated_int64_;
- }
- // repeated float repeated_float = 262142;
- inline int TestRepeatedScalarDifferentTagSizes::repeated_float_size() const {
- return repeated_float_.size();
- }
- inline void TestRepeatedScalarDifferentTagSizes::clear_repeated_float() {
- repeated_float_.Clear();
- }
- inline float TestRepeatedScalarDifferentTagSizes::repeated_float(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestRepeatedScalarDifferentTagSizes.repeated_float)
- return repeated_float_.Get(index);
- }
- inline void TestRepeatedScalarDifferentTagSizes::set_repeated_float(int index, float value) {
- repeated_float_.Set(index, value);
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestRepeatedScalarDifferentTagSizes.repeated_float)
- }
- inline void TestRepeatedScalarDifferentTagSizes::add_repeated_float(float value) {
- repeated_float_.Add(value);
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestRepeatedScalarDifferentTagSizes.repeated_float)
- }
- inline const ::google::protobuf::RepeatedField< float >&
- TestRepeatedScalarDifferentTagSizes::repeated_float() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestRepeatedScalarDifferentTagSizes.repeated_float)
- return repeated_float_;
- }
- inline ::google::protobuf::RepeatedField< float >*
- TestRepeatedScalarDifferentTagSizes::mutable_repeated_float() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestRepeatedScalarDifferentTagSizes.repeated_float)
- return &repeated_float_;
- }
- // repeated uint64 repeated_uint64 = 262143;
- inline int TestRepeatedScalarDifferentTagSizes::repeated_uint64_size() const {
- return repeated_uint64_.size();
- }
- inline void TestRepeatedScalarDifferentTagSizes::clear_repeated_uint64() {
- repeated_uint64_.Clear();
- }
- inline ::google::protobuf::uint64 TestRepeatedScalarDifferentTagSizes::repeated_uint64(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestRepeatedScalarDifferentTagSizes.repeated_uint64)
- return repeated_uint64_.Get(index);
- }
- inline void TestRepeatedScalarDifferentTagSizes::set_repeated_uint64(int index, ::google::protobuf::uint64 value) {
- repeated_uint64_.Set(index, value);
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestRepeatedScalarDifferentTagSizes.repeated_uint64)
- }
- inline void TestRepeatedScalarDifferentTagSizes::add_repeated_uint64(::google::protobuf::uint64 value) {
- repeated_uint64_.Add(value);
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestRepeatedScalarDifferentTagSizes.repeated_uint64)
- }
- inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
- TestRepeatedScalarDifferentTagSizes::repeated_uint64() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestRepeatedScalarDifferentTagSizes.repeated_uint64)
- return repeated_uint64_;
- }
- inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
- TestRepeatedScalarDifferentTagSizes::mutable_repeated_uint64() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestRepeatedScalarDifferentTagSizes.repeated_uint64)
- return &repeated_uint64_;
- }
- // -------------------------------------------------------------------
- // TestParsingMerge_RepeatedFieldsGenerator_Group1
- // optional .protobuf_unittest.TestAllTypes field1 = 11;
- inline bool TestParsingMerge_RepeatedFieldsGenerator_Group1::has_field1() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void TestParsingMerge_RepeatedFieldsGenerator_Group1::set_has_field1() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void TestParsingMerge_RepeatedFieldsGenerator_Group1::clear_has_field1() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void TestParsingMerge_RepeatedFieldsGenerator_Group1::clear_field1() {
- if (field1_ != NULL) field1_->Clear();
- clear_has_field1();
- }
- inline const ::protobuf_unittest::TestAllTypes& TestParsingMerge_RepeatedFieldsGenerator_Group1::_internal_field1() const {
- return *field1_;
- }
- inline const ::protobuf_unittest::TestAllTypes& TestParsingMerge_RepeatedFieldsGenerator_Group1::field1() const {
- const ::protobuf_unittest::TestAllTypes* p = field1_;
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.Group1.field1)
- return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestAllTypes*>(
- &::protobuf_unittest::_TestAllTypes_default_instance_);
- }
- inline ::protobuf_unittest::TestAllTypes* TestParsingMerge_RepeatedFieldsGenerator_Group1::release_field1() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.Group1.field1)
- clear_has_field1();
- ::protobuf_unittest::TestAllTypes* temp = field1_;
- if (GetArenaNoVirtual() != NULL) {
- temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
- }
- field1_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestAllTypes* TestParsingMerge_RepeatedFieldsGenerator_Group1::unsafe_arena_release_field1() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.Group1.field1)
- clear_has_field1();
- ::protobuf_unittest::TestAllTypes* temp = field1_;
- field1_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestAllTypes* TestParsingMerge_RepeatedFieldsGenerator_Group1::mutable_field1() {
- set_has_field1();
- if (field1_ == NULL) {
- auto* p = CreateMaybeMessage<::protobuf_unittest::TestAllTypes>(GetArenaNoVirtual());
- field1_ = p;
- }
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.Group1.field1)
- return field1_;
- }
- inline void TestParsingMerge_RepeatedFieldsGenerator_Group1::set_allocated_field1(::protobuf_unittest::TestAllTypes* field1) {
- ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
- if (message_arena == NULL) {
- delete field1_;
- }
- if (field1) {
- ::google::protobuf::Arena* submessage_arena =
- ::google::protobuf::Arena::GetArena(field1);
- if (message_arena != submessage_arena) {
- field1 = ::google::protobuf::internal::GetOwnedMessage(
- message_arena, field1, submessage_arena);
- }
- set_has_field1();
- } else {
- clear_has_field1();
- }
- field1_ = field1;
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.Group1.field1)
- }
- // -------------------------------------------------------------------
- // TestParsingMerge_RepeatedFieldsGenerator_Group2
- // optional .protobuf_unittest.TestAllTypes field1 = 21;
- inline bool TestParsingMerge_RepeatedFieldsGenerator_Group2::has_field1() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void TestParsingMerge_RepeatedFieldsGenerator_Group2::set_has_field1() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void TestParsingMerge_RepeatedFieldsGenerator_Group2::clear_has_field1() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void TestParsingMerge_RepeatedFieldsGenerator_Group2::clear_field1() {
- if (field1_ != NULL) field1_->Clear();
- clear_has_field1();
- }
- inline const ::protobuf_unittest::TestAllTypes& TestParsingMerge_RepeatedFieldsGenerator_Group2::_internal_field1() const {
- return *field1_;
- }
- inline const ::protobuf_unittest::TestAllTypes& TestParsingMerge_RepeatedFieldsGenerator_Group2::field1() const {
- const ::protobuf_unittest::TestAllTypes* p = field1_;
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.Group2.field1)
- return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestAllTypes*>(
- &::protobuf_unittest::_TestAllTypes_default_instance_);
- }
- inline ::protobuf_unittest::TestAllTypes* TestParsingMerge_RepeatedFieldsGenerator_Group2::release_field1() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.Group2.field1)
- clear_has_field1();
- ::protobuf_unittest::TestAllTypes* temp = field1_;
- if (GetArenaNoVirtual() != NULL) {
- temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
- }
- field1_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestAllTypes* TestParsingMerge_RepeatedFieldsGenerator_Group2::unsafe_arena_release_field1() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.Group2.field1)
- clear_has_field1();
- ::protobuf_unittest::TestAllTypes* temp = field1_;
- field1_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestAllTypes* TestParsingMerge_RepeatedFieldsGenerator_Group2::mutable_field1() {
- set_has_field1();
- if (field1_ == NULL) {
- auto* p = CreateMaybeMessage<::protobuf_unittest::TestAllTypes>(GetArenaNoVirtual());
- field1_ = p;
- }
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.Group2.field1)
- return field1_;
- }
- inline void TestParsingMerge_RepeatedFieldsGenerator_Group2::set_allocated_field1(::protobuf_unittest::TestAllTypes* field1) {
- ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
- if (message_arena == NULL) {
- delete field1_;
- }
- if (field1) {
- ::google::protobuf::Arena* submessage_arena =
- ::google::protobuf::Arena::GetArena(field1);
- if (message_arena != submessage_arena) {
- field1 = ::google::protobuf::internal::GetOwnedMessage(
- message_arena, field1, submessage_arena);
- }
- set_has_field1();
- } else {
- clear_has_field1();
- }
- field1_ = field1;
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.Group2.field1)
- }
- // -------------------------------------------------------------------
- // TestParsingMerge_RepeatedFieldsGenerator
- // repeated .protobuf_unittest.TestAllTypes field1 = 1;
- inline int TestParsingMerge_RepeatedFieldsGenerator::field1_size() const {
- return field1_.size();
- }
- inline void TestParsingMerge_RepeatedFieldsGenerator::clear_field1() {
- field1_.Clear();
- }
- inline ::protobuf_unittest::TestAllTypes* TestParsingMerge_RepeatedFieldsGenerator::mutable_field1(int index) {
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.field1)
- return field1_.Mutable(index);
- }
- inline ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes >*
- TestParsingMerge_RepeatedFieldsGenerator::mutable_field1() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.field1)
- return &field1_;
- }
- inline const ::protobuf_unittest::TestAllTypes& TestParsingMerge_RepeatedFieldsGenerator::field1(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.field1)
- return field1_.Get(index);
- }
- inline ::protobuf_unittest::TestAllTypes* TestParsingMerge_RepeatedFieldsGenerator::add_field1() {
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.field1)
- return field1_.Add();
- }
- inline const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes >&
- TestParsingMerge_RepeatedFieldsGenerator::field1() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.field1)
- return field1_;
- }
- // repeated .protobuf_unittest.TestAllTypes field2 = 2;
- inline int TestParsingMerge_RepeatedFieldsGenerator::field2_size() const {
- return field2_.size();
- }
- inline void TestParsingMerge_RepeatedFieldsGenerator::clear_field2() {
- field2_.Clear();
- }
- inline ::protobuf_unittest::TestAllTypes* TestParsingMerge_RepeatedFieldsGenerator::mutable_field2(int index) {
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.field2)
- return field2_.Mutable(index);
- }
- inline ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes >*
- TestParsingMerge_RepeatedFieldsGenerator::mutable_field2() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.field2)
- return &field2_;
- }
- inline const ::protobuf_unittest::TestAllTypes& TestParsingMerge_RepeatedFieldsGenerator::field2(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.field2)
- return field2_.Get(index);
- }
- inline ::protobuf_unittest::TestAllTypes* TestParsingMerge_RepeatedFieldsGenerator::add_field2() {
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.field2)
- return field2_.Add();
- }
- inline const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes >&
- TestParsingMerge_RepeatedFieldsGenerator::field2() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.field2)
- return field2_;
- }
- // repeated .protobuf_unittest.TestAllTypes field3 = 3;
- inline int TestParsingMerge_RepeatedFieldsGenerator::field3_size() const {
- return field3_.size();
- }
- inline void TestParsingMerge_RepeatedFieldsGenerator::clear_field3() {
- field3_.Clear();
- }
- inline ::protobuf_unittest::TestAllTypes* TestParsingMerge_RepeatedFieldsGenerator::mutable_field3(int index) {
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.field3)
- return field3_.Mutable(index);
- }
- inline ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes >*
- TestParsingMerge_RepeatedFieldsGenerator::mutable_field3() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.field3)
- return &field3_;
- }
- inline const ::protobuf_unittest::TestAllTypes& TestParsingMerge_RepeatedFieldsGenerator::field3(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.field3)
- return field3_.Get(index);
- }
- inline ::protobuf_unittest::TestAllTypes* TestParsingMerge_RepeatedFieldsGenerator::add_field3() {
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.field3)
- return field3_.Add();
- }
- inline const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes >&
- TestParsingMerge_RepeatedFieldsGenerator::field3() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.field3)
- return field3_;
- }
- // repeated group Group1 = 10 { ... };
- inline int TestParsingMerge_RepeatedFieldsGenerator::group1_size() const {
- return group1_.size();
- }
- inline void TestParsingMerge_RepeatedFieldsGenerator::clear_group1() {
- group1_.Clear();
- }
- inline ::protobuf_unittest::TestParsingMerge_RepeatedFieldsGenerator_Group1* TestParsingMerge_RepeatedFieldsGenerator::mutable_group1(int index) {
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.group1)
- return group1_.Mutable(index);
- }
- inline ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestParsingMerge_RepeatedFieldsGenerator_Group1 >*
- TestParsingMerge_RepeatedFieldsGenerator::mutable_group1() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.group1)
- return &group1_;
- }
- inline const ::protobuf_unittest::TestParsingMerge_RepeatedFieldsGenerator_Group1& TestParsingMerge_RepeatedFieldsGenerator::group1(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.group1)
- return group1_.Get(index);
- }
- inline ::protobuf_unittest::TestParsingMerge_RepeatedFieldsGenerator_Group1* TestParsingMerge_RepeatedFieldsGenerator::add_group1() {
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.group1)
- return group1_.Add();
- }
- inline const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestParsingMerge_RepeatedFieldsGenerator_Group1 >&
- TestParsingMerge_RepeatedFieldsGenerator::group1() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.group1)
- return group1_;
- }
- // repeated group Group2 = 20 { ... };
- inline int TestParsingMerge_RepeatedFieldsGenerator::group2_size() const {
- return group2_.size();
- }
- inline void TestParsingMerge_RepeatedFieldsGenerator::clear_group2() {
- group2_.Clear();
- }
- inline ::protobuf_unittest::TestParsingMerge_RepeatedFieldsGenerator_Group2* TestParsingMerge_RepeatedFieldsGenerator::mutable_group2(int index) {
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.group2)
- return group2_.Mutable(index);
- }
- inline ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestParsingMerge_RepeatedFieldsGenerator_Group2 >*
- TestParsingMerge_RepeatedFieldsGenerator::mutable_group2() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.group2)
- return &group2_;
- }
- inline const ::protobuf_unittest::TestParsingMerge_RepeatedFieldsGenerator_Group2& TestParsingMerge_RepeatedFieldsGenerator::group2(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.group2)
- return group2_.Get(index);
- }
- inline ::protobuf_unittest::TestParsingMerge_RepeatedFieldsGenerator_Group2* TestParsingMerge_RepeatedFieldsGenerator::add_group2() {
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.group2)
- return group2_.Add();
- }
- inline const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestParsingMerge_RepeatedFieldsGenerator_Group2 >&
- TestParsingMerge_RepeatedFieldsGenerator::group2() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.group2)
- return group2_;
- }
- // repeated .protobuf_unittest.TestAllTypes ext1 = 1000;
- inline int TestParsingMerge_RepeatedFieldsGenerator::ext1_size() const {
- return ext1_.size();
- }
- inline void TestParsingMerge_RepeatedFieldsGenerator::clear_ext1() {
- ext1_.Clear();
- }
- inline ::protobuf_unittest::TestAllTypes* TestParsingMerge_RepeatedFieldsGenerator::mutable_ext1(int index) {
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.ext1)
- return ext1_.Mutable(index);
- }
- inline ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes >*
- TestParsingMerge_RepeatedFieldsGenerator::mutable_ext1() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.ext1)
- return &ext1_;
- }
- inline const ::protobuf_unittest::TestAllTypes& TestParsingMerge_RepeatedFieldsGenerator::ext1(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.ext1)
- return ext1_.Get(index);
- }
- inline ::protobuf_unittest::TestAllTypes* TestParsingMerge_RepeatedFieldsGenerator::add_ext1() {
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.ext1)
- return ext1_.Add();
- }
- inline const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes >&
- TestParsingMerge_RepeatedFieldsGenerator::ext1() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.ext1)
- return ext1_;
- }
- // repeated .protobuf_unittest.TestAllTypes ext2 = 1001;
- inline int TestParsingMerge_RepeatedFieldsGenerator::ext2_size() const {
- return ext2_.size();
- }
- inline void TestParsingMerge_RepeatedFieldsGenerator::clear_ext2() {
- ext2_.Clear();
- }
- inline ::protobuf_unittest::TestAllTypes* TestParsingMerge_RepeatedFieldsGenerator::mutable_ext2(int index) {
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.ext2)
- return ext2_.Mutable(index);
- }
- inline ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes >*
- TestParsingMerge_RepeatedFieldsGenerator::mutable_ext2() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.ext2)
- return &ext2_;
- }
- inline const ::protobuf_unittest::TestAllTypes& TestParsingMerge_RepeatedFieldsGenerator::ext2(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.ext2)
- return ext2_.Get(index);
- }
- inline ::protobuf_unittest::TestAllTypes* TestParsingMerge_RepeatedFieldsGenerator::add_ext2() {
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.ext2)
- return ext2_.Add();
- }
- inline const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes >&
- TestParsingMerge_RepeatedFieldsGenerator::ext2() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.ext2)
- return ext2_;
- }
- // -------------------------------------------------------------------
- // TestParsingMerge_OptionalGroup
- // optional .protobuf_unittest.TestAllTypes optional_group_all_types = 11;
- inline bool TestParsingMerge_OptionalGroup::has_optional_group_all_types() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void TestParsingMerge_OptionalGroup::set_has_optional_group_all_types() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void TestParsingMerge_OptionalGroup::clear_has_optional_group_all_types() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void TestParsingMerge_OptionalGroup::clear_optional_group_all_types() {
- if (optional_group_all_types_ != NULL) optional_group_all_types_->Clear();
- clear_has_optional_group_all_types();
- }
- inline const ::protobuf_unittest::TestAllTypes& TestParsingMerge_OptionalGroup::_internal_optional_group_all_types() const {
- return *optional_group_all_types_;
- }
- inline const ::protobuf_unittest::TestAllTypes& TestParsingMerge_OptionalGroup::optional_group_all_types() const {
- const ::protobuf_unittest::TestAllTypes* p = optional_group_all_types_;
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestParsingMerge.OptionalGroup.optional_group_all_types)
- return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestAllTypes*>(
- &::protobuf_unittest::_TestAllTypes_default_instance_);
- }
- inline ::protobuf_unittest::TestAllTypes* TestParsingMerge_OptionalGroup::release_optional_group_all_types() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestParsingMerge.OptionalGroup.optional_group_all_types)
- clear_has_optional_group_all_types();
- ::protobuf_unittest::TestAllTypes* temp = optional_group_all_types_;
- if (GetArenaNoVirtual() != NULL) {
- temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
- }
- optional_group_all_types_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestAllTypes* TestParsingMerge_OptionalGroup::unsafe_arena_release_optional_group_all_types() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestParsingMerge.OptionalGroup.optional_group_all_types)
- clear_has_optional_group_all_types();
- ::protobuf_unittest::TestAllTypes* temp = optional_group_all_types_;
- optional_group_all_types_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestAllTypes* TestParsingMerge_OptionalGroup::mutable_optional_group_all_types() {
- set_has_optional_group_all_types();
- if (optional_group_all_types_ == NULL) {
- auto* p = CreateMaybeMessage<::protobuf_unittest::TestAllTypes>(GetArenaNoVirtual());
- optional_group_all_types_ = p;
- }
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestParsingMerge.OptionalGroup.optional_group_all_types)
- return optional_group_all_types_;
- }
- inline void TestParsingMerge_OptionalGroup::set_allocated_optional_group_all_types(::protobuf_unittest::TestAllTypes* optional_group_all_types) {
- ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
- if (message_arena == NULL) {
- delete optional_group_all_types_;
- }
- if (optional_group_all_types) {
- ::google::protobuf::Arena* submessage_arena =
- ::google::protobuf::Arena::GetArena(optional_group_all_types);
- if (message_arena != submessage_arena) {
- optional_group_all_types = ::google::protobuf::internal::GetOwnedMessage(
- message_arena, optional_group_all_types, submessage_arena);
- }
- set_has_optional_group_all_types();
- } else {
- clear_has_optional_group_all_types();
- }
- optional_group_all_types_ = optional_group_all_types;
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestParsingMerge.OptionalGroup.optional_group_all_types)
- }
- // -------------------------------------------------------------------
- // TestParsingMerge_RepeatedGroup
- // optional .protobuf_unittest.TestAllTypes repeated_group_all_types = 21;
- inline bool TestParsingMerge_RepeatedGroup::has_repeated_group_all_types() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void TestParsingMerge_RepeatedGroup::set_has_repeated_group_all_types() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void TestParsingMerge_RepeatedGroup::clear_has_repeated_group_all_types() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void TestParsingMerge_RepeatedGroup::clear_repeated_group_all_types() {
- if (repeated_group_all_types_ != NULL) repeated_group_all_types_->Clear();
- clear_has_repeated_group_all_types();
- }
- inline const ::protobuf_unittest::TestAllTypes& TestParsingMerge_RepeatedGroup::_internal_repeated_group_all_types() const {
- return *repeated_group_all_types_;
- }
- inline const ::protobuf_unittest::TestAllTypes& TestParsingMerge_RepeatedGroup::repeated_group_all_types() const {
- const ::protobuf_unittest::TestAllTypes* p = repeated_group_all_types_;
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestParsingMerge.RepeatedGroup.repeated_group_all_types)
- return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestAllTypes*>(
- &::protobuf_unittest::_TestAllTypes_default_instance_);
- }
- inline ::protobuf_unittest::TestAllTypes* TestParsingMerge_RepeatedGroup::release_repeated_group_all_types() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestParsingMerge.RepeatedGroup.repeated_group_all_types)
- clear_has_repeated_group_all_types();
- ::protobuf_unittest::TestAllTypes* temp = repeated_group_all_types_;
- if (GetArenaNoVirtual() != NULL) {
- temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
- }
- repeated_group_all_types_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestAllTypes* TestParsingMerge_RepeatedGroup::unsafe_arena_release_repeated_group_all_types() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestParsingMerge.RepeatedGroup.repeated_group_all_types)
- clear_has_repeated_group_all_types();
- ::protobuf_unittest::TestAllTypes* temp = repeated_group_all_types_;
- repeated_group_all_types_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestAllTypes* TestParsingMerge_RepeatedGroup::mutable_repeated_group_all_types() {
- set_has_repeated_group_all_types();
- if (repeated_group_all_types_ == NULL) {
- auto* p = CreateMaybeMessage<::protobuf_unittest::TestAllTypes>(GetArenaNoVirtual());
- repeated_group_all_types_ = p;
- }
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestParsingMerge.RepeatedGroup.repeated_group_all_types)
- return repeated_group_all_types_;
- }
- inline void TestParsingMerge_RepeatedGroup::set_allocated_repeated_group_all_types(::protobuf_unittest::TestAllTypes* repeated_group_all_types) {
- ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
- if (message_arena == NULL) {
- delete repeated_group_all_types_;
- }
- if (repeated_group_all_types) {
- ::google::protobuf::Arena* submessage_arena =
- ::google::protobuf::Arena::GetArena(repeated_group_all_types);
- if (message_arena != submessage_arena) {
- repeated_group_all_types = ::google::protobuf::internal::GetOwnedMessage(
- message_arena, repeated_group_all_types, submessage_arena);
- }
- set_has_repeated_group_all_types();
- } else {
- clear_has_repeated_group_all_types();
- }
- repeated_group_all_types_ = repeated_group_all_types;
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestParsingMerge.RepeatedGroup.repeated_group_all_types)
- }
- // -------------------------------------------------------------------
- // TestParsingMerge
- // required .protobuf_unittest.TestAllTypes required_all_types = 1;
- inline bool TestParsingMerge::has_required_all_types() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void TestParsingMerge::set_has_required_all_types() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void TestParsingMerge::clear_has_required_all_types() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void TestParsingMerge::clear_required_all_types() {
- if (required_all_types_ != NULL) required_all_types_->Clear();
- clear_has_required_all_types();
- }
- inline const ::protobuf_unittest::TestAllTypes& TestParsingMerge::_internal_required_all_types() const {
- return *required_all_types_;
- }
- inline const ::protobuf_unittest::TestAllTypes& TestParsingMerge::required_all_types() const {
- const ::protobuf_unittest::TestAllTypes* p = required_all_types_;
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestParsingMerge.required_all_types)
- return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestAllTypes*>(
- &::protobuf_unittest::_TestAllTypes_default_instance_);
- }
- inline ::protobuf_unittest::TestAllTypes* TestParsingMerge::release_required_all_types() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestParsingMerge.required_all_types)
- clear_has_required_all_types();
- ::protobuf_unittest::TestAllTypes* temp = required_all_types_;
- if (GetArenaNoVirtual() != NULL) {
- temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
- }
- required_all_types_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestAllTypes* TestParsingMerge::unsafe_arena_release_required_all_types() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestParsingMerge.required_all_types)
- clear_has_required_all_types();
- ::protobuf_unittest::TestAllTypes* temp = required_all_types_;
- required_all_types_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestAllTypes* TestParsingMerge::mutable_required_all_types() {
- set_has_required_all_types();
- if (required_all_types_ == NULL) {
- auto* p = CreateMaybeMessage<::protobuf_unittest::TestAllTypes>(GetArenaNoVirtual());
- required_all_types_ = p;
- }
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestParsingMerge.required_all_types)
- return required_all_types_;
- }
- inline void TestParsingMerge::set_allocated_required_all_types(::protobuf_unittest::TestAllTypes* required_all_types) {
- ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
- if (message_arena == NULL) {
- delete required_all_types_;
- }
- if (required_all_types) {
- ::google::protobuf::Arena* submessage_arena =
- ::google::protobuf::Arena::GetArena(required_all_types);
- if (message_arena != submessage_arena) {
- required_all_types = ::google::protobuf::internal::GetOwnedMessage(
- message_arena, required_all_types, submessage_arena);
- }
- set_has_required_all_types();
- } else {
- clear_has_required_all_types();
- }
- required_all_types_ = required_all_types;
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestParsingMerge.required_all_types)
- }
- // optional .protobuf_unittest.TestAllTypes optional_all_types = 2;
- inline bool TestParsingMerge::has_optional_all_types() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
- }
- inline void TestParsingMerge::set_has_optional_all_types() {
- _has_bits_[0] |= 0x00000002u;
- }
- inline void TestParsingMerge::clear_has_optional_all_types() {
- _has_bits_[0] &= ~0x00000002u;
- }
- inline void TestParsingMerge::clear_optional_all_types() {
- if (optional_all_types_ != NULL) optional_all_types_->Clear();
- clear_has_optional_all_types();
- }
- inline const ::protobuf_unittest::TestAllTypes& TestParsingMerge::_internal_optional_all_types() const {
- return *optional_all_types_;
- }
- inline const ::protobuf_unittest::TestAllTypes& TestParsingMerge::optional_all_types() const {
- const ::protobuf_unittest::TestAllTypes* p = optional_all_types_;
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestParsingMerge.optional_all_types)
- return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestAllTypes*>(
- &::protobuf_unittest::_TestAllTypes_default_instance_);
- }
- inline ::protobuf_unittest::TestAllTypes* TestParsingMerge::release_optional_all_types() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestParsingMerge.optional_all_types)
- clear_has_optional_all_types();
- ::protobuf_unittest::TestAllTypes* temp = optional_all_types_;
- if (GetArenaNoVirtual() != NULL) {
- temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
- }
- optional_all_types_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestAllTypes* TestParsingMerge::unsafe_arena_release_optional_all_types() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestParsingMerge.optional_all_types)
- clear_has_optional_all_types();
- ::protobuf_unittest::TestAllTypes* temp = optional_all_types_;
- optional_all_types_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestAllTypes* TestParsingMerge::mutable_optional_all_types() {
- set_has_optional_all_types();
- if (optional_all_types_ == NULL) {
- auto* p = CreateMaybeMessage<::protobuf_unittest::TestAllTypes>(GetArenaNoVirtual());
- optional_all_types_ = p;
- }
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestParsingMerge.optional_all_types)
- return optional_all_types_;
- }
- inline void TestParsingMerge::set_allocated_optional_all_types(::protobuf_unittest::TestAllTypes* optional_all_types) {
- ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
- if (message_arena == NULL) {
- delete optional_all_types_;
- }
- if (optional_all_types) {
- ::google::protobuf::Arena* submessage_arena =
- ::google::protobuf::Arena::GetArena(optional_all_types);
- if (message_arena != submessage_arena) {
- optional_all_types = ::google::protobuf::internal::GetOwnedMessage(
- message_arena, optional_all_types, submessage_arena);
- }
- set_has_optional_all_types();
- } else {
- clear_has_optional_all_types();
- }
- optional_all_types_ = optional_all_types;
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestParsingMerge.optional_all_types)
- }
- // repeated .protobuf_unittest.TestAllTypes repeated_all_types = 3;
- inline int TestParsingMerge::repeated_all_types_size() const {
- return repeated_all_types_.size();
- }
- inline void TestParsingMerge::clear_repeated_all_types() {
- repeated_all_types_.Clear();
- }
- inline ::protobuf_unittest::TestAllTypes* TestParsingMerge::mutable_repeated_all_types(int index) {
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestParsingMerge.repeated_all_types)
- return repeated_all_types_.Mutable(index);
- }
- inline ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes >*
- TestParsingMerge::mutable_repeated_all_types() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestParsingMerge.repeated_all_types)
- return &repeated_all_types_;
- }
- inline const ::protobuf_unittest::TestAllTypes& TestParsingMerge::repeated_all_types(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestParsingMerge.repeated_all_types)
- return repeated_all_types_.Get(index);
- }
- inline ::protobuf_unittest::TestAllTypes* TestParsingMerge::add_repeated_all_types() {
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestParsingMerge.repeated_all_types)
- return repeated_all_types_.Add();
- }
- inline const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes >&
- TestParsingMerge::repeated_all_types() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestParsingMerge.repeated_all_types)
- return repeated_all_types_;
- }
- // optional group OptionalGroup = 10 { ... };
- inline bool TestParsingMerge::has_optionalgroup() const {
- return (_has_bits_[0] & 0x00000004u) != 0;
- }
- inline void TestParsingMerge::set_has_optionalgroup() {
- _has_bits_[0] |= 0x00000004u;
- }
- inline void TestParsingMerge::clear_has_optionalgroup() {
- _has_bits_[0] &= ~0x00000004u;
- }
- inline void TestParsingMerge::clear_optionalgroup() {
- if (optionalgroup_ != NULL) optionalgroup_->Clear();
- clear_has_optionalgroup();
- }
- inline const ::protobuf_unittest::TestParsingMerge_OptionalGroup& TestParsingMerge::_internal_optionalgroup() const {
- return *optionalgroup_;
- }
- inline const ::protobuf_unittest::TestParsingMerge_OptionalGroup& TestParsingMerge::optionalgroup() const {
- const ::protobuf_unittest::TestParsingMerge_OptionalGroup* p = optionalgroup_;
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestParsingMerge.optionalgroup)
- return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestParsingMerge_OptionalGroup*>(
- &::protobuf_unittest::_TestParsingMerge_OptionalGroup_default_instance_);
- }
- inline ::protobuf_unittest::TestParsingMerge_OptionalGroup* TestParsingMerge::release_optionalgroup() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestParsingMerge.optionalgroup)
- clear_has_optionalgroup();
- ::protobuf_unittest::TestParsingMerge_OptionalGroup* temp = optionalgroup_;
- if (GetArenaNoVirtual() != NULL) {
- temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
- }
- optionalgroup_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestParsingMerge_OptionalGroup* TestParsingMerge::unsafe_arena_release_optionalgroup() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestParsingMerge.optionalgroup)
- clear_has_optionalgroup();
- ::protobuf_unittest::TestParsingMerge_OptionalGroup* temp = optionalgroup_;
- optionalgroup_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestParsingMerge_OptionalGroup* TestParsingMerge::mutable_optionalgroup() {
- set_has_optionalgroup();
- if (optionalgroup_ == NULL) {
- auto* p = CreateMaybeMessage<::protobuf_unittest::TestParsingMerge_OptionalGroup>(GetArenaNoVirtual());
- optionalgroup_ = p;
- }
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestParsingMerge.optionalgroup)
- return optionalgroup_;
- }
- inline void TestParsingMerge::set_allocated_optionalgroup(::protobuf_unittest::TestParsingMerge_OptionalGroup* optionalgroup) {
- ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
- if (message_arena == NULL) {
- delete optionalgroup_;
- }
- if (optionalgroup) {
- ::google::protobuf::Arena* submessage_arena =
- ::google::protobuf::Arena::GetArena(optionalgroup);
- if (message_arena != submessage_arena) {
- optionalgroup = ::google::protobuf::internal::GetOwnedMessage(
- message_arena, optionalgroup, submessage_arena);
- }
- set_has_optionalgroup();
- } else {
- clear_has_optionalgroup();
- }
- optionalgroup_ = optionalgroup;
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestParsingMerge.optionalgroup)
- }
- // repeated group RepeatedGroup = 20 { ... };
- inline int TestParsingMerge::repeatedgroup_size() const {
- return repeatedgroup_.size();
- }
- inline void TestParsingMerge::clear_repeatedgroup() {
- repeatedgroup_.Clear();
- }
- inline ::protobuf_unittest::TestParsingMerge_RepeatedGroup* TestParsingMerge::mutable_repeatedgroup(int index) {
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestParsingMerge.repeatedgroup)
- return repeatedgroup_.Mutable(index);
- }
- inline ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestParsingMerge_RepeatedGroup >*
- TestParsingMerge::mutable_repeatedgroup() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestParsingMerge.repeatedgroup)
- return &repeatedgroup_;
- }
- inline const ::protobuf_unittest::TestParsingMerge_RepeatedGroup& TestParsingMerge::repeatedgroup(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestParsingMerge.repeatedgroup)
- return repeatedgroup_.Get(index);
- }
- inline ::protobuf_unittest::TestParsingMerge_RepeatedGroup* TestParsingMerge::add_repeatedgroup() {
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestParsingMerge.repeatedgroup)
- return repeatedgroup_.Add();
- }
- inline const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestParsingMerge_RepeatedGroup >&
- TestParsingMerge::repeatedgroup() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestParsingMerge.repeatedgroup)
- return repeatedgroup_;
- }
- // -------------------------------------------------------------------
- // TestCommentInjectionMessage
- // optional string a = 1 [default = "*/ <- Neither should this."];
- inline bool TestCommentInjectionMessage::has_a() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void TestCommentInjectionMessage::set_has_a() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void TestCommentInjectionMessage::clear_has_a() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void TestCommentInjectionMessage::clear_a() {
- a_.ClearToDefault(&::protobuf_unittest::TestCommentInjectionMessage::_i_give_permission_to_break_this_code_default_a_.get(), GetArenaNoVirtual());
- clear_has_a();
- }
- inline const ::std::string& TestCommentInjectionMessage::a() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestCommentInjectionMessage.a)
- return a_.Get();
- }
- inline void TestCommentInjectionMessage::set_a(const ::std::string& value) {
- set_has_a();
- a_.Set(&::protobuf_unittest::TestCommentInjectionMessage::_i_give_permission_to_break_this_code_default_a_.get(), value, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestCommentInjectionMessage.a)
- }
- #if LANG_CXX11
- inline void TestCommentInjectionMessage::set_a(::std::string&& value) {
- set_has_a();
- a_.Set(
- &::protobuf_unittest::TestCommentInjectionMessage::_i_give_permission_to_break_this_code_default_a_.get(), ::std::move(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestCommentInjectionMessage.a)
- }
- #endif
- inline void TestCommentInjectionMessage::set_a(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- set_has_a();
- a_.Set(&::protobuf_unittest::TestCommentInjectionMessage::_i_give_permission_to_break_this_code_default_a_.get(), ::std::string(value),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestCommentInjectionMessage.a)
- }
- inline void TestCommentInjectionMessage::set_a(const char* value,
- size_t size) {
- set_has_a();
- a_.Set(&::protobuf_unittest::TestCommentInjectionMessage::_i_give_permission_to_break_this_code_default_a_.get(), ::std::string(
- reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestCommentInjectionMessage.a)
- }
- inline ::std::string* TestCommentInjectionMessage::mutable_a() {
- set_has_a();
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestCommentInjectionMessage.a)
- return a_.Mutable(&::protobuf_unittest::TestCommentInjectionMessage::_i_give_permission_to_break_this_code_default_a_.get(), GetArenaNoVirtual());
- }
- inline ::std::string* TestCommentInjectionMessage::release_a() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestCommentInjectionMessage.a)
- if (!has_a()) {
- return NULL;
- }
- clear_has_a();
- return a_.ReleaseNonDefault(&::protobuf_unittest::TestCommentInjectionMessage::_i_give_permission_to_break_this_code_default_a_.get(), GetArenaNoVirtual());
- }
- inline void TestCommentInjectionMessage::set_allocated_a(::std::string* a) {
- if (a != NULL) {
- set_has_a();
- } else {
- clear_has_a();
- }
- a_.SetAllocated(&::protobuf_unittest::TestCommentInjectionMessage::_i_give_permission_to_break_this_code_default_a_.get(), a,
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestCommentInjectionMessage.a)
- }
- inline ::std::string* TestCommentInjectionMessage::unsafe_arena_release_a() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestCommentInjectionMessage.a)
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- clear_has_a();
- return a_.UnsafeArenaRelease(&::protobuf_unittest::TestCommentInjectionMessage::_i_give_permission_to_break_this_code_default_a_.get(),
- GetArenaNoVirtual());
- }
- inline void TestCommentInjectionMessage::unsafe_arena_set_allocated_a(
- ::std::string* a) {
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- if (a != NULL) {
- set_has_a();
- } else {
- clear_has_a();
- }
- a_.UnsafeArenaSetAllocated(&::protobuf_unittest::TestCommentInjectionMessage::_i_give_permission_to_break_this_code_default_a_.get(),
- a, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestCommentInjectionMessage.a)
- }
- // -------------------------------------------------------------------
- // FooRequest
- // -------------------------------------------------------------------
- // FooResponse
- // -------------------------------------------------------------------
- // FooClientMessage
- // -------------------------------------------------------------------
- // FooServerMessage
- // -------------------------------------------------------------------
- // BarRequest
- // -------------------------------------------------------------------
- // BarResponse
- // -------------------------------------------------------------------
- // TestJsonName
- // optional int32 field_name1 = 1;
- inline bool TestJsonName::has_field_name1() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void TestJsonName::set_has_field_name1() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void TestJsonName::clear_has_field_name1() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void TestJsonName::clear_field_name1() {
- field_name1_ = 0;
- clear_has_field_name1();
- }
- inline ::google::protobuf::int32 TestJsonName::field_name1() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestJsonName.field_name1)
- return field_name1_;
- }
- inline void TestJsonName::set_field_name1(::google::protobuf::int32 value) {
- set_has_field_name1();
- field_name1_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestJsonName.field_name1)
- }
- // optional int32 fieldName2 = 2;
- inline bool TestJsonName::has_fieldname2() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
- }
- inline void TestJsonName::set_has_fieldname2() {
- _has_bits_[0] |= 0x00000002u;
- }
- inline void TestJsonName::clear_has_fieldname2() {
- _has_bits_[0] &= ~0x00000002u;
- }
- inline void TestJsonName::clear_fieldname2() {
- fieldname2_ = 0;
- clear_has_fieldname2();
- }
- inline ::google::protobuf::int32 TestJsonName::fieldname2() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestJsonName.fieldName2)
- return fieldname2_;
- }
- inline void TestJsonName::set_fieldname2(::google::protobuf::int32 value) {
- set_has_fieldname2();
- fieldname2_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestJsonName.fieldName2)
- }
- // optional int32 FieldName3 = 3;
- inline bool TestJsonName::has_fieldname3() const {
- return (_has_bits_[0] & 0x00000004u) != 0;
- }
- inline void TestJsonName::set_has_fieldname3() {
- _has_bits_[0] |= 0x00000004u;
- }
- inline void TestJsonName::clear_has_fieldname3() {
- _has_bits_[0] &= ~0x00000004u;
- }
- inline void TestJsonName::clear_fieldname3() {
- fieldname3_ = 0;
- clear_has_fieldname3();
- }
- inline ::google::protobuf::int32 TestJsonName::fieldname3() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestJsonName.FieldName3)
- return fieldname3_;
- }
- inline void TestJsonName::set_fieldname3(::google::protobuf::int32 value) {
- set_has_fieldname3();
- fieldname3_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestJsonName.FieldName3)
- }
- // optional int32 _field_name4 = 4;
- inline bool TestJsonName::has__field_name4() const {
- return (_has_bits_[0] & 0x00000008u) != 0;
- }
- inline void TestJsonName::set_has__field_name4() {
- _has_bits_[0] |= 0x00000008u;
- }
- inline void TestJsonName::clear_has__field_name4() {
- _has_bits_[0] &= ~0x00000008u;
- }
- inline void TestJsonName::clear__field_name4() {
- _field_name4_ = 0;
- clear_has__field_name4();
- }
- inline ::google::protobuf::int32 TestJsonName::_field_name4() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestJsonName._field_name4)
- return _field_name4_;
- }
- inline void TestJsonName::set__field_name4(::google::protobuf::int32 value) {
- set_has__field_name4();
- _field_name4_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestJsonName._field_name4)
- }
- // optional int32 FIELD_NAME5 = 5;
- inline bool TestJsonName::has_field_name5() const {
- return (_has_bits_[0] & 0x00000010u) != 0;
- }
- inline void TestJsonName::set_has_field_name5() {
- _has_bits_[0] |= 0x00000010u;
- }
- inline void TestJsonName::clear_has_field_name5() {
- _has_bits_[0] &= ~0x00000010u;
- }
- inline void TestJsonName::clear_field_name5() {
- field_name5_ = 0;
- clear_has_field_name5();
- }
- inline ::google::protobuf::int32 TestJsonName::field_name5() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestJsonName.FIELD_NAME5)
- return field_name5_;
- }
- inline void TestJsonName::set_field_name5(::google::protobuf::int32 value) {
- set_has_field_name5();
- field_name5_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestJsonName.FIELD_NAME5)
- }
- // optional int32 field_name6 = 6[json_name = "@type"];
- inline bool TestJsonName::has_field_name6() const {
- return (_has_bits_[0] & 0x00000020u) != 0;
- }
- inline void TestJsonName::set_has_field_name6() {
- _has_bits_[0] |= 0x00000020u;
- }
- inline void TestJsonName::clear_has_field_name6() {
- _has_bits_[0] &= ~0x00000020u;
- }
- inline void TestJsonName::clear_field_name6() {
- field_name6_ = 0;
- clear_has_field_name6();
- }
- inline ::google::protobuf::int32 TestJsonName::field_name6() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestJsonName.field_name6)
- return field_name6_;
- }
- inline void TestJsonName::set_field_name6(::google::protobuf::int32 value) {
- set_has_field_name6();
- field_name6_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestJsonName.field_name6)
- }
- // -------------------------------------------------------------------
- // TestHugeFieldNumbers_OptionalGroup
- // optional int32 group_a = 536870009;
- inline bool TestHugeFieldNumbers_OptionalGroup::has_group_a() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void TestHugeFieldNumbers_OptionalGroup::set_has_group_a() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void TestHugeFieldNumbers_OptionalGroup::clear_has_group_a() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void TestHugeFieldNumbers_OptionalGroup::clear_group_a() {
- group_a_ = 0;
- clear_has_group_a();
- }
- inline ::google::protobuf::int32 TestHugeFieldNumbers_OptionalGroup::group_a() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestHugeFieldNumbers.OptionalGroup.group_a)
- return group_a_;
- }
- inline void TestHugeFieldNumbers_OptionalGroup::set_group_a(::google::protobuf::int32 value) {
- set_has_group_a();
- group_a_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestHugeFieldNumbers.OptionalGroup.group_a)
- }
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // TestHugeFieldNumbers
- // optional int32 optional_int32 = 536870000;
- inline bool TestHugeFieldNumbers::has_optional_int32() const {
- return (_has_bits_[0] & 0x00000010u) != 0;
- }
- inline void TestHugeFieldNumbers::set_has_optional_int32() {
- _has_bits_[0] |= 0x00000010u;
- }
- inline void TestHugeFieldNumbers::clear_has_optional_int32() {
- _has_bits_[0] &= ~0x00000010u;
- }
- inline void TestHugeFieldNumbers::clear_optional_int32() {
- optional_int32_ = 0;
- clear_has_optional_int32();
- }
- inline ::google::protobuf::int32 TestHugeFieldNumbers::optional_int32() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestHugeFieldNumbers.optional_int32)
- return optional_int32_;
- }
- inline void TestHugeFieldNumbers::set_optional_int32(::google::protobuf::int32 value) {
- set_has_optional_int32();
- optional_int32_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestHugeFieldNumbers.optional_int32)
- }
- // optional int32 fixed_32 = 536870001;
- inline bool TestHugeFieldNumbers::has_fixed_32() const {
- return (_has_bits_[0] & 0x00000020u) != 0;
- }
- inline void TestHugeFieldNumbers::set_has_fixed_32() {
- _has_bits_[0] |= 0x00000020u;
- }
- inline void TestHugeFieldNumbers::clear_has_fixed_32() {
- _has_bits_[0] &= ~0x00000020u;
- }
- inline void TestHugeFieldNumbers::clear_fixed_32() {
- fixed_32_ = 0;
- clear_has_fixed_32();
- }
- inline ::google::protobuf::int32 TestHugeFieldNumbers::fixed_32() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestHugeFieldNumbers.fixed_32)
- return fixed_32_;
- }
- inline void TestHugeFieldNumbers::set_fixed_32(::google::protobuf::int32 value) {
- set_has_fixed_32();
- fixed_32_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestHugeFieldNumbers.fixed_32)
- }
- // repeated int32 repeated_int32 = 536870002 [packed = false];
- inline int TestHugeFieldNumbers::repeated_int32_size() const {
- return repeated_int32_.size();
- }
- inline void TestHugeFieldNumbers::clear_repeated_int32() {
- repeated_int32_.Clear();
- }
- inline ::google::protobuf::int32 TestHugeFieldNumbers::repeated_int32(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestHugeFieldNumbers.repeated_int32)
- return repeated_int32_.Get(index);
- }
- inline void TestHugeFieldNumbers::set_repeated_int32(int index, ::google::protobuf::int32 value) {
- repeated_int32_.Set(index, value);
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestHugeFieldNumbers.repeated_int32)
- }
- inline void TestHugeFieldNumbers::add_repeated_int32(::google::protobuf::int32 value) {
- repeated_int32_.Add(value);
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestHugeFieldNumbers.repeated_int32)
- }
- inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
- TestHugeFieldNumbers::repeated_int32() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestHugeFieldNumbers.repeated_int32)
- return repeated_int32_;
- }
- inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
- TestHugeFieldNumbers::mutable_repeated_int32() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestHugeFieldNumbers.repeated_int32)
- return &repeated_int32_;
- }
- // repeated int32 packed_int32 = 536870003 [packed = true];
- inline int TestHugeFieldNumbers::packed_int32_size() const {
- return packed_int32_.size();
- }
- inline void TestHugeFieldNumbers::clear_packed_int32() {
- packed_int32_.Clear();
- }
- inline ::google::protobuf::int32 TestHugeFieldNumbers::packed_int32(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestHugeFieldNumbers.packed_int32)
- return packed_int32_.Get(index);
- }
- inline void TestHugeFieldNumbers::set_packed_int32(int index, ::google::protobuf::int32 value) {
- packed_int32_.Set(index, value);
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestHugeFieldNumbers.packed_int32)
- }
- inline void TestHugeFieldNumbers::add_packed_int32(::google::protobuf::int32 value) {
- packed_int32_.Add(value);
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestHugeFieldNumbers.packed_int32)
- }
- inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
- TestHugeFieldNumbers::packed_int32() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestHugeFieldNumbers.packed_int32)
- return packed_int32_;
- }
- inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
- TestHugeFieldNumbers::mutable_packed_int32() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestHugeFieldNumbers.packed_int32)
- return &packed_int32_;
- }
- // optional .protobuf_unittest.ForeignEnum optional_enum = 536870004;
- inline bool TestHugeFieldNumbers::has_optional_enum() const {
- return (_has_bits_[0] & 0x00000040u) != 0;
- }
- inline void TestHugeFieldNumbers::set_has_optional_enum() {
- _has_bits_[0] |= 0x00000040u;
- }
- inline void TestHugeFieldNumbers::clear_has_optional_enum() {
- _has_bits_[0] &= ~0x00000040u;
- }
- inline void TestHugeFieldNumbers::clear_optional_enum() {
- optional_enum_ = 4;
- clear_has_optional_enum();
- }
- inline ::protobuf_unittest::ForeignEnum TestHugeFieldNumbers::optional_enum() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestHugeFieldNumbers.optional_enum)
- return static_cast< ::protobuf_unittest::ForeignEnum >(optional_enum_);
- }
- inline void TestHugeFieldNumbers::set_optional_enum(::protobuf_unittest::ForeignEnum value) {
- assert(::protobuf_unittest::ForeignEnum_IsValid(value));
- set_has_optional_enum();
- optional_enum_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestHugeFieldNumbers.optional_enum)
- }
- // optional string optional_string = 536870005;
- inline bool TestHugeFieldNumbers::has_optional_string() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void TestHugeFieldNumbers::set_has_optional_string() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void TestHugeFieldNumbers::clear_has_optional_string() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void TestHugeFieldNumbers::clear_optional_string() {
- optional_string_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- clear_has_optional_string();
- }
- inline const ::std::string& TestHugeFieldNumbers::optional_string() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestHugeFieldNumbers.optional_string)
- return optional_string_.Get();
- }
- inline void TestHugeFieldNumbers::set_optional_string(const ::std::string& value) {
- set_has_optional_string();
- optional_string_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestHugeFieldNumbers.optional_string)
- }
- #if LANG_CXX11
- inline void TestHugeFieldNumbers::set_optional_string(::std::string&& value) {
- set_has_optional_string();
- optional_string_.Set(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestHugeFieldNumbers.optional_string)
- }
- #endif
- inline void TestHugeFieldNumbers::set_optional_string(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- set_has_optional_string();
- optional_string_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestHugeFieldNumbers.optional_string)
- }
- inline void TestHugeFieldNumbers::set_optional_string(const char* value,
- size_t size) {
- set_has_optional_string();
- optional_string_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
- reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestHugeFieldNumbers.optional_string)
- }
- inline ::std::string* TestHugeFieldNumbers::mutable_optional_string() {
- set_has_optional_string();
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestHugeFieldNumbers.optional_string)
- return optional_string_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- }
- inline ::std::string* TestHugeFieldNumbers::release_optional_string() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestHugeFieldNumbers.optional_string)
- if (!has_optional_string()) {
- return NULL;
- }
- clear_has_optional_string();
- return optional_string_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- }
- inline void TestHugeFieldNumbers::set_allocated_optional_string(::std::string* optional_string) {
- if (optional_string != NULL) {
- set_has_optional_string();
- } else {
- clear_has_optional_string();
- }
- optional_string_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), optional_string,
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestHugeFieldNumbers.optional_string)
- }
- inline ::std::string* TestHugeFieldNumbers::unsafe_arena_release_optional_string() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestHugeFieldNumbers.optional_string)
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- clear_has_optional_string();
- return optional_string_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- }
- inline void TestHugeFieldNumbers::unsafe_arena_set_allocated_optional_string(
- ::std::string* optional_string) {
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- if (optional_string != NULL) {
- set_has_optional_string();
- } else {
- clear_has_optional_string();
- }
- optional_string_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- optional_string, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestHugeFieldNumbers.optional_string)
- }
- // optional bytes optional_bytes = 536870006;
- inline bool TestHugeFieldNumbers::has_optional_bytes() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
- }
- inline void TestHugeFieldNumbers::set_has_optional_bytes() {
- _has_bits_[0] |= 0x00000002u;
- }
- inline void TestHugeFieldNumbers::clear_has_optional_bytes() {
- _has_bits_[0] &= ~0x00000002u;
- }
- inline void TestHugeFieldNumbers::clear_optional_bytes() {
- optional_bytes_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- clear_has_optional_bytes();
- }
- inline const ::std::string& TestHugeFieldNumbers::optional_bytes() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestHugeFieldNumbers.optional_bytes)
- return optional_bytes_.Get();
- }
- inline void TestHugeFieldNumbers::set_optional_bytes(const ::std::string& value) {
- set_has_optional_bytes();
- optional_bytes_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestHugeFieldNumbers.optional_bytes)
- }
- #if LANG_CXX11
- inline void TestHugeFieldNumbers::set_optional_bytes(::std::string&& value) {
- set_has_optional_bytes();
- optional_bytes_.Set(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestHugeFieldNumbers.optional_bytes)
- }
- #endif
- inline void TestHugeFieldNumbers::set_optional_bytes(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- set_has_optional_bytes();
- optional_bytes_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestHugeFieldNumbers.optional_bytes)
- }
- inline void TestHugeFieldNumbers::set_optional_bytes(const void* value,
- size_t size) {
- set_has_optional_bytes();
- optional_bytes_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
- reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestHugeFieldNumbers.optional_bytes)
- }
- inline ::std::string* TestHugeFieldNumbers::mutable_optional_bytes() {
- set_has_optional_bytes();
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestHugeFieldNumbers.optional_bytes)
- return optional_bytes_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- }
- inline ::std::string* TestHugeFieldNumbers::release_optional_bytes() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestHugeFieldNumbers.optional_bytes)
- if (!has_optional_bytes()) {
- return NULL;
- }
- clear_has_optional_bytes();
- return optional_bytes_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- }
- inline void TestHugeFieldNumbers::set_allocated_optional_bytes(::std::string* optional_bytes) {
- if (optional_bytes != NULL) {
- set_has_optional_bytes();
- } else {
- clear_has_optional_bytes();
- }
- optional_bytes_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), optional_bytes,
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestHugeFieldNumbers.optional_bytes)
- }
- inline ::std::string* TestHugeFieldNumbers::unsafe_arena_release_optional_bytes() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestHugeFieldNumbers.optional_bytes)
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- clear_has_optional_bytes();
- return optional_bytes_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- }
- inline void TestHugeFieldNumbers::unsafe_arena_set_allocated_optional_bytes(
- ::std::string* optional_bytes) {
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- if (optional_bytes != NULL) {
- set_has_optional_bytes();
- } else {
- clear_has_optional_bytes();
- }
- optional_bytes_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- optional_bytes, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestHugeFieldNumbers.optional_bytes)
- }
- // optional .protobuf_unittest.ForeignMessage optional_message = 536870007;
- inline bool TestHugeFieldNumbers::has_optional_message() const {
- return (_has_bits_[0] & 0x00000004u) != 0;
- }
- inline void TestHugeFieldNumbers::set_has_optional_message() {
- _has_bits_[0] |= 0x00000004u;
- }
- inline void TestHugeFieldNumbers::clear_has_optional_message() {
- _has_bits_[0] &= ~0x00000004u;
- }
- inline void TestHugeFieldNumbers::clear_optional_message() {
- if (optional_message_ != NULL) optional_message_->Clear();
- clear_has_optional_message();
- }
- inline const ::protobuf_unittest::ForeignMessage& TestHugeFieldNumbers::_internal_optional_message() const {
- return *optional_message_;
- }
- inline const ::protobuf_unittest::ForeignMessage& TestHugeFieldNumbers::optional_message() const {
- const ::protobuf_unittest::ForeignMessage* p = optional_message_;
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestHugeFieldNumbers.optional_message)
- return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::ForeignMessage*>(
- &::protobuf_unittest::_ForeignMessage_default_instance_);
- }
- inline ::protobuf_unittest::ForeignMessage* TestHugeFieldNumbers::release_optional_message() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestHugeFieldNumbers.optional_message)
- clear_has_optional_message();
- ::protobuf_unittest::ForeignMessage* temp = optional_message_;
- if (GetArenaNoVirtual() != NULL) {
- temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
- }
- optional_message_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::ForeignMessage* TestHugeFieldNumbers::unsafe_arena_release_optional_message() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestHugeFieldNumbers.optional_message)
- clear_has_optional_message();
- ::protobuf_unittest::ForeignMessage* temp = optional_message_;
- optional_message_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::ForeignMessage* TestHugeFieldNumbers::mutable_optional_message() {
- set_has_optional_message();
- if (optional_message_ == NULL) {
- auto* p = CreateMaybeMessage<::protobuf_unittest::ForeignMessage>(GetArenaNoVirtual());
- optional_message_ = p;
- }
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestHugeFieldNumbers.optional_message)
- return optional_message_;
- }
- inline void TestHugeFieldNumbers::set_allocated_optional_message(::protobuf_unittest::ForeignMessage* optional_message) {
- ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
- if (message_arena == NULL) {
- delete optional_message_;
- }
- if (optional_message) {
- ::google::protobuf::Arena* submessage_arena =
- ::google::protobuf::Arena::GetArena(optional_message);
- if (message_arena != submessage_arena) {
- optional_message = ::google::protobuf::internal::GetOwnedMessage(
- message_arena, optional_message, submessage_arena);
- }
- set_has_optional_message();
- } else {
- clear_has_optional_message();
- }
- optional_message_ = optional_message;
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestHugeFieldNumbers.optional_message)
- }
- // optional group OptionalGroup = 536870008 { ... };
- inline bool TestHugeFieldNumbers::has_optionalgroup() const {
- return (_has_bits_[0] & 0x00000008u) != 0;
- }
- inline void TestHugeFieldNumbers::set_has_optionalgroup() {
- _has_bits_[0] |= 0x00000008u;
- }
- inline void TestHugeFieldNumbers::clear_has_optionalgroup() {
- _has_bits_[0] &= ~0x00000008u;
- }
- inline void TestHugeFieldNumbers::clear_optionalgroup() {
- if (optionalgroup_ != NULL) optionalgroup_->Clear();
- clear_has_optionalgroup();
- }
- inline const ::protobuf_unittest::TestHugeFieldNumbers_OptionalGroup& TestHugeFieldNumbers::_internal_optionalgroup() const {
- return *optionalgroup_;
- }
- inline const ::protobuf_unittest::TestHugeFieldNumbers_OptionalGroup& TestHugeFieldNumbers::optionalgroup() const {
- const ::protobuf_unittest::TestHugeFieldNumbers_OptionalGroup* p = optionalgroup_;
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestHugeFieldNumbers.optionalgroup)
- return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestHugeFieldNumbers_OptionalGroup*>(
- &::protobuf_unittest::_TestHugeFieldNumbers_OptionalGroup_default_instance_);
- }
- inline ::protobuf_unittest::TestHugeFieldNumbers_OptionalGroup* TestHugeFieldNumbers::release_optionalgroup() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestHugeFieldNumbers.optionalgroup)
- clear_has_optionalgroup();
- ::protobuf_unittest::TestHugeFieldNumbers_OptionalGroup* temp = optionalgroup_;
- if (GetArenaNoVirtual() != NULL) {
- temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
- }
- optionalgroup_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestHugeFieldNumbers_OptionalGroup* TestHugeFieldNumbers::unsafe_arena_release_optionalgroup() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestHugeFieldNumbers.optionalgroup)
- clear_has_optionalgroup();
- ::protobuf_unittest::TestHugeFieldNumbers_OptionalGroup* temp = optionalgroup_;
- optionalgroup_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestHugeFieldNumbers_OptionalGroup* TestHugeFieldNumbers::mutable_optionalgroup() {
- set_has_optionalgroup();
- if (optionalgroup_ == NULL) {
- auto* p = CreateMaybeMessage<::protobuf_unittest::TestHugeFieldNumbers_OptionalGroup>(GetArenaNoVirtual());
- optionalgroup_ = p;
- }
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestHugeFieldNumbers.optionalgroup)
- return optionalgroup_;
- }
- inline void TestHugeFieldNumbers::set_allocated_optionalgroup(::protobuf_unittest::TestHugeFieldNumbers_OptionalGroup* optionalgroup) {
- ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
- if (message_arena == NULL) {
- delete optionalgroup_;
- }
- if (optionalgroup) {
- ::google::protobuf::Arena* submessage_arena =
- ::google::protobuf::Arena::GetArena(optionalgroup);
- if (message_arena != submessage_arena) {
- optionalgroup = ::google::protobuf::internal::GetOwnedMessage(
- message_arena, optionalgroup, submessage_arena);
- }
- set_has_optionalgroup();
- } else {
- clear_has_optionalgroup();
- }
- optionalgroup_ = optionalgroup;
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestHugeFieldNumbers.optionalgroup)
- }
- // map<string, string> string_string_map = 536870010;
- inline int TestHugeFieldNumbers::string_string_map_size() const {
- return string_string_map_.size();
- }
- inline void TestHugeFieldNumbers::clear_string_string_map() {
- string_string_map_.Clear();
- }
- inline const ::google::protobuf::Map< ::std::string, ::std::string >&
- TestHugeFieldNumbers::string_string_map() const {
- // @@protoc_insertion_point(field_map:protobuf_unittest.TestHugeFieldNumbers.string_string_map)
- return string_string_map_.GetMap();
- }
- inline ::google::protobuf::Map< ::std::string, ::std::string >*
- TestHugeFieldNumbers::mutable_string_string_map() {
- // @@protoc_insertion_point(field_mutable_map:protobuf_unittest.TestHugeFieldNumbers.string_string_map)
- return string_string_map_.MutableMap();
- }
- // optional uint32 oneof_uint32 = 536870011;
- inline bool TestHugeFieldNumbers::has_oneof_uint32() const {
- return oneof_field_case() == kOneofUint32;
- }
- inline void TestHugeFieldNumbers::set_has_oneof_uint32() {
- _oneof_case_[0] = kOneofUint32;
- }
- inline void TestHugeFieldNumbers::clear_oneof_uint32() {
- if (has_oneof_uint32()) {
- oneof_field_.oneof_uint32_ = 0u;
- clear_has_oneof_field();
- }
- }
- inline ::google::protobuf::uint32 TestHugeFieldNumbers::oneof_uint32() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestHugeFieldNumbers.oneof_uint32)
- if (has_oneof_uint32()) {
- return oneof_field_.oneof_uint32_;
- }
- return 0u;
- }
- inline void TestHugeFieldNumbers::set_oneof_uint32(::google::protobuf::uint32 value) {
- if (!has_oneof_uint32()) {
- clear_oneof_field();
- set_has_oneof_uint32();
- }
- oneof_field_.oneof_uint32_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestHugeFieldNumbers.oneof_uint32)
- }
- // optional .protobuf_unittest.TestAllTypes oneof_test_all_types = 536870012;
- inline bool TestHugeFieldNumbers::has_oneof_test_all_types() const {
- return oneof_field_case() == kOneofTestAllTypes;
- }
- inline void TestHugeFieldNumbers::set_has_oneof_test_all_types() {
- _oneof_case_[0] = kOneofTestAllTypes;
- }
- inline void TestHugeFieldNumbers::clear_oneof_test_all_types() {
- if (has_oneof_test_all_types()) {
- if (GetArenaNoVirtual() == NULL) {
- delete oneof_field_.oneof_test_all_types_;
- }
- clear_has_oneof_field();
- }
- }
- inline const ::protobuf_unittest::TestAllTypes& TestHugeFieldNumbers::_internal_oneof_test_all_types() const {
- return *oneof_field_.oneof_test_all_types_;
- }
- inline ::protobuf_unittest::TestAllTypes* TestHugeFieldNumbers::release_oneof_test_all_types() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestHugeFieldNumbers.oneof_test_all_types)
- if (has_oneof_test_all_types()) {
- clear_has_oneof_field();
- ::protobuf_unittest::TestAllTypes* temp = oneof_field_.oneof_test_all_types_;
- if (GetArenaNoVirtual() != NULL) {
- temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
- }
- oneof_field_.oneof_test_all_types_ = NULL;
- return temp;
- } else {
- return NULL;
- }
- }
- inline const ::protobuf_unittest::TestAllTypes& TestHugeFieldNumbers::oneof_test_all_types() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestHugeFieldNumbers.oneof_test_all_types)
- return has_oneof_test_all_types()
- ? *oneof_field_.oneof_test_all_types_
- : *reinterpret_cast< ::protobuf_unittest::TestAllTypes*>(&::protobuf_unittest::_TestAllTypes_default_instance_);
- }
- inline ::protobuf_unittest::TestAllTypes* TestHugeFieldNumbers::unsafe_arena_release_oneof_test_all_types() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestHugeFieldNumbers.oneof_test_all_types)
- if (has_oneof_test_all_types()) {
- clear_has_oneof_field();
- ::protobuf_unittest::TestAllTypes* temp = oneof_field_.oneof_test_all_types_;
- oneof_field_.oneof_test_all_types_ = NULL;
- return temp;
- } else {
- return NULL;
- }
- }
- inline void TestHugeFieldNumbers::unsafe_arena_set_allocated_oneof_test_all_types(::protobuf_unittest::TestAllTypes* oneof_test_all_types) {
- clear_oneof_field();
- if (oneof_test_all_types) {
- set_has_oneof_test_all_types();
- oneof_field_.oneof_test_all_types_ = oneof_test_all_types;
- }
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestHugeFieldNumbers.oneof_test_all_types)
- }
- inline ::protobuf_unittest::TestAllTypes* TestHugeFieldNumbers::mutable_oneof_test_all_types() {
- if (!has_oneof_test_all_types()) {
- clear_oneof_field();
- set_has_oneof_test_all_types();
- oneof_field_.oneof_test_all_types_ = CreateMaybeMessage< ::protobuf_unittest::TestAllTypes >(
- GetArenaNoVirtual());
- }
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestHugeFieldNumbers.oneof_test_all_types)
- return oneof_field_.oneof_test_all_types_;
- }
- // optional string oneof_string = 536870013;
- inline bool TestHugeFieldNumbers::has_oneof_string() const {
- return oneof_field_case() == kOneofString;
- }
- inline void TestHugeFieldNumbers::set_has_oneof_string() {
- _oneof_case_[0] = kOneofString;
- }
- inline void TestHugeFieldNumbers::clear_oneof_string() {
- if (has_oneof_string()) {
- oneof_field_.oneof_string_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- clear_has_oneof_field();
- }
- }
- inline const ::std::string& TestHugeFieldNumbers::oneof_string() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestHugeFieldNumbers.oneof_string)
- if (has_oneof_string()) {
- return oneof_field_.oneof_string_.Get();
- }
- return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
- }
- inline void TestHugeFieldNumbers::set_oneof_string(const ::std::string& value) {
- if (!has_oneof_string()) {
- clear_oneof_field();
- set_has_oneof_string();
- oneof_field_.oneof_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- oneof_field_.oneof_string_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value,
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestHugeFieldNumbers.oneof_string)
- }
- #if LANG_CXX11
- inline void TestHugeFieldNumbers::set_oneof_string(::std::string&& value) {
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestHugeFieldNumbers.oneof_string)
- if (!has_oneof_string()) {
- clear_oneof_field();
- set_has_oneof_string();
- oneof_field_.oneof_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- oneof_field_.oneof_string_.Set(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestHugeFieldNumbers.oneof_string)
- }
- #endif
- inline void TestHugeFieldNumbers::set_oneof_string(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- if (!has_oneof_string()) {
- clear_oneof_field();
- set_has_oneof_string();
- oneof_field_.oneof_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- oneof_field_.oneof_string_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- ::std::string(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestHugeFieldNumbers.oneof_string)
- }
- inline void TestHugeFieldNumbers::set_oneof_string(const char* value,
- size_t size) {
- if (!has_oneof_string()) {
- clear_oneof_field();
- set_has_oneof_string();
- oneof_field_.oneof_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- oneof_field_.oneof_string_.Set(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
- reinterpret_cast<const char*>(value), size),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestHugeFieldNumbers.oneof_string)
- }
- inline ::std::string* TestHugeFieldNumbers::mutable_oneof_string() {
- if (!has_oneof_string()) {
- clear_oneof_field();
- set_has_oneof_string();
- oneof_field_.oneof_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- return oneof_field_.oneof_string_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestHugeFieldNumbers.oneof_string)
- }
- inline ::std::string* TestHugeFieldNumbers::release_oneof_string() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestHugeFieldNumbers.oneof_string)
- if (has_oneof_string()) {
- clear_has_oneof_field();
- return oneof_field_.oneof_string_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- } else {
- return NULL;
- }
- }
- inline void TestHugeFieldNumbers::set_allocated_oneof_string(::std::string* oneof_string) {
- if (!has_oneof_string()) {
- oneof_field_.oneof_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- clear_oneof_field();
- if (oneof_string != NULL) {
- set_has_oneof_string();
- oneof_field_.oneof_string_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), oneof_string,
- GetArenaNoVirtual());
- }
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestHugeFieldNumbers.oneof_string)
- }
- inline ::std::string* TestHugeFieldNumbers::unsafe_arena_release_oneof_string() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestHugeFieldNumbers.oneof_string)
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- if (has_oneof_string()) {
- clear_has_oneof_field();
- return oneof_field_.oneof_string_.UnsafeArenaRelease(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- } else {
- return NULL;
- }
- }
- inline void TestHugeFieldNumbers::unsafe_arena_set_allocated_oneof_string(::std::string* oneof_string) {
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- if (!has_oneof_string()) {
- oneof_field_.oneof_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- clear_oneof_field();
- if (oneof_string) {
- set_has_oneof_string();
- oneof_field_.oneof_string_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), oneof_string, GetArenaNoVirtual());
- }
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestHugeFieldNumbers.oneof_string)
- }
- // optional bytes oneof_bytes = 536870014;
- inline bool TestHugeFieldNumbers::has_oneof_bytes() const {
- return oneof_field_case() == kOneofBytes;
- }
- inline void TestHugeFieldNumbers::set_has_oneof_bytes() {
- _oneof_case_[0] = kOneofBytes;
- }
- inline void TestHugeFieldNumbers::clear_oneof_bytes() {
- if (has_oneof_bytes()) {
- oneof_field_.oneof_bytes_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- clear_has_oneof_field();
- }
- }
- inline const ::std::string& TestHugeFieldNumbers::oneof_bytes() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestHugeFieldNumbers.oneof_bytes)
- if (has_oneof_bytes()) {
- return oneof_field_.oneof_bytes_.Get();
- }
- return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
- }
- inline void TestHugeFieldNumbers::set_oneof_bytes(const ::std::string& value) {
- if (!has_oneof_bytes()) {
- clear_oneof_field();
- set_has_oneof_bytes();
- oneof_field_.oneof_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- oneof_field_.oneof_bytes_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value,
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestHugeFieldNumbers.oneof_bytes)
- }
- #if LANG_CXX11
- inline void TestHugeFieldNumbers::set_oneof_bytes(::std::string&& value) {
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestHugeFieldNumbers.oneof_bytes)
- if (!has_oneof_bytes()) {
- clear_oneof_field();
- set_has_oneof_bytes();
- oneof_field_.oneof_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- oneof_field_.oneof_bytes_.Set(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestHugeFieldNumbers.oneof_bytes)
- }
- #endif
- inline void TestHugeFieldNumbers::set_oneof_bytes(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- if (!has_oneof_bytes()) {
- clear_oneof_field();
- set_has_oneof_bytes();
- oneof_field_.oneof_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- oneof_field_.oneof_bytes_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- ::std::string(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestHugeFieldNumbers.oneof_bytes)
- }
- inline void TestHugeFieldNumbers::set_oneof_bytes(const void* value,
- size_t size) {
- if (!has_oneof_bytes()) {
- clear_oneof_field();
- set_has_oneof_bytes();
- oneof_field_.oneof_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- oneof_field_.oneof_bytes_.Set(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
- reinterpret_cast<const char*>(value), size),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestHugeFieldNumbers.oneof_bytes)
- }
- inline ::std::string* TestHugeFieldNumbers::mutable_oneof_bytes() {
- if (!has_oneof_bytes()) {
- clear_oneof_field();
- set_has_oneof_bytes();
- oneof_field_.oneof_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- return oneof_field_.oneof_bytes_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestHugeFieldNumbers.oneof_bytes)
- }
- inline ::std::string* TestHugeFieldNumbers::release_oneof_bytes() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestHugeFieldNumbers.oneof_bytes)
- if (has_oneof_bytes()) {
- clear_has_oneof_field();
- return oneof_field_.oneof_bytes_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- } else {
- return NULL;
- }
- }
- inline void TestHugeFieldNumbers::set_allocated_oneof_bytes(::std::string* oneof_bytes) {
- if (!has_oneof_bytes()) {
- oneof_field_.oneof_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- clear_oneof_field();
- if (oneof_bytes != NULL) {
- set_has_oneof_bytes();
- oneof_field_.oneof_bytes_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), oneof_bytes,
- GetArenaNoVirtual());
- }
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestHugeFieldNumbers.oneof_bytes)
- }
- inline ::std::string* TestHugeFieldNumbers::unsafe_arena_release_oneof_bytes() {
- // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestHugeFieldNumbers.oneof_bytes)
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- if (has_oneof_bytes()) {
- clear_has_oneof_field();
- return oneof_field_.oneof_bytes_.UnsafeArenaRelease(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- } else {
- return NULL;
- }
- }
- inline void TestHugeFieldNumbers::unsafe_arena_set_allocated_oneof_bytes(::std::string* oneof_bytes) {
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- if (!has_oneof_bytes()) {
- oneof_field_.oneof_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- clear_oneof_field();
- if (oneof_bytes) {
- set_has_oneof_bytes();
- oneof_field_.oneof_bytes_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), oneof_bytes, GetArenaNoVirtual());
- }
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestHugeFieldNumbers.oneof_bytes)
- }
- inline bool TestHugeFieldNumbers::has_oneof_field() const {
- return oneof_field_case() != ONEOF_FIELD_NOT_SET;
- }
- inline void TestHugeFieldNumbers::clear_has_oneof_field() {
- _oneof_case_[0] = ONEOF_FIELD_NOT_SET;
- }
- inline TestHugeFieldNumbers::OneofFieldCase TestHugeFieldNumbers::oneof_field_case() const {
- return TestHugeFieldNumbers::OneofFieldCase(_oneof_case_[0]);
- }
- // -------------------------------------------------------------------
- // TestExtensionInsideTable
- // optional int32 field1 = 1;
- inline bool TestExtensionInsideTable::has_field1() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void TestExtensionInsideTable::set_has_field1() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void TestExtensionInsideTable::clear_has_field1() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void TestExtensionInsideTable::clear_field1() {
- field1_ = 0;
- clear_has_field1();
- }
- inline ::google::protobuf::int32 TestExtensionInsideTable::field1() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtensionInsideTable.field1)
- return field1_;
- }
- inline void TestExtensionInsideTable::set_field1(::google::protobuf::int32 value) {
- set_has_field1();
- field1_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtensionInsideTable.field1)
- }
- // optional int32 field2 = 2;
- inline bool TestExtensionInsideTable::has_field2() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
- }
- inline void TestExtensionInsideTable::set_has_field2() {
- _has_bits_[0] |= 0x00000002u;
- }
- inline void TestExtensionInsideTable::clear_has_field2() {
- _has_bits_[0] &= ~0x00000002u;
- }
- inline void TestExtensionInsideTable::clear_field2() {
- field2_ = 0;
- clear_has_field2();
- }
- inline ::google::protobuf::int32 TestExtensionInsideTable::field2() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtensionInsideTable.field2)
- return field2_;
- }
- inline void TestExtensionInsideTable::set_field2(::google::protobuf::int32 value) {
- set_has_field2();
- field2_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtensionInsideTable.field2)
- }
- // optional int32 field3 = 3;
- inline bool TestExtensionInsideTable::has_field3() const {
- return (_has_bits_[0] & 0x00000004u) != 0;
- }
- inline void TestExtensionInsideTable::set_has_field3() {
- _has_bits_[0] |= 0x00000004u;
- }
- inline void TestExtensionInsideTable::clear_has_field3() {
- _has_bits_[0] &= ~0x00000004u;
- }
- inline void TestExtensionInsideTable::clear_field3() {
- field3_ = 0;
- clear_has_field3();
- }
- inline ::google::protobuf::int32 TestExtensionInsideTable::field3() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtensionInsideTable.field3)
- return field3_;
- }
- inline void TestExtensionInsideTable::set_field3(::google::protobuf::int32 value) {
- set_has_field3();
- field3_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtensionInsideTable.field3)
- }
- // optional int32 field4 = 4;
- inline bool TestExtensionInsideTable::has_field4() const {
- return (_has_bits_[0] & 0x00000008u) != 0;
- }
- inline void TestExtensionInsideTable::set_has_field4() {
- _has_bits_[0] |= 0x00000008u;
- }
- inline void TestExtensionInsideTable::clear_has_field4() {
- _has_bits_[0] &= ~0x00000008u;
- }
- inline void TestExtensionInsideTable::clear_field4() {
- field4_ = 0;
- clear_has_field4();
- }
- inline ::google::protobuf::int32 TestExtensionInsideTable::field4() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtensionInsideTable.field4)
- return field4_;
- }
- inline void TestExtensionInsideTable::set_field4(::google::protobuf::int32 value) {
- set_has_field4();
- field4_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtensionInsideTable.field4)
- }
- // optional int32 field6 = 6;
- inline bool TestExtensionInsideTable::has_field6() const {
- return (_has_bits_[0] & 0x00000010u) != 0;
- }
- inline void TestExtensionInsideTable::set_has_field6() {
- _has_bits_[0] |= 0x00000010u;
- }
- inline void TestExtensionInsideTable::clear_has_field6() {
- _has_bits_[0] &= ~0x00000010u;
- }
- inline void TestExtensionInsideTable::clear_field6() {
- field6_ = 0;
- clear_has_field6();
- }
- inline ::google::protobuf::int32 TestExtensionInsideTable::field6() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtensionInsideTable.field6)
- return field6_;
- }
- inline void TestExtensionInsideTable::set_field6(::google::protobuf::int32 value) {
- set_has_field6();
- field6_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtensionInsideTable.field6)
- }
- // optional int32 field7 = 7;
- inline bool TestExtensionInsideTable::has_field7() const {
- return (_has_bits_[0] & 0x00000020u) != 0;
- }
- inline void TestExtensionInsideTable::set_has_field7() {
- _has_bits_[0] |= 0x00000020u;
- }
- inline void TestExtensionInsideTable::clear_has_field7() {
- _has_bits_[0] &= ~0x00000020u;
- }
- inline void TestExtensionInsideTable::clear_field7() {
- field7_ = 0;
- clear_has_field7();
- }
- inline ::google::protobuf::int32 TestExtensionInsideTable::field7() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtensionInsideTable.field7)
- return field7_;
- }
- inline void TestExtensionInsideTable::set_field7(::google::protobuf::int32 value) {
- set_has_field7();
- field7_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtensionInsideTable.field7)
- }
- // optional int32 field8 = 8;
- inline bool TestExtensionInsideTable::has_field8() const {
- return (_has_bits_[0] & 0x00000040u) != 0;
- }
- inline void TestExtensionInsideTable::set_has_field8() {
- _has_bits_[0] |= 0x00000040u;
- }
- inline void TestExtensionInsideTable::clear_has_field8() {
- _has_bits_[0] &= ~0x00000040u;
- }
- inline void TestExtensionInsideTable::clear_field8() {
- field8_ = 0;
- clear_has_field8();
- }
- inline ::google::protobuf::int32 TestExtensionInsideTable::field8() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtensionInsideTable.field8)
- return field8_;
- }
- inline void TestExtensionInsideTable::set_field8(::google::protobuf::int32 value) {
- set_has_field8();
- field8_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtensionInsideTable.field8)
- }
- // optional int32 field9 = 9;
- inline bool TestExtensionInsideTable::has_field9() const {
- return (_has_bits_[0] & 0x00000080u) != 0;
- }
- inline void TestExtensionInsideTable::set_has_field9() {
- _has_bits_[0] |= 0x00000080u;
- }
- inline void TestExtensionInsideTable::clear_has_field9() {
- _has_bits_[0] &= ~0x00000080u;
- }
- inline void TestExtensionInsideTable::clear_field9() {
- field9_ = 0;
- clear_has_field9();
- }
- inline ::google::protobuf::int32 TestExtensionInsideTable::field9() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtensionInsideTable.field9)
- return field9_;
- }
- inline void TestExtensionInsideTable::set_field9(::google::protobuf::int32 value) {
- set_has_field9();
- field9_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtensionInsideTable.field9)
- }
- // optional int32 field10 = 10;
- inline bool TestExtensionInsideTable::has_field10() const {
- return (_has_bits_[0] & 0x00000100u) != 0;
- }
- inline void TestExtensionInsideTable::set_has_field10() {
- _has_bits_[0] |= 0x00000100u;
- }
- inline void TestExtensionInsideTable::clear_has_field10() {
- _has_bits_[0] &= ~0x00000100u;
- }
- inline void TestExtensionInsideTable::clear_field10() {
- field10_ = 0;
- clear_has_field10();
- }
- inline ::google::protobuf::int32 TestExtensionInsideTable::field10() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtensionInsideTable.field10)
- return field10_;
- }
- inline void TestExtensionInsideTable::set_field10(::google::protobuf::int32 value) {
- set_has_field10();
- field10_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtensionInsideTable.field10)
- }
- #ifdef __GNUC__
- #pragma GCC diagnostic pop
- #endif // __GNUC__
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // @@protoc_insertion_point(namespace_scope)
- } // namespace protobuf_unittest
- namespace google {
- namespace protobuf {
- template <> struct is_proto_enum< ::protobuf_unittest::TestAllTypes_NestedEnum> : ::std::true_type {};
- template <>
- inline const EnumDescriptor* GetEnumDescriptor< ::protobuf_unittest::TestAllTypes_NestedEnum>() {
- return ::protobuf_unittest::TestAllTypes_NestedEnum_descriptor();
- }
- template <> struct is_proto_enum< ::protobuf_unittest::TestOneof2_NestedEnum> : ::std::true_type {};
- template <>
- inline const EnumDescriptor* GetEnumDescriptor< ::protobuf_unittest::TestOneof2_NestedEnum>() {
- return ::protobuf_unittest::TestOneof2_NestedEnum_descriptor();
- }
- template <> struct is_proto_enum< ::protobuf_unittest::TestDynamicExtensions_DynamicEnumType> : ::std::true_type {};
- template <>
- inline const EnumDescriptor* GetEnumDescriptor< ::protobuf_unittest::TestDynamicExtensions_DynamicEnumType>() {
- return ::protobuf_unittest::TestDynamicExtensions_DynamicEnumType_descriptor();
- }
- template <> struct is_proto_enum< ::protobuf_unittest::ForeignEnum> : ::std::true_type {};
- template <>
- inline const EnumDescriptor* GetEnumDescriptor< ::protobuf_unittest::ForeignEnum>() {
- return ::protobuf_unittest::ForeignEnum_descriptor();
- }
- template <> struct is_proto_enum< ::protobuf_unittest::TestEnumWithDupValue> : ::std::true_type {};
- template <>
- inline const EnumDescriptor* GetEnumDescriptor< ::protobuf_unittest::TestEnumWithDupValue>() {
- return ::protobuf_unittest::TestEnumWithDupValue_descriptor();
- }
- template <> struct is_proto_enum< ::protobuf_unittest::TestSparseEnum> : ::std::true_type {};
- template <>
- inline const EnumDescriptor* GetEnumDescriptor< ::protobuf_unittest::TestSparseEnum>() {
- return ::protobuf_unittest::TestSparseEnum_descriptor();
- }
- } // namespace protobuf
- } // namespace google
- // @@protoc_insertion_point(global_scope)
- #endif // PROTOBUF_INCLUDED_google_2fprotobuf_2funittest_2eproto
|