default_value.pb.h 269 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: google/protobuf/util/internal/testdata/default_value.proto
  3. #ifndef PROTOBUF_INCLUDED_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto
  4. #define PROTOBUF_INCLUDED_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto
  5. #include <string>
  6. #include <google/protobuf/stubs/common.h>
  7. #if GOOGLE_PROTOBUF_VERSION < 3006001
  8. #error This file was generated by a newer version of protoc which is
  9. #error incompatible with your Protocol Buffer headers. Please update
  10. #error your headers.
  11. #endif
  12. #if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
  13. #error This file was generated by an older version of protoc which is
  14. #error incompatible with your Protocol Buffer headers. Please
  15. #error regenerate this file with a newer version of protoc.
  16. #endif
  17. #include <google/protobuf/io/coded_stream.h>
  18. #include <google/protobuf/arena.h>
  19. #include <google/protobuf/arenastring.h>
  20. #include <google/protobuf/generated_message_table_driven.h>
  21. #include <google/protobuf/generated_message_util.h>
  22. #include <google/protobuf/inlined_string_field.h>
  23. #include <google/protobuf/metadata.h>
  24. #include <google/protobuf/message.h>
  25. #include <google/protobuf/repeated_field.h> // IWYU pragma: export
  26. #include <google/protobuf/extension_set.h> // IWYU pragma: export
  27. #include <google/protobuf/map.h> // IWYU pragma: export
  28. #include <google/protobuf/map_entry.h>
  29. #include <google/protobuf/map_field_inl.h>
  30. #include <google/protobuf/generated_enum_reflection.h>
  31. #include <google/protobuf/unknown_field_set.h>
  32. #include <google/protobuf/any.pb.h>
  33. #include <google/protobuf/struct.pb.h>
  34. #include <google/protobuf/wrappers.pb.h>
  35. // @@protoc_insertion_point(includes)
  36. #define PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto
  37. namespace protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto {
  38. // Internal implementation detail -- do not use these members.
  39. struct TableStruct {
  40. static const ::google::protobuf::internal::ParseTableField entries[];
  41. static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
  42. static const ::google::protobuf::internal::ParseTable schema[21];
  43. static const ::google::protobuf::internal::FieldMetadata field_metadata[];
  44. static const ::google::protobuf::internal::SerializationTable serialization_table[];
  45. static const ::google::protobuf::uint32 offsets[];
  46. };
  47. void AddDescriptors();
  48. } // namespace protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto
  49. namespace google {
  50. namespace protobuf {
  51. namespace testing {
  52. class AnyData;
  53. class AnyDataDefaultTypeInternal;
  54. extern AnyDataDefaultTypeInternal _AnyData_default_instance_;
  55. class AnyData_MapDataEntry_DoNotUse;
  56. class AnyData_MapDataEntry_DoNotUseDefaultTypeInternal;
  57. extern AnyData_MapDataEntry_DoNotUseDefaultTypeInternal _AnyData_MapDataEntry_DoNotUse_default_instance_;
  58. class AnyMessage;
  59. class AnyMessageDefaultTypeInternal;
  60. extern AnyMessageDefaultTypeInternal _AnyMessage_default_instance_;
  61. class DefaultValueTestCases;
  62. class DefaultValueTestCasesDefaultTypeInternal;
  63. extern DefaultValueTestCasesDefaultTypeInternal _DefaultValueTestCases_default_instance_;
  64. class DoubleMessage;
  65. class DoubleMessageDefaultTypeInternal;
  66. extern DoubleMessageDefaultTypeInternal _DoubleMessage_default_instance_;
  67. class DoubleValueMessage;
  68. class DoubleValueMessageDefaultTypeInternal;
  69. extern DoubleValueMessageDefaultTypeInternal _DoubleValueMessage_default_instance_;
  70. class IntToStringMap;
  71. class IntToStringMapDefaultTypeInternal;
  72. extern IntToStringMapDefaultTypeInternal _IntToStringMap_default_instance_;
  73. class IntToStringMap_MapEntry_DoNotUse;
  74. class IntToStringMap_MapEntry_DoNotUseDefaultTypeInternal;
  75. extern IntToStringMap_MapEntry_DoNotUseDefaultTypeInternal _IntToStringMap_MapEntry_DoNotUse_default_instance_;
  76. class ListValueMessage;
  77. class ListValueMessageDefaultTypeInternal;
  78. extern ListValueMessageDefaultTypeInternal _ListValueMessage_default_instance_;
  79. class MessageMap;
  80. class MessageMapDefaultTypeInternal;
  81. extern MessageMapDefaultTypeInternal _MessageMap_default_instance_;
  82. class MessageMap_M;
  83. class MessageMap_MDefaultTypeInternal;
  84. extern MessageMap_MDefaultTypeInternal _MessageMap_M_default_instance_;
  85. class MessageMap_MapEntry_DoNotUse;
  86. class MessageMap_MapEntry_DoNotUseDefaultTypeInternal;
  87. extern MessageMap_MapEntry_DoNotUseDefaultTypeInternal _MessageMap_MapEntry_DoNotUse_default_instance_;
  88. class MixedMap;
  89. class MixedMapDefaultTypeInternal;
  90. extern MixedMapDefaultTypeInternal _MixedMap_default_instance_;
  91. class MixedMap2;
  92. class MixedMap2DefaultTypeInternal;
  93. extern MixedMap2DefaultTypeInternal _MixedMap2_default_instance_;
  94. class MixedMap2_MapEntry_DoNotUse;
  95. class MixedMap2_MapEntry_DoNotUseDefaultTypeInternal;
  96. extern MixedMap2_MapEntry_DoNotUseDefaultTypeInternal _MixedMap2_MapEntry_DoNotUse_default_instance_;
  97. class MixedMap_MapEntry_DoNotUse;
  98. class MixedMap_MapEntry_DoNotUseDefaultTypeInternal;
  99. extern MixedMap_MapEntry_DoNotUseDefaultTypeInternal _MixedMap_MapEntry_DoNotUse_default_instance_;
  100. class RequestMessage;
  101. class RequestMessageDefaultTypeInternal;
  102. extern RequestMessageDefaultTypeInternal _RequestMessage_default_instance_;
  103. class StringtoIntMap;
  104. class StringtoIntMapDefaultTypeInternal;
  105. extern StringtoIntMapDefaultTypeInternal _StringtoIntMap_default_instance_;
  106. class StringtoIntMap_MapEntry_DoNotUse;
  107. class StringtoIntMap_MapEntry_DoNotUseDefaultTypeInternal;
  108. extern StringtoIntMap_MapEntry_DoNotUseDefaultTypeInternal _StringtoIntMap_MapEntry_DoNotUse_default_instance_;
  109. class StructMessage;
  110. class StructMessageDefaultTypeInternal;
  111. extern StructMessageDefaultTypeInternal _StructMessage_default_instance_;
  112. class ValueMessage;
  113. class ValueMessageDefaultTypeInternal;
  114. extern ValueMessageDefaultTypeInternal _ValueMessage_default_instance_;
  115. } // namespace testing
  116. } // namespace protobuf
  117. } // namespace google
  118. namespace google {
  119. namespace protobuf {
  120. template<> ::google::protobuf::testing::AnyData* Arena::CreateMaybeMessage<::google::protobuf::testing::AnyData>(Arena*);
  121. template<> ::google::protobuf::testing::AnyData_MapDataEntry_DoNotUse* Arena::CreateMaybeMessage<::google::protobuf::testing::AnyData_MapDataEntry_DoNotUse>(Arena*);
  122. template<> ::google::protobuf::testing::AnyMessage* Arena::CreateMaybeMessage<::google::protobuf::testing::AnyMessage>(Arena*);
  123. template<> ::google::protobuf::testing::DefaultValueTestCases* Arena::CreateMaybeMessage<::google::protobuf::testing::DefaultValueTestCases>(Arena*);
  124. template<> ::google::protobuf::testing::DoubleMessage* Arena::CreateMaybeMessage<::google::protobuf::testing::DoubleMessage>(Arena*);
  125. template<> ::google::protobuf::testing::DoubleValueMessage* Arena::CreateMaybeMessage<::google::protobuf::testing::DoubleValueMessage>(Arena*);
  126. template<> ::google::protobuf::testing::IntToStringMap* Arena::CreateMaybeMessage<::google::protobuf::testing::IntToStringMap>(Arena*);
  127. template<> ::google::protobuf::testing::IntToStringMap_MapEntry_DoNotUse* Arena::CreateMaybeMessage<::google::protobuf::testing::IntToStringMap_MapEntry_DoNotUse>(Arena*);
  128. template<> ::google::protobuf::testing::ListValueMessage* Arena::CreateMaybeMessage<::google::protobuf::testing::ListValueMessage>(Arena*);
  129. template<> ::google::protobuf::testing::MessageMap* Arena::CreateMaybeMessage<::google::protobuf::testing::MessageMap>(Arena*);
  130. template<> ::google::protobuf::testing::MessageMap_M* Arena::CreateMaybeMessage<::google::protobuf::testing::MessageMap_M>(Arena*);
  131. template<> ::google::protobuf::testing::MessageMap_MapEntry_DoNotUse* Arena::CreateMaybeMessage<::google::protobuf::testing::MessageMap_MapEntry_DoNotUse>(Arena*);
  132. template<> ::google::protobuf::testing::MixedMap* Arena::CreateMaybeMessage<::google::protobuf::testing::MixedMap>(Arena*);
  133. template<> ::google::protobuf::testing::MixedMap2* Arena::CreateMaybeMessage<::google::protobuf::testing::MixedMap2>(Arena*);
  134. template<> ::google::protobuf::testing::MixedMap2_MapEntry_DoNotUse* Arena::CreateMaybeMessage<::google::protobuf::testing::MixedMap2_MapEntry_DoNotUse>(Arena*);
  135. template<> ::google::protobuf::testing::MixedMap_MapEntry_DoNotUse* Arena::CreateMaybeMessage<::google::protobuf::testing::MixedMap_MapEntry_DoNotUse>(Arena*);
  136. template<> ::google::protobuf::testing::RequestMessage* Arena::CreateMaybeMessage<::google::protobuf::testing::RequestMessage>(Arena*);
  137. template<> ::google::protobuf::testing::StringtoIntMap* Arena::CreateMaybeMessage<::google::protobuf::testing::StringtoIntMap>(Arena*);
  138. template<> ::google::protobuf::testing::StringtoIntMap_MapEntry_DoNotUse* Arena::CreateMaybeMessage<::google::protobuf::testing::StringtoIntMap_MapEntry_DoNotUse>(Arena*);
  139. template<> ::google::protobuf::testing::StructMessage* Arena::CreateMaybeMessage<::google::protobuf::testing::StructMessage>(Arena*);
  140. template<> ::google::protobuf::testing::ValueMessage* Arena::CreateMaybeMessage<::google::protobuf::testing::ValueMessage>(Arena*);
  141. } // namespace protobuf
  142. } // namespace google
  143. namespace google {
  144. namespace protobuf {
  145. namespace testing {
  146. enum MixedMap2_E {
  147. MixedMap2_E_E0 = 0,
  148. MixedMap2_E_E1 = 1,
  149. MixedMap2_E_E2 = 2,
  150. MixedMap2_E_E3 = 3,
  151. MixedMap2_E_MixedMap2_E_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min,
  152. MixedMap2_E_MixedMap2_E_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max
  153. };
  154. bool MixedMap2_E_IsValid(int value);
  155. const MixedMap2_E MixedMap2_E_E_MIN = MixedMap2_E_E0;
  156. const MixedMap2_E MixedMap2_E_E_MAX = MixedMap2_E_E3;
  157. const int MixedMap2_E_E_ARRAYSIZE = MixedMap2_E_E_MAX + 1;
  158. const ::google::protobuf::EnumDescriptor* MixedMap2_E_descriptor();
  159. inline const ::std::string& MixedMap2_E_Name(MixedMap2_E value) {
  160. return ::google::protobuf::internal::NameOfEnum(
  161. MixedMap2_E_descriptor(), value);
  162. }
  163. inline bool MixedMap2_E_Parse(
  164. const ::std::string& name, MixedMap2_E* value) {
  165. return ::google::protobuf::internal::ParseNamedEnum<MixedMap2_E>(
  166. MixedMap2_E_descriptor(), name, value);
  167. }
  168. // ===================================================================
  169. class DefaultValueTestCases : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.DefaultValueTestCases) */ {
  170. public:
  171. DefaultValueTestCases();
  172. virtual ~DefaultValueTestCases();
  173. DefaultValueTestCases(const DefaultValueTestCases& from);
  174. inline DefaultValueTestCases& operator=(const DefaultValueTestCases& from) {
  175. CopyFrom(from);
  176. return *this;
  177. }
  178. #if LANG_CXX11
  179. DefaultValueTestCases(DefaultValueTestCases&& from) noexcept
  180. : DefaultValueTestCases() {
  181. *this = ::std::move(from);
  182. }
  183. inline DefaultValueTestCases& operator=(DefaultValueTestCases&& from) noexcept {
  184. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  185. if (this != &from) InternalSwap(&from);
  186. } else {
  187. CopyFrom(from);
  188. }
  189. return *this;
  190. }
  191. #endif
  192. static const ::google::protobuf::Descriptor* descriptor();
  193. static const DefaultValueTestCases& default_instance();
  194. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  195. static inline const DefaultValueTestCases* internal_default_instance() {
  196. return reinterpret_cast<const DefaultValueTestCases*>(
  197. &_DefaultValueTestCases_default_instance_);
  198. }
  199. static constexpr int kIndexInFileMessages =
  200. 0;
  201. void Swap(DefaultValueTestCases* other);
  202. friend void swap(DefaultValueTestCases& a, DefaultValueTestCases& b) {
  203. a.Swap(&b);
  204. }
  205. // implements Message ----------------------------------------------
  206. inline DefaultValueTestCases* New() const final {
  207. return CreateMaybeMessage<DefaultValueTestCases>(NULL);
  208. }
  209. DefaultValueTestCases* New(::google::protobuf::Arena* arena) const final {
  210. return CreateMaybeMessage<DefaultValueTestCases>(arena);
  211. }
  212. void CopyFrom(const ::google::protobuf::Message& from) final;
  213. void MergeFrom(const ::google::protobuf::Message& from) final;
  214. void CopyFrom(const DefaultValueTestCases& from);
  215. void MergeFrom(const DefaultValueTestCases& from);
  216. void Clear() final;
  217. bool IsInitialized() const final;
  218. size_t ByteSizeLong() const final;
  219. bool MergePartialFromCodedStream(
  220. ::google::protobuf::io::CodedInputStream* input) final;
  221. void SerializeWithCachedSizes(
  222. ::google::protobuf::io::CodedOutputStream* output) const final;
  223. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  224. bool deterministic, ::google::protobuf::uint8* target) const final;
  225. int GetCachedSize() const final { return _cached_size_.Get(); }
  226. private:
  227. void SharedCtor();
  228. void SharedDtor();
  229. void SetCachedSize(int size) const final;
  230. void InternalSwap(DefaultValueTestCases* other);
  231. private:
  232. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  233. return NULL;
  234. }
  235. inline void* MaybeArenaPtr() const {
  236. return NULL;
  237. }
  238. public:
  239. ::google::protobuf::Metadata GetMetadata() const final;
  240. // nested types ----------------------------------------------------
  241. // accessors -------------------------------------------------------
  242. // .google.protobuf.testing.DoubleMessage empty_double = 1;
  243. bool has_empty_double() const;
  244. void clear_empty_double();
  245. static const int kEmptyDoubleFieldNumber = 1;
  246. private:
  247. const ::google::protobuf::testing::DoubleMessage& _internal_empty_double() const;
  248. public:
  249. const ::google::protobuf::testing::DoubleMessage& empty_double() const;
  250. ::google::protobuf::testing::DoubleMessage* release_empty_double();
  251. ::google::protobuf::testing::DoubleMessage* mutable_empty_double();
  252. void set_allocated_empty_double(::google::protobuf::testing::DoubleMessage* empty_double);
  253. // .google.protobuf.testing.DoubleMessage double_with_default_value = 2;
  254. bool has_double_with_default_value() const;
  255. void clear_double_with_default_value();
  256. static const int kDoubleWithDefaultValueFieldNumber = 2;
  257. private:
  258. const ::google::protobuf::testing::DoubleMessage& _internal_double_with_default_value() const;
  259. public:
  260. const ::google::protobuf::testing::DoubleMessage& double_with_default_value() const;
  261. ::google::protobuf::testing::DoubleMessage* release_double_with_default_value();
  262. ::google::protobuf::testing::DoubleMessage* mutable_double_with_default_value();
  263. void set_allocated_double_with_default_value(::google::protobuf::testing::DoubleMessage* double_with_default_value);
  264. // .google.protobuf.testing.DoubleMessage double_with_nondefault_value = 3;
  265. bool has_double_with_nondefault_value() const;
  266. void clear_double_with_nondefault_value();
  267. static const int kDoubleWithNondefaultValueFieldNumber = 3;
  268. private:
  269. const ::google::protobuf::testing::DoubleMessage& _internal_double_with_nondefault_value() const;
  270. public:
  271. const ::google::protobuf::testing::DoubleMessage& double_with_nondefault_value() const;
  272. ::google::protobuf::testing::DoubleMessage* release_double_with_nondefault_value();
  273. ::google::protobuf::testing::DoubleMessage* mutable_double_with_nondefault_value();
  274. void set_allocated_double_with_nondefault_value(::google::protobuf::testing::DoubleMessage* double_with_nondefault_value);
  275. // .google.protobuf.testing.DoubleMessage repeated_double = 4;
  276. bool has_repeated_double() const;
  277. void clear_repeated_double();
  278. static const int kRepeatedDoubleFieldNumber = 4;
  279. private:
  280. const ::google::protobuf::testing::DoubleMessage& _internal_repeated_double() const;
  281. public:
  282. const ::google::protobuf::testing::DoubleMessage& repeated_double() const;
  283. ::google::protobuf::testing::DoubleMessage* release_repeated_double();
  284. ::google::protobuf::testing::DoubleMessage* mutable_repeated_double();
  285. void set_allocated_repeated_double(::google::protobuf::testing::DoubleMessage* repeated_double);
  286. // .google.protobuf.testing.DoubleMessage nested_message = 5;
  287. bool has_nested_message() const;
  288. void clear_nested_message();
  289. static const int kNestedMessageFieldNumber = 5;
  290. private:
  291. const ::google::protobuf::testing::DoubleMessage& _internal_nested_message() const;
  292. public:
  293. const ::google::protobuf::testing::DoubleMessage& nested_message() const;
  294. ::google::protobuf::testing::DoubleMessage* release_nested_message();
  295. ::google::protobuf::testing::DoubleMessage* mutable_nested_message();
  296. void set_allocated_nested_message(::google::protobuf::testing::DoubleMessage* nested_message);
  297. // .google.protobuf.testing.DoubleMessage repeated_nested_message = 6;
  298. bool has_repeated_nested_message() const;
  299. void clear_repeated_nested_message();
  300. static const int kRepeatedNestedMessageFieldNumber = 6;
  301. private:
  302. const ::google::protobuf::testing::DoubleMessage& _internal_repeated_nested_message() const;
  303. public:
  304. const ::google::protobuf::testing::DoubleMessage& repeated_nested_message() const;
  305. ::google::protobuf::testing::DoubleMessage* release_repeated_nested_message();
  306. ::google::protobuf::testing::DoubleMessage* mutable_repeated_nested_message();
  307. void set_allocated_repeated_nested_message(::google::protobuf::testing::DoubleMessage* repeated_nested_message);
  308. // .google.protobuf.testing.DoubleMessage double_message_with_oneof = 7;
  309. bool has_double_message_with_oneof() const;
  310. void clear_double_message_with_oneof();
  311. static const int kDoubleMessageWithOneofFieldNumber = 7;
  312. private:
  313. const ::google::protobuf::testing::DoubleMessage& _internal_double_message_with_oneof() const;
  314. public:
  315. const ::google::protobuf::testing::DoubleMessage& double_message_with_oneof() const;
  316. ::google::protobuf::testing::DoubleMessage* release_double_message_with_oneof();
  317. ::google::protobuf::testing::DoubleMessage* mutable_double_message_with_oneof();
  318. void set_allocated_double_message_with_oneof(::google::protobuf::testing::DoubleMessage* double_message_with_oneof);
  319. // .google.protobuf.testing.StructMessage empty_struct = 201;
  320. bool has_empty_struct() const;
  321. void clear_empty_struct();
  322. static const int kEmptyStructFieldNumber = 201;
  323. private:
  324. const ::google::protobuf::testing::StructMessage& _internal_empty_struct() const;
  325. public:
  326. const ::google::protobuf::testing::StructMessage& empty_struct() const;
  327. ::google::protobuf::testing::StructMessage* release_empty_struct();
  328. ::google::protobuf::testing::StructMessage* mutable_empty_struct();
  329. void set_allocated_empty_struct(::google::protobuf::testing::StructMessage* empty_struct);
  330. // .google.protobuf.testing.StructMessage empty_struct2 = 202;
  331. bool has_empty_struct2() const;
  332. void clear_empty_struct2();
  333. static const int kEmptyStruct2FieldNumber = 202;
  334. private:
  335. const ::google::protobuf::testing::StructMessage& _internal_empty_struct2() const;
  336. public:
  337. const ::google::protobuf::testing::StructMessage& empty_struct2() const;
  338. ::google::protobuf::testing::StructMessage* release_empty_struct2();
  339. ::google::protobuf::testing::StructMessage* mutable_empty_struct2();
  340. void set_allocated_empty_struct2(::google::protobuf::testing::StructMessage* empty_struct2);
  341. // .google.protobuf.testing.StructMessage struct_with_null_value = 203;
  342. bool has_struct_with_null_value() const;
  343. void clear_struct_with_null_value();
  344. static const int kStructWithNullValueFieldNumber = 203;
  345. private:
  346. const ::google::protobuf::testing::StructMessage& _internal_struct_with_null_value() const;
  347. public:
  348. const ::google::protobuf::testing::StructMessage& struct_with_null_value() const;
  349. ::google::protobuf::testing::StructMessage* release_struct_with_null_value();
  350. ::google::protobuf::testing::StructMessage* mutable_struct_with_null_value();
  351. void set_allocated_struct_with_null_value(::google::protobuf::testing::StructMessage* struct_with_null_value);
  352. // .google.protobuf.testing.StructMessage struct_with_values = 204;
  353. bool has_struct_with_values() const;
  354. void clear_struct_with_values();
  355. static const int kStructWithValuesFieldNumber = 204;
  356. private:
  357. const ::google::protobuf::testing::StructMessage& _internal_struct_with_values() const;
  358. public:
  359. const ::google::protobuf::testing::StructMessage& struct_with_values() const;
  360. ::google::protobuf::testing::StructMessage* release_struct_with_values();
  361. ::google::protobuf::testing::StructMessage* mutable_struct_with_values();
  362. void set_allocated_struct_with_values(::google::protobuf::testing::StructMessage* struct_with_values);
  363. // .google.protobuf.testing.StructMessage struct_with_nested_struct = 205;
  364. bool has_struct_with_nested_struct() const;
  365. void clear_struct_with_nested_struct();
  366. static const int kStructWithNestedStructFieldNumber = 205;
  367. private:
  368. const ::google::protobuf::testing::StructMessage& _internal_struct_with_nested_struct() const;
  369. public:
  370. const ::google::protobuf::testing::StructMessage& struct_with_nested_struct() const;
  371. ::google::protobuf::testing::StructMessage* release_struct_with_nested_struct();
  372. ::google::protobuf::testing::StructMessage* mutable_struct_with_nested_struct();
  373. void set_allocated_struct_with_nested_struct(::google::protobuf::testing::StructMessage* struct_with_nested_struct);
  374. // .google.protobuf.testing.StructMessage struct_with_nested_list = 206;
  375. bool has_struct_with_nested_list() const;
  376. void clear_struct_with_nested_list();
  377. static const int kStructWithNestedListFieldNumber = 206;
  378. private:
  379. const ::google::protobuf::testing::StructMessage& _internal_struct_with_nested_list() const;
  380. public:
  381. const ::google::protobuf::testing::StructMessage& struct_with_nested_list() const;
  382. ::google::protobuf::testing::StructMessage* release_struct_with_nested_list();
  383. ::google::protobuf::testing::StructMessage* mutable_struct_with_nested_list();
  384. void set_allocated_struct_with_nested_list(::google::protobuf::testing::StructMessage* struct_with_nested_list);
  385. // .google.protobuf.testing.StructMessage struct_with_list_of_nulls = 207;
  386. bool has_struct_with_list_of_nulls() const;
  387. void clear_struct_with_list_of_nulls();
  388. static const int kStructWithListOfNullsFieldNumber = 207;
  389. private:
  390. const ::google::protobuf::testing::StructMessage& _internal_struct_with_list_of_nulls() const;
  391. public:
  392. const ::google::protobuf::testing::StructMessage& struct_with_list_of_nulls() const;
  393. ::google::protobuf::testing::StructMessage* release_struct_with_list_of_nulls();
  394. ::google::protobuf::testing::StructMessage* mutable_struct_with_list_of_nulls();
  395. void set_allocated_struct_with_list_of_nulls(::google::protobuf::testing::StructMessage* struct_with_list_of_nulls);
  396. // .google.protobuf.testing.StructMessage struct_with_list_of_lists = 208;
  397. bool has_struct_with_list_of_lists() const;
  398. void clear_struct_with_list_of_lists();
  399. static const int kStructWithListOfListsFieldNumber = 208;
  400. private:
  401. const ::google::protobuf::testing::StructMessage& _internal_struct_with_list_of_lists() const;
  402. public:
  403. const ::google::protobuf::testing::StructMessage& struct_with_list_of_lists() const;
  404. ::google::protobuf::testing::StructMessage* release_struct_with_list_of_lists();
  405. ::google::protobuf::testing::StructMessage* mutable_struct_with_list_of_lists();
  406. void set_allocated_struct_with_list_of_lists(::google::protobuf::testing::StructMessage* struct_with_list_of_lists);
  407. // .google.protobuf.testing.StructMessage struct_with_list_of_structs = 209;
  408. bool has_struct_with_list_of_structs() const;
  409. void clear_struct_with_list_of_structs();
  410. static const int kStructWithListOfStructsFieldNumber = 209;
  411. private:
  412. const ::google::protobuf::testing::StructMessage& _internal_struct_with_list_of_structs() const;
  413. public:
  414. const ::google::protobuf::testing::StructMessage& struct_with_list_of_structs() const;
  415. ::google::protobuf::testing::StructMessage* release_struct_with_list_of_structs();
  416. ::google::protobuf::testing::StructMessage* mutable_struct_with_list_of_structs();
  417. void set_allocated_struct_with_list_of_structs(::google::protobuf::testing::StructMessage* struct_with_list_of_structs);
  418. // .google.protobuf.Struct top_level_struct = 210;
  419. bool has_top_level_struct() const;
  420. void clear_top_level_struct();
  421. static const int kTopLevelStructFieldNumber = 210;
  422. private:
  423. const ::google::protobuf::Struct& _internal_top_level_struct() const;
  424. public:
  425. const ::google::protobuf::Struct& top_level_struct() const;
  426. ::google::protobuf::Struct* release_top_level_struct();
  427. ::google::protobuf::Struct* mutable_top_level_struct();
  428. void set_allocated_top_level_struct(::google::protobuf::Struct* top_level_struct);
  429. // .google.protobuf.testing.ValueMessage value_wrapper_simple = 212;
  430. bool has_value_wrapper_simple() const;
  431. void clear_value_wrapper_simple();
  432. static const int kValueWrapperSimpleFieldNumber = 212;
  433. private:
  434. const ::google::protobuf::testing::ValueMessage& _internal_value_wrapper_simple() const;
  435. public:
  436. const ::google::protobuf::testing::ValueMessage& value_wrapper_simple() const;
  437. ::google::protobuf::testing::ValueMessage* release_value_wrapper_simple();
  438. ::google::protobuf::testing::ValueMessage* mutable_value_wrapper_simple();
  439. void set_allocated_value_wrapper_simple(::google::protobuf::testing::ValueMessage* value_wrapper_simple);
  440. // .google.protobuf.testing.ValueMessage value_wrapper_with_struct = 213;
  441. bool has_value_wrapper_with_struct() const;
  442. void clear_value_wrapper_with_struct();
  443. static const int kValueWrapperWithStructFieldNumber = 213;
  444. private:
  445. const ::google::protobuf::testing::ValueMessage& _internal_value_wrapper_with_struct() const;
  446. public:
  447. const ::google::protobuf::testing::ValueMessage& value_wrapper_with_struct() const;
  448. ::google::protobuf::testing::ValueMessage* release_value_wrapper_with_struct();
  449. ::google::protobuf::testing::ValueMessage* mutable_value_wrapper_with_struct();
  450. void set_allocated_value_wrapper_with_struct(::google::protobuf::testing::ValueMessage* value_wrapper_with_struct);
  451. // .google.protobuf.testing.ValueMessage value_wrapper_with_list = 214;
  452. bool has_value_wrapper_with_list() const;
  453. void clear_value_wrapper_with_list();
  454. static const int kValueWrapperWithListFieldNumber = 214;
  455. private:
  456. const ::google::protobuf::testing::ValueMessage& _internal_value_wrapper_with_list() const;
  457. public:
  458. const ::google::protobuf::testing::ValueMessage& value_wrapper_with_list() const;
  459. ::google::protobuf::testing::ValueMessage* release_value_wrapper_with_list();
  460. ::google::protobuf::testing::ValueMessage* mutable_value_wrapper_with_list();
  461. void set_allocated_value_wrapper_with_list(::google::protobuf::testing::ValueMessage* value_wrapper_with_list);
  462. // .google.protobuf.testing.ListValueMessage list_value_wrapper = 215;
  463. bool has_list_value_wrapper() const;
  464. void clear_list_value_wrapper();
  465. static const int kListValueWrapperFieldNumber = 215;
  466. private:
  467. const ::google::protobuf::testing::ListValueMessage& _internal_list_value_wrapper() const;
  468. public:
  469. const ::google::protobuf::testing::ListValueMessage& list_value_wrapper() const;
  470. ::google::protobuf::testing::ListValueMessage* release_list_value_wrapper();
  471. ::google::protobuf::testing::ListValueMessage* mutable_list_value_wrapper();
  472. void set_allocated_list_value_wrapper(::google::protobuf::testing::ListValueMessage* list_value_wrapper);
  473. // .google.protobuf.Value top_level_value_simple = 216;
  474. bool has_top_level_value_simple() const;
  475. void clear_top_level_value_simple();
  476. static const int kTopLevelValueSimpleFieldNumber = 216;
  477. private:
  478. const ::google::protobuf::Value& _internal_top_level_value_simple() const;
  479. public:
  480. const ::google::protobuf::Value& top_level_value_simple() const;
  481. ::google::protobuf::Value* release_top_level_value_simple();
  482. ::google::protobuf::Value* mutable_top_level_value_simple();
  483. void set_allocated_top_level_value_simple(::google::protobuf::Value* top_level_value_simple);
  484. // .google.protobuf.Value top_level_value_with_struct = 217;
  485. bool has_top_level_value_with_struct() const;
  486. void clear_top_level_value_with_struct();
  487. static const int kTopLevelValueWithStructFieldNumber = 217;
  488. private:
  489. const ::google::protobuf::Value& _internal_top_level_value_with_struct() const;
  490. public:
  491. const ::google::protobuf::Value& top_level_value_with_struct() const;
  492. ::google::protobuf::Value* release_top_level_value_with_struct();
  493. ::google::protobuf::Value* mutable_top_level_value_with_struct();
  494. void set_allocated_top_level_value_with_struct(::google::protobuf::Value* top_level_value_with_struct);
  495. // .google.protobuf.Value top_level_value_with_list = 218;
  496. bool has_top_level_value_with_list() const;
  497. void clear_top_level_value_with_list();
  498. static const int kTopLevelValueWithListFieldNumber = 218;
  499. private:
  500. const ::google::protobuf::Value& _internal_top_level_value_with_list() const;
  501. public:
  502. const ::google::protobuf::Value& top_level_value_with_list() const;
  503. ::google::protobuf::Value* release_top_level_value_with_list();
  504. ::google::protobuf::Value* mutable_top_level_value_with_list();
  505. void set_allocated_top_level_value_with_list(::google::protobuf::Value* top_level_value_with_list);
  506. // .google.protobuf.ListValue top_level_listvalue = 219;
  507. bool has_top_level_listvalue() const;
  508. void clear_top_level_listvalue();
  509. static const int kTopLevelListvalueFieldNumber = 219;
  510. private:
  511. const ::google::protobuf::ListValue& _internal_top_level_listvalue() const;
  512. public:
  513. const ::google::protobuf::ListValue& top_level_listvalue() const;
  514. ::google::protobuf::ListValue* release_top_level_listvalue();
  515. ::google::protobuf::ListValue* mutable_top_level_listvalue();
  516. void set_allocated_top_level_listvalue(::google::protobuf::ListValue* top_level_listvalue);
  517. // .google.protobuf.testing.AnyMessage empty_any = 301;
  518. bool has_empty_any() const;
  519. void clear_empty_any();
  520. static const int kEmptyAnyFieldNumber = 301;
  521. private:
  522. const ::google::protobuf::testing::AnyMessage& _internal_empty_any() const;
  523. public:
  524. const ::google::protobuf::testing::AnyMessage& empty_any() const;
  525. ::google::protobuf::testing::AnyMessage* release_empty_any();
  526. ::google::protobuf::testing::AnyMessage* mutable_empty_any();
  527. void set_allocated_empty_any(::google::protobuf::testing::AnyMessage* empty_any);
  528. // .google.protobuf.testing.AnyMessage type_only_any = 302;
  529. bool has_type_only_any() const;
  530. void clear_type_only_any();
  531. static const int kTypeOnlyAnyFieldNumber = 302;
  532. private:
  533. const ::google::protobuf::testing::AnyMessage& _internal_type_only_any() const;
  534. public:
  535. const ::google::protobuf::testing::AnyMessage& type_only_any() const;
  536. ::google::protobuf::testing::AnyMessage* release_type_only_any();
  537. ::google::protobuf::testing::AnyMessage* mutable_type_only_any();
  538. void set_allocated_type_only_any(::google::protobuf::testing::AnyMessage* type_only_any);
  539. // .google.protobuf.testing.AnyMessage recursive_any = 303;
  540. bool has_recursive_any() const;
  541. void clear_recursive_any();
  542. static const int kRecursiveAnyFieldNumber = 303;
  543. private:
  544. const ::google::protobuf::testing::AnyMessage& _internal_recursive_any() const;
  545. public:
  546. const ::google::protobuf::testing::AnyMessage& recursive_any() const;
  547. ::google::protobuf::testing::AnyMessage* release_recursive_any();
  548. ::google::protobuf::testing::AnyMessage* mutable_recursive_any();
  549. void set_allocated_recursive_any(::google::protobuf::testing::AnyMessage* recursive_any);
  550. // .google.protobuf.testing.AnyMessage any_with_message_value = 304;
  551. bool has_any_with_message_value() const;
  552. void clear_any_with_message_value();
  553. static const int kAnyWithMessageValueFieldNumber = 304;
  554. private:
  555. const ::google::protobuf::testing::AnyMessage& _internal_any_with_message_value() const;
  556. public:
  557. const ::google::protobuf::testing::AnyMessage& any_with_message_value() const;
  558. ::google::protobuf::testing::AnyMessage* release_any_with_message_value();
  559. ::google::protobuf::testing::AnyMessage* mutable_any_with_message_value();
  560. void set_allocated_any_with_message_value(::google::protobuf::testing::AnyMessage* any_with_message_value);
  561. // .google.protobuf.testing.AnyMessage any_with_nested_message = 305;
  562. bool has_any_with_nested_message() const;
  563. void clear_any_with_nested_message();
  564. static const int kAnyWithNestedMessageFieldNumber = 305;
  565. private:
  566. const ::google::protobuf::testing::AnyMessage& _internal_any_with_nested_message() const;
  567. public:
  568. const ::google::protobuf::testing::AnyMessage& any_with_nested_message() const;
  569. ::google::protobuf::testing::AnyMessage* release_any_with_nested_message();
  570. ::google::protobuf::testing::AnyMessage* mutable_any_with_nested_message();
  571. void set_allocated_any_with_nested_message(::google::protobuf::testing::AnyMessage* any_with_nested_message);
  572. // .google.protobuf.testing.AnyMessage any_with_message_containing_map = 306;
  573. bool has_any_with_message_containing_map() const;
  574. void clear_any_with_message_containing_map();
  575. static const int kAnyWithMessageContainingMapFieldNumber = 306;
  576. private:
  577. const ::google::protobuf::testing::AnyMessage& _internal_any_with_message_containing_map() const;
  578. public:
  579. const ::google::protobuf::testing::AnyMessage& any_with_message_containing_map() const;
  580. ::google::protobuf::testing::AnyMessage* release_any_with_message_containing_map();
  581. ::google::protobuf::testing::AnyMessage* mutable_any_with_message_containing_map();
  582. void set_allocated_any_with_message_containing_map(::google::protobuf::testing::AnyMessage* any_with_message_containing_map);
  583. // .google.protobuf.testing.AnyMessage any_with_message_containing_struct = 307;
  584. bool has_any_with_message_containing_struct() const;
  585. void clear_any_with_message_containing_struct();
  586. static const int kAnyWithMessageContainingStructFieldNumber = 307;
  587. private:
  588. const ::google::protobuf::testing::AnyMessage& _internal_any_with_message_containing_struct() const;
  589. public:
  590. const ::google::protobuf::testing::AnyMessage& any_with_message_containing_struct() const;
  591. ::google::protobuf::testing::AnyMessage* release_any_with_message_containing_struct();
  592. ::google::protobuf::testing::AnyMessage* mutable_any_with_message_containing_struct();
  593. void set_allocated_any_with_message_containing_struct(::google::protobuf::testing::AnyMessage* any_with_message_containing_struct);
  594. // .google.protobuf.Any top_level_any = 308;
  595. bool has_top_level_any() const;
  596. void clear_top_level_any();
  597. static const int kTopLevelAnyFieldNumber = 308;
  598. private:
  599. const ::google::protobuf::Any& _internal_top_level_any() const;
  600. public:
  601. const ::google::protobuf::Any& top_level_any() const;
  602. ::google::protobuf::Any* release_top_level_any();
  603. ::google::protobuf::Any* mutable_top_level_any();
  604. void set_allocated_top_level_any(::google::protobuf::Any* top_level_any);
  605. // .google.protobuf.testing.StringtoIntMap empty_map = 401;
  606. bool has_empty_map() const;
  607. void clear_empty_map();
  608. static const int kEmptyMapFieldNumber = 401;
  609. private:
  610. const ::google::protobuf::testing::StringtoIntMap& _internal_empty_map() const;
  611. public:
  612. const ::google::protobuf::testing::StringtoIntMap& empty_map() const;
  613. ::google::protobuf::testing::StringtoIntMap* release_empty_map();
  614. ::google::protobuf::testing::StringtoIntMap* mutable_empty_map();
  615. void set_allocated_empty_map(::google::protobuf::testing::StringtoIntMap* empty_map);
  616. // .google.protobuf.testing.StringtoIntMap string_to_int = 402;
  617. bool has_string_to_int() const;
  618. void clear_string_to_int();
  619. static const int kStringToIntFieldNumber = 402;
  620. private:
  621. const ::google::protobuf::testing::StringtoIntMap& _internal_string_to_int() const;
  622. public:
  623. const ::google::protobuf::testing::StringtoIntMap& string_to_int() const;
  624. ::google::protobuf::testing::StringtoIntMap* release_string_to_int();
  625. ::google::protobuf::testing::StringtoIntMap* mutable_string_to_int();
  626. void set_allocated_string_to_int(::google::protobuf::testing::StringtoIntMap* string_to_int);
  627. // .google.protobuf.testing.IntToStringMap int_to_string = 403;
  628. bool has_int_to_string() const;
  629. void clear_int_to_string();
  630. static const int kIntToStringFieldNumber = 403;
  631. private:
  632. const ::google::protobuf::testing::IntToStringMap& _internal_int_to_string() const;
  633. public:
  634. const ::google::protobuf::testing::IntToStringMap& int_to_string() const;
  635. ::google::protobuf::testing::IntToStringMap* release_int_to_string();
  636. ::google::protobuf::testing::IntToStringMap* mutable_int_to_string();
  637. void set_allocated_int_to_string(::google::protobuf::testing::IntToStringMap* int_to_string);
  638. // .google.protobuf.testing.MixedMap mixed1 = 404;
  639. bool has_mixed1() const;
  640. void clear_mixed1();
  641. static const int kMixed1FieldNumber = 404;
  642. private:
  643. const ::google::protobuf::testing::MixedMap& _internal_mixed1() const;
  644. public:
  645. const ::google::protobuf::testing::MixedMap& mixed1() const;
  646. ::google::protobuf::testing::MixedMap* release_mixed1();
  647. ::google::protobuf::testing::MixedMap* mutable_mixed1();
  648. void set_allocated_mixed1(::google::protobuf::testing::MixedMap* mixed1);
  649. // .google.protobuf.testing.MixedMap2 mixed2 = 405;
  650. bool has_mixed2() const;
  651. void clear_mixed2();
  652. static const int kMixed2FieldNumber = 405;
  653. private:
  654. const ::google::protobuf::testing::MixedMap2& _internal_mixed2() const;
  655. public:
  656. const ::google::protobuf::testing::MixedMap2& mixed2() const;
  657. ::google::protobuf::testing::MixedMap2* release_mixed2();
  658. ::google::protobuf::testing::MixedMap2* mutable_mixed2();
  659. void set_allocated_mixed2(::google::protobuf::testing::MixedMap2* mixed2);
  660. // .google.protobuf.testing.MixedMap2 empty_mixed2 = 406;
  661. bool has_empty_mixed2() const;
  662. void clear_empty_mixed2();
  663. static const int kEmptyMixed2FieldNumber = 406;
  664. private:
  665. const ::google::protobuf::testing::MixedMap2& _internal_empty_mixed2() const;
  666. public:
  667. const ::google::protobuf::testing::MixedMap2& empty_mixed2() const;
  668. ::google::protobuf::testing::MixedMap2* release_empty_mixed2();
  669. ::google::protobuf::testing::MixedMap2* mutable_empty_mixed2();
  670. void set_allocated_empty_mixed2(::google::protobuf::testing::MixedMap2* empty_mixed2);
  671. // .google.protobuf.testing.MessageMap map_of_objects = 407;
  672. bool has_map_of_objects() const;
  673. void clear_map_of_objects();
  674. static const int kMapOfObjectsFieldNumber = 407;
  675. private:
  676. const ::google::protobuf::testing::MessageMap& _internal_map_of_objects() const;
  677. public:
  678. const ::google::protobuf::testing::MessageMap& map_of_objects() const;
  679. ::google::protobuf::testing::MessageMap* release_map_of_objects();
  680. ::google::protobuf::testing::MessageMap* mutable_map_of_objects();
  681. void set_allocated_map_of_objects(::google::protobuf::testing::MessageMap* map_of_objects);
  682. // .google.protobuf.testing.MixedMap mixed_empty = 408;
  683. bool has_mixed_empty() const;
  684. void clear_mixed_empty();
  685. static const int kMixedEmptyFieldNumber = 408;
  686. private:
  687. const ::google::protobuf::testing::MixedMap& _internal_mixed_empty() const;
  688. public:
  689. const ::google::protobuf::testing::MixedMap& mixed_empty() const;
  690. ::google::protobuf::testing::MixedMap* release_mixed_empty();
  691. ::google::protobuf::testing::MixedMap* mutable_mixed_empty();
  692. void set_allocated_mixed_empty(::google::protobuf::testing::MixedMap* mixed_empty);
  693. // .google.protobuf.testing.MessageMap message_map_empty = 409;
  694. bool has_message_map_empty() const;
  695. void clear_message_map_empty();
  696. static const int kMessageMapEmptyFieldNumber = 409;
  697. private:
  698. const ::google::protobuf::testing::MessageMap& _internal_message_map_empty() const;
  699. public:
  700. const ::google::protobuf::testing::MessageMap& message_map_empty() const;
  701. ::google::protobuf::testing::MessageMap* release_message_map_empty();
  702. ::google::protobuf::testing::MessageMap* mutable_message_map_empty();
  703. void set_allocated_message_map_empty(::google::protobuf::testing::MessageMap* message_map_empty);
  704. // .google.protobuf.testing.DoubleValueMessage double_value = 501;
  705. bool has_double_value() const;
  706. void clear_double_value();
  707. static const int kDoubleValueFieldNumber = 501;
  708. private:
  709. const ::google::protobuf::testing::DoubleValueMessage& _internal_double_value() const;
  710. public:
  711. const ::google::protobuf::testing::DoubleValueMessage& double_value() const;
  712. ::google::protobuf::testing::DoubleValueMessage* release_double_value();
  713. ::google::protobuf::testing::DoubleValueMessage* mutable_double_value();
  714. void set_allocated_double_value(::google::protobuf::testing::DoubleValueMessage* double_value);
  715. // .google.protobuf.testing.DoubleValueMessage double_value_default = 502;
  716. bool has_double_value_default() const;
  717. void clear_double_value_default();
  718. static const int kDoubleValueDefaultFieldNumber = 502;
  719. private:
  720. const ::google::protobuf::testing::DoubleValueMessage& _internal_double_value_default() const;
  721. public:
  722. const ::google::protobuf::testing::DoubleValueMessage& double_value_default() const;
  723. ::google::protobuf::testing::DoubleValueMessage* release_double_value_default();
  724. ::google::protobuf::testing::DoubleValueMessage* mutable_double_value_default();
  725. void set_allocated_double_value_default(::google::protobuf::testing::DoubleValueMessage* double_value_default);
  726. // @@protoc_insertion_point(class_scope:google.protobuf.testing.DefaultValueTestCases)
  727. private:
  728. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  729. ::google::protobuf::testing::DoubleMessage* empty_double_;
  730. ::google::protobuf::testing::DoubleMessage* double_with_default_value_;
  731. ::google::protobuf::testing::DoubleMessage* double_with_nondefault_value_;
  732. ::google::protobuf::testing::DoubleMessage* repeated_double_;
  733. ::google::protobuf::testing::DoubleMessage* nested_message_;
  734. ::google::protobuf::testing::DoubleMessage* repeated_nested_message_;
  735. ::google::protobuf::testing::DoubleMessage* double_message_with_oneof_;
  736. ::google::protobuf::testing::StructMessage* empty_struct_;
  737. ::google::protobuf::testing::StructMessage* empty_struct2_;
  738. ::google::protobuf::testing::StructMessage* struct_with_null_value_;
  739. ::google::protobuf::testing::StructMessage* struct_with_values_;
  740. ::google::protobuf::testing::StructMessage* struct_with_nested_struct_;
  741. ::google::protobuf::testing::StructMessage* struct_with_nested_list_;
  742. ::google::protobuf::testing::StructMessage* struct_with_list_of_nulls_;
  743. ::google::protobuf::testing::StructMessage* struct_with_list_of_lists_;
  744. ::google::protobuf::testing::StructMessage* struct_with_list_of_structs_;
  745. ::google::protobuf::Struct* top_level_struct_;
  746. ::google::protobuf::testing::ValueMessage* value_wrapper_simple_;
  747. ::google::protobuf::testing::ValueMessage* value_wrapper_with_struct_;
  748. ::google::protobuf::testing::ValueMessage* value_wrapper_with_list_;
  749. ::google::protobuf::testing::ListValueMessage* list_value_wrapper_;
  750. ::google::protobuf::Value* top_level_value_simple_;
  751. ::google::protobuf::Value* top_level_value_with_struct_;
  752. ::google::protobuf::Value* top_level_value_with_list_;
  753. ::google::protobuf::ListValue* top_level_listvalue_;
  754. ::google::protobuf::testing::AnyMessage* empty_any_;
  755. ::google::protobuf::testing::AnyMessage* type_only_any_;
  756. ::google::protobuf::testing::AnyMessage* recursive_any_;
  757. ::google::protobuf::testing::AnyMessage* any_with_message_value_;
  758. ::google::protobuf::testing::AnyMessage* any_with_nested_message_;
  759. ::google::protobuf::testing::AnyMessage* any_with_message_containing_map_;
  760. ::google::protobuf::testing::AnyMessage* any_with_message_containing_struct_;
  761. ::google::protobuf::Any* top_level_any_;
  762. ::google::protobuf::testing::StringtoIntMap* empty_map_;
  763. ::google::protobuf::testing::StringtoIntMap* string_to_int_;
  764. ::google::protobuf::testing::IntToStringMap* int_to_string_;
  765. ::google::protobuf::testing::MixedMap* mixed1_;
  766. ::google::protobuf::testing::MixedMap2* mixed2_;
  767. ::google::protobuf::testing::MixedMap2* empty_mixed2_;
  768. ::google::protobuf::testing::MessageMap* map_of_objects_;
  769. ::google::protobuf::testing::MixedMap* mixed_empty_;
  770. ::google::protobuf::testing::MessageMap* message_map_empty_;
  771. ::google::protobuf::testing::DoubleValueMessage* double_value_;
  772. ::google::protobuf::testing::DoubleValueMessage* double_value_default_;
  773. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  774. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::TableStruct;
  775. };
  776. // -------------------------------------------------------------------
  777. class DoubleMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.DoubleMessage) */ {
  778. public:
  779. DoubleMessage();
  780. virtual ~DoubleMessage();
  781. DoubleMessage(const DoubleMessage& from);
  782. inline DoubleMessage& operator=(const DoubleMessage& from) {
  783. CopyFrom(from);
  784. return *this;
  785. }
  786. #if LANG_CXX11
  787. DoubleMessage(DoubleMessage&& from) noexcept
  788. : DoubleMessage() {
  789. *this = ::std::move(from);
  790. }
  791. inline DoubleMessage& operator=(DoubleMessage&& from) noexcept {
  792. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  793. if (this != &from) InternalSwap(&from);
  794. } else {
  795. CopyFrom(from);
  796. }
  797. return *this;
  798. }
  799. #endif
  800. static const ::google::protobuf::Descriptor* descriptor();
  801. static const DoubleMessage& default_instance();
  802. enum ValueCase {
  803. kStrValue = 112,
  804. kNumValue = 113,
  805. VALUE_NOT_SET = 0,
  806. };
  807. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  808. static inline const DoubleMessage* internal_default_instance() {
  809. return reinterpret_cast<const DoubleMessage*>(
  810. &_DoubleMessage_default_instance_);
  811. }
  812. static constexpr int kIndexInFileMessages =
  813. 1;
  814. void Swap(DoubleMessage* other);
  815. friend void swap(DoubleMessage& a, DoubleMessage& b) {
  816. a.Swap(&b);
  817. }
  818. // implements Message ----------------------------------------------
  819. inline DoubleMessage* New() const final {
  820. return CreateMaybeMessage<DoubleMessage>(NULL);
  821. }
  822. DoubleMessage* New(::google::protobuf::Arena* arena) const final {
  823. return CreateMaybeMessage<DoubleMessage>(arena);
  824. }
  825. void CopyFrom(const ::google::protobuf::Message& from) final;
  826. void MergeFrom(const ::google::protobuf::Message& from) final;
  827. void CopyFrom(const DoubleMessage& from);
  828. void MergeFrom(const DoubleMessage& from);
  829. void Clear() final;
  830. bool IsInitialized() const final;
  831. size_t ByteSizeLong() const final;
  832. bool MergePartialFromCodedStream(
  833. ::google::protobuf::io::CodedInputStream* input) final;
  834. void SerializeWithCachedSizes(
  835. ::google::protobuf::io::CodedOutputStream* output) const final;
  836. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  837. bool deterministic, ::google::protobuf::uint8* target) const final;
  838. int GetCachedSize() const final { return _cached_size_.Get(); }
  839. private:
  840. void SharedCtor();
  841. void SharedDtor();
  842. void SetCachedSize(int size) const final;
  843. void InternalSwap(DoubleMessage* other);
  844. private:
  845. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  846. return NULL;
  847. }
  848. inline void* MaybeArenaPtr() const {
  849. return NULL;
  850. }
  851. public:
  852. ::google::protobuf::Metadata GetMetadata() const final;
  853. // nested types ----------------------------------------------------
  854. // accessors -------------------------------------------------------
  855. // repeated double repeated_double = 2;
  856. int repeated_double_size() const;
  857. void clear_repeated_double();
  858. static const int kRepeatedDoubleFieldNumber = 2;
  859. double repeated_double(int index) const;
  860. void set_repeated_double(int index, double value);
  861. void add_repeated_double(double value);
  862. const ::google::protobuf::RepeatedField< double >&
  863. repeated_double() const;
  864. ::google::protobuf::RepeatedField< double >*
  865. mutable_repeated_double();
  866. // repeated .google.protobuf.testing.DoubleMessage repeated_nested_message = 4;
  867. int repeated_nested_message_size() const;
  868. void clear_repeated_nested_message();
  869. static const int kRepeatedNestedMessageFieldNumber = 4;
  870. ::google::protobuf::testing::DoubleMessage* mutable_repeated_nested_message(int index);
  871. ::google::protobuf::RepeatedPtrField< ::google::protobuf::testing::DoubleMessage >*
  872. mutable_repeated_nested_message();
  873. const ::google::protobuf::testing::DoubleMessage& repeated_nested_message(int index) const;
  874. ::google::protobuf::testing::DoubleMessage* add_repeated_nested_message();
  875. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::testing::DoubleMessage >&
  876. repeated_nested_message() const;
  877. // .google.protobuf.testing.DoubleMessage nested_message = 3;
  878. bool has_nested_message() const;
  879. void clear_nested_message();
  880. static const int kNestedMessageFieldNumber = 3;
  881. private:
  882. const ::google::protobuf::testing::DoubleMessage& _internal_nested_message() const;
  883. public:
  884. const ::google::protobuf::testing::DoubleMessage& nested_message() const;
  885. ::google::protobuf::testing::DoubleMessage* release_nested_message();
  886. ::google::protobuf::testing::DoubleMessage* mutable_nested_message();
  887. void set_allocated_nested_message(::google::protobuf::testing::DoubleMessage* nested_message);
  888. // .google.protobuf.DoubleValue double_wrapper = 100;
  889. bool has_double_wrapper() const;
  890. void clear_double_wrapper();
  891. static const int kDoubleWrapperFieldNumber = 100;
  892. private:
  893. const ::google::protobuf::DoubleValue& _internal_double_wrapper() const;
  894. public:
  895. const ::google::protobuf::DoubleValue& double_wrapper() const;
  896. ::google::protobuf::DoubleValue* release_double_wrapper();
  897. ::google::protobuf::DoubleValue* mutable_double_wrapper();
  898. void set_allocated_double_wrapper(::google::protobuf::DoubleValue* double_wrapper);
  899. // double double_value = 1;
  900. void clear_double_value();
  901. static const int kDoubleValueFieldNumber = 1;
  902. double double_value() const;
  903. void set_double_value(double value);
  904. // string str_value = 112;
  905. private:
  906. bool has_str_value() const;
  907. public:
  908. void clear_str_value();
  909. static const int kStrValueFieldNumber = 112;
  910. const ::std::string& str_value() const;
  911. void set_str_value(const ::std::string& value);
  912. #if LANG_CXX11
  913. void set_str_value(::std::string&& value);
  914. #endif
  915. void set_str_value(const char* value);
  916. void set_str_value(const char* value, size_t size);
  917. ::std::string* mutable_str_value();
  918. ::std::string* release_str_value();
  919. void set_allocated_str_value(::std::string* str_value);
  920. // int64 num_value = 113;
  921. private:
  922. bool has_num_value() const;
  923. public:
  924. void clear_num_value();
  925. static const int kNumValueFieldNumber = 113;
  926. ::google::protobuf::int64 num_value() const;
  927. void set_num_value(::google::protobuf::int64 value);
  928. void clear_value();
  929. ValueCase value_case() const;
  930. // @@protoc_insertion_point(class_scope:google.protobuf.testing.DoubleMessage)
  931. private:
  932. void set_has_str_value();
  933. void set_has_num_value();
  934. inline bool has_value() const;
  935. inline void clear_has_value();
  936. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  937. ::google::protobuf::RepeatedField< double > repeated_double_;
  938. mutable int _repeated_double_cached_byte_size_;
  939. ::google::protobuf::RepeatedPtrField< ::google::protobuf::testing::DoubleMessage > repeated_nested_message_;
  940. ::google::protobuf::testing::DoubleMessage* nested_message_;
  941. ::google::protobuf::DoubleValue* double_wrapper_;
  942. double double_value_;
  943. union ValueUnion {
  944. ValueUnion() {}
  945. ::google::protobuf::internal::ArenaStringPtr str_value_;
  946. ::google::protobuf::int64 num_value_;
  947. } value_;
  948. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  949. ::google::protobuf::uint32 _oneof_case_[1];
  950. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::TableStruct;
  951. };
  952. // -------------------------------------------------------------------
  953. class StructMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.StructMessage) */ {
  954. public:
  955. StructMessage();
  956. virtual ~StructMessage();
  957. StructMessage(const StructMessage& from);
  958. inline StructMessage& operator=(const StructMessage& from) {
  959. CopyFrom(from);
  960. return *this;
  961. }
  962. #if LANG_CXX11
  963. StructMessage(StructMessage&& from) noexcept
  964. : StructMessage() {
  965. *this = ::std::move(from);
  966. }
  967. inline StructMessage& operator=(StructMessage&& from) noexcept {
  968. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  969. if (this != &from) InternalSwap(&from);
  970. } else {
  971. CopyFrom(from);
  972. }
  973. return *this;
  974. }
  975. #endif
  976. static const ::google::protobuf::Descriptor* descriptor();
  977. static const StructMessage& default_instance();
  978. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  979. static inline const StructMessage* internal_default_instance() {
  980. return reinterpret_cast<const StructMessage*>(
  981. &_StructMessage_default_instance_);
  982. }
  983. static constexpr int kIndexInFileMessages =
  984. 2;
  985. void Swap(StructMessage* other);
  986. friend void swap(StructMessage& a, StructMessage& b) {
  987. a.Swap(&b);
  988. }
  989. // implements Message ----------------------------------------------
  990. inline StructMessage* New() const final {
  991. return CreateMaybeMessage<StructMessage>(NULL);
  992. }
  993. StructMessage* New(::google::protobuf::Arena* arena) const final {
  994. return CreateMaybeMessage<StructMessage>(arena);
  995. }
  996. void CopyFrom(const ::google::protobuf::Message& from) final;
  997. void MergeFrom(const ::google::protobuf::Message& from) final;
  998. void CopyFrom(const StructMessage& from);
  999. void MergeFrom(const StructMessage& from);
  1000. void Clear() final;
  1001. bool IsInitialized() const final;
  1002. size_t ByteSizeLong() const final;
  1003. bool MergePartialFromCodedStream(
  1004. ::google::protobuf::io::CodedInputStream* input) final;
  1005. void SerializeWithCachedSizes(
  1006. ::google::protobuf::io::CodedOutputStream* output) const final;
  1007. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1008. bool deterministic, ::google::protobuf::uint8* target) const final;
  1009. int GetCachedSize() const final { return _cached_size_.Get(); }
  1010. private:
  1011. void SharedCtor();
  1012. void SharedDtor();
  1013. void SetCachedSize(int size) const final;
  1014. void InternalSwap(StructMessage* other);
  1015. private:
  1016. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1017. return NULL;
  1018. }
  1019. inline void* MaybeArenaPtr() const {
  1020. return NULL;
  1021. }
  1022. public:
  1023. ::google::protobuf::Metadata GetMetadata() const final;
  1024. // nested types ----------------------------------------------------
  1025. // accessors -------------------------------------------------------
  1026. // .google.protobuf.Struct struct = 1;
  1027. bool has_struct_() const;
  1028. void clear_struct_();
  1029. static const int kStructFieldNumber = 1;
  1030. private:
  1031. const ::google::protobuf::Struct& _internal_struct_() const;
  1032. public:
  1033. const ::google::protobuf::Struct& struct_() const;
  1034. ::google::protobuf::Struct* release_struct_();
  1035. ::google::protobuf::Struct* mutable_struct_();
  1036. void set_allocated_struct_(::google::protobuf::Struct* struct_);
  1037. // @@protoc_insertion_point(class_scope:google.protobuf.testing.StructMessage)
  1038. private:
  1039. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1040. ::google::protobuf::Struct* struct__;
  1041. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1042. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::TableStruct;
  1043. };
  1044. // -------------------------------------------------------------------
  1045. class ValueMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.ValueMessage) */ {
  1046. public:
  1047. ValueMessage();
  1048. virtual ~ValueMessage();
  1049. ValueMessage(const ValueMessage& from);
  1050. inline ValueMessage& operator=(const ValueMessage& from) {
  1051. CopyFrom(from);
  1052. return *this;
  1053. }
  1054. #if LANG_CXX11
  1055. ValueMessage(ValueMessage&& from) noexcept
  1056. : ValueMessage() {
  1057. *this = ::std::move(from);
  1058. }
  1059. inline ValueMessage& operator=(ValueMessage&& from) noexcept {
  1060. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1061. if (this != &from) InternalSwap(&from);
  1062. } else {
  1063. CopyFrom(from);
  1064. }
  1065. return *this;
  1066. }
  1067. #endif
  1068. static const ::google::protobuf::Descriptor* descriptor();
  1069. static const ValueMessage& default_instance();
  1070. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1071. static inline const ValueMessage* internal_default_instance() {
  1072. return reinterpret_cast<const ValueMessage*>(
  1073. &_ValueMessage_default_instance_);
  1074. }
  1075. static constexpr int kIndexInFileMessages =
  1076. 3;
  1077. void Swap(ValueMessage* other);
  1078. friend void swap(ValueMessage& a, ValueMessage& b) {
  1079. a.Swap(&b);
  1080. }
  1081. // implements Message ----------------------------------------------
  1082. inline ValueMessage* New() const final {
  1083. return CreateMaybeMessage<ValueMessage>(NULL);
  1084. }
  1085. ValueMessage* New(::google::protobuf::Arena* arena) const final {
  1086. return CreateMaybeMessage<ValueMessage>(arena);
  1087. }
  1088. void CopyFrom(const ::google::protobuf::Message& from) final;
  1089. void MergeFrom(const ::google::protobuf::Message& from) final;
  1090. void CopyFrom(const ValueMessage& from);
  1091. void MergeFrom(const ValueMessage& from);
  1092. void Clear() final;
  1093. bool IsInitialized() const final;
  1094. size_t ByteSizeLong() const final;
  1095. bool MergePartialFromCodedStream(
  1096. ::google::protobuf::io::CodedInputStream* input) final;
  1097. void SerializeWithCachedSizes(
  1098. ::google::protobuf::io::CodedOutputStream* output) const final;
  1099. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1100. bool deterministic, ::google::protobuf::uint8* target) const final;
  1101. int GetCachedSize() const final { return _cached_size_.Get(); }
  1102. private:
  1103. void SharedCtor();
  1104. void SharedDtor();
  1105. void SetCachedSize(int size) const final;
  1106. void InternalSwap(ValueMessage* other);
  1107. private:
  1108. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1109. return NULL;
  1110. }
  1111. inline void* MaybeArenaPtr() const {
  1112. return NULL;
  1113. }
  1114. public:
  1115. ::google::protobuf::Metadata GetMetadata() const final;
  1116. // nested types ----------------------------------------------------
  1117. // accessors -------------------------------------------------------
  1118. // .google.protobuf.Value value = 1;
  1119. bool has_value() const;
  1120. void clear_value();
  1121. static const int kValueFieldNumber = 1;
  1122. private:
  1123. const ::google::protobuf::Value& _internal_value() const;
  1124. public:
  1125. const ::google::protobuf::Value& value() const;
  1126. ::google::protobuf::Value* release_value();
  1127. ::google::protobuf::Value* mutable_value();
  1128. void set_allocated_value(::google::protobuf::Value* value);
  1129. // @@protoc_insertion_point(class_scope:google.protobuf.testing.ValueMessage)
  1130. private:
  1131. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1132. ::google::protobuf::Value* value_;
  1133. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1134. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::TableStruct;
  1135. };
  1136. // -------------------------------------------------------------------
  1137. class ListValueMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.ListValueMessage) */ {
  1138. public:
  1139. ListValueMessage();
  1140. virtual ~ListValueMessage();
  1141. ListValueMessage(const ListValueMessage& from);
  1142. inline ListValueMessage& operator=(const ListValueMessage& from) {
  1143. CopyFrom(from);
  1144. return *this;
  1145. }
  1146. #if LANG_CXX11
  1147. ListValueMessage(ListValueMessage&& from) noexcept
  1148. : ListValueMessage() {
  1149. *this = ::std::move(from);
  1150. }
  1151. inline ListValueMessage& operator=(ListValueMessage&& from) noexcept {
  1152. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1153. if (this != &from) InternalSwap(&from);
  1154. } else {
  1155. CopyFrom(from);
  1156. }
  1157. return *this;
  1158. }
  1159. #endif
  1160. static const ::google::protobuf::Descriptor* descriptor();
  1161. static const ListValueMessage& default_instance();
  1162. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1163. static inline const ListValueMessage* internal_default_instance() {
  1164. return reinterpret_cast<const ListValueMessage*>(
  1165. &_ListValueMessage_default_instance_);
  1166. }
  1167. static constexpr int kIndexInFileMessages =
  1168. 4;
  1169. void Swap(ListValueMessage* other);
  1170. friend void swap(ListValueMessage& a, ListValueMessage& b) {
  1171. a.Swap(&b);
  1172. }
  1173. // implements Message ----------------------------------------------
  1174. inline ListValueMessage* New() const final {
  1175. return CreateMaybeMessage<ListValueMessage>(NULL);
  1176. }
  1177. ListValueMessage* New(::google::protobuf::Arena* arena) const final {
  1178. return CreateMaybeMessage<ListValueMessage>(arena);
  1179. }
  1180. void CopyFrom(const ::google::protobuf::Message& from) final;
  1181. void MergeFrom(const ::google::protobuf::Message& from) final;
  1182. void CopyFrom(const ListValueMessage& from);
  1183. void MergeFrom(const ListValueMessage& from);
  1184. void Clear() final;
  1185. bool IsInitialized() const final;
  1186. size_t ByteSizeLong() const final;
  1187. bool MergePartialFromCodedStream(
  1188. ::google::protobuf::io::CodedInputStream* input) final;
  1189. void SerializeWithCachedSizes(
  1190. ::google::protobuf::io::CodedOutputStream* output) const final;
  1191. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1192. bool deterministic, ::google::protobuf::uint8* target) const final;
  1193. int GetCachedSize() const final { return _cached_size_.Get(); }
  1194. private:
  1195. void SharedCtor();
  1196. void SharedDtor();
  1197. void SetCachedSize(int size) const final;
  1198. void InternalSwap(ListValueMessage* other);
  1199. private:
  1200. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1201. return NULL;
  1202. }
  1203. inline void* MaybeArenaPtr() const {
  1204. return NULL;
  1205. }
  1206. public:
  1207. ::google::protobuf::Metadata GetMetadata() const final;
  1208. // nested types ----------------------------------------------------
  1209. // accessors -------------------------------------------------------
  1210. // .google.protobuf.ListValue shopping_list = 1;
  1211. bool has_shopping_list() const;
  1212. void clear_shopping_list();
  1213. static const int kShoppingListFieldNumber = 1;
  1214. private:
  1215. const ::google::protobuf::ListValue& _internal_shopping_list() const;
  1216. public:
  1217. const ::google::protobuf::ListValue& shopping_list() const;
  1218. ::google::protobuf::ListValue* release_shopping_list();
  1219. ::google::protobuf::ListValue* mutable_shopping_list();
  1220. void set_allocated_shopping_list(::google::protobuf::ListValue* shopping_list);
  1221. // @@protoc_insertion_point(class_scope:google.protobuf.testing.ListValueMessage)
  1222. private:
  1223. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1224. ::google::protobuf::ListValue* shopping_list_;
  1225. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1226. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::TableStruct;
  1227. };
  1228. // -------------------------------------------------------------------
  1229. class RequestMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.RequestMessage) */ {
  1230. public:
  1231. RequestMessage();
  1232. virtual ~RequestMessage();
  1233. RequestMessage(const RequestMessage& from);
  1234. inline RequestMessage& operator=(const RequestMessage& from) {
  1235. CopyFrom(from);
  1236. return *this;
  1237. }
  1238. #if LANG_CXX11
  1239. RequestMessage(RequestMessage&& from) noexcept
  1240. : RequestMessage() {
  1241. *this = ::std::move(from);
  1242. }
  1243. inline RequestMessage& operator=(RequestMessage&& from) noexcept {
  1244. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1245. if (this != &from) InternalSwap(&from);
  1246. } else {
  1247. CopyFrom(from);
  1248. }
  1249. return *this;
  1250. }
  1251. #endif
  1252. static const ::google::protobuf::Descriptor* descriptor();
  1253. static const RequestMessage& default_instance();
  1254. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1255. static inline const RequestMessage* internal_default_instance() {
  1256. return reinterpret_cast<const RequestMessage*>(
  1257. &_RequestMessage_default_instance_);
  1258. }
  1259. static constexpr int kIndexInFileMessages =
  1260. 5;
  1261. void Swap(RequestMessage* other);
  1262. friend void swap(RequestMessage& a, RequestMessage& b) {
  1263. a.Swap(&b);
  1264. }
  1265. // implements Message ----------------------------------------------
  1266. inline RequestMessage* New() const final {
  1267. return CreateMaybeMessage<RequestMessage>(NULL);
  1268. }
  1269. RequestMessage* New(::google::protobuf::Arena* arena) const final {
  1270. return CreateMaybeMessage<RequestMessage>(arena);
  1271. }
  1272. void CopyFrom(const ::google::protobuf::Message& from) final;
  1273. void MergeFrom(const ::google::protobuf::Message& from) final;
  1274. void CopyFrom(const RequestMessage& from);
  1275. void MergeFrom(const RequestMessage& from);
  1276. void Clear() final;
  1277. bool IsInitialized() const final;
  1278. size_t ByteSizeLong() const final;
  1279. bool MergePartialFromCodedStream(
  1280. ::google::protobuf::io::CodedInputStream* input) final;
  1281. void SerializeWithCachedSizes(
  1282. ::google::protobuf::io::CodedOutputStream* output) const final;
  1283. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1284. bool deterministic, ::google::protobuf::uint8* target) const final;
  1285. int GetCachedSize() const final { return _cached_size_.Get(); }
  1286. private:
  1287. void SharedCtor();
  1288. void SharedDtor();
  1289. void SetCachedSize(int size) const final;
  1290. void InternalSwap(RequestMessage* other);
  1291. private:
  1292. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1293. return NULL;
  1294. }
  1295. inline void* MaybeArenaPtr() const {
  1296. return NULL;
  1297. }
  1298. public:
  1299. ::google::protobuf::Metadata GetMetadata() const final;
  1300. // nested types ----------------------------------------------------
  1301. // accessors -------------------------------------------------------
  1302. // string content = 1;
  1303. void clear_content();
  1304. static const int kContentFieldNumber = 1;
  1305. const ::std::string& content() const;
  1306. void set_content(const ::std::string& value);
  1307. #if LANG_CXX11
  1308. void set_content(::std::string&& value);
  1309. #endif
  1310. void set_content(const char* value);
  1311. void set_content(const char* value, size_t size);
  1312. ::std::string* mutable_content();
  1313. ::std::string* release_content();
  1314. void set_allocated_content(::std::string* content);
  1315. // @@protoc_insertion_point(class_scope:google.protobuf.testing.RequestMessage)
  1316. private:
  1317. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1318. ::google::protobuf::internal::ArenaStringPtr content_;
  1319. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1320. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::TableStruct;
  1321. };
  1322. // -------------------------------------------------------------------
  1323. class AnyMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.AnyMessage) */ {
  1324. public:
  1325. AnyMessage();
  1326. virtual ~AnyMessage();
  1327. AnyMessage(const AnyMessage& from);
  1328. inline AnyMessage& operator=(const AnyMessage& from) {
  1329. CopyFrom(from);
  1330. return *this;
  1331. }
  1332. #if LANG_CXX11
  1333. AnyMessage(AnyMessage&& from) noexcept
  1334. : AnyMessage() {
  1335. *this = ::std::move(from);
  1336. }
  1337. inline AnyMessage& operator=(AnyMessage&& from) noexcept {
  1338. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1339. if (this != &from) InternalSwap(&from);
  1340. } else {
  1341. CopyFrom(from);
  1342. }
  1343. return *this;
  1344. }
  1345. #endif
  1346. static const ::google::protobuf::Descriptor* descriptor();
  1347. static const AnyMessage& default_instance();
  1348. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1349. static inline const AnyMessage* internal_default_instance() {
  1350. return reinterpret_cast<const AnyMessage*>(
  1351. &_AnyMessage_default_instance_);
  1352. }
  1353. static constexpr int kIndexInFileMessages =
  1354. 6;
  1355. void Swap(AnyMessage* other);
  1356. friend void swap(AnyMessage& a, AnyMessage& b) {
  1357. a.Swap(&b);
  1358. }
  1359. // implements Message ----------------------------------------------
  1360. inline AnyMessage* New() const final {
  1361. return CreateMaybeMessage<AnyMessage>(NULL);
  1362. }
  1363. AnyMessage* New(::google::protobuf::Arena* arena) const final {
  1364. return CreateMaybeMessage<AnyMessage>(arena);
  1365. }
  1366. void CopyFrom(const ::google::protobuf::Message& from) final;
  1367. void MergeFrom(const ::google::protobuf::Message& from) final;
  1368. void CopyFrom(const AnyMessage& from);
  1369. void MergeFrom(const AnyMessage& from);
  1370. void Clear() final;
  1371. bool IsInitialized() const final;
  1372. size_t ByteSizeLong() const final;
  1373. bool MergePartialFromCodedStream(
  1374. ::google::protobuf::io::CodedInputStream* input) final;
  1375. void SerializeWithCachedSizes(
  1376. ::google::protobuf::io::CodedOutputStream* output) const final;
  1377. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1378. bool deterministic, ::google::protobuf::uint8* target) const final;
  1379. int GetCachedSize() const final { return _cached_size_.Get(); }
  1380. private:
  1381. void SharedCtor();
  1382. void SharedDtor();
  1383. void SetCachedSize(int size) const final;
  1384. void InternalSwap(AnyMessage* other);
  1385. private:
  1386. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1387. return NULL;
  1388. }
  1389. inline void* MaybeArenaPtr() const {
  1390. return NULL;
  1391. }
  1392. public:
  1393. ::google::protobuf::Metadata GetMetadata() const final;
  1394. // nested types ----------------------------------------------------
  1395. // accessors -------------------------------------------------------
  1396. // .google.protobuf.Any any = 1;
  1397. bool has_any() const;
  1398. void clear_any();
  1399. static const int kAnyFieldNumber = 1;
  1400. private:
  1401. const ::google::protobuf::Any& _internal_any() const;
  1402. public:
  1403. const ::google::protobuf::Any& any() const;
  1404. ::google::protobuf::Any* release_any();
  1405. ::google::protobuf::Any* mutable_any();
  1406. void set_allocated_any(::google::protobuf::Any* any);
  1407. // .google.protobuf.testing.AnyData data = 2;
  1408. bool has_data() const;
  1409. void clear_data();
  1410. static const int kDataFieldNumber = 2;
  1411. private:
  1412. const ::google::protobuf::testing::AnyData& _internal_data() const;
  1413. public:
  1414. const ::google::protobuf::testing::AnyData& data() const;
  1415. ::google::protobuf::testing::AnyData* release_data();
  1416. ::google::protobuf::testing::AnyData* mutable_data();
  1417. void set_allocated_data(::google::protobuf::testing::AnyData* data);
  1418. // @@protoc_insertion_point(class_scope:google.protobuf.testing.AnyMessage)
  1419. private:
  1420. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1421. ::google::protobuf::Any* any_;
  1422. ::google::protobuf::testing::AnyData* data_;
  1423. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1424. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::TableStruct;
  1425. };
  1426. // -------------------------------------------------------------------
  1427. class AnyData_MapDataEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<AnyData_MapDataEntry_DoNotUse,
  1428. ::std::string, ::std::string,
  1429. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  1430. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  1431. 0 > {
  1432. public:
  1433. typedef ::google::protobuf::internal::MapEntry<AnyData_MapDataEntry_DoNotUse,
  1434. ::std::string, ::std::string,
  1435. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  1436. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  1437. 0 > SuperType;
  1438. AnyData_MapDataEntry_DoNotUse();
  1439. AnyData_MapDataEntry_DoNotUse(::google::protobuf::Arena* arena);
  1440. void MergeFrom(const AnyData_MapDataEntry_DoNotUse& other);
  1441. static const AnyData_MapDataEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const AnyData_MapDataEntry_DoNotUse*>(&_AnyData_MapDataEntry_DoNotUse_default_instance_); }
  1442. void MergeFrom(const ::google::protobuf::Message& other) final;
  1443. ::google::protobuf::Metadata GetMetadata() const;
  1444. };
  1445. // -------------------------------------------------------------------
  1446. class AnyData : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.AnyData) */ {
  1447. public:
  1448. AnyData();
  1449. virtual ~AnyData();
  1450. AnyData(const AnyData& from);
  1451. inline AnyData& operator=(const AnyData& from) {
  1452. CopyFrom(from);
  1453. return *this;
  1454. }
  1455. #if LANG_CXX11
  1456. AnyData(AnyData&& from) noexcept
  1457. : AnyData() {
  1458. *this = ::std::move(from);
  1459. }
  1460. inline AnyData& operator=(AnyData&& from) noexcept {
  1461. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1462. if (this != &from) InternalSwap(&from);
  1463. } else {
  1464. CopyFrom(from);
  1465. }
  1466. return *this;
  1467. }
  1468. #endif
  1469. static const ::google::protobuf::Descriptor* descriptor();
  1470. static const AnyData& default_instance();
  1471. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1472. static inline const AnyData* internal_default_instance() {
  1473. return reinterpret_cast<const AnyData*>(
  1474. &_AnyData_default_instance_);
  1475. }
  1476. static constexpr int kIndexInFileMessages =
  1477. 8;
  1478. void Swap(AnyData* other);
  1479. friend void swap(AnyData& a, AnyData& b) {
  1480. a.Swap(&b);
  1481. }
  1482. // implements Message ----------------------------------------------
  1483. inline AnyData* New() const final {
  1484. return CreateMaybeMessage<AnyData>(NULL);
  1485. }
  1486. AnyData* New(::google::protobuf::Arena* arena) const final {
  1487. return CreateMaybeMessage<AnyData>(arena);
  1488. }
  1489. void CopyFrom(const ::google::protobuf::Message& from) final;
  1490. void MergeFrom(const ::google::protobuf::Message& from) final;
  1491. void CopyFrom(const AnyData& from);
  1492. void MergeFrom(const AnyData& from);
  1493. void Clear() final;
  1494. bool IsInitialized() const final;
  1495. size_t ByteSizeLong() const final;
  1496. bool MergePartialFromCodedStream(
  1497. ::google::protobuf::io::CodedInputStream* input) final;
  1498. void SerializeWithCachedSizes(
  1499. ::google::protobuf::io::CodedOutputStream* output) const final;
  1500. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1501. bool deterministic, ::google::protobuf::uint8* target) const final;
  1502. int GetCachedSize() const final { return _cached_size_.Get(); }
  1503. private:
  1504. void SharedCtor();
  1505. void SharedDtor();
  1506. void SetCachedSize(int size) const final;
  1507. void InternalSwap(AnyData* other);
  1508. private:
  1509. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1510. return NULL;
  1511. }
  1512. inline void* MaybeArenaPtr() const {
  1513. return NULL;
  1514. }
  1515. public:
  1516. ::google::protobuf::Metadata GetMetadata() const final;
  1517. // nested types ----------------------------------------------------
  1518. // accessors -------------------------------------------------------
  1519. // repeated string msgs = 3;
  1520. int msgs_size() const;
  1521. void clear_msgs();
  1522. static const int kMsgsFieldNumber = 3;
  1523. const ::std::string& msgs(int index) const;
  1524. ::std::string* mutable_msgs(int index);
  1525. void set_msgs(int index, const ::std::string& value);
  1526. #if LANG_CXX11
  1527. void set_msgs(int index, ::std::string&& value);
  1528. #endif
  1529. void set_msgs(int index, const char* value);
  1530. void set_msgs(int index, const char* value, size_t size);
  1531. ::std::string* add_msgs();
  1532. void add_msgs(const ::std::string& value);
  1533. #if LANG_CXX11
  1534. void add_msgs(::std::string&& value);
  1535. #endif
  1536. void add_msgs(const char* value);
  1537. void add_msgs(const char* value, size_t size);
  1538. const ::google::protobuf::RepeatedPtrField< ::std::string>& msgs() const;
  1539. ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_msgs();
  1540. // map<string, string> map_data = 7;
  1541. int map_data_size() const;
  1542. void clear_map_data();
  1543. static const int kMapDataFieldNumber = 7;
  1544. const ::google::protobuf::Map< ::std::string, ::std::string >&
  1545. map_data() const;
  1546. ::google::protobuf::Map< ::std::string, ::std::string >*
  1547. mutable_map_data();
  1548. // repeated .google.protobuf.testing.AnyData repeated_data = 9;
  1549. int repeated_data_size() const;
  1550. void clear_repeated_data();
  1551. static const int kRepeatedDataFieldNumber = 9;
  1552. ::google::protobuf::testing::AnyData* mutable_repeated_data(int index);
  1553. ::google::protobuf::RepeatedPtrField< ::google::protobuf::testing::AnyData >*
  1554. mutable_repeated_data();
  1555. const ::google::protobuf::testing::AnyData& repeated_data(int index) const;
  1556. ::google::protobuf::testing::AnyData* add_repeated_data();
  1557. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::testing::AnyData >&
  1558. repeated_data() const;
  1559. // string str = 2;
  1560. void clear_str();
  1561. static const int kStrFieldNumber = 2;
  1562. const ::std::string& str() const;
  1563. void set_str(const ::std::string& value);
  1564. #if LANG_CXX11
  1565. void set_str(::std::string&& value);
  1566. #endif
  1567. void set_str(const char* value);
  1568. void set_str(const char* value, size_t size);
  1569. ::std::string* mutable_str();
  1570. ::std::string* release_str();
  1571. void set_allocated_str(::std::string* str);
  1572. // .google.protobuf.testing.AnyData nested_data = 4;
  1573. bool has_nested_data() const;
  1574. void clear_nested_data();
  1575. static const int kNestedDataFieldNumber = 4;
  1576. private:
  1577. const ::google::protobuf::testing::AnyData& _internal_nested_data() const;
  1578. public:
  1579. const ::google::protobuf::testing::AnyData& nested_data() const;
  1580. ::google::protobuf::testing::AnyData* release_nested_data();
  1581. ::google::protobuf::testing::AnyData* mutable_nested_data();
  1582. void set_allocated_nested_data(::google::protobuf::testing::AnyData* nested_data);
  1583. // .google.protobuf.Struct struct_data = 8;
  1584. bool has_struct_data() const;
  1585. void clear_struct_data();
  1586. static const int kStructDataFieldNumber = 8;
  1587. private:
  1588. const ::google::protobuf::Struct& _internal_struct_data() const;
  1589. public:
  1590. const ::google::protobuf::Struct& struct_data() const;
  1591. ::google::protobuf::Struct* release_struct_data();
  1592. ::google::protobuf::Struct* mutable_struct_data();
  1593. void set_allocated_struct_data(::google::protobuf::Struct* struct_data);
  1594. // int32 attr = 1;
  1595. void clear_attr();
  1596. static const int kAttrFieldNumber = 1;
  1597. ::google::protobuf::int32 attr() const;
  1598. void set_attr(::google::protobuf::int32 value);
  1599. // @@protoc_insertion_point(class_scope:google.protobuf.testing.AnyData)
  1600. private:
  1601. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1602. ::google::protobuf::RepeatedPtrField< ::std::string> msgs_;
  1603. ::google::protobuf::internal::MapField<
  1604. AnyData_MapDataEntry_DoNotUse,
  1605. ::std::string, ::std::string,
  1606. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  1607. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  1608. 0 > map_data_;
  1609. ::google::protobuf::RepeatedPtrField< ::google::protobuf::testing::AnyData > repeated_data_;
  1610. ::google::protobuf::internal::ArenaStringPtr str_;
  1611. ::google::protobuf::testing::AnyData* nested_data_;
  1612. ::google::protobuf::Struct* struct_data_;
  1613. ::google::protobuf::int32 attr_;
  1614. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1615. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::TableStruct;
  1616. };
  1617. // -------------------------------------------------------------------
  1618. class StringtoIntMap_MapEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<StringtoIntMap_MapEntry_DoNotUse,
  1619. ::std::string, ::google::protobuf::int32,
  1620. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  1621. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1622. 0 > {
  1623. public:
  1624. typedef ::google::protobuf::internal::MapEntry<StringtoIntMap_MapEntry_DoNotUse,
  1625. ::std::string, ::google::protobuf::int32,
  1626. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  1627. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1628. 0 > SuperType;
  1629. StringtoIntMap_MapEntry_DoNotUse();
  1630. StringtoIntMap_MapEntry_DoNotUse(::google::protobuf::Arena* arena);
  1631. void MergeFrom(const StringtoIntMap_MapEntry_DoNotUse& other);
  1632. static const StringtoIntMap_MapEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const StringtoIntMap_MapEntry_DoNotUse*>(&_StringtoIntMap_MapEntry_DoNotUse_default_instance_); }
  1633. void MergeFrom(const ::google::protobuf::Message& other) final;
  1634. ::google::protobuf::Metadata GetMetadata() const;
  1635. };
  1636. // -------------------------------------------------------------------
  1637. class StringtoIntMap : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.StringtoIntMap) */ {
  1638. public:
  1639. StringtoIntMap();
  1640. virtual ~StringtoIntMap();
  1641. StringtoIntMap(const StringtoIntMap& from);
  1642. inline StringtoIntMap& operator=(const StringtoIntMap& from) {
  1643. CopyFrom(from);
  1644. return *this;
  1645. }
  1646. #if LANG_CXX11
  1647. StringtoIntMap(StringtoIntMap&& from) noexcept
  1648. : StringtoIntMap() {
  1649. *this = ::std::move(from);
  1650. }
  1651. inline StringtoIntMap& operator=(StringtoIntMap&& from) noexcept {
  1652. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1653. if (this != &from) InternalSwap(&from);
  1654. } else {
  1655. CopyFrom(from);
  1656. }
  1657. return *this;
  1658. }
  1659. #endif
  1660. static const ::google::protobuf::Descriptor* descriptor();
  1661. static const StringtoIntMap& default_instance();
  1662. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1663. static inline const StringtoIntMap* internal_default_instance() {
  1664. return reinterpret_cast<const StringtoIntMap*>(
  1665. &_StringtoIntMap_default_instance_);
  1666. }
  1667. static constexpr int kIndexInFileMessages =
  1668. 10;
  1669. void Swap(StringtoIntMap* other);
  1670. friend void swap(StringtoIntMap& a, StringtoIntMap& b) {
  1671. a.Swap(&b);
  1672. }
  1673. // implements Message ----------------------------------------------
  1674. inline StringtoIntMap* New() const final {
  1675. return CreateMaybeMessage<StringtoIntMap>(NULL);
  1676. }
  1677. StringtoIntMap* New(::google::protobuf::Arena* arena) const final {
  1678. return CreateMaybeMessage<StringtoIntMap>(arena);
  1679. }
  1680. void CopyFrom(const ::google::protobuf::Message& from) final;
  1681. void MergeFrom(const ::google::protobuf::Message& from) final;
  1682. void CopyFrom(const StringtoIntMap& from);
  1683. void MergeFrom(const StringtoIntMap& from);
  1684. void Clear() final;
  1685. bool IsInitialized() const final;
  1686. size_t ByteSizeLong() const final;
  1687. bool MergePartialFromCodedStream(
  1688. ::google::protobuf::io::CodedInputStream* input) final;
  1689. void SerializeWithCachedSizes(
  1690. ::google::protobuf::io::CodedOutputStream* output) const final;
  1691. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1692. bool deterministic, ::google::protobuf::uint8* target) const final;
  1693. int GetCachedSize() const final { return _cached_size_.Get(); }
  1694. private:
  1695. void SharedCtor();
  1696. void SharedDtor();
  1697. void SetCachedSize(int size) const final;
  1698. void InternalSwap(StringtoIntMap* other);
  1699. private:
  1700. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1701. return NULL;
  1702. }
  1703. inline void* MaybeArenaPtr() const {
  1704. return NULL;
  1705. }
  1706. public:
  1707. ::google::protobuf::Metadata GetMetadata() const final;
  1708. // nested types ----------------------------------------------------
  1709. // accessors -------------------------------------------------------
  1710. // map<string, int32> map = 1;
  1711. int map_size() const;
  1712. void clear_map();
  1713. static const int kMapFieldNumber = 1;
  1714. const ::google::protobuf::Map< ::std::string, ::google::protobuf::int32 >&
  1715. map() const;
  1716. ::google::protobuf::Map< ::std::string, ::google::protobuf::int32 >*
  1717. mutable_map();
  1718. // @@protoc_insertion_point(class_scope:google.protobuf.testing.StringtoIntMap)
  1719. private:
  1720. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1721. ::google::protobuf::internal::MapField<
  1722. StringtoIntMap_MapEntry_DoNotUse,
  1723. ::std::string, ::google::protobuf::int32,
  1724. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  1725. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1726. 0 > map_;
  1727. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1728. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::TableStruct;
  1729. };
  1730. // -------------------------------------------------------------------
  1731. class IntToStringMap_MapEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<IntToStringMap_MapEntry_DoNotUse,
  1732. ::google::protobuf::int32, ::std::string,
  1733. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1734. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  1735. 0 > {
  1736. public:
  1737. typedef ::google::protobuf::internal::MapEntry<IntToStringMap_MapEntry_DoNotUse,
  1738. ::google::protobuf::int32, ::std::string,
  1739. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1740. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  1741. 0 > SuperType;
  1742. IntToStringMap_MapEntry_DoNotUse();
  1743. IntToStringMap_MapEntry_DoNotUse(::google::protobuf::Arena* arena);
  1744. void MergeFrom(const IntToStringMap_MapEntry_DoNotUse& other);
  1745. static const IntToStringMap_MapEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const IntToStringMap_MapEntry_DoNotUse*>(&_IntToStringMap_MapEntry_DoNotUse_default_instance_); }
  1746. void MergeFrom(const ::google::protobuf::Message& other) final;
  1747. ::google::protobuf::Metadata GetMetadata() const;
  1748. };
  1749. // -------------------------------------------------------------------
  1750. class IntToStringMap : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.IntToStringMap) */ {
  1751. public:
  1752. IntToStringMap();
  1753. virtual ~IntToStringMap();
  1754. IntToStringMap(const IntToStringMap& from);
  1755. inline IntToStringMap& operator=(const IntToStringMap& from) {
  1756. CopyFrom(from);
  1757. return *this;
  1758. }
  1759. #if LANG_CXX11
  1760. IntToStringMap(IntToStringMap&& from) noexcept
  1761. : IntToStringMap() {
  1762. *this = ::std::move(from);
  1763. }
  1764. inline IntToStringMap& operator=(IntToStringMap&& from) noexcept {
  1765. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1766. if (this != &from) InternalSwap(&from);
  1767. } else {
  1768. CopyFrom(from);
  1769. }
  1770. return *this;
  1771. }
  1772. #endif
  1773. static const ::google::protobuf::Descriptor* descriptor();
  1774. static const IntToStringMap& default_instance();
  1775. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1776. static inline const IntToStringMap* internal_default_instance() {
  1777. return reinterpret_cast<const IntToStringMap*>(
  1778. &_IntToStringMap_default_instance_);
  1779. }
  1780. static constexpr int kIndexInFileMessages =
  1781. 12;
  1782. void Swap(IntToStringMap* other);
  1783. friend void swap(IntToStringMap& a, IntToStringMap& b) {
  1784. a.Swap(&b);
  1785. }
  1786. // implements Message ----------------------------------------------
  1787. inline IntToStringMap* New() const final {
  1788. return CreateMaybeMessage<IntToStringMap>(NULL);
  1789. }
  1790. IntToStringMap* New(::google::protobuf::Arena* arena) const final {
  1791. return CreateMaybeMessage<IntToStringMap>(arena);
  1792. }
  1793. void CopyFrom(const ::google::protobuf::Message& from) final;
  1794. void MergeFrom(const ::google::protobuf::Message& from) final;
  1795. void CopyFrom(const IntToStringMap& from);
  1796. void MergeFrom(const IntToStringMap& from);
  1797. void Clear() final;
  1798. bool IsInitialized() const final;
  1799. size_t ByteSizeLong() const final;
  1800. bool MergePartialFromCodedStream(
  1801. ::google::protobuf::io::CodedInputStream* input) final;
  1802. void SerializeWithCachedSizes(
  1803. ::google::protobuf::io::CodedOutputStream* output) const final;
  1804. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1805. bool deterministic, ::google::protobuf::uint8* target) const final;
  1806. int GetCachedSize() const final { return _cached_size_.Get(); }
  1807. private:
  1808. void SharedCtor();
  1809. void SharedDtor();
  1810. void SetCachedSize(int size) const final;
  1811. void InternalSwap(IntToStringMap* other);
  1812. private:
  1813. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1814. return NULL;
  1815. }
  1816. inline void* MaybeArenaPtr() const {
  1817. return NULL;
  1818. }
  1819. public:
  1820. ::google::protobuf::Metadata GetMetadata() const final;
  1821. // nested types ----------------------------------------------------
  1822. // accessors -------------------------------------------------------
  1823. // map<int32, string> map = 1;
  1824. int map_size() const;
  1825. void clear_map();
  1826. static const int kMapFieldNumber = 1;
  1827. const ::google::protobuf::Map< ::google::protobuf::int32, ::std::string >&
  1828. map() const;
  1829. ::google::protobuf::Map< ::google::protobuf::int32, ::std::string >*
  1830. mutable_map();
  1831. // @@protoc_insertion_point(class_scope:google.protobuf.testing.IntToStringMap)
  1832. private:
  1833. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1834. ::google::protobuf::internal::MapField<
  1835. IntToStringMap_MapEntry_DoNotUse,
  1836. ::google::protobuf::int32, ::std::string,
  1837. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1838. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  1839. 0 > map_;
  1840. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1841. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::TableStruct;
  1842. };
  1843. // -------------------------------------------------------------------
  1844. class MixedMap_MapEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<MixedMap_MapEntry_DoNotUse,
  1845. ::std::string, float,
  1846. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  1847. ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT,
  1848. 0 > {
  1849. public:
  1850. typedef ::google::protobuf::internal::MapEntry<MixedMap_MapEntry_DoNotUse,
  1851. ::std::string, float,
  1852. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  1853. ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT,
  1854. 0 > SuperType;
  1855. MixedMap_MapEntry_DoNotUse();
  1856. MixedMap_MapEntry_DoNotUse(::google::protobuf::Arena* arena);
  1857. void MergeFrom(const MixedMap_MapEntry_DoNotUse& other);
  1858. static const MixedMap_MapEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const MixedMap_MapEntry_DoNotUse*>(&_MixedMap_MapEntry_DoNotUse_default_instance_); }
  1859. void MergeFrom(const ::google::protobuf::Message& other) final;
  1860. ::google::protobuf::Metadata GetMetadata() const;
  1861. };
  1862. // -------------------------------------------------------------------
  1863. class MixedMap : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.MixedMap) */ {
  1864. public:
  1865. MixedMap();
  1866. virtual ~MixedMap();
  1867. MixedMap(const MixedMap& from);
  1868. inline MixedMap& operator=(const MixedMap& from) {
  1869. CopyFrom(from);
  1870. return *this;
  1871. }
  1872. #if LANG_CXX11
  1873. MixedMap(MixedMap&& from) noexcept
  1874. : MixedMap() {
  1875. *this = ::std::move(from);
  1876. }
  1877. inline MixedMap& operator=(MixedMap&& from) noexcept {
  1878. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1879. if (this != &from) InternalSwap(&from);
  1880. } else {
  1881. CopyFrom(from);
  1882. }
  1883. return *this;
  1884. }
  1885. #endif
  1886. static const ::google::protobuf::Descriptor* descriptor();
  1887. static const MixedMap& default_instance();
  1888. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1889. static inline const MixedMap* internal_default_instance() {
  1890. return reinterpret_cast<const MixedMap*>(
  1891. &_MixedMap_default_instance_);
  1892. }
  1893. static constexpr int kIndexInFileMessages =
  1894. 14;
  1895. void Swap(MixedMap* other);
  1896. friend void swap(MixedMap& a, MixedMap& b) {
  1897. a.Swap(&b);
  1898. }
  1899. // implements Message ----------------------------------------------
  1900. inline MixedMap* New() const final {
  1901. return CreateMaybeMessage<MixedMap>(NULL);
  1902. }
  1903. MixedMap* New(::google::protobuf::Arena* arena) const final {
  1904. return CreateMaybeMessage<MixedMap>(arena);
  1905. }
  1906. void CopyFrom(const ::google::protobuf::Message& from) final;
  1907. void MergeFrom(const ::google::protobuf::Message& from) final;
  1908. void CopyFrom(const MixedMap& from);
  1909. void MergeFrom(const MixedMap& from);
  1910. void Clear() final;
  1911. bool IsInitialized() const final;
  1912. size_t ByteSizeLong() const final;
  1913. bool MergePartialFromCodedStream(
  1914. ::google::protobuf::io::CodedInputStream* input) final;
  1915. void SerializeWithCachedSizes(
  1916. ::google::protobuf::io::CodedOutputStream* output) const final;
  1917. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1918. bool deterministic, ::google::protobuf::uint8* target) const final;
  1919. int GetCachedSize() const final { return _cached_size_.Get(); }
  1920. private:
  1921. void SharedCtor();
  1922. void SharedDtor();
  1923. void SetCachedSize(int size) const final;
  1924. void InternalSwap(MixedMap* other);
  1925. private:
  1926. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1927. return NULL;
  1928. }
  1929. inline void* MaybeArenaPtr() const {
  1930. return NULL;
  1931. }
  1932. public:
  1933. ::google::protobuf::Metadata GetMetadata() const final;
  1934. // nested types ----------------------------------------------------
  1935. // accessors -------------------------------------------------------
  1936. // map<string, float> map = 2;
  1937. int map_size() const;
  1938. void clear_map();
  1939. static const int kMapFieldNumber = 2;
  1940. const ::google::protobuf::Map< ::std::string, float >&
  1941. map() const;
  1942. ::google::protobuf::Map< ::std::string, float >*
  1943. mutable_map();
  1944. // string msg = 1;
  1945. void clear_msg();
  1946. static const int kMsgFieldNumber = 1;
  1947. const ::std::string& msg() const;
  1948. void set_msg(const ::std::string& value);
  1949. #if LANG_CXX11
  1950. void set_msg(::std::string&& value);
  1951. #endif
  1952. void set_msg(const char* value);
  1953. void set_msg(const char* value, size_t size);
  1954. ::std::string* mutable_msg();
  1955. ::std::string* release_msg();
  1956. void set_allocated_msg(::std::string* msg);
  1957. // int32 int_value = 3;
  1958. void clear_int_value();
  1959. static const int kIntValueFieldNumber = 3;
  1960. ::google::protobuf::int32 int_value() const;
  1961. void set_int_value(::google::protobuf::int32 value);
  1962. // @@protoc_insertion_point(class_scope:google.protobuf.testing.MixedMap)
  1963. private:
  1964. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1965. ::google::protobuf::internal::MapField<
  1966. MixedMap_MapEntry_DoNotUse,
  1967. ::std::string, float,
  1968. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  1969. ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT,
  1970. 0 > map_;
  1971. ::google::protobuf::internal::ArenaStringPtr msg_;
  1972. ::google::protobuf::int32 int_value_;
  1973. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1974. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::TableStruct;
  1975. };
  1976. // -------------------------------------------------------------------
  1977. class MixedMap2_MapEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<MixedMap2_MapEntry_DoNotUse,
  1978. ::google::protobuf::int32, bool,
  1979. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1980. ::google::protobuf::internal::WireFormatLite::TYPE_BOOL,
  1981. 0 > {
  1982. public:
  1983. typedef ::google::protobuf::internal::MapEntry<MixedMap2_MapEntry_DoNotUse,
  1984. ::google::protobuf::int32, bool,
  1985. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1986. ::google::protobuf::internal::WireFormatLite::TYPE_BOOL,
  1987. 0 > SuperType;
  1988. MixedMap2_MapEntry_DoNotUse();
  1989. MixedMap2_MapEntry_DoNotUse(::google::protobuf::Arena* arena);
  1990. void MergeFrom(const MixedMap2_MapEntry_DoNotUse& other);
  1991. static const MixedMap2_MapEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const MixedMap2_MapEntry_DoNotUse*>(&_MixedMap2_MapEntry_DoNotUse_default_instance_); }
  1992. void MergeFrom(const ::google::protobuf::Message& other) final;
  1993. ::google::protobuf::Metadata GetMetadata() const;
  1994. };
  1995. // -------------------------------------------------------------------
  1996. class MixedMap2 : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.MixedMap2) */ {
  1997. public:
  1998. MixedMap2();
  1999. virtual ~MixedMap2();
  2000. MixedMap2(const MixedMap2& from);
  2001. inline MixedMap2& operator=(const MixedMap2& from) {
  2002. CopyFrom(from);
  2003. return *this;
  2004. }
  2005. #if LANG_CXX11
  2006. MixedMap2(MixedMap2&& from) noexcept
  2007. : MixedMap2() {
  2008. *this = ::std::move(from);
  2009. }
  2010. inline MixedMap2& operator=(MixedMap2&& from) noexcept {
  2011. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2012. if (this != &from) InternalSwap(&from);
  2013. } else {
  2014. CopyFrom(from);
  2015. }
  2016. return *this;
  2017. }
  2018. #endif
  2019. static const ::google::protobuf::Descriptor* descriptor();
  2020. static const MixedMap2& default_instance();
  2021. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2022. static inline const MixedMap2* internal_default_instance() {
  2023. return reinterpret_cast<const MixedMap2*>(
  2024. &_MixedMap2_default_instance_);
  2025. }
  2026. static constexpr int kIndexInFileMessages =
  2027. 16;
  2028. void Swap(MixedMap2* other);
  2029. friend void swap(MixedMap2& a, MixedMap2& b) {
  2030. a.Swap(&b);
  2031. }
  2032. // implements Message ----------------------------------------------
  2033. inline MixedMap2* New() const final {
  2034. return CreateMaybeMessage<MixedMap2>(NULL);
  2035. }
  2036. MixedMap2* New(::google::protobuf::Arena* arena) const final {
  2037. return CreateMaybeMessage<MixedMap2>(arena);
  2038. }
  2039. void CopyFrom(const ::google::protobuf::Message& from) final;
  2040. void MergeFrom(const ::google::protobuf::Message& from) final;
  2041. void CopyFrom(const MixedMap2& from);
  2042. void MergeFrom(const MixedMap2& from);
  2043. void Clear() final;
  2044. bool IsInitialized() const final;
  2045. size_t ByteSizeLong() const final;
  2046. bool MergePartialFromCodedStream(
  2047. ::google::protobuf::io::CodedInputStream* input) final;
  2048. void SerializeWithCachedSizes(
  2049. ::google::protobuf::io::CodedOutputStream* output) const final;
  2050. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  2051. bool deterministic, ::google::protobuf::uint8* target) const final;
  2052. int GetCachedSize() const final { return _cached_size_.Get(); }
  2053. private:
  2054. void SharedCtor();
  2055. void SharedDtor();
  2056. void SetCachedSize(int size) const final;
  2057. void InternalSwap(MixedMap2* other);
  2058. private:
  2059. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  2060. return NULL;
  2061. }
  2062. inline void* MaybeArenaPtr() const {
  2063. return NULL;
  2064. }
  2065. public:
  2066. ::google::protobuf::Metadata GetMetadata() const final;
  2067. // nested types ----------------------------------------------------
  2068. typedef MixedMap2_E E;
  2069. static const E E0 =
  2070. MixedMap2_E_E0;
  2071. static const E E1 =
  2072. MixedMap2_E_E1;
  2073. static const E E2 =
  2074. MixedMap2_E_E2;
  2075. static const E E3 =
  2076. MixedMap2_E_E3;
  2077. static inline bool E_IsValid(int value) {
  2078. return MixedMap2_E_IsValid(value);
  2079. }
  2080. static const E E_MIN =
  2081. MixedMap2_E_E_MIN;
  2082. static const E E_MAX =
  2083. MixedMap2_E_E_MAX;
  2084. static const int E_ARRAYSIZE =
  2085. MixedMap2_E_E_ARRAYSIZE;
  2086. static inline const ::google::protobuf::EnumDescriptor*
  2087. E_descriptor() {
  2088. return MixedMap2_E_descriptor();
  2089. }
  2090. static inline const ::std::string& E_Name(E value) {
  2091. return MixedMap2_E_Name(value);
  2092. }
  2093. static inline bool E_Parse(const ::std::string& name,
  2094. E* value) {
  2095. return MixedMap2_E_Parse(name, value);
  2096. }
  2097. // accessors -------------------------------------------------------
  2098. // map<int32, bool> map = 1;
  2099. int map_size() const;
  2100. void clear_map();
  2101. static const int kMapFieldNumber = 1;
  2102. const ::google::protobuf::Map< ::google::protobuf::int32, bool >&
  2103. map() const;
  2104. ::google::protobuf::Map< ::google::protobuf::int32, bool >*
  2105. mutable_map();
  2106. // string msg = 4;
  2107. void clear_msg();
  2108. static const int kMsgFieldNumber = 4;
  2109. const ::std::string& msg() const;
  2110. void set_msg(const ::std::string& value);
  2111. #if LANG_CXX11
  2112. void set_msg(::std::string&& value);
  2113. #endif
  2114. void set_msg(const char* value);
  2115. void set_msg(const char* value, size_t size);
  2116. ::std::string* mutable_msg();
  2117. ::std::string* release_msg();
  2118. void set_allocated_msg(::std::string* msg);
  2119. // .google.protobuf.testing.MixedMap2.E ee = 2;
  2120. void clear_ee();
  2121. static const int kEeFieldNumber = 2;
  2122. ::google::protobuf::testing::MixedMap2_E ee() const;
  2123. void set_ee(::google::protobuf::testing::MixedMap2_E value);
  2124. // @@protoc_insertion_point(class_scope:google.protobuf.testing.MixedMap2)
  2125. private:
  2126. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  2127. ::google::protobuf::internal::MapField<
  2128. MixedMap2_MapEntry_DoNotUse,
  2129. ::google::protobuf::int32, bool,
  2130. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  2131. ::google::protobuf::internal::WireFormatLite::TYPE_BOOL,
  2132. 0 > map_;
  2133. ::google::protobuf::internal::ArenaStringPtr msg_;
  2134. int ee_;
  2135. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2136. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::TableStruct;
  2137. };
  2138. // -------------------------------------------------------------------
  2139. class MessageMap_M : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.MessageMap.M) */ {
  2140. public:
  2141. MessageMap_M();
  2142. virtual ~MessageMap_M();
  2143. MessageMap_M(const MessageMap_M& from);
  2144. inline MessageMap_M& operator=(const MessageMap_M& from) {
  2145. CopyFrom(from);
  2146. return *this;
  2147. }
  2148. #if LANG_CXX11
  2149. MessageMap_M(MessageMap_M&& from) noexcept
  2150. : MessageMap_M() {
  2151. *this = ::std::move(from);
  2152. }
  2153. inline MessageMap_M& operator=(MessageMap_M&& from) noexcept {
  2154. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2155. if (this != &from) InternalSwap(&from);
  2156. } else {
  2157. CopyFrom(from);
  2158. }
  2159. return *this;
  2160. }
  2161. #endif
  2162. static const ::google::protobuf::Descriptor* descriptor();
  2163. static const MessageMap_M& default_instance();
  2164. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2165. static inline const MessageMap_M* internal_default_instance() {
  2166. return reinterpret_cast<const MessageMap_M*>(
  2167. &_MessageMap_M_default_instance_);
  2168. }
  2169. static constexpr int kIndexInFileMessages =
  2170. 17;
  2171. void Swap(MessageMap_M* other);
  2172. friend void swap(MessageMap_M& a, MessageMap_M& b) {
  2173. a.Swap(&b);
  2174. }
  2175. // implements Message ----------------------------------------------
  2176. inline MessageMap_M* New() const final {
  2177. return CreateMaybeMessage<MessageMap_M>(NULL);
  2178. }
  2179. MessageMap_M* New(::google::protobuf::Arena* arena) const final {
  2180. return CreateMaybeMessage<MessageMap_M>(arena);
  2181. }
  2182. void CopyFrom(const ::google::protobuf::Message& from) final;
  2183. void MergeFrom(const ::google::protobuf::Message& from) final;
  2184. void CopyFrom(const MessageMap_M& from);
  2185. void MergeFrom(const MessageMap_M& from);
  2186. void Clear() final;
  2187. bool IsInitialized() const final;
  2188. size_t ByteSizeLong() const final;
  2189. bool MergePartialFromCodedStream(
  2190. ::google::protobuf::io::CodedInputStream* input) final;
  2191. void SerializeWithCachedSizes(
  2192. ::google::protobuf::io::CodedOutputStream* output) const final;
  2193. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  2194. bool deterministic, ::google::protobuf::uint8* target) const final;
  2195. int GetCachedSize() const final { return _cached_size_.Get(); }
  2196. private:
  2197. void SharedCtor();
  2198. void SharedDtor();
  2199. void SetCachedSize(int size) const final;
  2200. void InternalSwap(MessageMap_M* other);
  2201. private:
  2202. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  2203. return NULL;
  2204. }
  2205. inline void* MaybeArenaPtr() const {
  2206. return NULL;
  2207. }
  2208. public:
  2209. ::google::protobuf::Metadata GetMetadata() const final;
  2210. // nested types ----------------------------------------------------
  2211. // accessors -------------------------------------------------------
  2212. // string inner_text = 2;
  2213. void clear_inner_text();
  2214. static const int kInnerTextFieldNumber = 2;
  2215. const ::std::string& inner_text() const;
  2216. void set_inner_text(const ::std::string& value);
  2217. #if LANG_CXX11
  2218. void set_inner_text(::std::string&& value);
  2219. #endif
  2220. void set_inner_text(const char* value);
  2221. void set_inner_text(const char* value, size_t size);
  2222. ::std::string* mutable_inner_text();
  2223. ::std::string* release_inner_text();
  2224. void set_allocated_inner_text(::std::string* inner_text);
  2225. // int32 inner_int = 1;
  2226. void clear_inner_int();
  2227. static const int kInnerIntFieldNumber = 1;
  2228. ::google::protobuf::int32 inner_int() const;
  2229. void set_inner_int(::google::protobuf::int32 value);
  2230. // @@protoc_insertion_point(class_scope:google.protobuf.testing.MessageMap.M)
  2231. private:
  2232. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  2233. ::google::protobuf::internal::ArenaStringPtr inner_text_;
  2234. ::google::protobuf::int32 inner_int_;
  2235. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2236. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::TableStruct;
  2237. };
  2238. // -------------------------------------------------------------------
  2239. class MessageMap_MapEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<MessageMap_MapEntry_DoNotUse,
  2240. ::std::string, ::google::protobuf::testing::MessageMap_M,
  2241. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  2242. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  2243. 0 > {
  2244. public:
  2245. typedef ::google::protobuf::internal::MapEntry<MessageMap_MapEntry_DoNotUse,
  2246. ::std::string, ::google::protobuf::testing::MessageMap_M,
  2247. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  2248. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  2249. 0 > SuperType;
  2250. MessageMap_MapEntry_DoNotUse();
  2251. MessageMap_MapEntry_DoNotUse(::google::protobuf::Arena* arena);
  2252. void MergeFrom(const MessageMap_MapEntry_DoNotUse& other);
  2253. static const MessageMap_MapEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const MessageMap_MapEntry_DoNotUse*>(&_MessageMap_MapEntry_DoNotUse_default_instance_); }
  2254. void MergeFrom(const ::google::protobuf::Message& other) final;
  2255. ::google::protobuf::Metadata GetMetadata() const;
  2256. };
  2257. // -------------------------------------------------------------------
  2258. class MessageMap : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.MessageMap) */ {
  2259. public:
  2260. MessageMap();
  2261. virtual ~MessageMap();
  2262. MessageMap(const MessageMap& from);
  2263. inline MessageMap& operator=(const MessageMap& from) {
  2264. CopyFrom(from);
  2265. return *this;
  2266. }
  2267. #if LANG_CXX11
  2268. MessageMap(MessageMap&& from) noexcept
  2269. : MessageMap() {
  2270. *this = ::std::move(from);
  2271. }
  2272. inline MessageMap& operator=(MessageMap&& from) noexcept {
  2273. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2274. if (this != &from) InternalSwap(&from);
  2275. } else {
  2276. CopyFrom(from);
  2277. }
  2278. return *this;
  2279. }
  2280. #endif
  2281. static const ::google::protobuf::Descriptor* descriptor();
  2282. static const MessageMap& default_instance();
  2283. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2284. static inline const MessageMap* internal_default_instance() {
  2285. return reinterpret_cast<const MessageMap*>(
  2286. &_MessageMap_default_instance_);
  2287. }
  2288. static constexpr int kIndexInFileMessages =
  2289. 19;
  2290. void Swap(MessageMap* other);
  2291. friend void swap(MessageMap& a, MessageMap& b) {
  2292. a.Swap(&b);
  2293. }
  2294. // implements Message ----------------------------------------------
  2295. inline MessageMap* New() const final {
  2296. return CreateMaybeMessage<MessageMap>(NULL);
  2297. }
  2298. MessageMap* New(::google::protobuf::Arena* arena) const final {
  2299. return CreateMaybeMessage<MessageMap>(arena);
  2300. }
  2301. void CopyFrom(const ::google::protobuf::Message& from) final;
  2302. void MergeFrom(const ::google::protobuf::Message& from) final;
  2303. void CopyFrom(const MessageMap& from);
  2304. void MergeFrom(const MessageMap& from);
  2305. void Clear() final;
  2306. bool IsInitialized() const final;
  2307. size_t ByteSizeLong() const final;
  2308. bool MergePartialFromCodedStream(
  2309. ::google::protobuf::io::CodedInputStream* input) final;
  2310. void SerializeWithCachedSizes(
  2311. ::google::protobuf::io::CodedOutputStream* output) const final;
  2312. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  2313. bool deterministic, ::google::protobuf::uint8* target) const final;
  2314. int GetCachedSize() const final { return _cached_size_.Get(); }
  2315. private:
  2316. void SharedCtor();
  2317. void SharedDtor();
  2318. void SetCachedSize(int size) const final;
  2319. void InternalSwap(MessageMap* other);
  2320. private:
  2321. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  2322. return NULL;
  2323. }
  2324. inline void* MaybeArenaPtr() const {
  2325. return NULL;
  2326. }
  2327. public:
  2328. ::google::protobuf::Metadata GetMetadata() const final;
  2329. // nested types ----------------------------------------------------
  2330. typedef MessageMap_M M;
  2331. // accessors -------------------------------------------------------
  2332. // map<string, .google.protobuf.testing.MessageMap.M> map = 1;
  2333. int map_size() const;
  2334. void clear_map();
  2335. static const int kMapFieldNumber = 1;
  2336. const ::google::protobuf::Map< ::std::string, ::google::protobuf::testing::MessageMap_M >&
  2337. map() const;
  2338. ::google::protobuf::Map< ::std::string, ::google::protobuf::testing::MessageMap_M >*
  2339. mutable_map();
  2340. // @@protoc_insertion_point(class_scope:google.protobuf.testing.MessageMap)
  2341. private:
  2342. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  2343. ::google::protobuf::internal::MapField<
  2344. MessageMap_MapEntry_DoNotUse,
  2345. ::std::string, ::google::protobuf::testing::MessageMap_M,
  2346. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  2347. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  2348. 0 > map_;
  2349. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2350. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::TableStruct;
  2351. };
  2352. // -------------------------------------------------------------------
  2353. class DoubleValueMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.DoubleValueMessage) */ {
  2354. public:
  2355. DoubleValueMessage();
  2356. virtual ~DoubleValueMessage();
  2357. DoubleValueMessage(const DoubleValueMessage& from);
  2358. inline DoubleValueMessage& operator=(const DoubleValueMessage& from) {
  2359. CopyFrom(from);
  2360. return *this;
  2361. }
  2362. #if LANG_CXX11
  2363. DoubleValueMessage(DoubleValueMessage&& from) noexcept
  2364. : DoubleValueMessage() {
  2365. *this = ::std::move(from);
  2366. }
  2367. inline DoubleValueMessage& operator=(DoubleValueMessage&& from) noexcept {
  2368. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2369. if (this != &from) InternalSwap(&from);
  2370. } else {
  2371. CopyFrom(from);
  2372. }
  2373. return *this;
  2374. }
  2375. #endif
  2376. static const ::google::protobuf::Descriptor* descriptor();
  2377. static const DoubleValueMessage& default_instance();
  2378. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2379. static inline const DoubleValueMessage* internal_default_instance() {
  2380. return reinterpret_cast<const DoubleValueMessage*>(
  2381. &_DoubleValueMessage_default_instance_);
  2382. }
  2383. static constexpr int kIndexInFileMessages =
  2384. 20;
  2385. void Swap(DoubleValueMessage* other);
  2386. friend void swap(DoubleValueMessage& a, DoubleValueMessage& b) {
  2387. a.Swap(&b);
  2388. }
  2389. // implements Message ----------------------------------------------
  2390. inline DoubleValueMessage* New() const final {
  2391. return CreateMaybeMessage<DoubleValueMessage>(NULL);
  2392. }
  2393. DoubleValueMessage* New(::google::protobuf::Arena* arena) const final {
  2394. return CreateMaybeMessage<DoubleValueMessage>(arena);
  2395. }
  2396. void CopyFrom(const ::google::protobuf::Message& from) final;
  2397. void MergeFrom(const ::google::protobuf::Message& from) final;
  2398. void CopyFrom(const DoubleValueMessage& from);
  2399. void MergeFrom(const DoubleValueMessage& from);
  2400. void Clear() final;
  2401. bool IsInitialized() const final;
  2402. size_t ByteSizeLong() const final;
  2403. bool MergePartialFromCodedStream(
  2404. ::google::protobuf::io::CodedInputStream* input) final;
  2405. void SerializeWithCachedSizes(
  2406. ::google::protobuf::io::CodedOutputStream* output) const final;
  2407. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  2408. bool deterministic, ::google::protobuf::uint8* target) const final;
  2409. int GetCachedSize() const final { return _cached_size_.Get(); }
  2410. private:
  2411. void SharedCtor();
  2412. void SharedDtor();
  2413. void SetCachedSize(int size) const final;
  2414. void InternalSwap(DoubleValueMessage* other);
  2415. private:
  2416. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  2417. return NULL;
  2418. }
  2419. inline void* MaybeArenaPtr() const {
  2420. return NULL;
  2421. }
  2422. public:
  2423. ::google::protobuf::Metadata GetMetadata() const final;
  2424. // nested types ----------------------------------------------------
  2425. // accessors -------------------------------------------------------
  2426. // .google.protobuf.DoubleValue double = 1;
  2427. bool has_double_() const;
  2428. void clear_double_();
  2429. static const int kDoubleFieldNumber = 1;
  2430. private:
  2431. const ::google::protobuf::DoubleValue& _internal_double_() const;
  2432. public:
  2433. const ::google::protobuf::DoubleValue& double_() const;
  2434. ::google::protobuf::DoubleValue* release_double_();
  2435. ::google::protobuf::DoubleValue* mutable_double_();
  2436. void set_allocated_double_(::google::protobuf::DoubleValue* double_);
  2437. // @@protoc_insertion_point(class_scope:google.protobuf.testing.DoubleValueMessage)
  2438. private:
  2439. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  2440. ::google::protobuf::DoubleValue* double__;
  2441. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2442. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto::TableStruct;
  2443. };
  2444. // ===================================================================
  2445. // ===================================================================
  2446. #ifdef __GNUC__
  2447. #pragma GCC diagnostic push
  2448. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  2449. #endif // __GNUC__
  2450. // DefaultValueTestCases
  2451. // .google.protobuf.testing.DoubleMessage empty_double = 1;
  2452. inline bool DefaultValueTestCases::has_empty_double() const {
  2453. return this != internal_default_instance() && empty_double_ != NULL;
  2454. }
  2455. inline void DefaultValueTestCases::clear_empty_double() {
  2456. if (GetArenaNoVirtual() == NULL && empty_double_ != NULL) {
  2457. delete empty_double_;
  2458. }
  2459. empty_double_ = NULL;
  2460. }
  2461. inline const ::google::protobuf::testing::DoubleMessage& DefaultValueTestCases::_internal_empty_double() const {
  2462. return *empty_double_;
  2463. }
  2464. inline const ::google::protobuf::testing::DoubleMessage& DefaultValueTestCases::empty_double() const {
  2465. const ::google::protobuf::testing::DoubleMessage* p = empty_double_;
  2466. // @@protoc_insertion_point(field_get:google.protobuf.testing.DefaultValueTestCases.empty_double)
  2467. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::DoubleMessage*>(
  2468. &::google::protobuf::testing::_DoubleMessage_default_instance_);
  2469. }
  2470. inline ::google::protobuf::testing::DoubleMessage* DefaultValueTestCases::release_empty_double() {
  2471. // @@protoc_insertion_point(field_release:google.protobuf.testing.DefaultValueTestCases.empty_double)
  2472. ::google::protobuf::testing::DoubleMessage* temp = empty_double_;
  2473. empty_double_ = NULL;
  2474. return temp;
  2475. }
  2476. inline ::google::protobuf::testing::DoubleMessage* DefaultValueTestCases::mutable_empty_double() {
  2477. if (empty_double_ == NULL) {
  2478. auto* p = CreateMaybeMessage<::google::protobuf::testing::DoubleMessage>(GetArenaNoVirtual());
  2479. empty_double_ = p;
  2480. }
  2481. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.DefaultValueTestCases.empty_double)
  2482. return empty_double_;
  2483. }
  2484. inline void DefaultValueTestCases::set_allocated_empty_double(::google::protobuf::testing::DoubleMessage* empty_double) {
  2485. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2486. if (message_arena == NULL) {
  2487. delete empty_double_;
  2488. }
  2489. if (empty_double) {
  2490. ::google::protobuf::Arena* submessage_arena = NULL;
  2491. if (message_arena != submessage_arena) {
  2492. empty_double = ::google::protobuf::internal::GetOwnedMessage(
  2493. message_arena, empty_double, submessage_arena);
  2494. }
  2495. } else {
  2496. }
  2497. empty_double_ = empty_double;
  2498. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.DefaultValueTestCases.empty_double)
  2499. }
  2500. // .google.protobuf.testing.DoubleMessage double_with_default_value = 2;
  2501. inline bool DefaultValueTestCases::has_double_with_default_value() const {
  2502. return this != internal_default_instance() && double_with_default_value_ != NULL;
  2503. }
  2504. inline void DefaultValueTestCases::clear_double_with_default_value() {
  2505. if (GetArenaNoVirtual() == NULL && double_with_default_value_ != NULL) {
  2506. delete double_with_default_value_;
  2507. }
  2508. double_with_default_value_ = NULL;
  2509. }
  2510. inline const ::google::protobuf::testing::DoubleMessage& DefaultValueTestCases::_internal_double_with_default_value() const {
  2511. return *double_with_default_value_;
  2512. }
  2513. inline const ::google::protobuf::testing::DoubleMessage& DefaultValueTestCases::double_with_default_value() const {
  2514. const ::google::protobuf::testing::DoubleMessage* p = double_with_default_value_;
  2515. // @@protoc_insertion_point(field_get:google.protobuf.testing.DefaultValueTestCases.double_with_default_value)
  2516. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::DoubleMessage*>(
  2517. &::google::protobuf::testing::_DoubleMessage_default_instance_);
  2518. }
  2519. inline ::google::protobuf::testing::DoubleMessage* DefaultValueTestCases::release_double_with_default_value() {
  2520. // @@protoc_insertion_point(field_release:google.protobuf.testing.DefaultValueTestCases.double_with_default_value)
  2521. ::google::protobuf::testing::DoubleMessage* temp = double_with_default_value_;
  2522. double_with_default_value_ = NULL;
  2523. return temp;
  2524. }
  2525. inline ::google::protobuf::testing::DoubleMessage* DefaultValueTestCases::mutable_double_with_default_value() {
  2526. if (double_with_default_value_ == NULL) {
  2527. auto* p = CreateMaybeMessage<::google::protobuf::testing::DoubleMessage>(GetArenaNoVirtual());
  2528. double_with_default_value_ = p;
  2529. }
  2530. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.DefaultValueTestCases.double_with_default_value)
  2531. return double_with_default_value_;
  2532. }
  2533. inline void DefaultValueTestCases::set_allocated_double_with_default_value(::google::protobuf::testing::DoubleMessage* double_with_default_value) {
  2534. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2535. if (message_arena == NULL) {
  2536. delete double_with_default_value_;
  2537. }
  2538. if (double_with_default_value) {
  2539. ::google::protobuf::Arena* submessage_arena = NULL;
  2540. if (message_arena != submessage_arena) {
  2541. double_with_default_value = ::google::protobuf::internal::GetOwnedMessage(
  2542. message_arena, double_with_default_value, submessage_arena);
  2543. }
  2544. } else {
  2545. }
  2546. double_with_default_value_ = double_with_default_value;
  2547. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.DefaultValueTestCases.double_with_default_value)
  2548. }
  2549. // .google.protobuf.testing.DoubleMessage double_with_nondefault_value = 3;
  2550. inline bool DefaultValueTestCases::has_double_with_nondefault_value() const {
  2551. return this != internal_default_instance() && double_with_nondefault_value_ != NULL;
  2552. }
  2553. inline void DefaultValueTestCases::clear_double_with_nondefault_value() {
  2554. if (GetArenaNoVirtual() == NULL && double_with_nondefault_value_ != NULL) {
  2555. delete double_with_nondefault_value_;
  2556. }
  2557. double_with_nondefault_value_ = NULL;
  2558. }
  2559. inline const ::google::protobuf::testing::DoubleMessage& DefaultValueTestCases::_internal_double_with_nondefault_value() const {
  2560. return *double_with_nondefault_value_;
  2561. }
  2562. inline const ::google::protobuf::testing::DoubleMessage& DefaultValueTestCases::double_with_nondefault_value() const {
  2563. const ::google::protobuf::testing::DoubleMessage* p = double_with_nondefault_value_;
  2564. // @@protoc_insertion_point(field_get:google.protobuf.testing.DefaultValueTestCases.double_with_nondefault_value)
  2565. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::DoubleMessage*>(
  2566. &::google::protobuf::testing::_DoubleMessage_default_instance_);
  2567. }
  2568. inline ::google::protobuf::testing::DoubleMessage* DefaultValueTestCases::release_double_with_nondefault_value() {
  2569. // @@protoc_insertion_point(field_release:google.protobuf.testing.DefaultValueTestCases.double_with_nondefault_value)
  2570. ::google::protobuf::testing::DoubleMessage* temp = double_with_nondefault_value_;
  2571. double_with_nondefault_value_ = NULL;
  2572. return temp;
  2573. }
  2574. inline ::google::protobuf::testing::DoubleMessage* DefaultValueTestCases::mutable_double_with_nondefault_value() {
  2575. if (double_with_nondefault_value_ == NULL) {
  2576. auto* p = CreateMaybeMessage<::google::protobuf::testing::DoubleMessage>(GetArenaNoVirtual());
  2577. double_with_nondefault_value_ = p;
  2578. }
  2579. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.DefaultValueTestCases.double_with_nondefault_value)
  2580. return double_with_nondefault_value_;
  2581. }
  2582. inline void DefaultValueTestCases::set_allocated_double_with_nondefault_value(::google::protobuf::testing::DoubleMessage* double_with_nondefault_value) {
  2583. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2584. if (message_arena == NULL) {
  2585. delete double_with_nondefault_value_;
  2586. }
  2587. if (double_with_nondefault_value) {
  2588. ::google::protobuf::Arena* submessage_arena = NULL;
  2589. if (message_arena != submessage_arena) {
  2590. double_with_nondefault_value = ::google::protobuf::internal::GetOwnedMessage(
  2591. message_arena, double_with_nondefault_value, submessage_arena);
  2592. }
  2593. } else {
  2594. }
  2595. double_with_nondefault_value_ = double_with_nondefault_value;
  2596. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.DefaultValueTestCases.double_with_nondefault_value)
  2597. }
  2598. // .google.protobuf.testing.DoubleMessage repeated_double = 4;
  2599. inline bool DefaultValueTestCases::has_repeated_double() const {
  2600. return this != internal_default_instance() && repeated_double_ != NULL;
  2601. }
  2602. inline void DefaultValueTestCases::clear_repeated_double() {
  2603. if (GetArenaNoVirtual() == NULL && repeated_double_ != NULL) {
  2604. delete repeated_double_;
  2605. }
  2606. repeated_double_ = NULL;
  2607. }
  2608. inline const ::google::protobuf::testing::DoubleMessage& DefaultValueTestCases::_internal_repeated_double() const {
  2609. return *repeated_double_;
  2610. }
  2611. inline const ::google::protobuf::testing::DoubleMessage& DefaultValueTestCases::repeated_double() const {
  2612. const ::google::protobuf::testing::DoubleMessage* p = repeated_double_;
  2613. // @@protoc_insertion_point(field_get:google.protobuf.testing.DefaultValueTestCases.repeated_double)
  2614. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::DoubleMessage*>(
  2615. &::google::protobuf::testing::_DoubleMessage_default_instance_);
  2616. }
  2617. inline ::google::protobuf::testing::DoubleMessage* DefaultValueTestCases::release_repeated_double() {
  2618. // @@protoc_insertion_point(field_release:google.protobuf.testing.DefaultValueTestCases.repeated_double)
  2619. ::google::protobuf::testing::DoubleMessage* temp = repeated_double_;
  2620. repeated_double_ = NULL;
  2621. return temp;
  2622. }
  2623. inline ::google::protobuf::testing::DoubleMessage* DefaultValueTestCases::mutable_repeated_double() {
  2624. if (repeated_double_ == NULL) {
  2625. auto* p = CreateMaybeMessage<::google::protobuf::testing::DoubleMessage>(GetArenaNoVirtual());
  2626. repeated_double_ = p;
  2627. }
  2628. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.DefaultValueTestCases.repeated_double)
  2629. return repeated_double_;
  2630. }
  2631. inline void DefaultValueTestCases::set_allocated_repeated_double(::google::protobuf::testing::DoubleMessage* repeated_double) {
  2632. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2633. if (message_arena == NULL) {
  2634. delete repeated_double_;
  2635. }
  2636. if (repeated_double) {
  2637. ::google::protobuf::Arena* submessage_arena = NULL;
  2638. if (message_arena != submessage_arena) {
  2639. repeated_double = ::google::protobuf::internal::GetOwnedMessage(
  2640. message_arena, repeated_double, submessage_arena);
  2641. }
  2642. } else {
  2643. }
  2644. repeated_double_ = repeated_double;
  2645. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.DefaultValueTestCases.repeated_double)
  2646. }
  2647. // .google.protobuf.testing.DoubleMessage nested_message = 5;
  2648. inline bool DefaultValueTestCases::has_nested_message() const {
  2649. return this != internal_default_instance() && nested_message_ != NULL;
  2650. }
  2651. inline void DefaultValueTestCases::clear_nested_message() {
  2652. if (GetArenaNoVirtual() == NULL && nested_message_ != NULL) {
  2653. delete nested_message_;
  2654. }
  2655. nested_message_ = NULL;
  2656. }
  2657. inline const ::google::protobuf::testing::DoubleMessage& DefaultValueTestCases::_internal_nested_message() const {
  2658. return *nested_message_;
  2659. }
  2660. inline const ::google::protobuf::testing::DoubleMessage& DefaultValueTestCases::nested_message() const {
  2661. const ::google::protobuf::testing::DoubleMessage* p = nested_message_;
  2662. // @@protoc_insertion_point(field_get:google.protobuf.testing.DefaultValueTestCases.nested_message)
  2663. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::DoubleMessage*>(
  2664. &::google::protobuf::testing::_DoubleMessage_default_instance_);
  2665. }
  2666. inline ::google::protobuf::testing::DoubleMessage* DefaultValueTestCases::release_nested_message() {
  2667. // @@protoc_insertion_point(field_release:google.protobuf.testing.DefaultValueTestCases.nested_message)
  2668. ::google::protobuf::testing::DoubleMessage* temp = nested_message_;
  2669. nested_message_ = NULL;
  2670. return temp;
  2671. }
  2672. inline ::google::protobuf::testing::DoubleMessage* DefaultValueTestCases::mutable_nested_message() {
  2673. if (nested_message_ == NULL) {
  2674. auto* p = CreateMaybeMessage<::google::protobuf::testing::DoubleMessage>(GetArenaNoVirtual());
  2675. nested_message_ = p;
  2676. }
  2677. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.DefaultValueTestCases.nested_message)
  2678. return nested_message_;
  2679. }
  2680. inline void DefaultValueTestCases::set_allocated_nested_message(::google::protobuf::testing::DoubleMessage* nested_message) {
  2681. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2682. if (message_arena == NULL) {
  2683. delete nested_message_;
  2684. }
  2685. if (nested_message) {
  2686. ::google::protobuf::Arena* submessage_arena = NULL;
  2687. if (message_arena != submessage_arena) {
  2688. nested_message = ::google::protobuf::internal::GetOwnedMessage(
  2689. message_arena, nested_message, submessage_arena);
  2690. }
  2691. } else {
  2692. }
  2693. nested_message_ = nested_message;
  2694. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.DefaultValueTestCases.nested_message)
  2695. }
  2696. // .google.protobuf.testing.DoubleMessage repeated_nested_message = 6;
  2697. inline bool DefaultValueTestCases::has_repeated_nested_message() const {
  2698. return this != internal_default_instance() && repeated_nested_message_ != NULL;
  2699. }
  2700. inline void DefaultValueTestCases::clear_repeated_nested_message() {
  2701. if (GetArenaNoVirtual() == NULL && repeated_nested_message_ != NULL) {
  2702. delete repeated_nested_message_;
  2703. }
  2704. repeated_nested_message_ = NULL;
  2705. }
  2706. inline const ::google::protobuf::testing::DoubleMessage& DefaultValueTestCases::_internal_repeated_nested_message() const {
  2707. return *repeated_nested_message_;
  2708. }
  2709. inline const ::google::protobuf::testing::DoubleMessage& DefaultValueTestCases::repeated_nested_message() const {
  2710. const ::google::protobuf::testing::DoubleMessage* p = repeated_nested_message_;
  2711. // @@protoc_insertion_point(field_get:google.protobuf.testing.DefaultValueTestCases.repeated_nested_message)
  2712. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::DoubleMessage*>(
  2713. &::google::protobuf::testing::_DoubleMessage_default_instance_);
  2714. }
  2715. inline ::google::protobuf::testing::DoubleMessage* DefaultValueTestCases::release_repeated_nested_message() {
  2716. // @@protoc_insertion_point(field_release:google.protobuf.testing.DefaultValueTestCases.repeated_nested_message)
  2717. ::google::protobuf::testing::DoubleMessage* temp = repeated_nested_message_;
  2718. repeated_nested_message_ = NULL;
  2719. return temp;
  2720. }
  2721. inline ::google::protobuf::testing::DoubleMessage* DefaultValueTestCases::mutable_repeated_nested_message() {
  2722. if (repeated_nested_message_ == NULL) {
  2723. auto* p = CreateMaybeMessage<::google::protobuf::testing::DoubleMessage>(GetArenaNoVirtual());
  2724. repeated_nested_message_ = p;
  2725. }
  2726. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.DefaultValueTestCases.repeated_nested_message)
  2727. return repeated_nested_message_;
  2728. }
  2729. inline void DefaultValueTestCases::set_allocated_repeated_nested_message(::google::protobuf::testing::DoubleMessage* repeated_nested_message) {
  2730. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2731. if (message_arena == NULL) {
  2732. delete repeated_nested_message_;
  2733. }
  2734. if (repeated_nested_message) {
  2735. ::google::protobuf::Arena* submessage_arena = NULL;
  2736. if (message_arena != submessage_arena) {
  2737. repeated_nested_message = ::google::protobuf::internal::GetOwnedMessage(
  2738. message_arena, repeated_nested_message, submessage_arena);
  2739. }
  2740. } else {
  2741. }
  2742. repeated_nested_message_ = repeated_nested_message;
  2743. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.DefaultValueTestCases.repeated_nested_message)
  2744. }
  2745. // .google.protobuf.testing.DoubleMessage double_message_with_oneof = 7;
  2746. inline bool DefaultValueTestCases::has_double_message_with_oneof() const {
  2747. return this != internal_default_instance() && double_message_with_oneof_ != NULL;
  2748. }
  2749. inline void DefaultValueTestCases::clear_double_message_with_oneof() {
  2750. if (GetArenaNoVirtual() == NULL && double_message_with_oneof_ != NULL) {
  2751. delete double_message_with_oneof_;
  2752. }
  2753. double_message_with_oneof_ = NULL;
  2754. }
  2755. inline const ::google::protobuf::testing::DoubleMessage& DefaultValueTestCases::_internal_double_message_with_oneof() const {
  2756. return *double_message_with_oneof_;
  2757. }
  2758. inline const ::google::protobuf::testing::DoubleMessage& DefaultValueTestCases::double_message_with_oneof() const {
  2759. const ::google::protobuf::testing::DoubleMessage* p = double_message_with_oneof_;
  2760. // @@protoc_insertion_point(field_get:google.protobuf.testing.DefaultValueTestCases.double_message_with_oneof)
  2761. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::DoubleMessage*>(
  2762. &::google::protobuf::testing::_DoubleMessage_default_instance_);
  2763. }
  2764. inline ::google::protobuf::testing::DoubleMessage* DefaultValueTestCases::release_double_message_with_oneof() {
  2765. // @@protoc_insertion_point(field_release:google.protobuf.testing.DefaultValueTestCases.double_message_with_oneof)
  2766. ::google::protobuf::testing::DoubleMessage* temp = double_message_with_oneof_;
  2767. double_message_with_oneof_ = NULL;
  2768. return temp;
  2769. }
  2770. inline ::google::protobuf::testing::DoubleMessage* DefaultValueTestCases::mutable_double_message_with_oneof() {
  2771. if (double_message_with_oneof_ == NULL) {
  2772. auto* p = CreateMaybeMessage<::google::protobuf::testing::DoubleMessage>(GetArenaNoVirtual());
  2773. double_message_with_oneof_ = p;
  2774. }
  2775. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.DefaultValueTestCases.double_message_with_oneof)
  2776. return double_message_with_oneof_;
  2777. }
  2778. inline void DefaultValueTestCases::set_allocated_double_message_with_oneof(::google::protobuf::testing::DoubleMessage* double_message_with_oneof) {
  2779. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2780. if (message_arena == NULL) {
  2781. delete double_message_with_oneof_;
  2782. }
  2783. if (double_message_with_oneof) {
  2784. ::google::protobuf::Arena* submessage_arena = NULL;
  2785. if (message_arena != submessage_arena) {
  2786. double_message_with_oneof = ::google::protobuf::internal::GetOwnedMessage(
  2787. message_arena, double_message_with_oneof, submessage_arena);
  2788. }
  2789. } else {
  2790. }
  2791. double_message_with_oneof_ = double_message_with_oneof;
  2792. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.DefaultValueTestCases.double_message_with_oneof)
  2793. }
  2794. // .google.protobuf.testing.StructMessage empty_struct = 201;
  2795. inline bool DefaultValueTestCases::has_empty_struct() const {
  2796. return this != internal_default_instance() && empty_struct_ != NULL;
  2797. }
  2798. inline void DefaultValueTestCases::clear_empty_struct() {
  2799. if (GetArenaNoVirtual() == NULL && empty_struct_ != NULL) {
  2800. delete empty_struct_;
  2801. }
  2802. empty_struct_ = NULL;
  2803. }
  2804. inline const ::google::protobuf::testing::StructMessage& DefaultValueTestCases::_internal_empty_struct() const {
  2805. return *empty_struct_;
  2806. }
  2807. inline const ::google::protobuf::testing::StructMessage& DefaultValueTestCases::empty_struct() const {
  2808. const ::google::protobuf::testing::StructMessage* p = empty_struct_;
  2809. // @@protoc_insertion_point(field_get:google.protobuf.testing.DefaultValueTestCases.empty_struct)
  2810. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::StructMessage*>(
  2811. &::google::protobuf::testing::_StructMessage_default_instance_);
  2812. }
  2813. inline ::google::protobuf::testing::StructMessage* DefaultValueTestCases::release_empty_struct() {
  2814. // @@protoc_insertion_point(field_release:google.protobuf.testing.DefaultValueTestCases.empty_struct)
  2815. ::google::protobuf::testing::StructMessage* temp = empty_struct_;
  2816. empty_struct_ = NULL;
  2817. return temp;
  2818. }
  2819. inline ::google::protobuf::testing::StructMessage* DefaultValueTestCases::mutable_empty_struct() {
  2820. if (empty_struct_ == NULL) {
  2821. auto* p = CreateMaybeMessage<::google::protobuf::testing::StructMessage>(GetArenaNoVirtual());
  2822. empty_struct_ = p;
  2823. }
  2824. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.DefaultValueTestCases.empty_struct)
  2825. return empty_struct_;
  2826. }
  2827. inline void DefaultValueTestCases::set_allocated_empty_struct(::google::protobuf::testing::StructMessage* empty_struct) {
  2828. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2829. if (message_arena == NULL) {
  2830. delete empty_struct_;
  2831. }
  2832. if (empty_struct) {
  2833. ::google::protobuf::Arena* submessage_arena = NULL;
  2834. if (message_arena != submessage_arena) {
  2835. empty_struct = ::google::protobuf::internal::GetOwnedMessage(
  2836. message_arena, empty_struct, submessage_arena);
  2837. }
  2838. } else {
  2839. }
  2840. empty_struct_ = empty_struct;
  2841. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.DefaultValueTestCases.empty_struct)
  2842. }
  2843. // .google.protobuf.testing.StructMessage empty_struct2 = 202;
  2844. inline bool DefaultValueTestCases::has_empty_struct2() const {
  2845. return this != internal_default_instance() && empty_struct2_ != NULL;
  2846. }
  2847. inline void DefaultValueTestCases::clear_empty_struct2() {
  2848. if (GetArenaNoVirtual() == NULL && empty_struct2_ != NULL) {
  2849. delete empty_struct2_;
  2850. }
  2851. empty_struct2_ = NULL;
  2852. }
  2853. inline const ::google::protobuf::testing::StructMessage& DefaultValueTestCases::_internal_empty_struct2() const {
  2854. return *empty_struct2_;
  2855. }
  2856. inline const ::google::protobuf::testing::StructMessage& DefaultValueTestCases::empty_struct2() const {
  2857. const ::google::protobuf::testing::StructMessage* p = empty_struct2_;
  2858. // @@protoc_insertion_point(field_get:google.protobuf.testing.DefaultValueTestCases.empty_struct2)
  2859. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::StructMessage*>(
  2860. &::google::protobuf::testing::_StructMessage_default_instance_);
  2861. }
  2862. inline ::google::protobuf::testing::StructMessage* DefaultValueTestCases::release_empty_struct2() {
  2863. // @@protoc_insertion_point(field_release:google.protobuf.testing.DefaultValueTestCases.empty_struct2)
  2864. ::google::protobuf::testing::StructMessage* temp = empty_struct2_;
  2865. empty_struct2_ = NULL;
  2866. return temp;
  2867. }
  2868. inline ::google::protobuf::testing::StructMessage* DefaultValueTestCases::mutable_empty_struct2() {
  2869. if (empty_struct2_ == NULL) {
  2870. auto* p = CreateMaybeMessage<::google::protobuf::testing::StructMessage>(GetArenaNoVirtual());
  2871. empty_struct2_ = p;
  2872. }
  2873. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.DefaultValueTestCases.empty_struct2)
  2874. return empty_struct2_;
  2875. }
  2876. inline void DefaultValueTestCases::set_allocated_empty_struct2(::google::protobuf::testing::StructMessage* empty_struct2) {
  2877. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2878. if (message_arena == NULL) {
  2879. delete empty_struct2_;
  2880. }
  2881. if (empty_struct2) {
  2882. ::google::protobuf::Arena* submessage_arena = NULL;
  2883. if (message_arena != submessage_arena) {
  2884. empty_struct2 = ::google::protobuf::internal::GetOwnedMessage(
  2885. message_arena, empty_struct2, submessage_arena);
  2886. }
  2887. } else {
  2888. }
  2889. empty_struct2_ = empty_struct2;
  2890. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.DefaultValueTestCases.empty_struct2)
  2891. }
  2892. // .google.protobuf.testing.StructMessage struct_with_null_value = 203;
  2893. inline bool DefaultValueTestCases::has_struct_with_null_value() const {
  2894. return this != internal_default_instance() && struct_with_null_value_ != NULL;
  2895. }
  2896. inline void DefaultValueTestCases::clear_struct_with_null_value() {
  2897. if (GetArenaNoVirtual() == NULL && struct_with_null_value_ != NULL) {
  2898. delete struct_with_null_value_;
  2899. }
  2900. struct_with_null_value_ = NULL;
  2901. }
  2902. inline const ::google::protobuf::testing::StructMessage& DefaultValueTestCases::_internal_struct_with_null_value() const {
  2903. return *struct_with_null_value_;
  2904. }
  2905. inline const ::google::protobuf::testing::StructMessage& DefaultValueTestCases::struct_with_null_value() const {
  2906. const ::google::protobuf::testing::StructMessage* p = struct_with_null_value_;
  2907. // @@protoc_insertion_point(field_get:google.protobuf.testing.DefaultValueTestCases.struct_with_null_value)
  2908. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::StructMessage*>(
  2909. &::google::protobuf::testing::_StructMessage_default_instance_);
  2910. }
  2911. inline ::google::protobuf::testing::StructMessage* DefaultValueTestCases::release_struct_with_null_value() {
  2912. // @@protoc_insertion_point(field_release:google.protobuf.testing.DefaultValueTestCases.struct_with_null_value)
  2913. ::google::protobuf::testing::StructMessage* temp = struct_with_null_value_;
  2914. struct_with_null_value_ = NULL;
  2915. return temp;
  2916. }
  2917. inline ::google::protobuf::testing::StructMessage* DefaultValueTestCases::mutable_struct_with_null_value() {
  2918. if (struct_with_null_value_ == NULL) {
  2919. auto* p = CreateMaybeMessage<::google::protobuf::testing::StructMessage>(GetArenaNoVirtual());
  2920. struct_with_null_value_ = p;
  2921. }
  2922. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.DefaultValueTestCases.struct_with_null_value)
  2923. return struct_with_null_value_;
  2924. }
  2925. inline void DefaultValueTestCases::set_allocated_struct_with_null_value(::google::protobuf::testing::StructMessage* struct_with_null_value) {
  2926. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2927. if (message_arena == NULL) {
  2928. delete struct_with_null_value_;
  2929. }
  2930. if (struct_with_null_value) {
  2931. ::google::protobuf::Arena* submessage_arena = NULL;
  2932. if (message_arena != submessage_arena) {
  2933. struct_with_null_value = ::google::protobuf::internal::GetOwnedMessage(
  2934. message_arena, struct_with_null_value, submessage_arena);
  2935. }
  2936. } else {
  2937. }
  2938. struct_with_null_value_ = struct_with_null_value;
  2939. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.DefaultValueTestCases.struct_with_null_value)
  2940. }
  2941. // .google.protobuf.testing.StructMessage struct_with_values = 204;
  2942. inline bool DefaultValueTestCases::has_struct_with_values() const {
  2943. return this != internal_default_instance() && struct_with_values_ != NULL;
  2944. }
  2945. inline void DefaultValueTestCases::clear_struct_with_values() {
  2946. if (GetArenaNoVirtual() == NULL && struct_with_values_ != NULL) {
  2947. delete struct_with_values_;
  2948. }
  2949. struct_with_values_ = NULL;
  2950. }
  2951. inline const ::google::protobuf::testing::StructMessage& DefaultValueTestCases::_internal_struct_with_values() const {
  2952. return *struct_with_values_;
  2953. }
  2954. inline const ::google::protobuf::testing::StructMessage& DefaultValueTestCases::struct_with_values() const {
  2955. const ::google::protobuf::testing::StructMessage* p = struct_with_values_;
  2956. // @@protoc_insertion_point(field_get:google.protobuf.testing.DefaultValueTestCases.struct_with_values)
  2957. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::StructMessage*>(
  2958. &::google::protobuf::testing::_StructMessage_default_instance_);
  2959. }
  2960. inline ::google::protobuf::testing::StructMessage* DefaultValueTestCases::release_struct_with_values() {
  2961. // @@protoc_insertion_point(field_release:google.protobuf.testing.DefaultValueTestCases.struct_with_values)
  2962. ::google::protobuf::testing::StructMessage* temp = struct_with_values_;
  2963. struct_with_values_ = NULL;
  2964. return temp;
  2965. }
  2966. inline ::google::protobuf::testing::StructMessage* DefaultValueTestCases::mutable_struct_with_values() {
  2967. if (struct_with_values_ == NULL) {
  2968. auto* p = CreateMaybeMessage<::google::protobuf::testing::StructMessage>(GetArenaNoVirtual());
  2969. struct_with_values_ = p;
  2970. }
  2971. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.DefaultValueTestCases.struct_with_values)
  2972. return struct_with_values_;
  2973. }
  2974. inline void DefaultValueTestCases::set_allocated_struct_with_values(::google::protobuf::testing::StructMessage* struct_with_values) {
  2975. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2976. if (message_arena == NULL) {
  2977. delete struct_with_values_;
  2978. }
  2979. if (struct_with_values) {
  2980. ::google::protobuf::Arena* submessage_arena = NULL;
  2981. if (message_arena != submessage_arena) {
  2982. struct_with_values = ::google::protobuf::internal::GetOwnedMessage(
  2983. message_arena, struct_with_values, submessage_arena);
  2984. }
  2985. } else {
  2986. }
  2987. struct_with_values_ = struct_with_values;
  2988. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.DefaultValueTestCases.struct_with_values)
  2989. }
  2990. // .google.protobuf.testing.StructMessage struct_with_nested_struct = 205;
  2991. inline bool DefaultValueTestCases::has_struct_with_nested_struct() const {
  2992. return this != internal_default_instance() && struct_with_nested_struct_ != NULL;
  2993. }
  2994. inline void DefaultValueTestCases::clear_struct_with_nested_struct() {
  2995. if (GetArenaNoVirtual() == NULL && struct_with_nested_struct_ != NULL) {
  2996. delete struct_with_nested_struct_;
  2997. }
  2998. struct_with_nested_struct_ = NULL;
  2999. }
  3000. inline const ::google::protobuf::testing::StructMessage& DefaultValueTestCases::_internal_struct_with_nested_struct() const {
  3001. return *struct_with_nested_struct_;
  3002. }
  3003. inline const ::google::protobuf::testing::StructMessage& DefaultValueTestCases::struct_with_nested_struct() const {
  3004. const ::google::protobuf::testing::StructMessage* p = struct_with_nested_struct_;
  3005. // @@protoc_insertion_point(field_get:google.protobuf.testing.DefaultValueTestCases.struct_with_nested_struct)
  3006. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::StructMessage*>(
  3007. &::google::protobuf::testing::_StructMessage_default_instance_);
  3008. }
  3009. inline ::google::protobuf::testing::StructMessage* DefaultValueTestCases::release_struct_with_nested_struct() {
  3010. // @@protoc_insertion_point(field_release:google.protobuf.testing.DefaultValueTestCases.struct_with_nested_struct)
  3011. ::google::protobuf::testing::StructMessage* temp = struct_with_nested_struct_;
  3012. struct_with_nested_struct_ = NULL;
  3013. return temp;
  3014. }
  3015. inline ::google::protobuf::testing::StructMessage* DefaultValueTestCases::mutable_struct_with_nested_struct() {
  3016. if (struct_with_nested_struct_ == NULL) {
  3017. auto* p = CreateMaybeMessage<::google::protobuf::testing::StructMessage>(GetArenaNoVirtual());
  3018. struct_with_nested_struct_ = p;
  3019. }
  3020. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.DefaultValueTestCases.struct_with_nested_struct)
  3021. return struct_with_nested_struct_;
  3022. }
  3023. inline void DefaultValueTestCases::set_allocated_struct_with_nested_struct(::google::protobuf::testing::StructMessage* struct_with_nested_struct) {
  3024. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  3025. if (message_arena == NULL) {
  3026. delete struct_with_nested_struct_;
  3027. }
  3028. if (struct_with_nested_struct) {
  3029. ::google::protobuf::Arena* submessage_arena = NULL;
  3030. if (message_arena != submessage_arena) {
  3031. struct_with_nested_struct = ::google::protobuf::internal::GetOwnedMessage(
  3032. message_arena, struct_with_nested_struct, submessage_arena);
  3033. }
  3034. } else {
  3035. }
  3036. struct_with_nested_struct_ = struct_with_nested_struct;
  3037. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.DefaultValueTestCases.struct_with_nested_struct)
  3038. }
  3039. // .google.protobuf.testing.StructMessage struct_with_nested_list = 206;
  3040. inline bool DefaultValueTestCases::has_struct_with_nested_list() const {
  3041. return this != internal_default_instance() && struct_with_nested_list_ != NULL;
  3042. }
  3043. inline void DefaultValueTestCases::clear_struct_with_nested_list() {
  3044. if (GetArenaNoVirtual() == NULL && struct_with_nested_list_ != NULL) {
  3045. delete struct_with_nested_list_;
  3046. }
  3047. struct_with_nested_list_ = NULL;
  3048. }
  3049. inline const ::google::protobuf::testing::StructMessage& DefaultValueTestCases::_internal_struct_with_nested_list() const {
  3050. return *struct_with_nested_list_;
  3051. }
  3052. inline const ::google::protobuf::testing::StructMessage& DefaultValueTestCases::struct_with_nested_list() const {
  3053. const ::google::protobuf::testing::StructMessage* p = struct_with_nested_list_;
  3054. // @@protoc_insertion_point(field_get:google.protobuf.testing.DefaultValueTestCases.struct_with_nested_list)
  3055. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::StructMessage*>(
  3056. &::google::protobuf::testing::_StructMessage_default_instance_);
  3057. }
  3058. inline ::google::protobuf::testing::StructMessage* DefaultValueTestCases::release_struct_with_nested_list() {
  3059. // @@protoc_insertion_point(field_release:google.protobuf.testing.DefaultValueTestCases.struct_with_nested_list)
  3060. ::google::protobuf::testing::StructMessage* temp = struct_with_nested_list_;
  3061. struct_with_nested_list_ = NULL;
  3062. return temp;
  3063. }
  3064. inline ::google::protobuf::testing::StructMessage* DefaultValueTestCases::mutable_struct_with_nested_list() {
  3065. if (struct_with_nested_list_ == NULL) {
  3066. auto* p = CreateMaybeMessage<::google::protobuf::testing::StructMessage>(GetArenaNoVirtual());
  3067. struct_with_nested_list_ = p;
  3068. }
  3069. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.DefaultValueTestCases.struct_with_nested_list)
  3070. return struct_with_nested_list_;
  3071. }
  3072. inline void DefaultValueTestCases::set_allocated_struct_with_nested_list(::google::protobuf::testing::StructMessage* struct_with_nested_list) {
  3073. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  3074. if (message_arena == NULL) {
  3075. delete struct_with_nested_list_;
  3076. }
  3077. if (struct_with_nested_list) {
  3078. ::google::protobuf::Arena* submessage_arena = NULL;
  3079. if (message_arena != submessage_arena) {
  3080. struct_with_nested_list = ::google::protobuf::internal::GetOwnedMessage(
  3081. message_arena, struct_with_nested_list, submessage_arena);
  3082. }
  3083. } else {
  3084. }
  3085. struct_with_nested_list_ = struct_with_nested_list;
  3086. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.DefaultValueTestCases.struct_with_nested_list)
  3087. }
  3088. // .google.protobuf.testing.StructMessage struct_with_list_of_nulls = 207;
  3089. inline bool DefaultValueTestCases::has_struct_with_list_of_nulls() const {
  3090. return this != internal_default_instance() && struct_with_list_of_nulls_ != NULL;
  3091. }
  3092. inline void DefaultValueTestCases::clear_struct_with_list_of_nulls() {
  3093. if (GetArenaNoVirtual() == NULL && struct_with_list_of_nulls_ != NULL) {
  3094. delete struct_with_list_of_nulls_;
  3095. }
  3096. struct_with_list_of_nulls_ = NULL;
  3097. }
  3098. inline const ::google::protobuf::testing::StructMessage& DefaultValueTestCases::_internal_struct_with_list_of_nulls() const {
  3099. return *struct_with_list_of_nulls_;
  3100. }
  3101. inline const ::google::protobuf::testing::StructMessage& DefaultValueTestCases::struct_with_list_of_nulls() const {
  3102. const ::google::protobuf::testing::StructMessage* p = struct_with_list_of_nulls_;
  3103. // @@protoc_insertion_point(field_get:google.protobuf.testing.DefaultValueTestCases.struct_with_list_of_nulls)
  3104. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::StructMessage*>(
  3105. &::google::protobuf::testing::_StructMessage_default_instance_);
  3106. }
  3107. inline ::google::protobuf::testing::StructMessage* DefaultValueTestCases::release_struct_with_list_of_nulls() {
  3108. // @@protoc_insertion_point(field_release:google.protobuf.testing.DefaultValueTestCases.struct_with_list_of_nulls)
  3109. ::google::protobuf::testing::StructMessage* temp = struct_with_list_of_nulls_;
  3110. struct_with_list_of_nulls_ = NULL;
  3111. return temp;
  3112. }
  3113. inline ::google::protobuf::testing::StructMessage* DefaultValueTestCases::mutable_struct_with_list_of_nulls() {
  3114. if (struct_with_list_of_nulls_ == NULL) {
  3115. auto* p = CreateMaybeMessage<::google::protobuf::testing::StructMessage>(GetArenaNoVirtual());
  3116. struct_with_list_of_nulls_ = p;
  3117. }
  3118. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.DefaultValueTestCases.struct_with_list_of_nulls)
  3119. return struct_with_list_of_nulls_;
  3120. }
  3121. inline void DefaultValueTestCases::set_allocated_struct_with_list_of_nulls(::google::protobuf::testing::StructMessage* struct_with_list_of_nulls) {
  3122. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  3123. if (message_arena == NULL) {
  3124. delete struct_with_list_of_nulls_;
  3125. }
  3126. if (struct_with_list_of_nulls) {
  3127. ::google::protobuf::Arena* submessage_arena = NULL;
  3128. if (message_arena != submessage_arena) {
  3129. struct_with_list_of_nulls = ::google::protobuf::internal::GetOwnedMessage(
  3130. message_arena, struct_with_list_of_nulls, submessage_arena);
  3131. }
  3132. } else {
  3133. }
  3134. struct_with_list_of_nulls_ = struct_with_list_of_nulls;
  3135. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.DefaultValueTestCases.struct_with_list_of_nulls)
  3136. }
  3137. // .google.protobuf.testing.StructMessage struct_with_list_of_lists = 208;
  3138. inline bool DefaultValueTestCases::has_struct_with_list_of_lists() const {
  3139. return this != internal_default_instance() && struct_with_list_of_lists_ != NULL;
  3140. }
  3141. inline void DefaultValueTestCases::clear_struct_with_list_of_lists() {
  3142. if (GetArenaNoVirtual() == NULL && struct_with_list_of_lists_ != NULL) {
  3143. delete struct_with_list_of_lists_;
  3144. }
  3145. struct_with_list_of_lists_ = NULL;
  3146. }
  3147. inline const ::google::protobuf::testing::StructMessage& DefaultValueTestCases::_internal_struct_with_list_of_lists() const {
  3148. return *struct_with_list_of_lists_;
  3149. }
  3150. inline const ::google::protobuf::testing::StructMessage& DefaultValueTestCases::struct_with_list_of_lists() const {
  3151. const ::google::protobuf::testing::StructMessage* p = struct_with_list_of_lists_;
  3152. // @@protoc_insertion_point(field_get:google.protobuf.testing.DefaultValueTestCases.struct_with_list_of_lists)
  3153. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::StructMessage*>(
  3154. &::google::protobuf::testing::_StructMessage_default_instance_);
  3155. }
  3156. inline ::google::protobuf::testing::StructMessage* DefaultValueTestCases::release_struct_with_list_of_lists() {
  3157. // @@protoc_insertion_point(field_release:google.protobuf.testing.DefaultValueTestCases.struct_with_list_of_lists)
  3158. ::google::protobuf::testing::StructMessage* temp = struct_with_list_of_lists_;
  3159. struct_with_list_of_lists_ = NULL;
  3160. return temp;
  3161. }
  3162. inline ::google::protobuf::testing::StructMessage* DefaultValueTestCases::mutable_struct_with_list_of_lists() {
  3163. if (struct_with_list_of_lists_ == NULL) {
  3164. auto* p = CreateMaybeMessage<::google::protobuf::testing::StructMessage>(GetArenaNoVirtual());
  3165. struct_with_list_of_lists_ = p;
  3166. }
  3167. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.DefaultValueTestCases.struct_with_list_of_lists)
  3168. return struct_with_list_of_lists_;
  3169. }
  3170. inline void DefaultValueTestCases::set_allocated_struct_with_list_of_lists(::google::protobuf::testing::StructMessage* struct_with_list_of_lists) {
  3171. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  3172. if (message_arena == NULL) {
  3173. delete struct_with_list_of_lists_;
  3174. }
  3175. if (struct_with_list_of_lists) {
  3176. ::google::protobuf::Arena* submessage_arena = NULL;
  3177. if (message_arena != submessage_arena) {
  3178. struct_with_list_of_lists = ::google::protobuf::internal::GetOwnedMessage(
  3179. message_arena, struct_with_list_of_lists, submessage_arena);
  3180. }
  3181. } else {
  3182. }
  3183. struct_with_list_of_lists_ = struct_with_list_of_lists;
  3184. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.DefaultValueTestCases.struct_with_list_of_lists)
  3185. }
  3186. // .google.protobuf.testing.StructMessage struct_with_list_of_structs = 209;
  3187. inline bool DefaultValueTestCases::has_struct_with_list_of_structs() const {
  3188. return this != internal_default_instance() && struct_with_list_of_structs_ != NULL;
  3189. }
  3190. inline void DefaultValueTestCases::clear_struct_with_list_of_structs() {
  3191. if (GetArenaNoVirtual() == NULL && struct_with_list_of_structs_ != NULL) {
  3192. delete struct_with_list_of_structs_;
  3193. }
  3194. struct_with_list_of_structs_ = NULL;
  3195. }
  3196. inline const ::google::protobuf::testing::StructMessage& DefaultValueTestCases::_internal_struct_with_list_of_structs() const {
  3197. return *struct_with_list_of_structs_;
  3198. }
  3199. inline const ::google::protobuf::testing::StructMessage& DefaultValueTestCases::struct_with_list_of_structs() const {
  3200. const ::google::protobuf::testing::StructMessage* p = struct_with_list_of_structs_;
  3201. // @@protoc_insertion_point(field_get:google.protobuf.testing.DefaultValueTestCases.struct_with_list_of_structs)
  3202. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::StructMessage*>(
  3203. &::google::protobuf::testing::_StructMessage_default_instance_);
  3204. }
  3205. inline ::google::protobuf::testing::StructMessage* DefaultValueTestCases::release_struct_with_list_of_structs() {
  3206. // @@protoc_insertion_point(field_release:google.protobuf.testing.DefaultValueTestCases.struct_with_list_of_structs)
  3207. ::google::protobuf::testing::StructMessage* temp = struct_with_list_of_structs_;
  3208. struct_with_list_of_structs_ = NULL;
  3209. return temp;
  3210. }
  3211. inline ::google::protobuf::testing::StructMessage* DefaultValueTestCases::mutable_struct_with_list_of_structs() {
  3212. if (struct_with_list_of_structs_ == NULL) {
  3213. auto* p = CreateMaybeMessage<::google::protobuf::testing::StructMessage>(GetArenaNoVirtual());
  3214. struct_with_list_of_structs_ = p;
  3215. }
  3216. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.DefaultValueTestCases.struct_with_list_of_structs)
  3217. return struct_with_list_of_structs_;
  3218. }
  3219. inline void DefaultValueTestCases::set_allocated_struct_with_list_of_structs(::google::protobuf::testing::StructMessage* struct_with_list_of_structs) {
  3220. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  3221. if (message_arena == NULL) {
  3222. delete struct_with_list_of_structs_;
  3223. }
  3224. if (struct_with_list_of_structs) {
  3225. ::google::protobuf::Arena* submessage_arena = NULL;
  3226. if (message_arena != submessage_arena) {
  3227. struct_with_list_of_structs = ::google::protobuf::internal::GetOwnedMessage(
  3228. message_arena, struct_with_list_of_structs, submessage_arena);
  3229. }
  3230. } else {
  3231. }
  3232. struct_with_list_of_structs_ = struct_with_list_of_structs;
  3233. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.DefaultValueTestCases.struct_with_list_of_structs)
  3234. }
  3235. // .google.protobuf.Struct top_level_struct = 210;
  3236. inline bool DefaultValueTestCases::has_top_level_struct() const {
  3237. return this != internal_default_instance() && top_level_struct_ != NULL;
  3238. }
  3239. inline const ::google::protobuf::Struct& DefaultValueTestCases::_internal_top_level_struct() const {
  3240. return *top_level_struct_;
  3241. }
  3242. inline const ::google::protobuf::Struct& DefaultValueTestCases::top_level_struct() const {
  3243. const ::google::protobuf::Struct* p = top_level_struct_;
  3244. // @@protoc_insertion_point(field_get:google.protobuf.testing.DefaultValueTestCases.top_level_struct)
  3245. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Struct*>(
  3246. &::google::protobuf::_Struct_default_instance_);
  3247. }
  3248. inline ::google::protobuf::Struct* DefaultValueTestCases::release_top_level_struct() {
  3249. // @@protoc_insertion_point(field_release:google.protobuf.testing.DefaultValueTestCases.top_level_struct)
  3250. ::google::protobuf::Struct* temp = top_level_struct_;
  3251. top_level_struct_ = NULL;
  3252. return temp;
  3253. }
  3254. inline ::google::protobuf::Struct* DefaultValueTestCases::mutable_top_level_struct() {
  3255. if (top_level_struct_ == NULL) {
  3256. auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArenaNoVirtual());
  3257. top_level_struct_ = p;
  3258. }
  3259. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.DefaultValueTestCases.top_level_struct)
  3260. return top_level_struct_;
  3261. }
  3262. inline void DefaultValueTestCases::set_allocated_top_level_struct(::google::protobuf::Struct* top_level_struct) {
  3263. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  3264. if (message_arena == NULL) {
  3265. delete reinterpret_cast< ::google::protobuf::MessageLite*>(top_level_struct_);
  3266. }
  3267. if (top_level_struct) {
  3268. ::google::protobuf::Arena* submessage_arena =
  3269. reinterpret_cast<::google::protobuf::MessageLite*>(top_level_struct)->GetArena();
  3270. if (message_arena != submessage_arena) {
  3271. top_level_struct = ::google::protobuf::internal::GetOwnedMessage(
  3272. message_arena, top_level_struct, submessage_arena);
  3273. }
  3274. } else {
  3275. }
  3276. top_level_struct_ = top_level_struct;
  3277. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.DefaultValueTestCases.top_level_struct)
  3278. }
  3279. // .google.protobuf.testing.ValueMessage value_wrapper_simple = 212;
  3280. inline bool DefaultValueTestCases::has_value_wrapper_simple() const {
  3281. return this != internal_default_instance() && value_wrapper_simple_ != NULL;
  3282. }
  3283. inline void DefaultValueTestCases::clear_value_wrapper_simple() {
  3284. if (GetArenaNoVirtual() == NULL && value_wrapper_simple_ != NULL) {
  3285. delete value_wrapper_simple_;
  3286. }
  3287. value_wrapper_simple_ = NULL;
  3288. }
  3289. inline const ::google::protobuf::testing::ValueMessage& DefaultValueTestCases::_internal_value_wrapper_simple() const {
  3290. return *value_wrapper_simple_;
  3291. }
  3292. inline const ::google::protobuf::testing::ValueMessage& DefaultValueTestCases::value_wrapper_simple() const {
  3293. const ::google::protobuf::testing::ValueMessage* p = value_wrapper_simple_;
  3294. // @@protoc_insertion_point(field_get:google.protobuf.testing.DefaultValueTestCases.value_wrapper_simple)
  3295. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::ValueMessage*>(
  3296. &::google::protobuf::testing::_ValueMessage_default_instance_);
  3297. }
  3298. inline ::google::protobuf::testing::ValueMessage* DefaultValueTestCases::release_value_wrapper_simple() {
  3299. // @@protoc_insertion_point(field_release:google.protobuf.testing.DefaultValueTestCases.value_wrapper_simple)
  3300. ::google::protobuf::testing::ValueMessage* temp = value_wrapper_simple_;
  3301. value_wrapper_simple_ = NULL;
  3302. return temp;
  3303. }
  3304. inline ::google::protobuf::testing::ValueMessage* DefaultValueTestCases::mutable_value_wrapper_simple() {
  3305. if (value_wrapper_simple_ == NULL) {
  3306. auto* p = CreateMaybeMessage<::google::protobuf::testing::ValueMessage>(GetArenaNoVirtual());
  3307. value_wrapper_simple_ = p;
  3308. }
  3309. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.DefaultValueTestCases.value_wrapper_simple)
  3310. return value_wrapper_simple_;
  3311. }
  3312. inline void DefaultValueTestCases::set_allocated_value_wrapper_simple(::google::protobuf::testing::ValueMessage* value_wrapper_simple) {
  3313. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  3314. if (message_arena == NULL) {
  3315. delete value_wrapper_simple_;
  3316. }
  3317. if (value_wrapper_simple) {
  3318. ::google::protobuf::Arena* submessage_arena = NULL;
  3319. if (message_arena != submessage_arena) {
  3320. value_wrapper_simple = ::google::protobuf::internal::GetOwnedMessage(
  3321. message_arena, value_wrapper_simple, submessage_arena);
  3322. }
  3323. } else {
  3324. }
  3325. value_wrapper_simple_ = value_wrapper_simple;
  3326. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.DefaultValueTestCases.value_wrapper_simple)
  3327. }
  3328. // .google.protobuf.testing.ValueMessage value_wrapper_with_struct = 213;
  3329. inline bool DefaultValueTestCases::has_value_wrapper_with_struct() const {
  3330. return this != internal_default_instance() && value_wrapper_with_struct_ != NULL;
  3331. }
  3332. inline void DefaultValueTestCases::clear_value_wrapper_with_struct() {
  3333. if (GetArenaNoVirtual() == NULL && value_wrapper_with_struct_ != NULL) {
  3334. delete value_wrapper_with_struct_;
  3335. }
  3336. value_wrapper_with_struct_ = NULL;
  3337. }
  3338. inline const ::google::protobuf::testing::ValueMessage& DefaultValueTestCases::_internal_value_wrapper_with_struct() const {
  3339. return *value_wrapper_with_struct_;
  3340. }
  3341. inline const ::google::protobuf::testing::ValueMessage& DefaultValueTestCases::value_wrapper_with_struct() const {
  3342. const ::google::protobuf::testing::ValueMessage* p = value_wrapper_with_struct_;
  3343. // @@protoc_insertion_point(field_get:google.protobuf.testing.DefaultValueTestCases.value_wrapper_with_struct)
  3344. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::ValueMessage*>(
  3345. &::google::protobuf::testing::_ValueMessage_default_instance_);
  3346. }
  3347. inline ::google::protobuf::testing::ValueMessage* DefaultValueTestCases::release_value_wrapper_with_struct() {
  3348. // @@protoc_insertion_point(field_release:google.protobuf.testing.DefaultValueTestCases.value_wrapper_with_struct)
  3349. ::google::protobuf::testing::ValueMessage* temp = value_wrapper_with_struct_;
  3350. value_wrapper_with_struct_ = NULL;
  3351. return temp;
  3352. }
  3353. inline ::google::protobuf::testing::ValueMessage* DefaultValueTestCases::mutable_value_wrapper_with_struct() {
  3354. if (value_wrapper_with_struct_ == NULL) {
  3355. auto* p = CreateMaybeMessage<::google::protobuf::testing::ValueMessage>(GetArenaNoVirtual());
  3356. value_wrapper_with_struct_ = p;
  3357. }
  3358. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.DefaultValueTestCases.value_wrapper_with_struct)
  3359. return value_wrapper_with_struct_;
  3360. }
  3361. inline void DefaultValueTestCases::set_allocated_value_wrapper_with_struct(::google::protobuf::testing::ValueMessage* value_wrapper_with_struct) {
  3362. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  3363. if (message_arena == NULL) {
  3364. delete value_wrapper_with_struct_;
  3365. }
  3366. if (value_wrapper_with_struct) {
  3367. ::google::protobuf::Arena* submessage_arena = NULL;
  3368. if (message_arena != submessage_arena) {
  3369. value_wrapper_with_struct = ::google::protobuf::internal::GetOwnedMessage(
  3370. message_arena, value_wrapper_with_struct, submessage_arena);
  3371. }
  3372. } else {
  3373. }
  3374. value_wrapper_with_struct_ = value_wrapper_with_struct;
  3375. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.DefaultValueTestCases.value_wrapper_with_struct)
  3376. }
  3377. // .google.protobuf.testing.ValueMessage value_wrapper_with_list = 214;
  3378. inline bool DefaultValueTestCases::has_value_wrapper_with_list() const {
  3379. return this != internal_default_instance() && value_wrapper_with_list_ != NULL;
  3380. }
  3381. inline void DefaultValueTestCases::clear_value_wrapper_with_list() {
  3382. if (GetArenaNoVirtual() == NULL && value_wrapper_with_list_ != NULL) {
  3383. delete value_wrapper_with_list_;
  3384. }
  3385. value_wrapper_with_list_ = NULL;
  3386. }
  3387. inline const ::google::protobuf::testing::ValueMessage& DefaultValueTestCases::_internal_value_wrapper_with_list() const {
  3388. return *value_wrapper_with_list_;
  3389. }
  3390. inline const ::google::protobuf::testing::ValueMessage& DefaultValueTestCases::value_wrapper_with_list() const {
  3391. const ::google::protobuf::testing::ValueMessage* p = value_wrapper_with_list_;
  3392. // @@protoc_insertion_point(field_get:google.protobuf.testing.DefaultValueTestCases.value_wrapper_with_list)
  3393. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::ValueMessage*>(
  3394. &::google::protobuf::testing::_ValueMessage_default_instance_);
  3395. }
  3396. inline ::google::protobuf::testing::ValueMessage* DefaultValueTestCases::release_value_wrapper_with_list() {
  3397. // @@protoc_insertion_point(field_release:google.protobuf.testing.DefaultValueTestCases.value_wrapper_with_list)
  3398. ::google::protobuf::testing::ValueMessage* temp = value_wrapper_with_list_;
  3399. value_wrapper_with_list_ = NULL;
  3400. return temp;
  3401. }
  3402. inline ::google::protobuf::testing::ValueMessage* DefaultValueTestCases::mutable_value_wrapper_with_list() {
  3403. if (value_wrapper_with_list_ == NULL) {
  3404. auto* p = CreateMaybeMessage<::google::protobuf::testing::ValueMessage>(GetArenaNoVirtual());
  3405. value_wrapper_with_list_ = p;
  3406. }
  3407. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.DefaultValueTestCases.value_wrapper_with_list)
  3408. return value_wrapper_with_list_;
  3409. }
  3410. inline void DefaultValueTestCases::set_allocated_value_wrapper_with_list(::google::protobuf::testing::ValueMessage* value_wrapper_with_list) {
  3411. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  3412. if (message_arena == NULL) {
  3413. delete value_wrapper_with_list_;
  3414. }
  3415. if (value_wrapper_with_list) {
  3416. ::google::protobuf::Arena* submessage_arena = NULL;
  3417. if (message_arena != submessage_arena) {
  3418. value_wrapper_with_list = ::google::protobuf::internal::GetOwnedMessage(
  3419. message_arena, value_wrapper_with_list, submessage_arena);
  3420. }
  3421. } else {
  3422. }
  3423. value_wrapper_with_list_ = value_wrapper_with_list;
  3424. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.DefaultValueTestCases.value_wrapper_with_list)
  3425. }
  3426. // .google.protobuf.testing.ListValueMessage list_value_wrapper = 215;
  3427. inline bool DefaultValueTestCases::has_list_value_wrapper() const {
  3428. return this != internal_default_instance() && list_value_wrapper_ != NULL;
  3429. }
  3430. inline void DefaultValueTestCases::clear_list_value_wrapper() {
  3431. if (GetArenaNoVirtual() == NULL && list_value_wrapper_ != NULL) {
  3432. delete list_value_wrapper_;
  3433. }
  3434. list_value_wrapper_ = NULL;
  3435. }
  3436. inline const ::google::protobuf::testing::ListValueMessage& DefaultValueTestCases::_internal_list_value_wrapper() const {
  3437. return *list_value_wrapper_;
  3438. }
  3439. inline const ::google::protobuf::testing::ListValueMessage& DefaultValueTestCases::list_value_wrapper() const {
  3440. const ::google::protobuf::testing::ListValueMessage* p = list_value_wrapper_;
  3441. // @@protoc_insertion_point(field_get:google.protobuf.testing.DefaultValueTestCases.list_value_wrapper)
  3442. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::ListValueMessage*>(
  3443. &::google::protobuf::testing::_ListValueMessage_default_instance_);
  3444. }
  3445. inline ::google::protobuf::testing::ListValueMessage* DefaultValueTestCases::release_list_value_wrapper() {
  3446. // @@protoc_insertion_point(field_release:google.protobuf.testing.DefaultValueTestCases.list_value_wrapper)
  3447. ::google::protobuf::testing::ListValueMessage* temp = list_value_wrapper_;
  3448. list_value_wrapper_ = NULL;
  3449. return temp;
  3450. }
  3451. inline ::google::protobuf::testing::ListValueMessage* DefaultValueTestCases::mutable_list_value_wrapper() {
  3452. if (list_value_wrapper_ == NULL) {
  3453. auto* p = CreateMaybeMessage<::google::protobuf::testing::ListValueMessage>(GetArenaNoVirtual());
  3454. list_value_wrapper_ = p;
  3455. }
  3456. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.DefaultValueTestCases.list_value_wrapper)
  3457. return list_value_wrapper_;
  3458. }
  3459. inline void DefaultValueTestCases::set_allocated_list_value_wrapper(::google::protobuf::testing::ListValueMessage* list_value_wrapper) {
  3460. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  3461. if (message_arena == NULL) {
  3462. delete list_value_wrapper_;
  3463. }
  3464. if (list_value_wrapper) {
  3465. ::google::protobuf::Arena* submessage_arena = NULL;
  3466. if (message_arena != submessage_arena) {
  3467. list_value_wrapper = ::google::protobuf::internal::GetOwnedMessage(
  3468. message_arena, list_value_wrapper, submessage_arena);
  3469. }
  3470. } else {
  3471. }
  3472. list_value_wrapper_ = list_value_wrapper;
  3473. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.DefaultValueTestCases.list_value_wrapper)
  3474. }
  3475. // .google.protobuf.Value top_level_value_simple = 216;
  3476. inline bool DefaultValueTestCases::has_top_level_value_simple() const {
  3477. return this != internal_default_instance() && top_level_value_simple_ != NULL;
  3478. }
  3479. inline const ::google::protobuf::Value& DefaultValueTestCases::_internal_top_level_value_simple() const {
  3480. return *top_level_value_simple_;
  3481. }
  3482. inline const ::google::protobuf::Value& DefaultValueTestCases::top_level_value_simple() const {
  3483. const ::google::protobuf::Value* p = top_level_value_simple_;
  3484. // @@protoc_insertion_point(field_get:google.protobuf.testing.DefaultValueTestCases.top_level_value_simple)
  3485. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Value*>(
  3486. &::google::protobuf::_Value_default_instance_);
  3487. }
  3488. inline ::google::protobuf::Value* DefaultValueTestCases::release_top_level_value_simple() {
  3489. // @@protoc_insertion_point(field_release:google.protobuf.testing.DefaultValueTestCases.top_level_value_simple)
  3490. ::google::protobuf::Value* temp = top_level_value_simple_;
  3491. top_level_value_simple_ = NULL;
  3492. return temp;
  3493. }
  3494. inline ::google::protobuf::Value* DefaultValueTestCases::mutable_top_level_value_simple() {
  3495. if (top_level_value_simple_ == NULL) {
  3496. auto* p = CreateMaybeMessage<::google::protobuf::Value>(GetArenaNoVirtual());
  3497. top_level_value_simple_ = p;
  3498. }
  3499. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.DefaultValueTestCases.top_level_value_simple)
  3500. return top_level_value_simple_;
  3501. }
  3502. inline void DefaultValueTestCases::set_allocated_top_level_value_simple(::google::protobuf::Value* top_level_value_simple) {
  3503. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  3504. if (message_arena == NULL) {
  3505. delete reinterpret_cast< ::google::protobuf::MessageLite*>(top_level_value_simple_);
  3506. }
  3507. if (top_level_value_simple) {
  3508. ::google::protobuf::Arena* submessage_arena =
  3509. reinterpret_cast<::google::protobuf::MessageLite*>(top_level_value_simple)->GetArena();
  3510. if (message_arena != submessage_arena) {
  3511. top_level_value_simple = ::google::protobuf::internal::GetOwnedMessage(
  3512. message_arena, top_level_value_simple, submessage_arena);
  3513. }
  3514. } else {
  3515. }
  3516. top_level_value_simple_ = top_level_value_simple;
  3517. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.DefaultValueTestCases.top_level_value_simple)
  3518. }
  3519. // .google.protobuf.Value top_level_value_with_struct = 217;
  3520. inline bool DefaultValueTestCases::has_top_level_value_with_struct() const {
  3521. return this != internal_default_instance() && top_level_value_with_struct_ != NULL;
  3522. }
  3523. inline const ::google::protobuf::Value& DefaultValueTestCases::_internal_top_level_value_with_struct() const {
  3524. return *top_level_value_with_struct_;
  3525. }
  3526. inline const ::google::protobuf::Value& DefaultValueTestCases::top_level_value_with_struct() const {
  3527. const ::google::protobuf::Value* p = top_level_value_with_struct_;
  3528. // @@protoc_insertion_point(field_get:google.protobuf.testing.DefaultValueTestCases.top_level_value_with_struct)
  3529. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Value*>(
  3530. &::google::protobuf::_Value_default_instance_);
  3531. }
  3532. inline ::google::protobuf::Value* DefaultValueTestCases::release_top_level_value_with_struct() {
  3533. // @@protoc_insertion_point(field_release:google.protobuf.testing.DefaultValueTestCases.top_level_value_with_struct)
  3534. ::google::protobuf::Value* temp = top_level_value_with_struct_;
  3535. top_level_value_with_struct_ = NULL;
  3536. return temp;
  3537. }
  3538. inline ::google::protobuf::Value* DefaultValueTestCases::mutable_top_level_value_with_struct() {
  3539. if (top_level_value_with_struct_ == NULL) {
  3540. auto* p = CreateMaybeMessage<::google::protobuf::Value>(GetArenaNoVirtual());
  3541. top_level_value_with_struct_ = p;
  3542. }
  3543. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.DefaultValueTestCases.top_level_value_with_struct)
  3544. return top_level_value_with_struct_;
  3545. }
  3546. inline void DefaultValueTestCases::set_allocated_top_level_value_with_struct(::google::protobuf::Value* top_level_value_with_struct) {
  3547. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  3548. if (message_arena == NULL) {
  3549. delete reinterpret_cast< ::google::protobuf::MessageLite*>(top_level_value_with_struct_);
  3550. }
  3551. if (top_level_value_with_struct) {
  3552. ::google::protobuf::Arena* submessage_arena =
  3553. reinterpret_cast<::google::protobuf::MessageLite*>(top_level_value_with_struct)->GetArena();
  3554. if (message_arena != submessage_arena) {
  3555. top_level_value_with_struct = ::google::protobuf::internal::GetOwnedMessage(
  3556. message_arena, top_level_value_with_struct, submessage_arena);
  3557. }
  3558. } else {
  3559. }
  3560. top_level_value_with_struct_ = top_level_value_with_struct;
  3561. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.DefaultValueTestCases.top_level_value_with_struct)
  3562. }
  3563. // .google.protobuf.Value top_level_value_with_list = 218;
  3564. inline bool DefaultValueTestCases::has_top_level_value_with_list() const {
  3565. return this != internal_default_instance() && top_level_value_with_list_ != NULL;
  3566. }
  3567. inline const ::google::protobuf::Value& DefaultValueTestCases::_internal_top_level_value_with_list() const {
  3568. return *top_level_value_with_list_;
  3569. }
  3570. inline const ::google::protobuf::Value& DefaultValueTestCases::top_level_value_with_list() const {
  3571. const ::google::protobuf::Value* p = top_level_value_with_list_;
  3572. // @@protoc_insertion_point(field_get:google.protobuf.testing.DefaultValueTestCases.top_level_value_with_list)
  3573. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Value*>(
  3574. &::google::protobuf::_Value_default_instance_);
  3575. }
  3576. inline ::google::protobuf::Value* DefaultValueTestCases::release_top_level_value_with_list() {
  3577. // @@protoc_insertion_point(field_release:google.protobuf.testing.DefaultValueTestCases.top_level_value_with_list)
  3578. ::google::protobuf::Value* temp = top_level_value_with_list_;
  3579. top_level_value_with_list_ = NULL;
  3580. return temp;
  3581. }
  3582. inline ::google::protobuf::Value* DefaultValueTestCases::mutable_top_level_value_with_list() {
  3583. if (top_level_value_with_list_ == NULL) {
  3584. auto* p = CreateMaybeMessage<::google::protobuf::Value>(GetArenaNoVirtual());
  3585. top_level_value_with_list_ = p;
  3586. }
  3587. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.DefaultValueTestCases.top_level_value_with_list)
  3588. return top_level_value_with_list_;
  3589. }
  3590. inline void DefaultValueTestCases::set_allocated_top_level_value_with_list(::google::protobuf::Value* top_level_value_with_list) {
  3591. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  3592. if (message_arena == NULL) {
  3593. delete reinterpret_cast< ::google::protobuf::MessageLite*>(top_level_value_with_list_);
  3594. }
  3595. if (top_level_value_with_list) {
  3596. ::google::protobuf::Arena* submessage_arena =
  3597. reinterpret_cast<::google::protobuf::MessageLite*>(top_level_value_with_list)->GetArena();
  3598. if (message_arena != submessage_arena) {
  3599. top_level_value_with_list = ::google::protobuf::internal::GetOwnedMessage(
  3600. message_arena, top_level_value_with_list, submessage_arena);
  3601. }
  3602. } else {
  3603. }
  3604. top_level_value_with_list_ = top_level_value_with_list;
  3605. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.DefaultValueTestCases.top_level_value_with_list)
  3606. }
  3607. // .google.protobuf.ListValue top_level_listvalue = 219;
  3608. inline bool DefaultValueTestCases::has_top_level_listvalue() const {
  3609. return this != internal_default_instance() && top_level_listvalue_ != NULL;
  3610. }
  3611. inline const ::google::protobuf::ListValue& DefaultValueTestCases::_internal_top_level_listvalue() const {
  3612. return *top_level_listvalue_;
  3613. }
  3614. inline const ::google::protobuf::ListValue& DefaultValueTestCases::top_level_listvalue() const {
  3615. const ::google::protobuf::ListValue* p = top_level_listvalue_;
  3616. // @@protoc_insertion_point(field_get:google.protobuf.testing.DefaultValueTestCases.top_level_listvalue)
  3617. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::ListValue*>(
  3618. &::google::protobuf::_ListValue_default_instance_);
  3619. }
  3620. inline ::google::protobuf::ListValue* DefaultValueTestCases::release_top_level_listvalue() {
  3621. // @@protoc_insertion_point(field_release:google.protobuf.testing.DefaultValueTestCases.top_level_listvalue)
  3622. ::google::protobuf::ListValue* temp = top_level_listvalue_;
  3623. top_level_listvalue_ = NULL;
  3624. return temp;
  3625. }
  3626. inline ::google::protobuf::ListValue* DefaultValueTestCases::mutable_top_level_listvalue() {
  3627. if (top_level_listvalue_ == NULL) {
  3628. auto* p = CreateMaybeMessage<::google::protobuf::ListValue>(GetArenaNoVirtual());
  3629. top_level_listvalue_ = p;
  3630. }
  3631. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.DefaultValueTestCases.top_level_listvalue)
  3632. return top_level_listvalue_;
  3633. }
  3634. inline void DefaultValueTestCases::set_allocated_top_level_listvalue(::google::protobuf::ListValue* top_level_listvalue) {
  3635. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  3636. if (message_arena == NULL) {
  3637. delete reinterpret_cast< ::google::protobuf::MessageLite*>(top_level_listvalue_);
  3638. }
  3639. if (top_level_listvalue) {
  3640. ::google::protobuf::Arena* submessage_arena =
  3641. reinterpret_cast<::google::protobuf::MessageLite*>(top_level_listvalue)->GetArena();
  3642. if (message_arena != submessage_arena) {
  3643. top_level_listvalue = ::google::protobuf::internal::GetOwnedMessage(
  3644. message_arena, top_level_listvalue, submessage_arena);
  3645. }
  3646. } else {
  3647. }
  3648. top_level_listvalue_ = top_level_listvalue;
  3649. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.DefaultValueTestCases.top_level_listvalue)
  3650. }
  3651. // .google.protobuf.testing.AnyMessage empty_any = 301;
  3652. inline bool DefaultValueTestCases::has_empty_any() const {
  3653. return this != internal_default_instance() && empty_any_ != NULL;
  3654. }
  3655. inline void DefaultValueTestCases::clear_empty_any() {
  3656. if (GetArenaNoVirtual() == NULL && empty_any_ != NULL) {
  3657. delete empty_any_;
  3658. }
  3659. empty_any_ = NULL;
  3660. }
  3661. inline const ::google::protobuf::testing::AnyMessage& DefaultValueTestCases::_internal_empty_any() const {
  3662. return *empty_any_;
  3663. }
  3664. inline const ::google::protobuf::testing::AnyMessage& DefaultValueTestCases::empty_any() const {
  3665. const ::google::protobuf::testing::AnyMessage* p = empty_any_;
  3666. // @@protoc_insertion_point(field_get:google.protobuf.testing.DefaultValueTestCases.empty_any)
  3667. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::AnyMessage*>(
  3668. &::google::protobuf::testing::_AnyMessage_default_instance_);
  3669. }
  3670. inline ::google::protobuf::testing::AnyMessage* DefaultValueTestCases::release_empty_any() {
  3671. // @@protoc_insertion_point(field_release:google.protobuf.testing.DefaultValueTestCases.empty_any)
  3672. ::google::protobuf::testing::AnyMessage* temp = empty_any_;
  3673. empty_any_ = NULL;
  3674. return temp;
  3675. }
  3676. inline ::google::protobuf::testing::AnyMessage* DefaultValueTestCases::mutable_empty_any() {
  3677. if (empty_any_ == NULL) {
  3678. auto* p = CreateMaybeMessage<::google::protobuf::testing::AnyMessage>(GetArenaNoVirtual());
  3679. empty_any_ = p;
  3680. }
  3681. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.DefaultValueTestCases.empty_any)
  3682. return empty_any_;
  3683. }
  3684. inline void DefaultValueTestCases::set_allocated_empty_any(::google::protobuf::testing::AnyMessage* empty_any) {
  3685. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  3686. if (message_arena == NULL) {
  3687. delete empty_any_;
  3688. }
  3689. if (empty_any) {
  3690. ::google::protobuf::Arena* submessage_arena = NULL;
  3691. if (message_arena != submessage_arena) {
  3692. empty_any = ::google::protobuf::internal::GetOwnedMessage(
  3693. message_arena, empty_any, submessage_arena);
  3694. }
  3695. } else {
  3696. }
  3697. empty_any_ = empty_any;
  3698. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.DefaultValueTestCases.empty_any)
  3699. }
  3700. // .google.protobuf.testing.AnyMessage type_only_any = 302;
  3701. inline bool DefaultValueTestCases::has_type_only_any() const {
  3702. return this != internal_default_instance() && type_only_any_ != NULL;
  3703. }
  3704. inline void DefaultValueTestCases::clear_type_only_any() {
  3705. if (GetArenaNoVirtual() == NULL && type_only_any_ != NULL) {
  3706. delete type_only_any_;
  3707. }
  3708. type_only_any_ = NULL;
  3709. }
  3710. inline const ::google::protobuf::testing::AnyMessage& DefaultValueTestCases::_internal_type_only_any() const {
  3711. return *type_only_any_;
  3712. }
  3713. inline const ::google::protobuf::testing::AnyMessage& DefaultValueTestCases::type_only_any() const {
  3714. const ::google::protobuf::testing::AnyMessage* p = type_only_any_;
  3715. // @@protoc_insertion_point(field_get:google.protobuf.testing.DefaultValueTestCases.type_only_any)
  3716. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::AnyMessage*>(
  3717. &::google::protobuf::testing::_AnyMessage_default_instance_);
  3718. }
  3719. inline ::google::protobuf::testing::AnyMessage* DefaultValueTestCases::release_type_only_any() {
  3720. // @@protoc_insertion_point(field_release:google.protobuf.testing.DefaultValueTestCases.type_only_any)
  3721. ::google::protobuf::testing::AnyMessage* temp = type_only_any_;
  3722. type_only_any_ = NULL;
  3723. return temp;
  3724. }
  3725. inline ::google::protobuf::testing::AnyMessage* DefaultValueTestCases::mutable_type_only_any() {
  3726. if (type_only_any_ == NULL) {
  3727. auto* p = CreateMaybeMessage<::google::protobuf::testing::AnyMessage>(GetArenaNoVirtual());
  3728. type_only_any_ = p;
  3729. }
  3730. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.DefaultValueTestCases.type_only_any)
  3731. return type_only_any_;
  3732. }
  3733. inline void DefaultValueTestCases::set_allocated_type_only_any(::google::protobuf::testing::AnyMessage* type_only_any) {
  3734. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  3735. if (message_arena == NULL) {
  3736. delete type_only_any_;
  3737. }
  3738. if (type_only_any) {
  3739. ::google::protobuf::Arena* submessage_arena = NULL;
  3740. if (message_arena != submessage_arena) {
  3741. type_only_any = ::google::protobuf::internal::GetOwnedMessage(
  3742. message_arena, type_only_any, submessage_arena);
  3743. }
  3744. } else {
  3745. }
  3746. type_only_any_ = type_only_any;
  3747. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.DefaultValueTestCases.type_only_any)
  3748. }
  3749. // .google.protobuf.testing.AnyMessage recursive_any = 303;
  3750. inline bool DefaultValueTestCases::has_recursive_any() const {
  3751. return this != internal_default_instance() && recursive_any_ != NULL;
  3752. }
  3753. inline void DefaultValueTestCases::clear_recursive_any() {
  3754. if (GetArenaNoVirtual() == NULL && recursive_any_ != NULL) {
  3755. delete recursive_any_;
  3756. }
  3757. recursive_any_ = NULL;
  3758. }
  3759. inline const ::google::protobuf::testing::AnyMessage& DefaultValueTestCases::_internal_recursive_any() const {
  3760. return *recursive_any_;
  3761. }
  3762. inline const ::google::protobuf::testing::AnyMessage& DefaultValueTestCases::recursive_any() const {
  3763. const ::google::protobuf::testing::AnyMessage* p = recursive_any_;
  3764. // @@protoc_insertion_point(field_get:google.protobuf.testing.DefaultValueTestCases.recursive_any)
  3765. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::AnyMessage*>(
  3766. &::google::protobuf::testing::_AnyMessage_default_instance_);
  3767. }
  3768. inline ::google::protobuf::testing::AnyMessage* DefaultValueTestCases::release_recursive_any() {
  3769. // @@protoc_insertion_point(field_release:google.protobuf.testing.DefaultValueTestCases.recursive_any)
  3770. ::google::protobuf::testing::AnyMessage* temp = recursive_any_;
  3771. recursive_any_ = NULL;
  3772. return temp;
  3773. }
  3774. inline ::google::protobuf::testing::AnyMessage* DefaultValueTestCases::mutable_recursive_any() {
  3775. if (recursive_any_ == NULL) {
  3776. auto* p = CreateMaybeMessage<::google::protobuf::testing::AnyMessage>(GetArenaNoVirtual());
  3777. recursive_any_ = p;
  3778. }
  3779. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.DefaultValueTestCases.recursive_any)
  3780. return recursive_any_;
  3781. }
  3782. inline void DefaultValueTestCases::set_allocated_recursive_any(::google::protobuf::testing::AnyMessage* recursive_any) {
  3783. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  3784. if (message_arena == NULL) {
  3785. delete recursive_any_;
  3786. }
  3787. if (recursive_any) {
  3788. ::google::protobuf::Arena* submessage_arena = NULL;
  3789. if (message_arena != submessage_arena) {
  3790. recursive_any = ::google::protobuf::internal::GetOwnedMessage(
  3791. message_arena, recursive_any, submessage_arena);
  3792. }
  3793. } else {
  3794. }
  3795. recursive_any_ = recursive_any;
  3796. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.DefaultValueTestCases.recursive_any)
  3797. }
  3798. // .google.protobuf.testing.AnyMessage any_with_message_value = 304;
  3799. inline bool DefaultValueTestCases::has_any_with_message_value() const {
  3800. return this != internal_default_instance() && any_with_message_value_ != NULL;
  3801. }
  3802. inline void DefaultValueTestCases::clear_any_with_message_value() {
  3803. if (GetArenaNoVirtual() == NULL && any_with_message_value_ != NULL) {
  3804. delete any_with_message_value_;
  3805. }
  3806. any_with_message_value_ = NULL;
  3807. }
  3808. inline const ::google::protobuf::testing::AnyMessage& DefaultValueTestCases::_internal_any_with_message_value() const {
  3809. return *any_with_message_value_;
  3810. }
  3811. inline const ::google::protobuf::testing::AnyMessage& DefaultValueTestCases::any_with_message_value() const {
  3812. const ::google::protobuf::testing::AnyMessage* p = any_with_message_value_;
  3813. // @@protoc_insertion_point(field_get:google.protobuf.testing.DefaultValueTestCases.any_with_message_value)
  3814. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::AnyMessage*>(
  3815. &::google::protobuf::testing::_AnyMessage_default_instance_);
  3816. }
  3817. inline ::google::protobuf::testing::AnyMessage* DefaultValueTestCases::release_any_with_message_value() {
  3818. // @@protoc_insertion_point(field_release:google.protobuf.testing.DefaultValueTestCases.any_with_message_value)
  3819. ::google::protobuf::testing::AnyMessage* temp = any_with_message_value_;
  3820. any_with_message_value_ = NULL;
  3821. return temp;
  3822. }
  3823. inline ::google::protobuf::testing::AnyMessage* DefaultValueTestCases::mutable_any_with_message_value() {
  3824. if (any_with_message_value_ == NULL) {
  3825. auto* p = CreateMaybeMessage<::google::protobuf::testing::AnyMessage>(GetArenaNoVirtual());
  3826. any_with_message_value_ = p;
  3827. }
  3828. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.DefaultValueTestCases.any_with_message_value)
  3829. return any_with_message_value_;
  3830. }
  3831. inline void DefaultValueTestCases::set_allocated_any_with_message_value(::google::protobuf::testing::AnyMessage* any_with_message_value) {
  3832. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  3833. if (message_arena == NULL) {
  3834. delete any_with_message_value_;
  3835. }
  3836. if (any_with_message_value) {
  3837. ::google::protobuf::Arena* submessage_arena = NULL;
  3838. if (message_arena != submessage_arena) {
  3839. any_with_message_value = ::google::protobuf::internal::GetOwnedMessage(
  3840. message_arena, any_with_message_value, submessage_arena);
  3841. }
  3842. } else {
  3843. }
  3844. any_with_message_value_ = any_with_message_value;
  3845. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.DefaultValueTestCases.any_with_message_value)
  3846. }
  3847. // .google.protobuf.testing.AnyMessage any_with_nested_message = 305;
  3848. inline bool DefaultValueTestCases::has_any_with_nested_message() const {
  3849. return this != internal_default_instance() && any_with_nested_message_ != NULL;
  3850. }
  3851. inline void DefaultValueTestCases::clear_any_with_nested_message() {
  3852. if (GetArenaNoVirtual() == NULL && any_with_nested_message_ != NULL) {
  3853. delete any_with_nested_message_;
  3854. }
  3855. any_with_nested_message_ = NULL;
  3856. }
  3857. inline const ::google::protobuf::testing::AnyMessage& DefaultValueTestCases::_internal_any_with_nested_message() const {
  3858. return *any_with_nested_message_;
  3859. }
  3860. inline const ::google::protobuf::testing::AnyMessage& DefaultValueTestCases::any_with_nested_message() const {
  3861. const ::google::protobuf::testing::AnyMessage* p = any_with_nested_message_;
  3862. // @@protoc_insertion_point(field_get:google.protobuf.testing.DefaultValueTestCases.any_with_nested_message)
  3863. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::AnyMessage*>(
  3864. &::google::protobuf::testing::_AnyMessage_default_instance_);
  3865. }
  3866. inline ::google::protobuf::testing::AnyMessage* DefaultValueTestCases::release_any_with_nested_message() {
  3867. // @@protoc_insertion_point(field_release:google.protobuf.testing.DefaultValueTestCases.any_with_nested_message)
  3868. ::google::protobuf::testing::AnyMessage* temp = any_with_nested_message_;
  3869. any_with_nested_message_ = NULL;
  3870. return temp;
  3871. }
  3872. inline ::google::protobuf::testing::AnyMessage* DefaultValueTestCases::mutable_any_with_nested_message() {
  3873. if (any_with_nested_message_ == NULL) {
  3874. auto* p = CreateMaybeMessage<::google::protobuf::testing::AnyMessage>(GetArenaNoVirtual());
  3875. any_with_nested_message_ = p;
  3876. }
  3877. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.DefaultValueTestCases.any_with_nested_message)
  3878. return any_with_nested_message_;
  3879. }
  3880. inline void DefaultValueTestCases::set_allocated_any_with_nested_message(::google::protobuf::testing::AnyMessage* any_with_nested_message) {
  3881. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  3882. if (message_arena == NULL) {
  3883. delete any_with_nested_message_;
  3884. }
  3885. if (any_with_nested_message) {
  3886. ::google::protobuf::Arena* submessage_arena = NULL;
  3887. if (message_arena != submessage_arena) {
  3888. any_with_nested_message = ::google::protobuf::internal::GetOwnedMessage(
  3889. message_arena, any_with_nested_message, submessage_arena);
  3890. }
  3891. } else {
  3892. }
  3893. any_with_nested_message_ = any_with_nested_message;
  3894. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.DefaultValueTestCases.any_with_nested_message)
  3895. }
  3896. // .google.protobuf.testing.AnyMessage any_with_message_containing_map = 306;
  3897. inline bool DefaultValueTestCases::has_any_with_message_containing_map() const {
  3898. return this != internal_default_instance() && any_with_message_containing_map_ != NULL;
  3899. }
  3900. inline void DefaultValueTestCases::clear_any_with_message_containing_map() {
  3901. if (GetArenaNoVirtual() == NULL && any_with_message_containing_map_ != NULL) {
  3902. delete any_with_message_containing_map_;
  3903. }
  3904. any_with_message_containing_map_ = NULL;
  3905. }
  3906. inline const ::google::protobuf::testing::AnyMessage& DefaultValueTestCases::_internal_any_with_message_containing_map() const {
  3907. return *any_with_message_containing_map_;
  3908. }
  3909. inline const ::google::protobuf::testing::AnyMessage& DefaultValueTestCases::any_with_message_containing_map() const {
  3910. const ::google::protobuf::testing::AnyMessage* p = any_with_message_containing_map_;
  3911. // @@protoc_insertion_point(field_get:google.protobuf.testing.DefaultValueTestCases.any_with_message_containing_map)
  3912. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::AnyMessage*>(
  3913. &::google::protobuf::testing::_AnyMessage_default_instance_);
  3914. }
  3915. inline ::google::protobuf::testing::AnyMessage* DefaultValueTestCases::release_any_with_message_containing_map() {
  3916. // @@protoc_insertion_point(field_release:google.protobuf.testing.DefaultValueTestCases.any_with_message_containing_map)
  3917. ::google::protobuf::testing::AnyMessage* temp = any_with_message_containing_map_;
  3918. any_with_message_containing_map_ = NULL;
  3919. return temp;
  3920. }
  3921. inline ::google::protobuf::testing::AnyMessage* DefaultValueTestCases::mutable_any_with_message_containing_map() {
  3922. if (any_with_message_containing_map_ == NULL) {
  3923. auto* p = CreateMaybeMessage<::google::protobuf::testing::AnyMessage>(GetArenaNoVirtual());
  3924. any_with_message_containing_map_ = p;
  3925. }
  3926. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.DefaultValueTestCases.any_with_message_containing_map)
  3927. return any_with_message_containing_map_;
  3928. }
  3929. inline void DefaultValueTestCases::set_allocated_any_with_message_containing_map(::google::protobuf::testing::AnyMessage* any_with_message_containing_map) {
  3930. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  3931. if (message_arena == NULL) {
  3932. delete any_with_message_containing_map_;
  3933. }
  3934. if (any_with_message_containing_map) {
  3935. ::google::protobuf::Arena* submessage_arena = NULL;
  3936. if (message_arena != submessage_arena) {
  3937. any_with_message_containing_map = ::google::protobuf::internal::GetOwnedMessage(
  3938. message_arena, any_with_message_containing_map, submessage_arena);
  3939. }
  3940. } else {
  3941. }
  3942. any_with_message_containing_map_ = any_with_message_containing_map;
  3943. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.DefaultValueTestCases.any_with_message_containing_map)
  3944. }
  3945. // .google.protobuf.testing.AnyMessage any_with_message_containing_struct = 307;
  3946. inline bool DefaultValueTestCases::has_any_with_message_containing_struct() const {
  3947. return this != internal_default_instance() && any_with_message_containing_struct_ != NULL;
  3948. }
  3949. inline void DefaultValueTestCases::clear_any_with_message_containing_struct() {
  3950. if (GetArenaNoVirtual() == NULL && any_with_message_containing_struct_ != NULL) {
  3951. delete any_with_message_containing_struct_;
  3952. }
  3953. any_with_message_containing_struct_ = NULL;
  3954. }
  3955. inline const ::google::protobuf::testing::AnyMessage& DefaultValueTestCases::_internal_any_with_message_containing_struct() const {
  3956. return *any_with_message_containing_struct_;
  3957. }
  3958. inline const ::google::protobuf::testing::AnyMessage& DefaultValueTestCases::any_with_message_containing_struct() const {
  3959. const ::google::protobuf::testing::AnyMessage* p = any_with_message_containing_struct_;
  3960. // @@protoc_insertion_point(field_get:google.protobuf.testing.DefaultValueTestCases.any_with_message_containing_struct)
  3961. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::AnyMessage*>(
  3962. &::google::protobuf::testing::_AnyMessage_default_instance_);
  3963. }
  3964. inline ::google::protobuf::testing::AnyMessage* DefaultValueTestCases::release_any_with_message_containing_struct() {
  3965. // @@protoc_insertion_point(field_release:google.protobuf.testing.DefaultValueTestCases.any_with_message_containing_struct)
  3966. ::google::protobuf::testing::AnyMessage* temp = any_with_message_containing_struct_;
  3967. any_with_message_containing_struct_ = NULL;
  3968. return temp;
  3969. }
  3970. inline ::google::protobuf::testing::AnyMessage* DefaultValueTestCases::mutable_any_with_message_containing_struct() {
  3971. if (any_with_message_containing_struct_ == NULL) {
  3972. auto* p = CreateMaybeMessage<::google::protobuf::testing::AnyMessage>(GetArenaNoVirtual());
  3973. any_with_message_containing_struct_ = p;
  3974. }
  3975. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.DefaultValueTestCases.any_with_message_containing_struct)
  3976. return any_with_message_containing_struct_;
  3977. }
  3978. inline void DefaultValueTestCases::set_allocated_any_with_message_containing_struct(::google::protobuf::testing::AnyMessage* any_with_message_containing_struct) {
  3979. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  3980. if (message_arena == NULL) {
  3981. delete any_with_message_containing_struct_;
  3982. }
  3983. if (any_with_message_containing_struct) {
  3984. ::google::protobuf::Arena* submessage_arena = NULL;
  3985. if (message_arena != submessage_arena) {
  3986. any_with_message_containing_struct = ::google::protobuf::internal::GetOwnedMessage(
  3987. message_arena, any_with_message_containing_struct, submessage_arena);
  3988. }
  3989. } else {
  3990. }
  3991. any_with_message_containing_struct_ = any_with_message_containing_struct;
  3992. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.DefaultValueTestCases.any_with_message_containing_struct)
  3993. }
  3994. // .google.protobuf.Any top_level_any = 308;
  3995. inline bool DefaultValueTestCases::has_top_level_any() const {
  3996. return this != internal_default_instance() && top_level_any_ != NULL;
  3997. }
  3998. inline const ::google::protobuf::Any& DefaultValueTestCases::_internal_top_level_any() const {
  3999. return *top_level_any_;
  4000. }
  4001. inline const ::google::protobuf::Any& DefaultValueTestCases::top_level_any() const {
  4002. const ::google::protobuf::Any* p = top_level_any_;
  4003. // @@protoc_insertion_point(field_get:google.protobuf.testing.DefaultValueTestCases.top_level_any)
  4004. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Any*>(
  4005. &::google::protobuf::_Any_default_instance_);
  4006. }
  4007. inline ::google::protobuf::Any* DefaultValueTestCases::release_top_level_any() {
  4008. // @@protoc_insertion_point(field_release:google.protobuf.testing.DefaultValueTestCases.top_level_any)
  4009. ::google::protobuf::Any* temp = top_level_any_;
  4010. top_level_any_ = NULL;
  4011. return temp;
  4012. }
  4013. inline ::google::protobuf::Any* DefaultValueTestCases::mutable_top_level_any() {
  4014. if (top_level_any_ == NULL) {
  4015. auto* p = CreateMaybeMessage<::google::protobuf::Any>(GetArenaNoVirtual());
  4016. top_level_any_ = p;
  4017. }
  4018. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.DefaultValueTestCases.top_level_any)
  4019. return top_level_any_;
  4020. }
  4021. inline void DefaultValueTestCases::set_allocated_top_level_any(::google::protobuf::Any* top_level_any) {
  4022. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  4023. if (message_arena == NULL) {
  4024. delete reinterpret_cast< ::google::protobuf::MessageLite*>(top_level_any_);
  4025. }
  4026. if (top_level_any) {
  4027. ::google::protobuf::Arena* submessage_arena = NULL;
  4028. if (message_arena != submessage_arena) {
  4029. top_level_any = ::google::protobuf::internal::GetOwnedMessage(
  4030. message_arena, top_level_any, submessage_arena);
  4031. }
  4032. } else {
  4033. }
  4034. top_level_any_ = top_level_any;
  4035. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.DefaultValueTestCases.top_level_any)
  4036. }
  4037. // .google.protobuf.testing.StringtoIntMap empty_map = 401;
  4038. inline bool DefaultValueTestCases::has_empty_map() const {
  4039. return this != internal_default_instance() && empty_map_ != NULL;
  4040. }
  4041. inline void DefaultValueTestCases::clear_empty_map() {
  4042. if (GetArenaNoVirtual() == NULL && empty_map_ != NULL) {
  4043. delete empty_map_;
  4044. }
  4045. empty_map_ = NULL;
  4046. }
  4047. inline const ::google::protobuf::testing::StringtoIntMap& DefaultValueTestCases::_internal_empty_map() const {
  4048. return *empty_map_;
  4049. }
  4050. inline const ::google::protobuf::testing::StringtoIntMap& DefaultValueTestCases::empty_map() const {
  4051. const ::google::protobuf::testing::StringtoIntMap* p = empty_map_;
  4052. // @@protoc_insertion_point(field_get:google.protobuf.testing.DefaultValueTestCases.empty_map)
  4053. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::StringtoIntMap*>(
  4054. &::google::protobuf::testing::_StringtoIntMap_default_instance_);
  4055. }
  4056. inline ::google::protobuf::testing::StringtoIntMap* DefaultValueTestCases::release_empty_map() {
  4057. // @@protoc_insertion_point(field_release:google.protobuf.testing.DefaultValueTestCases.empty_map)
  4058. ::google::protobuf::testing::StringtoIntMap* temp = empty_map_;
  4059. empty_map_ = NULL;
  4060. return temp;
  4061. }
  4062. inline ::google::protobuf::testing::StringtoIntMap* DefaultValueTestCases::mutable_empty_map() {
  4063. if (empty_map_ == NULL) {
  4064. auto* p = CreateMaybeMessage<::google::protobuf::testing::StringtoIntMap>(GetArenaNoVirtual());
  4065. empty_map_ = p;
  4066. }
  4067. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.DefaultValueTestCases.empty_map)
  4068. return empty_map_;
  4069. }
  4070. inline void DefaultValueTestCases::set_allocated_empty_map(::google::protobuf::testing::StringtoIntMap* empty_map) {
  4071. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  4072. if (message_arena == NULL) {
  4073. delete empty_map_;
  4074. }
  4075. if (empty_map) {
  4076. ::google::protobuf::Arena* submessage_arena = NULL;
  4077. if (message_arena != submessage_arena) {
  4078. empty_map = ::google::protobuf::internal::GetOwnedMessage(
  4079. message_arena, empty_map, submessage_arena);
  4080. }
  4081. } else {
  4082. }
  4083. empty_map_ = empty_map;
  4084. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.DefaultValueTestCases.empty_map)
  4085. }
  4086. // .google.protobuf.testing.StringtoIntMap string_to_int = 402;
  4087. inline bool DefaultValueTestCases::has_string_to_int() const {
  4088. return this != internal_default_instance() && string_to_int_ != NULL;
  4089. }
  4090. inline void DefaultValueTestCases::clear_string_to_int() {
  4091. if (GetArenaNoVirtual() == NULL && string_to_int_ != NULL) {
  4092. delete string_to_int_;
  4093. }
  4094. string_to_int_ = NULL;
  4095. }
  4096. inline const ::google::protobuf::testing::StringtoIntMap& DefaultValueTestCases::_internal_string_to_int() const {
  4097. return *string_to_int_;
  4098. }
  4099. inline const ::google::protobuf::testing::StringtoIntMap& DefaultValueTestCases::string_to_int() const {
  4100. const ::google::protobuf::testing::StringtoIntMap* p = string_to_int_;
  4101. // @@protoc_insertion_point(field_get:google.protobuf.testing.DefaultValueTestCases.string_to_int)
  4102. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::StringtoIntMap*>(
  4103. &::google::protobuf::testing::_StringtoIntMap_default_instance_);
  4104. }
  4105. inline ::google::protobuf::testing::StringtoIntMap* DefaultValueTestCases::release_string_to_int() {
  4106. // @@protoc_insertion_point(field_release:google.protobuf.testing.DefaultValueTestCases.string_to_int)
  4107. ::google::protobuf::testing::StringtoIntMap* temp = string_to_int_;
  4108. string_to_int_ = NULL;
  4109. return temp;
  4110. }
  4111. inline ::google::protobuf::testing::StringtoIntMap* DefaultValueTestCases::mutable_string_to_int() {
  4112. if (string_to_int_ == NULL) {
  4113. auto* p = CreateMaybeMessage<::google::protobuf::testing::StringtoIntMap>(GetArenaNoVirtual());
  4114. string_to_int_ = p;
  4115. }
  4116. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.DefaultValueTestCases.string_to_int)
  4117. return string_to_int_;
  4118. }
  4119. inline void DefaultValueTestCases::set_allocated_string_to_int(::google::protobuf::testing::StringtoIntMap* string_to_int) {
  4120. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  4121. if (message_arena == NULL) {
  4122. delete string_to_int_;
  4123. }
  4124. if (string_to_int) {
  4125. ::google::protobuf::Arena* submessage_arena = NULL;
  4126. if (message_arena != submessage_arena) {
  4127. string_to_int = ::google::protobuf::internal::GetOwnedMessage(
  4128. message_arena, string_to_int, submessage_arena);
  4129. }
  4130. } else {
  4131. }
  4132. string_to_int_ = string_to_int;
  4133. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.DefaultValueTestCases.string_to_int)
  4134. }
  4135. // .google.protobuf.testing.IntToStringMap int_to_string = 403;
  4136. inline bool DefaultValueTestCases::has_int_to_string() const {
  4137. return this != internal_default_instance() && int_to_string_ != NULL;
  4138. }
  4139. inline void DefaultValueTestCases::clear_int_to_string() {
  4140. if (GetArenaNoVirtual() == NULL && int_to_string_ != NULL) {
  4141. delete int_to_string_;
  4142. }
  4143. int_to_string_ = NULL;
  4144. }
  4145. inline const ::google::protobuf::testing::IntToStringMap& DefaultValueTestCases::_internal_int_to_string() const {
  4146. return *int_to_string_;
  4147. }
  4148. inline const ::google::protobuf::testing::IntToStringMap& DefaultValueTestCases::int_to_string() const {
  4149. const ::google::protobuf::testing::IntToStringMap* p = int_to_string_;
  4150. // @@protoc_insertion_point(field_get:google.protobuf.testing.DefaultValueTestCases.int_to_string)
  4151. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::IntToStringMap*>(
  4152. &::google::protobuf::testing::_IntToStringMap_default_instance_);
  4153. }
  4154. inline ::google::protobuf::testing::IntToStringMap* DefaultValueTestCases::release_int_to_string() {
  4155. // @@protoc_insertion_point(field_release:google.protobuf.testing.DefaultValueTestCases.int_to_string)
  4156. ::google::protobuf::testing::IntToStringMap* temp = int_to_string_;
  4157. int_to_string_ = NULL;
  4158. return temp;
  4159. }
  4160. inline ::google::protobuf::testing::IntToStringMap* DefaultValueTestCases::mutable_int_to_string() {
  4161. if (int_to_string_ == NULL) {
  4162. auto* p = CreateMaybeMessage<::google::protobuf::testing::IntToStringMap>(GetArenaNoVirtual());
  4163. int_to_string_ = p;
  4164. }
  4165. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.DefaultValueTestCases.int_to_string)
  4166. return int_to_string_;
  4167. }
  4168. inline void DefaultValueTestCases::set_allocated_int_to_string(::google::protobuf::testing::IntToStringMap* int_to_string) {
  4169. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  4170. if (message_arena == NULL) {
  4171. delete int_to_string_;
  4172. }
  4173. if (int_to_string) {
  4174. ::google::protobuf::Arena* submessage_arena = NULL;
  4175. if (message_arena != submessage_arena) {
  4176. int_to_string = ::google::protobuf::internal::GetOwnedMessage(
  4177. message_arena, int_to_string, submessage_arena);
  4178. }
  4179. } else {
  4180. }
  4181. int_to_string_ = int_to_string;
  4182. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.DefaultValueTestCases.int_to_string)
  4183. }
  4184. // .google.protobuf.testing.MixedMap mixed1 = 404;
  4185. inline bool DefaultValueTestCases::has_mixed1() const {
  4186. return this != internal_default_instance() && mixed1_ != NULL;
  4187. }
  4188. inline void DefaultValueTestCases::clear_mixed1() {
  4189. if (GetArenaNoVirtual() == NULL && mixed1_ != NULL) {
  4190. delete mixed1_;
  4191. }
  4192. mixed1_ = NULL;
  4193. }
  4194. inline const ::google::protobuf::testing::MixedMap& DefaultValueTestCases::_internal_mixed1() const {
  4195. return *mixed1_;
  4196. }
  4197. inline const ::google::protobuf::testing::MixedMap& DefaultValueTestCases::mixed1() const {
  4198. const ::google::protobuf::testing::MixedMap* p = mixed1_;
  4199. // @@protoc_insertion_point(field_get:google.protobuf.testing.DefaultValueTestCases.mixed1)
  4200. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::MixedMap*>(
  4201. &::google::protobuf::testing::_MixedMap_default_instance_);
  4202. }
  4203. inline ::google::protobuf::testing::MixedMap* DefaultValueTestCases::release_mixed1() {
  4204. // @@protoc_insertion_point(field_release:google.protobuf.testing.DefaultValueTestCases.mixed1)
  4205. ::google::protobuf::testing::MixedMap* temp = mixed1_;
  4206. mixed1_ = NULL;
  4207. return temp;
  4208. }
  4209. inline ::google::protobuf::testing::MixedMap* DefaultValueTestCases::mutable_mixed1() {
  4210. if (mixed1_ == NULL) {
  4211. auto* p = CreateMaybeMessage<::google::protobuf::testing::MixedMap>(GetArenaNoVirtual());
  4212. mixed1_ = p;
  4213. }
  4214. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.DefaultValueTestCases.mixed1)
  4215. return mixed1_;
  4216. }
  4217. inline void DefaultValueTestCases::set_allocated_mixed1(::google::protobuf::testing::MixedMap* mixed1) {
  4218. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  4219. if (message_arena == NULL) {
  4220. delete mixed1_;
  4221. }
  4222. if (mixed1) {
  4223. ::google::protobuf::Arena* submessage_arena = NULL;
  4224. if (message_arena != submessage_arena) {
  4225. mixed1 = ::google::protobuf::internal::GetOwnedMessage(
  4226. message_arena, mixed1, submessage_arena);
  4227. }
  4228. } else {
  4229. }
  4230. mixed1_ = mixed1;
  4231. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.DefaultValueTestCases.mixed1)
  4232. }
  4233. // .google.protobuf.testing.MixedMap2 mixed2 = 405;
  4234. inline bool DefaultValueTestCases::has_mixed2() const {
  4235. return this != internal_default_instance() && mixed2_ != NULL;
  4236. }
  4237. inline void DefaultValueTestCases::clear_mixed2() {
  4238. if (GetArenaNoVirtual() == NULL && mixed2_ != NULL) {
  4239. delete mixed2_;
  4240. }
  4241. mixed2_ = NULL;
  4242. }
  4243. inline const ::google::protobuf::testing::MixedMap2& DefaultValueTestCases::_internal_mixed2() const {
  4244. return *mixed2_;
  4245. }
  4246. inline const ::google::protobuf::testing::MixedMap2& DefaultValueTestCases::mixed2() const {
  4247. const ::google::protobuf::testing::MixedMap2* p = mixed2_;
  4248. // @@protoc_insertion_point(field_get:google.protobuf.testing.DefaultValueTestCases.mixed2)
  4249. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::MixedMap2*>(
  4250. &::google::protobuf::testing::_MixedMap2_default_instance_);
  4251. }
  4252. inline ::google::protobuf::testing::MixedMap2* DefaultValueTestCases::release_mixed2() {
  4253. // @@protoc_insertion_point(field_release:google.protobuf.testing.DefaultValueTestCases.mixed2)
  4254. ::google::protobuf::testing::MixedMap2* temp = mixed2_;
  4255. mixed2_ = NULL;
  4256. return temp;
  4257. }
  4258. inline ::google::protobuf::testing::MixedMap2* DefaultValueTestCases::mutable_mixed2() {
  4259. if (mixed2_ == NULL) {
  4260. auto* p = CreateMaybeMessage<::google::protobuf::testing::MixedMap2>(GetArenaNoVirtual());
  4261. mixed2_ = p;
  4262. }
  4263. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.DefaultValueTestCases.mixed2)
  4264. return mixed2_;
  4265. }
  4266. inline void DefaultValueTestCases::set_allocated_mixed2(::google::protobuf::testing::MixedMap2* mixed2) {
  4267. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  4268. if (message_arena == NULL) {
  4269. delete mixed2_;
  4270. }
  4271. if (mixed2) {
  4272. ::google::protobuf::Arena* submessage_arena = NULL;
  4273. if (message_arena != submessage_arena) {
  4274. mixed2 = ::google::protobuf::internal::GetOwnedMessage(
  4275. message_arena, mixed2, submessage_arena);
  4276. }
  4277. } else {
  4278. }
  4279. mixed2_ = mixed2;
  4280. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.DefaultValueTestCases.mixed2)
  4281. }
  4282. // .google.protobuf.testing.MixedMap2 empty_mixed2 = 406;
  4283. inline bool DefaultValueTestCases::has_empty_mixed2() const {
  4284. return this != internal_default_instance() && empty_mixed2_ != NULL;
  4285. }
  4286. inline void DefaultValueTestCases::clear_empty_mixed2() {
  4287. if (GetArenaNoVirtual() == NULL && empty_mixed2_ != NULL) {
  4288. delete empty_mixed2_;
  4289. }
  4290. empty_mixed2_ = NULL;
  4291. }
  4292. inline const ::google::protobuf::testing::MixedMap2& DefaultValueTestCases::_internal_empty_mixed2() const {
  4293. return *empty_mixed2_;
  4294. }
  4295. inline const ::google::protobuf::testing::MixedMap2& DefaultValueTestCases::empty_mixed2() const {
  4296. const ::google::protobuf::testing::MixedMap2* p = empty_mixed2_;
  4297. // @@protoc_insertion_point(field_get:google.protobuf.testing.DefaultValueTestCases.empty_mixed2)
  4298. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::MixedMap2*>(
  4299. &::google::protobuf::testing::_MixedMap2_default_instance_);
  4300. }
  4301. inline ::google::protobuf::testing::MixedMap2* DefaultValueTestCases::release_empty_mixed2() {
  4302. // @@protoc_insertion_point(field_release:google.protobuf.testing.DefaultValueTestCases.empty_mixed2)
  4303. ::google::protobuf::testing::MixedMap2* temp = empty_mixed2_;
  4304. empty_mixed2_ = NULL;
  4305. return temp;
  4306. }
  4307. inline ::google::protobuf::testing::MixedMap2* DefaultValueTestCases::mutable_empty_mixed2() {
  4308. if (empty_mixed2_ == NULL) {
  4309. auto* p = CreateMaybeMessage<::google::protobuf::testing::MixedMap2>(GetArenaNoVirtual());
  4310. empty_mixed2_ = p;
  4311. }
  4312. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.DefaultValueTestCases.empty_mixed2)
  4313. return empty_mixed2_;
  4314. }
  4315. inline void DefaultValueTestCases::set_allocated_empty_mixed2(::google::protobuf::testing::MixedMap2* empty_mixed2) {
  4316. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  4317. if (message_arena == NULL) {
  4318. delete empty_mixed2_;
  4319. }
  4320. if (empty_mixed2) {
  4321. ::google::protobuf::Arena* submessage_arena = NULL;
  4322. if (message_arena != submessage_arena) {
  4323. empty_mixed2 = ::google::protobuf::internal::GetOwnedMessage(
  4324. message_arena, empty_mixed2, submessage_arena);
  4325. }
  4326. } else {
  4327. }
  4328. empty_mixed2_ = empty_mixed2;
  4329. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.DefaultValueTestCases.empty_mixed2)
  4330. }
  4331. // .google.protobuf.testing.MessageMap map_of_objects = 407;
  4332. inline bool DefaultValueTestCases::has_map_of_objects() const {
  4333. return this != internal_default_instance() && map_of_objects_ != NULL;
  4334. }
  4335. inline void DefaultValueTestCases::clear_map_of_objects() {
  4336. if (GetArenaNoVirtual() == NULL && map_of_objects_ != NULL) {
  4337. delete map_of_objects_;
  4338. }
  4339. map_of_objects_ = NULL;
  4340. }
  4341. inline const ::google::protobuf::testing::MessageMap& DefaultValueTestCases::_internal_map_of_objects() const {
  4342. return *map_of_objects_;
  4343. }
  4344. inline const ::google::protobuf::testing::MessageMap& DefaultValueTestCases::map_of_objects() const {
  4345. const ::google::protobuf::testing::MessageMap* p = map_of_objects_;
  4346. // @@protoc_insertion_point(field_get:google.protobuf.testing.DefaultValueTestCases.map_of_objects)
  4347. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::MessageMap*>(
  4348. &::google::protobuf::testing::_MessageMap_default_instance_);
  4349. }
  4350. inline ::google::protobuf::testing::MessageMap* DefaultValueTestCases::release_map_of_objects() {
  4351. // @@protoc_insertion_point(field_release:google.protobuf.testing.DefaultValueTestCases.map_of_objects)
  4352. ::google::protobuf::testing::MessageMap* temp = map_of_objects_;
  4353. map_of_objects_ = NULL;
  4354. return temp;
  4355. }
  4356. inline ::google::protobuf::testing::MessageMap* DefaultValueTestCases::mutable_map_of_objects() {
  4357. if (map_of_objects_ == NULL) {
  4358. auto* p = CreateMaybeMessage<::google::protobuf::testing::MessageMap>(GetArenaNoVirtual());
  4359. map_of_objects_ = p;
  4360. }
  4361. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.DefaultValueTestCases.map_of_objects)
  4362. return map_of_objects_;
  4363. }
  4364. inline void DefaultValueTestCases::set_allocated_map_of_objects(::google::protobuf::testing::MessageMap* map_of_objects) {
  4365. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  4366. if (message_arena == NULL) {
  4367. delete map_of_objects_;
  4368. }
  4369. if (map_of_objects) {
  4370. ::google::protobuf::Arena* submessage_arena = NULL;
  4371. if (message_arena != submessage_arena) {
  4372. map_of_objects = ::google::protobuf::internal::GetOwnedMessage(
  4373. message_arena, map_of_objects, submessage_arena);
  4374. }
  4375. } else {
  4376. }
  4377. map_of_objects_ = map_of_objects;
  4378. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.DefaultValueTestCases.map_of_objects)
  4379. }
  4380. // .google.protobuf.testing.MixedMap mixed_empty = 408;
  4381. inline bool DefaultValueTestCases::has_mixed_empty() const {
  4382. return this != internal_default_instance() && mixed_empty_ != NULL;
  4383. }
  4384. inline void DefaultValueTestCases::clear_mixed_empty() {
  4385. if (GetArenaNoVirtual() == NULL && mixed_empty_ != NULL) {
  4386. delete mixed_empty_;
  4387. }
  4388. mixed_empty_ = NULL;
  4389. }
  4390. inline const ::google::protobuf::testing::MixedMap& DefaultValueTestCases::_internal_mixed_empty() const {
  4391. return *mixed_empty_;
  4392. }
  4393. inline const ::google::protobuf::testing::MixedMap& DefaultValueTestCases::mixed_empty() const {
  4394. const ::google::protobuf::testing::MixedMap* p = mixed_empty_;
  4395. // @@protoc_insertion_point(field_get:google.protobuf.testing.DefaultValueTestCases.mixed_empty)
  4396. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::MixedMap*>(
  4397. &::google::protobuf::testing::_MixedMap_default_instance_);
  4398. }
  4399. inline ::google::protobuf::testing::MixedMap* DefaultValueTestCases::release_mixed_empty() {
  4400. // @@protoc_insertion_point(field_release:google.protobuf.testing.DefaultValueTestCases.mixed_empty)
  4401. ::google::protobuf::testing::MixedMap* temp = mixed_empty_;
  4402. mixed_empty_ = NULL;
  4403. return temp;
  4404. }
  4405. inline ::google::protobuf::testing::MixedMap* DefaultValueTestCases::mutable_mixed_empty() {
  4406. if (mixed_empty_ == NULL) {
  4407. auto* p = CreateMaybeMessage<::google::protobuf::testing::MixedMap>(GetArenaNoVirtual());
  4408. mixed_empty_ = p;
  4409. }
  4410. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.DefaultValueTestCases.mixed_empty)
  4411. return mixed_empty_;
  4412. }
  4413. inline void DefaultValueTestCases::set_allocated_mixed_empty(::google::protobuf::testing::MixedMap* mixed_empty) {
  4414. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  4415. if (message_arena == NULL) {
  4416. delete mixed_empty_;
  4417. }
  4418. if (mixed_empty) {
  4419. ::google::protobuf::Arena* submessage_arena = NULL;
  4420. if (message_arena != submessage_arena) {
  4421. mixed_empty = ::google::protobuf::internal::GetOwnedMessage(
  4422. message_arena, mixed_empty, submessage_arena);
  4423. }
  4424. } else {
  4425. }
  4426. mixed_empty_ = mixed_empty;
  4427. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.DefaultValueTestCases.mixed_empty)
  4428. }
  4429. // .google.protobuf.testing.MessageMap message_map_empty = 409;
  4430. inline bool DefaultValueTestCases::has_message_map_empty() const {
  4431. return this != internal_default_instance() && message_map_empty_ != NULL;
  4432. }
  4433. inline void DefaultValueTestCases::clear_message_map_empty() {
  4434. if (GetArenaNoVirtual() == NULL && message_map_empty_ != NULL) {
  4435. delete message_map_empty_;
  4436. }
  4437. message_map_empty_ = NULL;
  4438. }
  4439. inline const ::google::protobuf::testing::MessageMap& DefaultValueTestCases::_internal_message_map_empty() const {
  4440. return *message_map_empty_;
  4441. }
  4442. inline const ::google::protobuf::testing::MessageMap& DefaultValueTestCases::message_map_empty() const {
  4443. const ::google::protobuf::testing::MessageMap* p = message_map_empty_;
  4444. // @@protoc_insertion_point(field_get:google.protobuf.testing.DefaultValueTestCases.message_map_empty)
  4445. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::MessageMap*>(
  4446. &::google::protobuf::testing::_MessageMap_default_instance_);
  4447. }
  4448. inline ::google::protobuf::testing::MessageMap* DefaultValueTestCases::release_message_map_empty() {
  4449. // @@protoc_insertion_point(field_release:google.protobuf.testing.DefaultValueTestCases.message_map_empty)
  4450. ::google::protobuf::testing::MessageMap* temp = message_map_empty_;
  4451. message_map_empty_ = NULL;
  4452. return temp;
  4453. }
  4454. inline ::google::protobuf::testing::MessageMap* DefaultValueTestCases::mutable_message_map_empty() {
  4455. if (message_map_empty_ == NULL) {
  4456. auto* p = CreateMaybeMessage<::google::protobuf::testing::MessageMap>(GetArenaNoVirtual());
  4457. message_map_empty_ = p;
  4458. }
  4459. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.DefaultValueTestCases.message_map_empty)
  4460. return message_map_empty_;
  4461. }
  4462. inline void DefaultValueTestCases::set_allocated_message_map_empty(::google::protobuf::testing::MessageMap* message_map_empty) {
  4463. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  4464. if (message_arena == NULL) {
  4465. delete message_map_empty_;
  4466. }
  4467. if (message_map_empty) {
  4468. ::google::protobuf::Arena* submessage_arena = NULL;
  4469. if (message_arena != submessage_arena) {
  4470. message_map_empty = ::google::protobuf::internal::GetOwnedMessage(
  4471. message_arena, message_map_empty, submessage_arena);
  4472. }
  4473. } else {
  4474. }
  4475. message_map_empty_ = message_map_empty;
  4476. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.DefaultValueTestCases.message_map_empty)
  4477. }
  4478. // .google.protobuf.testing.DoubleValueMessage double_value = 501;
  4479. inline bool DefaultValueTestCases::has_double_value() const {
  4480. return this != internal_default_instance() && double_value_ != NULL;
  4481. }
  4482. inline void DefaultValueTestCases::clear_double_value() {
  4483. if (GetArenaNoVirtual() == NULL && double_value_ != NULL) {
  4484. delete double_value_;
  4485. }
  4486. double_value_ = NULL;
  4487. }
  4488. inline const ::google::protobuf::testing::DoubleValueMessage& DefaultValueTestCases::_internal_double_value() const {
  4489. return *double_value_;
  4490. }
  4491. inline const ::google::protobuf::testing::DoubleValueMessage& DefaultValueTestCases::double_value() const {
  4492. const ::google::protobuf::testing::DoubleValueMessage* p = double_value_;
  4493. // @@protoc_insertion_point(field_get:google.protobuf.testing.DefaultValueTestCases.double_value)
  4494. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::DoubleValueMessage*>(
  4495. &::google::protobuf::testing::_DoubleValueMessage_default_instance_);
  4496. }
  4497. inline ::google::protobuf::testing::DoubleValueMessage* DefaultValueTestCases::release_double_value() {
  4498. // @@protoc_insertion_point(field_release:google.protobuf.testing.DefaultValueTestCases.double_value)
  4499. ::google::protobuf::testing::DoubleValueMessage* temp = double_value_;
  4500. double_value_ = NULL;
  4501. return temp;
  4502. }
  4503. inline ::google::protobuf::testing::DoubleValueMessage* DefaultValueTestCases::mutable_double_value() {
  4504. if (double_value_ == NULL) {
  4505. auto* p = CreateMaybeMessage<::google::protobuf::testing::DoubleValueMessage>(GetArenaNoVirtual());
  4506. double_value_ = p;
  4507. }
  4508. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.DefaultValueTestCases.double_value)
  4509. return double_value_;
  4510. }
  4511. inline void DefaultValueTestCases::set_allocated_double_value(::google::protobuf::testing::DoubleValueMessage* double_value) {
  4512. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  4513. if (message_arena == NULL) {
  4514. delete double_value_;
  4515. }
  4516. if (double_value) {
  4517. ::google::protobuf::Arena* submessage_arena = NULL;
  4518. if (message_arena != submessage_arena) {
  4519. double_value = ::google::protobuf::internal::GetOwnedMessage(
  4520. message_arena, double_value, submessage_arena);
  4521. }
  4522. } else {
  4523. }
  4524. double_value_ = double_value;
  4525. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.DefaultValueTestCases.double_value)
  4526. }
  4527. // .google.protobuf.testing.DoubleValueMessage double_value_default = 502;
  4528. inline bool DefaultValueTestCases::has_double_value_default() const {
  4529. return this != internal_default_instance() && double_value_default_ != NULL;
  4530. }
  4531. inline void DefaultValueTestCases::clear_double_value_default() {
  4532. if (GetArenaNoVirtual() == NULL && double_value_default_ != NULL) {
  4533. delete double_value_default_;
  4534. }
  4535. double_value_default_ = NULL;
  4536. }
  4537. inline const ::google::protobuf::testing::DoubleValueMessage& DefaultValueTestCases::_internal_double_value_default() const {
  4538. return *double_value_default_;
  4539. }
  4540. inline const ::google::protobuf::testing::DoubleValueMessage& DefaultValueTestCases::double_value_default() const {
  4541. const ::google::protobuf::testing::DoubleValueMessage* p = double_value_default_;
  4542. // @@protoc_insertion_point(field_get:google.protobuf.testing.DefaultValueTestCases.double_value_default)
  4543. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::DoubleValueMessage*>(
  4544. &::google::protobuf::testing::_DoubleValueMessage_default_instance_);
  4545. }
  4546. inline ::google::protobuf::testing::DoubleValueMessage* DefaultValueTestCases::release_double_value_default() {
  4547. // @@protoc_insertion_point(field_release:google.protobuf.testing.DefaultValueTestCases.double_value_default)
  4548. ::google::protobuf::testing::DoubleValueMessage* temp = double_value_default_;
  4549. double_value_default_ = NULL;
  4550. return temp;
  4551. }
  4552. inline ::google::protobuf::testing::DoubleValueMessage* DefaultValueTestCases::mutable_double_value_default() {
  4553. if (double_value_default_ == NULL) {
  4554. auto* p = CreateMaybeMessage<::google::protobuf::testing::DoubleValueMessage>(GetArenaNoVirtual());
  4555. double_value_default_ = p;
  4556. }
  4557. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.DefaultValueTestCases.double_value_default)
  4558. return double_value_default_;
  4559. }
  4560. inline void DefaultValueTestCases::set_allocated_double_value_default(::google::protobuf::testing::DoubleValueMessage* double_value_default) {
  4561. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  4562. if (message_arena == NULL) {
  4563. delete double_value_default_;
  4564. }
  4565. if (double_value_default) {
  4566. ::google::protobuf::Arena* submessage_arena = NULL;
  4567. if (message_arena != submessage_arena) {
  4568. double_value_default = ::google::protobuf::internal::GetOwnedMessage(
  4569. message_arena, double_value_default, submessage_arena);
  4570. }
  4571. } else {
  4572. }
  4573. double_value_default_ = double_value_default;
  4574. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.DefaultValueTestCases.double_value_default)
  4575. }
  4576. // -------------------------------------------------------------------
  4577. // DoubleMessage
  4578. // double double_value = 1;
  4579. inline void DoubleMessage::clear_double_value() {
  4580. double_value_ = 0;
  4581. }
  4582. inline double DoubleMessage::double_value() const {
  4583. // @@protoc_insertion_point(field_get:google.protobuf.testing.DoubleMessage.double_value)
  4584. return double_value_;
  4585. }
  4586. inline void DoubleMessage::set_double_value(double value) {
  4587. double_value_ = value;
  4588. // @@protoc_insertion_point(field_set:google.protobuf.testing.DoubleMessage.double_value)
  4589. }
  4590. // repeated double repeated_double = 2;
  4591. inline int DoubleMessage::repeated_double_size() const {
  4592. return repeated_double_.size();
  4593. }
  4594. inline void DoubleMessage::clear_repeated_double() {
  4595. repeated_double_.Clear();
  4596. }
  4597. inline double DoubleMessage::repeated_double(int index) const {
  4598. // @@protoc_insertion_point(field_get:google.protobuf.testing.DoubleMessage.repeated_double)
  4599. return repeated_double_.Get(index);
  4600. }
  4601. inline void DoubleMessage::set_repeated_double(int index, double value) {
  4602. repeated_double_.Set(index, value);
  4603. // @@protoc_insertion_point(field_set:google.protobuf.testing.DoubleMessage.repeated_double)
  4604. }
  4605. inline void DoubleMessage::add_repeated_double(double value) {
  4606. repeated_double_.Add(value);
  4607. // @@protoc_insertion_point(field_add:google.protobuf.testing.DoubleMessage.repeated_double)
  4608. }
  4609. inline const ::google::protobuf::RepeatedField< double >&
  4610. DoubleMessage::repeated_double() const {
  4611. // @@protoc_insertion_point(field_list:google.protobuf.testing.DoubleMessage.repeated_double)
  4612. return repeated_double_;
  4613. }
  4614. inline ::google::protobuf::RepeatedField< double >*
  4615. DoubleMessage::mutable_repeated_double() {
  4616. // @@protoc_insertion_point(field_mutable_list:google.protobuf.testing.DoubleMessage.repeated_double)
  4617. return &repeated_double_;
  4618. }
  4619. // .google.protobuf.testing.DoubleMessage nested_message = 3;
  4620. inline bool DoubleMessage::has_nested_message() const {
  4621. return this != internal_default_instance() && nested_message_ != NULL;
  4622. }
  4623. inline void DoubleMessage::clear_nested_message() {
  4624. if (GetArenaNoVirtual() == NULL && nested_message_ != NULL) {
  4625. delete nested_message_;
  4626. }
  4627. nested_message_ = NULL;
  4628. }
  4629. inline const ::google::protobuf::testing::DoubleMessage& DoubleMessage::_internal_nested_message() const {
  4630. return *nested_message_;
  4631. }
  4632. inline const ::google::protobuf::testing::DoubleMessage& DoubleMessage::nested_message() const {
  4633. const ::google::protobuf::testing::DoubleMessage* p = nested_message_;
  4634. // @@protoc_insertion_point(field_get:google.protobuf.testing.DoubleMessage.nested_message)
  4635. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::DoubleMessage*>(
  4636. &::google::protobuf::testing::_DoubleMessage_default_instance_);
  4637. }
  4638. inline ::google::protobuf::testing::DoubleMessage* DoubleMessage::release_nested_message() {
  4639. // @@protoc_insertion_point(field_release:google.protobuf.testing.DoubleMessage.nested_message)
  4640. ::google::protobuf::testing::DoubleMessage* temp = nested_message_;
  4641. nested_message_ = NULL;
  4642. return temp;
  4643. }
  4644. inline ::google::protobuf::testing::DoubleMessage* DoubleMessage::mutable_nested_message() {
  4645. if (nested_message_ == NULL) {
  4646. auto* p = CreateMaybeMessage<::google::protobuf::testing::DoubleMessage>(GetArenaNoVirtual());
  4647. nested_message_ = p;
  4648. }
  4649. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.DoubleMessage.nested_message)
  4650. return nested_message_;
  4651. }
  4652. inline void DoubleMessage::set_allocated_nested_message(::google::protobuf::testing::DoubleMessage* nested_message) {
  4653. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  4654. if (message_arena == NULL) {
  4655. delete nested_message_;
  4656. }
  4657. if (nested_message) {
  4658. ::google::protobuf::Arena* submessage_arena = NULL;
  4659. if (message_arena != submessage_arena) {
  4660. nested_message = ::google::protobuf::internal::GetOwnedMessage(
  4661. message_arena, nested_message, submessage_arena);
  4662. }
  4663. } else {
  4664. }
  4665. nested_message_ = nested_message;
  4666. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.DoubleMessage.nested_message)
  4667. }
  4668. // repeated .google.protobuf.testing.DoubleMessage repeated_nested_message = 4;
  4669. inline int DoubleMessage::repeated_nested_message_size() const {
  4670. return repeated_nested_message_.size();
  4671. }
  4672. inline void DoubleMessage::clear_repeated_nested_message() {
  4673. repeated_nested_message_.Clear();
  4674. }
  4675. inline ::google::protobuf::testing::DoubleMessage* DoubleMessage::mutable_repeated_nested_message(int index) {
  4676. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.DoubleMessage.repeated_nested_message)
  4677. return repeated_nested_message_.Mutable(index);
  4678. }
  4679. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::testing::DoubleMessage >*
  4680. DoubleMessage::mutable_repeated_nested_message() {
  4681. // @@protoc_insertion_point(field_mutable_list:google.protobuf.testing.DoubleMessage.repeated_nested_message)
  4682. return &repeated_nested_message_;
  4683. }
  4684. inline const ::google::protobuf::testing::DoubleMessage& DoubleMessage::repeated_nested_message(int index) const {
  4685. // @@protoc_insertion_point(field_get:google.protobuf.testing.DoubleMessage.repeated_nested_message)
  4686. return repeated_nested_message_.Get(index);
  4687. }
  4688. inline ::google::protobuf::testing::DoubleMessage* DoubleMessage::add_repeated_nested_message() {
  4689. // @@protoc_insertion_point(field_add:google.protobuf.testing.DoubleMessage.repeated_nested_message)
  4690. return repeated_nested_message_.Add();
  4691. }
  4692. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::testing::DoubleMessage >&
  4693. DoubleMessage::repeated_nested_message() const {
  4694. // @@protoc_insertion_point(field_list:google.protobuf.testing.DoubleMessage.repeated_nested_message)
  4695. return repeated_nested_message_;
  4696. }
  4697. // .google.protobuf.DoubleValue double_wrapper = 100;
  4698. inline bool DoubleMessage::has_double_wrapper() const {
  4699. return this != internal_default_instance() && double_wrapper_ != NULL;
  4700. }
  4701. inline const ::google::protobuf::DoubleValue& DoubleMessage::_internal_double_wrapper() const {
  4702. return *double_wrapper_;
  4703. }
  4704. inline const ::google::protobuf::DoubleValue& DoubleMessage::double_wrapper() const {
  4705. const ::google::protobuf::DoubleValue* p = double_wrapper_;
  4706. // @@protoc_insertion_point(field_get:google.protobuf.testing.DoubleMessage.double_wrapper)
  4707. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::DoubleValue*>(
  4708. &::google::protobuf::_DoubleValue_default_instance_);
  4709. }
  4710. inline ::google::protobuf::DoubleValue* DoubleMessage::release_double_wrapper() {
  4711. // @@protoc_insertion_point(field_release:google.protobuf.testing.DoubleMessage.double_wrapper)
  4712. ::google::protobuf::DoubleValue* temp = double_wrapper_;
  4713. double_wrapper_ = NULL;
  4714. return temp;
  4715. }
  4716. inline ::google::protobuf::DoubleValue* DoubleMessage::mutable_double_wrapper() {
  4717. if (double_wrapper_ == NULL) {
  4718. auto* p = CreateMaybeMessage<::google::protobuf::DoubleValue>(GetArenaNoVirtual());
  4719. double_wrapper_ = p;
  4720. }
  4721. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.DoubleMessage.double_wrapper)
  4722. return double_wrapper_;
  4723. }
  4724. inline void DoubleMessage::set_allocated_double_wrapper(::google::protobuf::DoubleValue* double_wrapper) {
  4725. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  4726. if (message_arena == NULL) {
  4727. delete reinterpret_cast< ::google::protobuf::MessageLite*>(double_wrapper_);
  4728. }
  4729. if (double_wrapper) {
  4730. ::google::protobuf::Arena* submessage_arena =
  4731. reinterpret_cast<::google::protobuf::MessageLite*>(double_wrapper)->GetArena();
  4732. if (message_arena != submessage_arena) {
  4733. double_wrapper = ::google::protobuf::internal::GetOwnedMessage(
  4734. message_arena, double_wrapper, submessage_arena);
  4735. }
  4736. } else {
  4737. }
  4738. double_wrapper_ = double_wrapper;
  4739. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.DoubleMessage.double_wrapper)
  4740. }
  4741. // string str_value = 112;
  4742. inline bool DoubleMessage::has_str_value() const {
  4743. return value_case() == kStrValue;
  4744. }
  4745. inline void DoubleMessage::set_has_str_value() {
  4746. _oneof_case_[0] = kStrValue;
  4747. }
  4748. inline void DoubleMessage::clear_str_value() {
  4749. if (has_str_value()) {
  4750. value_.str_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4751. clear_has_value();
  4752. }
  4753. }
  4754. inline const ::std::string& DoubleMessage::str_value() const {
  4755. // @@protoc_insertion_point(field_get:google.protobuf.testing.DoubleMessage.str_value)
  4756. if (has_str_value()) {
  4757. return value_.str_value_.GetNoArena();
  4758. }
  4759. return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
  4760. }
  4761. inline void DoubleMessage::set_str_value(const ::std::string& value) {
  4762. // @@protoc_insertion_point(field_set:google.protobuf.testing.DoubleMessage.str_value)
  4763. if (!has_str_value()) {
  4764. clear_value();
  4765. set_has_str_value();
  4766. value_.str_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4767. }
  4768. value_.str_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  4769. // @@protoc_insertion_point(field_set:google.protobuf.testing.DoubleMessage.str_value)
  4770. }
  4771. #if LANG_CXX11
  4772. inline void DoubleMessage::set_str_value(::std::string&& value) {
  4773. // @@protoc_insertion_point(field_set:google.protobuf.testing.DoubleMessage.str_value)
  4774. if (!has_str_value()) {
  4775. clear_value();
  4776. set_has_str_value();
  4777. value_.str_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4778. }
  4779. value_.str_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  4780. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.testing.DoubleMessage.str_value)
  4781. }
  4782. #endif
  4783. inline void DoubleMessage::set_str_value(const char* value) {
  4784. GOOGLE_DCHECK(value != NULL);
  4785. if (!has_str_value()) {
  4786. clear_value();
  4787. set_has_str_value();
  4788. value_.str_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4789. }
  4790. value_.str_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  4791. ::std::string(value));
  4792. // @@protoc_insertion_point(field_set_char:google.protobuf.testing.DoubleMessage.str_value)
  4793. }
  4794. inline void DoubleMessage::set_str_value(const char* value, size_t size) {
  4795. if (!has_str_value()) {
  4796. clear_value();
  4797. set_has_str_value();
  4798. value_.str_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4799. }
  4800. value_.str_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  4801. reinterpret_cast<const char*>(value), size));
  4802. // @@protoc_insertion_point(field_set_pointer:google.protobuf.testing.DoubleMessage.str_value)
  4803. }
  4804. inline ::std::string* DoubleMessage::mutable_str_value() {
  4805. if (!has_str_value()) {
  4806. clear_value();
  4807. set_has_str_value();
  4808. value_.str_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4809. }
  4810. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.DoubleMessage.str_value)
  4811. return value_.str_value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4812. }
  4813. inline ::std::string* DoubleMessage::release_str_value() {
  4814. // @@protoc_insertion_point(field_release:google.protobuf.testing.DoubleMessage.str_value)
  4815. if (has_str_value()) {
  4816. clear_has_value();
  4817. return value_.str_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4818. } else {
  4819. return NULL;
  4820. }
  4821. }
  4822. inline void DoubleMessage::set_allocated_str_value(::std::string* str_value) {
  4823. if (!has_str_value()) {
  4824. value_.str_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4825. }
  4826. clear_value();
  4827. if (str_value != NULL) {
  4828. set_has_str_value();
  4829. value_.str_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), str_value);
  4830. }
  4831. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.DoubleMessage.str_value)
  4832. }
  4833. // int64 num_value = 113;
  4834. inline bool DoubleMessage::has_num_value() const {
  4835. return value_case() == kNumValue;
  4836. }
  4837. inline void DoubleMessage::set_has_num_value() {
  4838. _oneof_case_[0] = kNumValue;
  4839. }
  4840. inline void DoubleMessage::clear_num_value() {
  4841. if (has_num_value()) {
  4842. value_.num_value_ = GOOGLE_LONGLONG(0);
  4843. clear_has_value();
  4844. }
  4845. }
  4846. inline ::google::protobuf::int64 DoubleMessage::num_value() const {
  4847. // @@protoc_insertion_point(field_get:google.protobuf.testing.DoubleMessage.num_value)
  4848. if (has_num_value()) {
  4849. return value_.num_value_;
  4850. }
  4851. return GOOGLE_LONGLONG(0);
  4852. }
  4853. inline void DoubleMessage::set_num_value(::google::protobuf::int64 value) {
  4854. if (!has_num_value()) {
  4855. clear_value();
  4856. set_has_num_value();
  4857. }
  4858. value_.num_value_ = value;
  4859. // @@protoc_insertion_point(field_set:google.protobuf.testing.DoubleMessage.num_value)
  4860. }
  4861. inline bool DoubleMessage::has_value() const {
  4862. return value_case() != VALUE_NOT_SET;
  4863. }
  4864. inline void DoubleMessage::clear_has_value() {
  4865. _oneof_case_[0] = VALUE_NOT_SET;
  4866. }
  4867. inline DoubleMessage::ValueCase DoubleMessage::value_case() const {
  4868. return DoubleMessage::ValueCase(_oneof_case_[0]);
  4869. }
  4870. // -------------------------------------------------------------------
  4871. // StructMessage
  4872. // .google.protobuf.Struct struct = 1;
  4873. inline bool StructMessage::has_struct_() const {
  4874. return this != internal_default_instance() && struct__ != NULL;
  4875. }
  4876. inline const ::google::protobuf::Struct& StructMessage::_internal_struct_() const {
  4877. return *struct__;
  4878. }
  4879. inline const ::google::protobuf::Struct& StructMessage::struct_() const {
  4880. const ::google::protobuf::Struct* p = struct__;
  4881. // @@protoc_insertion_point(field_get:google.protobuf.testing.StructMessage.struct)
  4882. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Struct*>(
  4883. &::google::protobuf::_Struct_default_instance_);
  4884. }
  4885. inline ::google::protobuf::Struct* StructMessage::release_struct_() {
  4886. // @@protoc_insertion_point(field_release:google.protobuf.testing.StructMessage.struct)
  4887. ::google::protobuf::Struct* temp = struct__;
  4888. struct__ = NULL;
  4889. return temp;
  4890. }
  4891. inline ::google::protobuf::Struct* StructMessage::mutable_struct_() {
  4892. if (struct__ == NULL) {
  4893. auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArenaNoVirtual());
  4894. struct__ = p;
  4895. }
  4896. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructMessage.struct)
  4897. return struct__;
  4898. }
  4899. inline void StructMessage::set_allocated_struct_(::google::protobuf::Struct* struct_) {
  4900. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  4901. if (message_arena == NULL) {
  4902. delete reinterpret_cast< ::google::protobuf::MessageLite*>(struct__);
  4903. }
  4904. if (struct_) {
  4905. ::google::protobuf::Arena* submessage_arena =
  4906. reinterpret_cast<::google::protobuf::MessageLite*>(struct_)->GetArena();
  4907. if (message_arena != submessage_arena) {
  4908. struct_ = ::google::protobuf::internal::GetOwnedMessage(
  4909. message_arena, struct_, submessage_arena);
  4910. }
  4911. } else {
  4912. }
  4913. struct__ = struct_;
  4914. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructMessage.struct)
  4915. }
  4916. // -------------------------------------------------------------------
  4917. // ValueMessage
  4918. // .google.protobuf.Value value = 1;
  4919. inline bool ValueMessage::has_value() const {
  4920. return this != internal_default_instance() && value_ != NULL;
  4921. }
  4922. inline const ::google::protobuf::Value& ValueMessage::_internal_value() const {
  4923. return *value_;
  4924. }
  4925. inline const ::google::protobuf::Value& ValueMessage::value() const {
  4926. const ::google::protobuf::Value* p = value_;
  4927. // @@protoc_insertion_point(field_get:google.protobuf.testing.ValueMessage.value)
  4928. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Value*>(
  4929. &::google::protobuf::_Value_default_instance_);
  4930. }
  4931. inline ::google::protobuf::Value* ValueMessage::release_value() {
  4932. // @@protoc_insertion_point(field_release:google.protobuf.testing.ValueMessage.value)
  4933. ::google::protobuf::Value* temp = value_;
  4934. value_ = NULL;
  4935. return temp;
  4936. }
  4937. inline ::google::protobuf::Value* ValueMessage::mutable_value() {
  4938. if (value_ == NULL) {
  4939. auto* p = CreateMaybeMessage<::google::protobuf::Value>(GetArenaNoVirtual());
  4940. value_ = p;
  4941. }
  4942. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.ValueMessage.value)
  4943. return value_;
  4944. }
  4945. inline void ValueMessage::set_allocated_value(::google::protobuf::Value* value) {
  4946. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  4947. if (message_arena == NULL) {
  4948. delete reinterpret_cast< ::google::protobuf::MessageLite*>(value_);
  4949. }
  4950. if (value) {
  4951. ::google::protobuf::Arena* submessage_arena =
  4952. reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena();
  4953. if (message_arena != submessage_arena) {
  4954. value = ::google::protobuf::internal::GetOwnedMessage(
  4955. message_arena, value, submessage_arena);
  4956. }
  4957. } else {
  4958. }
  4959. value_ = value;
  4960. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.ValueMessage.value)
  4961. }
  4962. // -------------------------------------------------------------------
  4963. // ListValueMessage
  4964. // .google.protobuf.ListValue shopping_list = 1;
  4965. inline bool ListValueMessage::has_shopping_list() const {
  4966. return this != internal_default_instance() && shopping_list_ != NULL;
  4967. }
  4968. inline const ::google::protobuf::ListValue& ListValueMessage::_internal_shopping_list() const {
  4969. return *shopping_list_;
  4970. }
  4971. inline const ::google::protobuf::ListValue& ListValueMessage::shopping_list() const {
  4972. const ::google::protobuf::ListValue* p = shopping_list_;
  4973. // @@protoc_insertion_point(field_get:google.protobuf.testing.ListValueMessage.shopping_list)
  4974. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::ListValue*>(
  4975. &::google::protobuf::_ListValue_default_instance_);
  4976. }
  4977. inline ::google::protobuf::ListValue* ListValueMessage::release_shopping_list() {
  4978. // @@protoc_insertion_point(field_release:google.protobuf.testing.ListValueMessage.shopping_list)
  4979. ::google::protobuf::ListValue* temp = shopping_list_;
  4980. shopping_list_ = NULL;
  4981. return temp;
  4982. }
  4983. inline ::google::protobuf::ListValue* ListValueMessage::mutable_shopping_list() {
  4984. if (shopping_list_ == NULL) {
  4985. auto* p = CreateMaybeMessage<::google::protobuf::ListValue>(GetArenaNoVirtual());
  4986. shopping_list_ = p;
  4987. }
  4988. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.ListValueMessage.shopping_list)
  4989. return shopping_list_;
  4990. }
  4991. inline void ListValueMessage::set_allocated_shopping_list(::google::protobuf::ListValue* shopping_list) {
  4992. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  4993. if (message_arena == NULL) {
  4994. delete reinterpret_cast< ::google::protobuf::MessageLite*>(shopping_list_);
  4995. }
  4996. if (shopping_list) {
  4997. ::google::protobuf::Arena* submessage_arena =
  4998. reinterpret_cast<::google::protobuf::MessageLite*>(shopping_list)->GetArena();
  4999. if (message_arena != submessage_arena) {
  5000. shopping_list = ::google::protobuf::internal::GetOwnedMessage(
  5001. message_arena, shopping_list, submessage_arena);
  5002. }
  5003. } else {
  5004. }
  5005. shopping_list_ = shopping_list;
  5006. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.ListValueMessage.shopping_list)
  5007. }
  5008. // -------------------------------------------------------------------
  5009. // RequestMessage
  5010. // string content = 1;
  5011. inline void RequestMessage::clear_content() {
  5012. content_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  5013. }
  5014. inline const ::std::string& RequestMessage::content() const {
  5015. // @@protoc_insertion_point(field_get:google.protobuf.testing.RequestMessage.content)
  5016. return content_.GetNoArena();
  5017. }
  5018. inline void RequestMessage::set_content(const ::std::string& value) {
  5019. content_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  5020. // @@protoc_insertion_point(field_set:google.protobuf.testing.RequestMessage.content)
  5021. }
  5022. #if LANG_CXX11
  5023. inline void RequestMessage::set_content(::std::string&& value) {
  5024. content_.SetNoArena(
  5025. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  5026. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.testing.RequestMessage.content)
  5027. }
  5028. #endif
  5029. inline void RequestMessage::set_content(const char* value) {
  5030. GOOGLE_DCHECK(value != NULL);
  5031. content_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  5032. // @@protoc_insertion_point(field_set_char:google.protobuf.testing.RequestMessage.content)
  5033. }
  5034. inline void RequestMessage::set_content(const char* value, size_t size) {
  5035. content_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  5036. ::std::string(reinterpret_cast<const char*>(value), size));
  5037. // @@protoc_insertion_point(field_set_pointer:google.protobuf.testing.RequestMessage.content)
  5038. }
  5039. inline ::std::string* RequestMessage::mutable_content() {
  5040. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.RequestMessage.content)
  5041. return content_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  5042. }
  5043. inline ::std::string* RequestMessage::release_content() {
  5044. // @@protoc_insertion_point(field_release:google.protobuf.testing.RequestMessage.content)
  5045. return content_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  5046. }
  5047. inline void RequestMessage::set_allocated_content(::std::string* content) {
  5048. if (content != NULL) {
  5049. } else {
  5050. }
  5051. content_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), content);
  5052. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.RequestMessage.content)
  5053. }
  5054. // -------------------------------------------------------------------
  5055. // AnyMessage
  5056. // .google.protobuf.Any any = 1;
  5057. inline bool AnyMessage::has_any() const {
  5058. return this != internal_default_instance() && any_ != NULL;
  5059. }
  5060. inline const ::google::protobuf::Any& AnyMessage::_internal_any() const {
  5061. return *any_;
  5062. }
  5063. inline const ::google::protobuf::Any& AnyMessage::any() const {
  5064. const ::google::protobuf::Any* p = any_;
  5065. // @@protoc_insertion_point(field_get:google.protobuf.testing.AnyMessage.any)
  5066. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Any*>(
  5067. &::google::protobuf::_Any_default_instance_);
  5068. }
  5069. inline ::google::protobuf::Any* AnyMessage::release_any() {
  5070. // @@protoc_insertion_point(field_release:google.protobuf.testing.AnyMessage.any)
  5071. ::google::protobuf::Any* temp = any_;
  5072. any_ = NULL;
  5073. return temp;
  5074. }
  5075. inline ::google::protobuf::Any* AnyMessage::mutable_any() {
  5076. if (any_ == NULL) {
  5077. auto* p = CreateMaybeMessage<::google::protobuf::Any>(GetArenaNoVirtual());
  5078. any_ = p;
  5079. }
  5080. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.AnyMessage.any)
  5081. return any_;
  5082. }
  5083. inline void AnyMessage::set_allocated_any(::google::protobuf::Any* any) {
  5084. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  5085. if (message_arena == NULL) {
  5086. delete reinterpret_cast< ::google::protobuf::MessageLite*>(any_);
  5087. }
  5088. if (any) {
  5089. ::google::protobuf::Arena* submessage_arena = NULL;
  5090. if (message_arena != submessage_arena) {
  5091. any = ::google::protobuf::internal::GetOwnedMessage(
  5092. message_arena, any, submessage_arena);
  5093. }
  5094. } else {
  5095. }
  5096. any_ = any;
  5097. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.AnyMessage.any)
  5098. }
  5099. // .google.protobuf.testing.AnyData data = 2;
  5100. inline bool AnyMessage::has_data() const {
  5101. return this != internal_default_instance() && data_ != NULL;
  5102. }
  5103. inline void AnyMessage::clear_data() {
  5104. if (GetArenaNoVirtual() == NULL && data_ != NULL) {
  5105. delete data_;
  5106. }
  5107. data_ = NULL;
  5108. }
  5109. inline const ::google::protobuf::testing::AnyData& AnyMessage::_internal_data() const {
  5110. return *data_;
  5111. }
  5112. inline const ::google::protobuf::testing::AnyData& AnyMessage::data() const {
  5113. const ::google::protobuf::testing::AnyData* p = data_;
  5114. // @@protoc_insertion_point(field_get:google.protobuf.testing.AnyMessage.data)
  5115. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::AnyData*>(
  5116. &::google::protobuf::testing::_AnyData_default_instance_);
  5117. }
  5118. inline ::google::protobuf::testing::AnyData* AnyMessage::release_data() {
  5119. // @@protoc_insertion_point(field_release:google.protobuf.testing.AnyMessage.data)
  5120. ::google::protobuf::testing::AnyData* temp = data_;
  5121. data_ = NULL;
  5122. return temp;
  5123. }
  5124. inline ::google::protobuf::testing::AnyData* AnyMessage::mutable_data() {
  5125. if (data_ == NULL) {
  5126. auto* p = CreateMaybeMessage<::google::protobuf::testing::AnyData>(GetArenaNoVirtual());
  5127. data_ = p;
  5128. }
  5129. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.AnyMessage.data)
  5130. return data_;
  5131. }
  5132. inline void AnyMessage::set_allocated_data(::google::protobuf::testing::AnyData* data) {
  5133. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  5134. if (message_arena == NULL) {
  5135. delete data_;
  5136. }
  5137. if (data) {
  5138. ::google::protobuf::Arena* submessage_arena = NULL;
  5139. if (message_arena != submessage_arena) {
  5140. data = ::google::protobuf::internal::GetOwnedMessage(
  5141. message_arena, data, submessage_arena);
  5142. }
  5143. } else {
  5144. }
  5145. data_ = data;
  5146. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.AnyMessage.data)
  5147. }
  5148. // -------------------------------------------------------------------
  5149. // -------------------------------------------------------------------
  5150. // AnyData
  5151. // int32 attr = 1;
  5152. inline void AnyData::clear_attr() {
  5153. attr_ = 0;
  5154. }
  5155. inline ::google::protobuf::int32 AnyData::attr() const {
  5156. // @@protoc_insertion_point(field_get:google.protobuf.testing.AnyData.attr)
  5157. return attr_;
  5158. }
  5159. inline void AnyData::set_attr(::google::protobuf::int32 value) {
  5160. attr_ = value;
  5161. // @@protoc_insertion_point(field_set:google.protobuf.testing.AnyData.attr)
  5162. }
  5163. // string str = 2;
  5164. inline void AnyData::clear_str() {
  5165. str_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  5166. }
  5167. inline const ::std::string& AnyData::str() const {
  5168. // @@protoc_insertion_point(field_get:google.protobuf.testing.AnyData.str)
  5169. return str_.GetNoArena();
  5170. }
  5171. inline void AnyData::set_str(const ::std::string& value) {
  5172. str_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  5173. // @@protoc_insertion_point(field_set:google.protobuf.testing.AnyData.str)
  5174. }
  5175. #if LANG_CXX11
  5176. inline void AnyData::set_str(::std::string&& value) {
  5177. str_.SetNoArena(
  5178. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  5179. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.testing.AnyData.str)
  5180. }
  5181. #endif
  5182. inline void AnyData::set_str(const char* value) {
  5183. GOOGLE_DCHECK(value != NULL);
  5184. str_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  5185. // @@protoc_insertion_point(field_set_char:google.protobuf.testing.AnyData.str)
  5186. }
  5187. inline void AnyData::set_str(const char* value, size_t size) {
  5188. str_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  5189. ::std::string(reinterpret_cast<const char*>(value), size));
  5190. // @@protoc_insertion_point(field_set_pointer:google.protobuf.testing.AnyData.str)
  5191. }
  5192. inline ::std::string* AnyData::mutable_str() {
  5193. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.AnyData.str)
  5194. return str_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  5195. }
  5196. inline ::std::string* AnyData::release_str() {
  5197. // @@protoc_insertion_point(field_release:google.protobuf.testing.AnyData.str)
  5198. return str_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  5199. }
  5200. inline void AnyData::set_allocated_str(::std::string* str) {
  5201. if (str != NULL) {
  5202. } else {
  5203. }
  5204. str_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), str);
  5205. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.AnyData.str)
  5206. }
  5207. // repeated string msgs = 3;
  5208. inline int AnyData::msgs_size() const {
  5209. return msgs_.size();
  5210. }
  5211. inline void AnyData::clear_msgs() {
  5212. msgs_.Clear();
  5213. }
  5214. inline const ::std::string& AnyData::msgs(int index) const {
  5215. // @@protoc_insertion_point(field_get:google.protobuf.testing.AnyData.msgs)
  5216. return msgs_.Get(index);
  5217. }
  5218. inline ::std::string* AnyData::mutable_msgs(int index) {
  5219. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.AnyData.msgs)
  5220. return msgs_.Mutable(index);
  5221. }
  5222. inline void AnyData::set_msgs(int index, const ::std::string& value) {
  5223. // @@protoc_insertion_point(field_set:google.protobuf.testing.AnyData.msgs)
  5224. msgs_.Mutable(index)->assign(value);
  5225. }
  5226. #if LANG_CXX11
  5227. inline void AnyData::set_msgs(int index, ::std::string&& value) {
  5228. // @@protoc_insertion_point(field_set:google.protobuf.testing.AnyData.msgs)
  5229. msgs_.Mutable(index)->assign(std::move(value));
  5230. }
  5231. #endif
  5232. inline void AnyData::set_msgs(int index, const char* value) {
  5233. GOOGLE_DCHECK(value != NULL);
  5234. msgs_.Mutable(index)->assign(value);
  5235. // @@protoc_insertion_point(field_set_char:google.protobuf.testing.AnyData.msgs)
  5236. }
  5237. inline void AnyData::set_msgs(int index, const char* value, size_t size) {
  5238. msgs_.Mutable(index)->assign(
  5239. reinterpret_cast<const char*>(value), size);
  5240. // @@protoc_insertion_point(field_set_pointer:google.protobuf.testing.AnyData.msgs)
  5241. }
  5242. inline ::std::string* AnyData::add_msgs() {
  5243. // @@protoc_insertion_point(field_add_mutable:google.protobuf.testing.AnyData.msgs)
  5244. return msgs_.Add();
  5245. }
  5246. inline void AnyData::add_msgs(const ::std::string& value) {
  5247. msgs_.Add()->assign(value);
  5248. // @@protoc_insertion_point(field_add:google.protobuf.testing.AnyData.msgs)
  5249. }
  5250. #if LANG_CXX11
  5251. inline void AnyData::add_msgs(::std::string&& value) {
  5252. msgs_.Add(std::move(value));
  5253. // @@protoc_insertion_point(field_add:google.protobuf.testing.AnyData.msgs)
  5254. }
  5255. #endif
  5256. inline void AnyData::add_msgs(const char* value) {
  5257. GOOGLE_DCHECK(value != NULL);
  5258. msgs_.Add()->assign(value);
  5259. // @@protoc_insertion_point(field_add_char:google.protobuf.testing.AnyData.msgs)
  5260. }
  5261. inline void AnyData::add_msgs(const char* value, size_t size) {
  5262. msgs_.Add()->assign(reinterpret_cast<const char*>(value), size);
  5263. // @@protoc_insertion_point(field_add_pointer:google.protobuf.testing.AnyData.msgs)
  5264. }
  5265. inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
  5266. AnyData::msgs() const {
  5267. // @@protoc_insertion_point(field_list:google.protobuf.testing.AnyData.msgs)
  5268. return msgs_;
  5269. }
  5270. inline ::google::protobuf::RepeatedPtrField< ::std::string>*
  5271. AnyData::mutable_msgs() {
  5272. // @@protoc_insertion_point(field_mutable_list:google.protobuf.testing.AnyData.msgs)
  5273. return &msgs_;
  5274. }
  5275. // .google.protobuf.testing.AnyData nested_data = 4;
  5276. inline bool AnyData::has_nested_data() const {
  5277. return this != internal_default_instance() && nested_data_ != NULL;
  5278. }
  5279. inline void AnyData::clear_nested_data() {
  5280. if (GetArenaNoVirtual() == NULL && nested_data_ != NULL) {
  5281. delete nested_data_;
  5282. }
  5283. nested_data_ = NULL;
  5284. }
  5285. inline const ::google::protobuf::testing::AnyData& AnyData::_internal_nested_data() const {
  5286. return *nested_data_;
  5287. }
  5288. inline const ::google::protobuf::testing::AnyData& AnyData::nested_data() const {
  5289. const ::google::protobuf::testing::AnyData* p = nested_data_;
  5290. // @@protoc_insertion_point(field_get:google.protobuf.testing.AnyData.nested_data)
  5291. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::AnyData*>(
  5292. &::google::protobuf::testing::_AnyData_default_instance_);
  5293. }
  5294. inline ::google::protobuf::testing::AnyData* AnyData::release_nested_data() {
  5295. // @@protoc_insertion_point(field_release:google.protobuf.testing.AnyData.nested_data)
  5296. ::google::protobuf::testing::AnyData* temp = nested_data_;
  5297. nested_data_ = NULL;
  5298. return temp;
  5299. }
  5300. inline ::google::protobuf::testing::AnyData* AnyData::mutable_nested_data() {
  5301. if (nested_data_ == NULL) {
  5302. auto* p = CreateMaybeMessage<::google::protobuf::testing::AnyData>(GetArenaNoVirtual());
  5303. nested_data_ = p;
  5304. }
  5305. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.AnyData.nested_data)
  5306. return nested_data_;
  5307. }
  5308. inline void AnyData::set_allocated_nested_data(::google::protobuf::testing::AnyData* nested_data) {
  5309. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  5310. if (message_arena == NULL) {
  5311. delete nested_data_;
  5312. }
  5313. if (nested_data) {
  5314. ::google::protobuf::Arena* submessage_arena = NULL;
  5315. if (message_arena != submessage_arena) {
  5316. nested_data = ::google::protobuf::internal::GetOwnedMessage(
  5317. message_arena, nested_data, submessage_arena);
  5318. }
  5319. } else {
  5320. }
  5321. nested_data_ = nested_data;
  5322. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.AnyData.nested_data)
  5323. }
  5324. // map<string, string> map_data = 7;
  5325. inline int AnyData::map_data_size() const {
  5326. return map_data_.size();
  5327. }
  5328. inline void AnyData::clear_map_data() {
  5329. map_data_.Clear();
  5330. }
  5331. inline const ::google::protobuf::Map< ::std::string, ::std::string >&
  5332. AnyData::map_data() const {
  5333. // @@protoc_insertion_point(field_map:google.protobuf.testing.AnyData.map_data)
  5334. return map_data_.GetMap();
  5335. }
  5336. inline ::google::protobuf::Map< ::std::string, ::std::string >*
  5337. AnyData::mutable_map_data() {
  5338. // @@protoc_insertion_point(field_mutable_map:google.protobuf.testing.AnyData.map_data)
  5339. return map_data_.MutableMap();
  5340. }
  5341. // .google.protobuf.Struct struct_data = 8;
  5342. inline bool AnyData::has_struct_data() const {
  5343. return this != internal_default_instance() && struct_data_ != NULL;
  5344. }
  5345. inline const ::google::protobuf::Struct& AnyData::_internal_struct_data() const {
  5346. return *struct_data_;
  5347. }
  5348. inline const ::google::protobuf::Struct& AnyData::struct_data() const {
  5349. const ::google::protobuf::Struct* p = struct_data_;
  5350. // @@protoc_insertion_point(field_get:google.protobuf.testing.AnyData.struct_data)
  5351. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Struct*>(
  5352. &::google::protobuf::_Struct_default_instance_);
  5353. }
  5354. inline ::google::protobuf::Struct* AnyData::release_struct_data() {
  5355. // @@protoc_insertion_point(field_release:google.protobuf.testing.AnyData.struct_data)
  5356. ::google::protobuf::Struct* temp = struct_data_;
  5357. struct_data_ = NULL;
  5358. return temp;
  5359. }
  5360. inline ::google::protobuf::Struct* AnyData::mutable_struct_data() {
  5361. if (struct_data_ == NULL) {
  5362. auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArenaNoVirtual());
  5363. struct_data_ = p;
  5364. }
  5365. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.AnyData.struct_data)
  5366. return struct_data_;
  5367. }
  5368. inline void AnyData::set_allocated_struct_data(::google::protobuf::Struct* struct_data) {
  5369. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  5370. if (message_arena == NULL) {
  5371. delete reinterpret_cast< ::google::protobuf::MessageLite*>(struct_data_);
  5372. }
  5373. if (struct_data) {
  5374. ::google::protobuf::Arena* submessage_arena =
  5375. reinterpret_cast<::google::protobuf::MessageLite*>(struct_data)->GetArena();
  5376. if (message_arena != submessage_arena) {
  5377. struct_data = ::google::protobuf::internal::GetOwnedMessage(
  5378. message_arena, struct_data, submessage_arena);
  5379. }
  5380. } else {
  5381. }
  5382. struct_data_ = struct_data;
  5383. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.AnyData.struct_data)
  5384. }
  5385. // repeated .google.protobuf.testing.AnyData repeated_data = 9;
  5386. inline int AnyData::repeated_data_size() const {
  5387. return repeated_data_.size();
  5388. }
  5389. inline void AnyData::clear_repeated_data() {
  5390. repeated_data_.Clear();
  5391. }
  5392. inline ::google::protobuf::testing::AnyData* AnyData::mutable_repeated_data(int index) {
  5393. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.AnyData.repeated_data)
  5394. return repeated_data_.Mutable(index);
  5395. }
  5396. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::testing::AnyData >*
  5397. AnyData::mutable_repeated_data() {
  5398. // @@protoc_insertion_point(field_mutable_list:google.protobuf.testing.AnyData.repeated_data)
  5399. return &repeated_data_;
  5400. }
  5401. inline const ::google::protobuf::testing::AnyData& AnyData::repeated_data(int index) const {
  5402. // @@protoc_insertion_point(field_get:google.protobuf.testing.AnyData.repeated_data)
  5403. return repeated_data_.Get(index);
  5404. }
  5405. inline ::google::protobuf::testing::AnyData* AnyData::add_repeated_data() {
  5406. // @@protoc_insertion_point(field_add:google.protobuf.testing.AnyData.repeated_data)
  5407. return repeated_data_.Add();
  5408. }
  5409. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::testing::AnyData >&
  5410. AnyData::repeated_data() const {
  5411. // @@protoc_insertion_point(field_list:google.protobuf.testing.AnyData.repeated_data)
  5412. return repeated_data_;
  5413. }
  5414. // -------------------------------------------------------------------
  5415. // -------------------------------------------------------------------
  5416. // StringtoIntMap
  5417. // map<string, int32> map = 1;
  5418. inline int StringtoIntMap::map_size() const {
  5419. return map_.size();
  5420. }
  5421. inline void StringtoIntMap::clear_map() {
  5422. map_.Clear();
  5423. }
  5424. inline const ::google::protobuf::Map< ::std::string, ::google::protobuf::int32 >&
  5425. StringtoIntMap::map() const {
  5426. // @@protoc_insertion_point(field_map:google.protobuf.testing.StringtoIntMap.map)
  5427. return map_.GetMap();
  5428. }
  5429. inline ::google::protobuf::Map< ::std::string, ::google::protobuf::int32 >*
  5430. StringtoIntMap::mutable_map() {
  5431. // @@protoc_insertion_point(field_mutable_map:google.protobuf.testing.StringtoIntMap.map)
  5432. return map_.MutableMap();
  5433. }
  5434. // -------------------------------------------------------------------
  5435. // -------------------------------------------------------------------
  5436. // IntToStringMap
  5437. // map<int32, string> map = 1;
  5438. inline int IntToStringMap::map_size() const {
  5439. return map_.size();
  5440. }
  5441. inline void IntToStringMap::clear_map() {
  5442. map_.Clear();
  5443. }
  5444. inline const ::google::protobuf::Map< ::google::protobuf::int32, ::std::string >&
  5445. IntToStringMap::map() const {
  5446. // @@protoc_insertion_point(field_map:google.protobuf.testing.IntToStringMap.map)
  5447. return map_.GetMap();
  5448. }
  5449. inline ::google::protobuf::Map< ::google::protobuf::int32, ::std::string >*
  5450. IntToStringMap::mutable_map() {
  5451. // @@protoc_insertion_point(field_mutable_map:google.protobuf.testing.IntToStringMap.map)
  5452. return map_.MutableMap();
  5453. }
  5454. // -------------------------------------------------------------------
  5455. // -------------------------------------------------------------------
  5456. // MixedMap
  5457. // string msg = 1;
  5458. inline void MixedMap::clear_msg() {
  5459. msg_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  5460. }
  5461. inline const ::std::string& MixedMap::msg() const {
  5462. // @@protoc_insertion_point(field_get:google.protobuf.testing.MixedMap.msg)
  5463. return msg_.GetNoArena();
  5464. }
  5465. inline void MixedMap::set_msg(const ::std::string& value) {
  5466. msg_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  5467. // @@protoc_insertion_point(field_set:google.protobuf.testing.MixedMap.msg)
  5468. }
  5469. #if LANG_CXX11
  5470. inline void MixedMap::set_msg(::std::string&& value) {
  5471. msg_.SetNoArena(
  5472. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  5473. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.testing.MixedMap.msg)
  5474. }
  5475. #endif
  5476. inline void MixedMap::set_msg(const char* value) {
  5477. GOOGLE_DCHECK(value != NULL);
  5478. msg_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  5479. // @@protoc_insertion_point(field_set_char:google.protobuf.testing.MixedMap.msg)
  5480. }
  5481. inline void MixedMap::set_msg(const char* value, size_t size) {
  5482. msg_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  5483. ::std::string(reinterpret_cast<const char*>(value), size));
  5484. // @@protoc_insertion_point(field_set_pointer:google.protobuf.testing.MixedMap.msg)
  5485. }
  5486. inline ::std::string* MixedMap::mutable_msg() {
  5487. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.MixedMap.msg)
  5488. return msg_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  5489. }
  5490. inline ::std::string* MixedMap::release_msg() {
  5491. // @@protoc_insertion_point(field_release:google.protobuf.testing.MixedMap.msg)
  5492. return msg_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  5493. }
  5494. inline void MixedMap::set_allocated_msg(::std::string* msg) {
  5495. if (msg != NULL) {
  5496. } else {
  5497. }
  5498. msg_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), msg);
  5499. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.MixedMap.msg)
  5500. }
  5501. // map<string, float> map = 2;
  5502. inline int MixedMap::map_size() const {
  5503. return map_.size();
  5504. }
  5505. inline void MixedMap::clear_map() {
  5506. map_.Clear();
  5507. }
  5508. inline const ::google::protobuf::Map< ::std::string, float >&
  5509. MixedMap::map() const {
  5510. // @@protoc_insertion_point(field_map:google.protobuf.testing.MixedMap.map)
  5511. return map_.GetMap();
  5512. }
  5513. inline ::google::protobuf::Map< ::std::string, float >*
  5514. MixedMap::mutable_map() {
  5515. // @@protoc_insertion_point(field_mutable_map:google.protobuf.testing.MixedMap.map)
  5516. return map_.MutableMap();
  5517. }
  5518. // int32 int_value = 3;
  5519. inline void MixedMap::clear_int_value() {
  5520. int_value_ = 0;
  5521. }
  5522. inline ::google::protobuf::int32 MixedMap::int_value() const {
  5523. // @@protoc_insertion_point(field_get:google.protobuf.testing.MixedMap.int_value)
  5524. return int_value_;
  5525. }
  5526. inline void MixedMap::set_int_value(::google::protobuf::int32 value) {
  5527. int_value_ = value;
  5528. // @@protoc_insertion_point(field_set:google.protobuf.testing.MixedMap.int_value)
  5529. }
  5530. // -------------------------------------------------------------------
  5531. // -------------------------------------------------------------------
  5532. // MixedMap2
  5533. // map<int32, bool> map = 1;
  5534. inline int MixedMap2::map_size() const {
  5535. return map_.size();
  5536. }
  5537. inline void MixedMap2::clear_map() {
  5538. map_.Clear();
  5539. }
  5540. inline const ::google::protobuf::Map< ::google::protobuf::int32, bool >&
  5541. MixedMap2::map() const {
  5542. // @@protoc_insertion_point(field_map:google.protobuf.testing.MixedMap2.map)
  5543. return map_.GetMap();
  5544. }
  5545. inline ::google::protobuf::Map< ::google::protobuf::int32, bool >*
  5546. MixedMap2::mutable_map() {
  5547. // @@protoc_insertion_point(field_mutable_map:google.protobuf.testing.MixedMap2.map)
  5548. return map_.MutableMap();
  5549. }
  5550. // .google.protobuf.testing.MixedMap2.E ee = 2;
  5551. inline void MixedMap2::clear_ee() {
  5552. ee_ = 0;
  5553. }
  5554. inline ::google::protobuf::testing::MixedMap2_E MixedMap2::ee() const {
  5555. // @@protoc_insertion_point(field_get:google.protobuf.testing.MixedMap2.ee)
  5556. return static_cast< ::google::protobuf::testing::MixedMap2_E >(ee_);
  5557. }
  5558. inline void MixedMap2::set_ee(::google::protobuf::testing::MixedMap2_E value) {
  5559. ee_ = value;
  5560. // @@protoc_insertion_point(field_set:google.protobuf.testing.MixedMap2.ee)
  5561. }
  5562. // string msg = 4;
  5563. inline void MixedMap2::clear_msg() {
  5564. msg_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  5565. }
  5566. inline const ::std::string& MixedMap2::msg() const {
  5567. // @@protoc_insertion_point(field_get:google.protobuf.testing.MixedMap2.msg)
  5568. return msg_.GetNoArena();
  5569. }
  5570. inline void MixedMap2::set_msg(const ::std::string& value) {
  5571. msg_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  5572. // @@protoc_insertion_point(field_set:google.protobuf.testing.MixedMap2.msg)
  5573. }
  5574. #if LANG_CXX11
  5575. inline void MixedMap2::set_msg(::std::string&& value) {
  5576. msg_.SetNoArena(
  5577. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  5578. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.testing.MixedMap2.msg)
  5579. }
  5580. #endif
  5581. inline void MixedMap2::set_msg(const char* value) {
  5582. GOOGLE_DCHECK(value != NULL);
  5583. msg_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  5584. // @@protoc_insertion_point(field_set_char:google.protobuf.testing.MixedMap2.msg)
  5585. }
  5586. inline void MixedMap2::set_msg(const char* value, size_t size) {
  5587. msg_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  5588. ::std::string(reinterpret_cast<const char*>(value), size));
  5589. // @@protoc_insertion_point(field_set_pointer:google.protobuf.testing.MixedMap2.msg)
  5590. }
  5591. inline ::std::string* MixedMap2::mutable_msg() {
  5592. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.MixedMap2.msg)
  5593. return msg_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  5594. }
  5595. inline ::std::string* MixedMap2::release_msg() {
  5596. // @@protoc_insertion_point(field_release:google.protobuf.testing.MixedMap2.msg)
  5597. return msg_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  5598. }
  5599. inline void MixedMap2::set_allocated_msg(::std::string* msg) {
  5600. if (msg != NULL) {
  5601. } else {
  5602. }
  5603. msg_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), msg);
  5604. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.MixedMap2.msg)
  5605. }
  5606. // -------------------------------------------------------------------
  5607. // MessageMap_M
  5608. // int32 inner_int = 1;
  5609. inline void MessageMap_M::clear_inner_int() {
  5610. inner_int_ = 0;
  5611. }
  5612. inline ::google::protobuf::int32 MessageMap_M::inner_int() const {
  5613. // @@protoc_insertion_point(field_get:google.protobuf.testing.MessageMap.M.inner_int)
  5614. return inner_int_;
  5615. }
  5616. inline void MessageMap_M::set_inner_int(::google::protobuf::int32 value) {
  5617. inner_int_ = value;
  5618. // @@protoc_insertion_point(field_set:google.protobuf.testing.MessageMap.M.inner_int)
  5619. }
  5620. // string inner_text = 2;
  5621. inline void MessageMap_M::clear_inner_text() {
  5622. inner_text_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  5623. }
  5624. inline const ::std::string& MessageMap_M::inner_text() const {
  5625. // @@protoc_insertion_point(field_get:google.protobuf.testing.MessageMap.M.inner_text)
  5626. return inner_text_.GetNoArena();
  5627. }
  5628. inline void MessageMap_M::set_inner_text(const ::std::string& value) {
  5629. inner_text_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  5630. // @@protoc_insertion_point(field_set:google.protobuf.testing.MessageMap.M.inner_text)
  5631. }
  5632. #if LANG_CXX11
  5633. inline void MessageMap_M::set_inner_text(::std::string&& value) {
  5634. inner_text_.SetNoArena(
  5635. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  5636. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.testing.MessageMap.M.inner_text)
  5637. }
  5638. #endif
  5639. inline void MessageMap_M::set_inner_text(const char* value) {
  5640. GOOGLE_DCHECK(value != NULL);
  5641. inner_text_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  5642. // @@protoc_insertion_point(field_set_char:google.protobuf.testing.MessageMap.M.inner_text)
  5643. }
  5644. inline void MessageMap_M::set_inner_text(const char* value, size_t size) {
  5645. inner_text_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  5646. ::std::string(reinterpret_cast<const char*>(value), size));
  5647. // @@protoc_insertion_point(field_set_pointer:google.protobuf.testing.MessageMap.M.inner_text)
  5648. }
  5649. inline ::std::string* MessageMap_M::mutable_inner_text() {
  5650. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.MessageMap.M.inner_text)
  5651. return inner_text_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  5652. }
  5653. inline ::std::string* MessageMap_M::release_inner_text() {
  5654. // @@protoc_insertion_point(field_release:google.protobuf.testing.MessageMap.M.inner_text)
  5655. return inner_text_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  5656. }
  5657. inline void MessageMap_M::set_allocated_inner_text(::std::string* inner_text) {
  5658. if (inner_text != NULL) {
  5659. } else {
  5660. }
  5661. inner_text_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), inner_text);
  5662. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.MessageMap.M.inner_text)
  5663. }
  5664. // -------------------------------------------------------------------
  5665. // -------------------------------------------------------------------
  5666. // MessageMap
  5667. // map<string, .google.protobuf.testing.MessageMap.M> map = 1;
  5668. inline int MessageMap::map_size() const {
  5669. return map_.size();
  5670. }
  5671. inline void MessageMap::clear_map() {
  5672. map_.Clear();
  5673. }
  5674. inline const ::google::protobuf::Map< ::std::string, ::google::protobuf::testing::MessageMap_M >&
  5675. MessageMap::map() const {
  5676. // @@protoc_insertion_point(field_map:google.protobuf.testing.MessageMap.map)
  5677. return map_.GetMap();
  5678. }
  5679. inline ::google::protobuf::Map< ::std::string, ::google::protobuf::testing::MessageMap_M >*
  5680. MessageMap::mutable_map() {
  5681. // @@protoc_insertion_point(field_mutable_map:google.protobuf.testing.MessageMap.map)
  5682. return map_.MutableMap();
  5683. }
  5684. // -------------------------------------------------------------------
  5685. // DoubleValueMessage
  5686. // .google.protobuf.DoubleValue double = 1;
  5687. inline bool DoubleValueMessage::has_double_() const {
  5688. return this != internal_default_instance() && double__ != NULL;
  5689. }
  5690. inline const ::google::protobuf::DoubleValue& DoubleValueMessage::_internal_double_() const {
  5691. return *double__;
  5692. }
  5693. inline const ::google::protobuf::DoubleValue& DoubleValueMessage::double_() const {
  5694. const ::google::protobuf::DoubleValue* p = double__;
  5695. // @@protoc_insertion_point(field_get:google.protobuf.testing.DoubleValueMessage.double)
  5696. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::DoubleValue*>(
  5697. &::google::protobuf::_DoubleValue_default_instance_);
  5698. }
  5699. inline ::google::protobuf::DoubleValue* DoubleValueMessage::release_double_() {
  5700. // @@protoc_insertion_point(field_release:google.protobuf.testing.DoubleValueMessage.double)
  5701. ::google::protobuf::DoubleValue* temp = double__;
  5702. double__ = NULL;
  5703. return temp;
  5704. }
  5705. inline ::google::protobuf::DoubleValue* DoubleValueMessage::mutable_double_() {
  5706. if (double__ == NULL) {
  5707. auto* p = CreateMaybeMessage<::google::protobuf::DoubleValue>(GetArenaNoVirtual());
  5708. double__ = p;
  5709. }
  5710. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.DoubleValueMessage.double)
  5711. return double__;
  5712. }
  5713. inline void DoubleValueMessage::set_allocated_double_(::google::protobuf::DoubleValue* double_) {
  5714. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  5715. if (message_arena == NULL) {
  5716. delete reinterpret_cast< ::google::protobuf::MessageLite*>(double__);
  5717. }
  5718. if (double_) {
  5719. ::google::protobuf::Arena* submessage_arena =
  5720. reinterpret_cast<::google::protobuf::MessageLite*>(double_)->GetArena();
  5721. if (message_arena != submessage_arena) {
  5722. double_ = ::google::protobuf::internal::GetOwnedMessage(
  5723. message_arena, double_, submessage_arena);
  5724. }
  5725. } else {
  5726. }
  5727. double__ = double_;
  5728. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.DoubleValueMessage.double)
  5729. }
  5730. #ifdef __GNUC__
  5731. #pragma GCC diagnostic pop
  5732. #endif // __GNUC__
  5733. // -------------------------------------------------------------------
  5734. // -------------------------------------------------------------------
  5735. // -------------------------------------------------------------------
  5736. // -------------------------------------------------------------------
  5737. // -------------------------------------------------------------------
  5738. // -------------------------------------------------------------------
  5739. // -------------------------------------------------------------------
  5740. // -------------------------------------------------------------------
  5741. // -------------------------------------------------------------------
  5742. // -------------------------------------------------------------------
  5743. // -------------------------------------------------------------------
  5744. // -------------------------------------------------------------------
  5745. // -------------------------------------------------------------------
  5746. // -------------------------------------------------------------------
  5747. // -------------------------------------------------------------------
  5748. // -------------------------------------------------------------------
  5749. // -------------------------------------------------------------------
  5750. // -------------------------------------------------------------------
  5751. // -------------------------------------------------------------------
  5752. // -------------------------------------------------------------------
  5753. // @@protoc_insertion_point(namespace_scope)
  5754. } // namespace testing
  5755. } // namespace protobuf
  5756. } // namespace google
  5757. namespace google {
  5758. namespace protobuf {
  5759. template <> struct is_proto_enum< ::google::protobuf::testing::MixedMap2_E> : ::std::true_type {};
  5760. template <>
  5761. inline const EnumDescriptor* GetEnumDescriptor< ::google::protobuf::testing::MixedMap2_E>() {
  5762. return ::google::protobuf::testing::MixedMap2_E_descriptor();
  5763. }
  5764. } // namespace protobuf
  5765. } // namespace google
  5766. // @@protoc_insertion_point(global_scope)
  5767. #endif // PROTOBUF_INCLUDED_google_2fprotobuf_2futil_2finternal_2ftestdata_2fdefault_5fvalue_2eproto