json_format_proto3.pb.h 231 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: google/protobuf/util/json_format_proto3.proto
  3. #ifndef PROTOBUF_INCLUDED_google_2fprotobuf_2futil_2fjson_5fformat_5fproto3_2eproto
  4. #define PROTOBUF_INCLUDED_google_2fprotobuf_2futil_2fjson_5fformat_5fproto3_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/duration.pb.h>
  33. #include <google/protobuf/timestamp.pb.h>
  34. #include <google/protobuf/wrappers.pb.h>
  35. #include <google/protobuf/struct.pb.h>
  36. #include <google/protobuf/any.pb.h>
  37. #include <google/protobuf/field_mask.pb.h>
  38. #include <google/protobuf/unittest.pb.h>
  39. // @@protoc_insertion_point(includes)
  40. #define PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2futil_2fjson_5fformat_5fproto3_2eproto
  41. namespace protobuf_google_2fprotobuf_2futil_2fjson_5fformat_5fproto3_2eproto {
  42. // Internal implementation detail -- do not use these members.
  43. struct TableStruct {
  44. static const ::google::protobuf::internal::ParseTableField entries[];
  45. static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
  46. static const ::google::protobuf::internal::ParseTable schema[31];
  47. static const ::google::protobuf::internal::FieldMetadata field_metadata[];
  48. static const ::google::protobuf::internal::SerializationTable serialization_table[];
  49. static const ::google::protobuf::uint32 offsets[];
  50. };
  51. void AddDescriptors();
  52. } // namespace protobuf_google_2fprotobuf_2futil_2fjson_5fformat_5fproto3_2eproto
  53. namespace proto3 {
  54. class MessageType;
  55. class MessageTypeDefaultTypeInternal;
  56. extern MessageTypeDefaultTypeInternal _MessageType_default_instance_;
  57. class TestAny;
  58. class TestAnyDefaultTypeInternal;
  59. extern TestAnyDefaultTypeInternal _TestAny_default_instance_;
  60. class TestBoolValue;
  61. class TestBoolValueDefaultTypeInternal;
  62. extern TestBoolValueDefaultTypeInternal _TestBoolValue_default_instance_;
  63. class TestBoolValue_BoolMapEntry_DoNotUse;
  64. class TestBoolValue_BoolMapEntry_DoNotUseDefaultTypeInternal;
  65. extern TestBoolValue_BoolMapEntry_DoNotUseDefaultTypeInternal _TestBoolValue_BoolMapEntry_DoNotUse_default_instance_;
  66. class TestCustomJsonName;
  67. class TestCustomJsonNameDefaultTypeInternal;
  68. extern TestCustomJsonNameDefaultTypeInternal _TestCustomJsonName_default_instance_;
  69. class TestDuration;
  70. class TestDurationDefaultTypeInternal;
  71. extern TestDurationDefaultTypeInternal _TestDuration_default_instance_;
  72. class TestEnumValue;
  73. class TestEnumValueDefaultTypeInternal;
  74. extern TestEnumValueDefaultTypeInternal _TestEnumValue_default_instance_;
  75. class TestExtensions;
  76. class TestExtensionsDefaultTypeInternal;
  77. extern TestExtensionsDefaultTypeInternal _TestExtensions_default_instance_;
  78. class TestFieldMask;
  79. class TestFieldMaskDefaultTypeInternal;
  80. extern TestFieldMaskDefaultTypeInternal _TestFieldMask_default_instance_;
  81. class TestListValue;
  82. class TestListValueDefaultTypeInternal;
  83. extern TestListValueDefaultTypeInternal _TestListValue_default_instance_;
  84. class TestMap;
  85. class TestMapDefaultTypeInternal;
  86. extern TestMapDefaultTypeInternal _TestMap_default_instance_;
  87. class TestMap_BoolMapEntry_DoNotUse;
  88. class TestMap_BoolMapEntry_DoNotUseDefaultTypeInternal;
  89. extern TestMap_BoolMapEntry_DoNotUseDefaultTypeInternal _TestMap_BoolMapEntry_DoNotUse_default_instance_;
  90. class TestMap_Int32MapEntry_DoNotUse;
  91. class TestMap_Int32MapEntry_DoNotUseDefaultTypeInternal;
  92. extern TestMap_Int32MapEntry_DoNotUseDefaultTypeInternal _TestMap_Int32MapEntry_DoNotUse_default_instance_;
  93. class TestMap_Int64MapEntry_DoNotUse;
  94. class TestMap_Int64MapEntry_DoNotUseDefaultTypeInternal;
  95. extern TestMap_Int64MapEntry_DoNotUseDefaultTypeInternal _TestMap_Int64MapEntry_DoNotUse_default_instance_;
  96. class TestMap_StringMapEntry_DoNotUse;
  97. class TestMap_StringMapEntry_DoNotUseDefaultTypeInternal;
  98. extern TestMap_StringMapEntry_DoNotUseDefaultTypeInternal _TestMap_StringMapEntry_DoNotUse_default_instance_;
  99. class TestMap_Uint32MapEntry_DoNotUse;
  100. class TestMap_Uint32MapEntry_DoNotUseDefaultTypeInternal;
  101. extern TestMap_Uint32MapEntry_DoNotUseDefaultTypeInternal _TestMap_Uint32MapEntry_DoNotUse_default_instance_;
  102. class TestMap_Uint64MapEntry_DoNotUse;
  103. class TestMap_Uint64MapEntry_DoNotUseDefaultTypeInternal;
  104. extern TestMap_Uint64MapEntry_DoNotUseDefaultTypeInternal _TestMap_Uint64MapEntry_DoNotUse_default_instance_;
  105. class TestMessage;
  106. class TestMessageDefaultTypeInternal;
  107. extern TestMessageDefaultTypeInternal _TestMessage_default_instance_;
  108. class TestNestedMap;
  109. class TestNestedMapDefaultTypeInternal;
  110. extern TestNestedMapDefaultTypeInternal _TestNestedMap_default_instance_;
  111. class TestNestedMap_BoolMapEntry_DoNotUse;
  112. class TestNestedMap_BoolMapEntry_DoNotUseDefaultTypeInternal;
  113. extern TestNestedMap_BoolMapEntry_DoNotUseDefaultTypeInternal _TestNestedMap_BoolMapEntry_DoNotUse_default_instance_;
  114. class TestNestedMap_Int32MapEntry_DoNotUse;
  115. class TestNestedMap_Int32MapEntry_DoNotUseDefaultTypeInternal;
  116. extern TestNestedMap_Int32MapEntry_DoNotUseDefaultTypeInternal _TestNestedMap_Int32MapEntry_DoNotUse_default_instance_;
  117. class TestNestedMap_Int64MapEntry_DoNotUse;
  118. class TestNestedMap_Int64MapEntry_DoNotUseDefaultTypeInternal;
  119. extern TestNestedMap_Int64MapEntry_DoNotUseDefaultTypeInternal _TestNestedMap_Int64MapEntry_DoNotUse_default_instance_;
  120. class TestNestedMap_MapMapEntry_DoNotUse;
  121. class TestNestedMap_MapMapEntry_DoNotUseDefaultTypeInternal;
  122. extern TestNestedMap_MapMapEntry_DoNotUseDefaultTypeInternal _TestNestedMap_MapMapEntry_DoNotUse_default_instance_;
  123. class TestNestedMap_StringMapEntry_DoNotUse;
  124. class TestNestedMap_StringMapEntry_DoNotUseDefaultTypeInternal;
  125. extern TestNestedMap_StringMapEntry_DoNotUseDefaultTypeInternal _TestNestedMap_StringMapEntry_DoNotUse_default_instance_;
  126. class TestNestedMap_Uint32MapEntry_DoNotUse;
  127. class TestNestedMap_Uint32MapEntry_DoNotUseDefaultTypeInternal;
  128. extern TestNestedMap_Uint32MapEntry_DoNotUseDefaultTypeInternal _TestNestedMap_Uint32MapEntry_DoNotUse_default_instance_;
  129. class TestNestedMap_Uint64MapEntry_DoNotUse;
  130. class TestNestedMap_Uint64MapEntry_DoNotUseDefaultTypeInternal;
  131. extern TestNestedMap_Uint64MapEntry_DoNotUseDefaultTypeInternal _TestNestedMap_Uint64MapEntry_DoNotUse_default_instance_;
  132. class TestOneof;
  133. class TestOneofDefaultTypeInternal;
  134. extern TestOneofDefaultTypeInternal _TestOneof_default_instance_;
  135. class TestStruct;
  136. class TestStructDefaultTypeInternal;
  137. extern TestStructDefaultTypeInternal _TestStruct_default_instance_;
  138. class TestTimestamp;
  139. class TestTimestampDefaultTypeInternal;
  140. extern TestTimestampDefaultTypeInternal _TestTimestamp_default_instance_;
  141. class TestValue;
  142. class TestValueDefaultTypeInternal;
  143. extern TestValueDefaultTypeInternal _TestValue_default_instance_;
  144. class TestWrapper;
  145. class TestWrapperDefaultTypeInternal;
  146. extern TestWrapperDefaultTypeInternal _TestWrapper_default_instance_;
  147. } // namespace proto3
  148. namespace google {
  149. namespace protobuf {
  150. template<> ::proto3::MessageType* Arena::CreateMaybeMessage<::proto3::MessageType>(Arena*);
  151. template<> ::proto3::TestAny* Arena::CreateMaybeMessage<::proto3::TestAny>(Arena*);
  152. template<> ::proto3::TestBoolValue* Arena::CreateMaybeMessage<::proto3::TestBoolValue>(Arena*);
  153. template<> ::proto3::TestBoolValue_BoolMapEntry_DoNotUse* Arena::CreateMaybeMessage<::proto3::TestBoolValue_BoolMapEntry_DoNotUse>(Arena*);
  154. template<> ::proto3::TestCustomJsonName* Arena::CreateMaybeMessage<::proto3::TestCustomJsonName>(Arena*);
  155. template<> ::proto3::TestDuration* Arena::CreateMaybeMessage<::proto3::TestDuration>(Arena*);
  156. template<> ::proto3::TestEnumValue* Arena::CreateMaybeMessage<::proto3::TestEnumValue>(Arena*);
  157. template<> ::proto3::TestExtensions* Arena::CreateMaybeMessage<::proto3::TestExtensions>(Arena*);
  158. template<> ::proto3::TestFieldMask* Arena::CreateMaybeMessage<::proto3::TestFieldMask>(Arena*);
  159. template<> ::proto3::TestListValue* Arena::CreateMaybeMessage<::proto3::TestListValue>(Arena*);
  160. template<> ::proto3::TestMap* Arena::CreateMaybeMessage<::proto3::TestMap>(Arena*);
  161. template<> ::proto3::TestMap_BoolMapEntry_DoNotUse* Arena::CreateMaybeMessage<::proto3::TestMap_BoolMapEntry_DoNotUse>(Arena*);
  162. template<> ::proto3::TestMap_Int32MapEntry_DoNotUse* Arena::CreateMaybeMessage<::proto3::TestMap_Int32MapEntry_DoNotUse>(Arena*);
  163. template<> ::proto3::TestMap_Int64MapEntry_DoNotUse* Arena::CreateMaybeMessage<::proto3::TestMap_Int64MapEntry_DoNotUse>(Arena*);
  164. template<> ::proto3::TestMap_StringMapEntry_DoNotUse* Arena::CreateMaybeMessage<::proto3::TestMap_StringMapEntry_DoNotUse>(Arena*);
  165. template<> ::proto3::TestMap_Uint32MapEntry_DoNotUse* Arena::CreateMaybeMessage<::proto3::TestMap_Uint32MapEntry_DoNotUse>(Arena*);
  166. template<> ::proto3::TestMap_Uint64MapEntry_DoNotUse* Arena::CreateMaybeMessage<::proto3::TestMap_Uint64MapEntry_DoNotUse>(Arena*);
  167. template<> ::proto3::TestMessage* Arena::CreateMaybeMessage<::proto3::TestMessage>(Arena*);
  168. template<> ::proto3::TestNestedMap* Arena::CreateMaybeMessage<::proto3::TestNestedMap>(Arena*);
  169. template<> ::proto3::TestNestedMap_BoolMapEntry_DoNotUse* Arena::CreateMaybeMessage<::proto3::TestNestedMap_BoolMapEntry_DoNotUse>(Arena*);
  170. template<> ::proto3::TestNestedMap_Int32MapEntry_DoNotUse* Arena::CreateMaybeMessage<::proto3::TestNestedMap_Int32MapEntry_DoNotUse>(Arena*);
  171. template<> ::proto3::TestNestedMap_Int64MapEntry_DoNotUse* Arena::CreateMaybeMessage<::proto3::TestNestedMap_Int64MapEntry_DoNotUse>(Arena*);
  172. template<> ::proto3::TestNestedMap_MapMapEntry_DoNotUse* Arena::CreateMaybeMessage<::proto3::TestNestedMap_MapMapEntry_DoNotUse>(Arena*);
  173. template<> ::proto3::TestNestedMap_StringMapEntry_DoNotUse* Arena::CreateMaybeMessage<::proto3::TestNestedMap_StringMapEntry_DoNotUse>(Arena*);
  174. template<> ::proto3::TestNestedMap_Uint32MapEntry_DoNotUse* Arena::CreateMaybeMessage<::proto3::TestNestedMap_Uint32MapEntry_DoNotUse>(Arena*);
  175. template<> ::proto3::TestNestedMap_Uint64MapEntry_DoNotUse* Arena::CreateMaybeMessage<::proto3::TestNestedMap_Uint64MapEntry_DoNotUse>(Arena*);
  176. template<> ::proto3::TestOneof* Arena::CreateMaybeMessage<::proto3::TestOneof>(Arena*);
  177. template<> ::proto3::TestStruct* Arena::CreateMaybeMessage<::proto3::TestStruct>(Arena*);
  178. template<> ::proto3::TestTimestamp* Arena::CreateMaybeMessage<::proto3::TestTimestamp>(Arena*);
  179. template<> ::proto3::TestValue* Arena::CreateMaybeMessage<::proto3::TestValue>(Arena*);
  180. template<> ::proto3::TestWrapper* Arena::CreateMaybeMessage<::proto3::TestWrapper>(Arena*);
  181. } // namespace protobuf
  182. } // namespace google
  183. namespace proto3 {
  184. enum EnumType {
  185. FOO = 0,
  186. BAR = 1,
  187. EnumType_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min,
  188. EnumType_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max
  189. };
  190. bool EnumType_IsValid(int value);
  191. const EnumType EnumType_MIN = FOO;
  192. const EnumType EnumType_MAX = BAR;
  193. const int EnumType_ARRAYSIZE = EnumType_MAX + 1;
  194. const ::google::protobuf::EnumDescriptor* EnumType_descriptor();
  195. inline const ::std::string& EnumType_Name(EnumType value) {
  196. return ::google::protobuf::internal::NameOfEnum(
  197. EnumType_descriptor(), value);
  198. }
  199. inline bool EnumType_Parse(
  200. const ::std::string& name, EnumType* value) {
  201. return ::google::protobuf::internal::ParseNamedEnum<EnumType>(
  202. EnumType_descriptor(), name, value);
  203. }
  204. // ===================================================================
  205. class MessageType : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:proto3.MessageType) */ {
  206. public:
  207. MessageType();
  208. virtual ~MessageType();
  209. MessageType(const MessageType& from);
  210. inline MessageType& operator=(const MessageType& from) {
  211. CopyFrom(from);
  212. return *this;
  213. }
  214. #if LANG_CXX11
  215. MessageType(MessageType&& from) noexcept
  216. : MessageType() {
  217. *this = ::std::move(from);
  218. }
  219. inline MessageType& operator=(MessageType&& from) noexcept {
  220. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  221. if (this != &from) InternalSwap(&from);
  222. } else {
  223. CopyFrom(from);
  224. }
  225. return *this;
  226. }
  227. #endif
  228. static const ::google::protobuf::Descriptor* descriptor();
  229. static const MessageType& default_instance();
  230. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  231. static inline const MessageType* internal_default_instance() {
  232. return reinterpret_cast<const MessageType*>(
  233. &_MessageType_default_instance_);
  234. }
  235. static constexpr int kIndexInFileMessages =
  236. 0;
  237. void Swap(MessageType* other);
  238. friend void swap(MessageType& a, MessageType& b) {
  239. a.Swap(&b);
  240. }
  241. // implements Message ----------------------------------------------
  242. inline MessageType* New() const final {
  243. return CreateMaybeMessage<MessageType>(NULL);
  244. }
  245. MessageType* New(::google::protobuf::Arena* arena) const final {
  246. return CreateMaybeMessage<MessageType>(arena);
  247. }
  248. void CopyFrom(const ::google::protobuf::Message& from) final;
  249. void MergeFrom(const ::google::protobuf::Message& from) final;
  250. void CopyFrom(const MessageType& from);
  251. void MergeFrom(const MessageType& from);
  252. void Clear() final;
  253. bool IsInitialized() const final;
  254. size_t ByteSizeLong() const final;
  255. bool MergePartialFromCodedStream(
  256. ::google::protobuf::io::CodedInputStream* input) final;
  257. void SerializeWithCachedSizes(
  258. ::google::protobuf::io::CodedOutputStream* output) const final;
  259. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  260. bool deterministic, ::google::protobuf::uint8* target) const final;
  261. int GetCachedSize() const final { return _cached_size_.Get(); }
  262. private:
  263. void SharedCtor();
  264. void SharedDtor();
  265. void SetCachedSize(int size) const final;
  266. void InternalSwap(MessageType* other);
  267. private:
  268. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  269. return NULL;
  270. }
  271. inline void* MaybeArenaPtr() const {
  272. return NULL;
  273. }
  274. public:
  275. ::google::protobuf::Metadata GetMetadata() const final;
  276. // nested types ----------------------------------------------------
  277. // accessors -------------------------------------------------------
  278. // int32 value = 1;
  279. void clear_value();
  280. static const int kValueFieldNumber = 1;
  281. ::google::protobuf::int32 value() const;
  282. void set_value(::google::protobuf::int32 value);
  283. // @@protoc_insertion_point(class_scope:proto3.MessageType)
  284. private:
  285. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  286. ::google::protobuf::int32 value_;
  287. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  288. friend struct ::protobuf_google_2fprotobuf_2futil_2fjson_5fformat_5fproto3_2eproto::TableStruct;
  289. };
  290. // -------------------------------------------------------------------
  291. class TestMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:proto3.TestMessage) */ {
  292. public:
  293. TestMessage();
  294. virtual ~TestMessage();
  295. TestMessage(const TestMessage& from);
  296. inline TestMessage& operator=(const TestMessage& from) {
  297. CopyFrom(from);
  298. return *this;
  299. }
  300. #if LANG_CXX11
  301. TestMessage(TestMessage&& from) noexcept
  302. : TestMessage() {
  303. *this = ::std::move(from);
  304. }
  305. inline TestMessage& operator=(TestMessage&& from) noexcept {
  306. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  307. if (this != &from) InternalSwap(&from);
  308. } else {
  309. CopyFrom(from);
  310. }
  311. return *this;
  312. }
  313. #endif
  314. static const ::google::protobuf::Descriptor* descriptor();
  315. static const TestMessage& default_instance();
  316. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  317. static inline const TestMessage* internal_default_instance() {
  318. return reinterpret_cast<const TestMessage*>(
  319. &_TestMessage_default_instance_);
  320. }
  321. static constexpr int kIndexInFileMessages =
  322. 1;
  323. void Swap(TestMessage* other);
  324. friend void swap(TestMessage& a, TestMessage& b) {
  325. a.Swap(&b);
  326. }
  327. // implements Message ----------------------------------------------
  328. inline TestMessage* New() const final {
  329. return CreateMaybeMessage<TestMessage>(NULL);
  330. }
  331. TestMessage* New(::google::protobuf::Arena* arena) const final {
  332. return CreateMaybeMessage<TestMessage>(arena);
  333. }
  334. void CopyFrom(const ::google::protobuf::Message& from) final;
  335. void MergeFrom(const ::google::protobuf::Message& from) final;
  336. void CopyFrom(const TestMessage& from);
  337. void MergeFrom(const TestMessage& from);
  338. void Clear() final;
  339. bool IsInitialized() const final;
  340. size_t ByteSizeLong() const final;
  341. bool MergePartialFromCodedStream(
  342. ::google::protobuf::io::CodedInputStream* input) final;
  343. void SerializeWithCachedSizes(
  344. ::google::protobuf::io::CodedOutputStream* output) const final;
  345. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  346. bool deterministic, ::google::protobuf::uint8* target) const final;
  347. int GetCachedSize() const final { return _cached_size_.Get(); }
  348. private:
  349. void SharedCtor();
  350. void SharedDtor();
  351. void SetCachedSize(int size) const final;
  352. void InternalSwap(TestMessage* other);
  353. private:
  354. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  355. return NULL;
  356. }
  357. inline void* MaybeArenaPtr() const {
  358. return NULL;
  359. }
  360. public:
  361. ::google::protobuf::Metadata GetMetadata() const final;
  362. // nested types ----------------------------------------------------
  363. // accessors -------------------------------------------------------
  364. // repeated bool repeated_bool_value = 21;
  365. int repeated_bool_value_size() const;
  366. void clear_repeated_bool_value();
  367. static const int kRepeatedBoolValueFieldNumber = 21;
  368. bool repeated_bool_value(int index) const;
  369. void set_repeated_bool_value(int index, bool value);
  370. void add_repeated_bool_value(bool value);
  371. const ::google::protobuf::RepeatedField< bool >&
  372. repeated_bool_value() const;
  373. ::google::protobuf::RepeatedField< bool >*
  374. mutable_repeated_bool_value();
  375. // repeated int32 repeated_int32_value = 22;
  376. int repeated_int32_value_size() const;
  377. void clear_repeated_int32_value();
  378. static const int kRepeatedInt32ValueFieldNumber = 22;
  379. ::google::protobuf::int32 repeated_int32_value(int index) const;
  380. void set_repeated_int32_value(int index, ::google::protobuf::int32 value);
  381. void add_repeated_int32_value(::google::protobuf::int32 value);
  382. const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  383. repeated_int32_value() const;
  384. ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  385. mutable_repeated_int32_value();
  386. // repeated int64 repeated_int64_value = 23;
  387. int repeated_int64_value_size() const;
  388. void clear_repeated_int64_value();
  389. static const int kRepeatedInt64ValueFieldNumber = 23;
  390. ::google::protobuf::int64 repeated_int64_value(int index) const;
  391. void set_repeated_int64_value(int index, ::google::protobuf::int64 value);
  392. void add_repeated_int64_value(::google::protobuf::int64 value);
  393. const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
  394. repeated_int64_value() const;
  395. ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
  396. mutable_repeated_int64_value();
  397. // repeated uint32 repeated_uint32_value = 24;
  398. int repeated_uint32_value_size() const;
  399. void clear_repeated_uint32_value();
  400. static const int kRepeatedUint32ValueFieldNumber = 24;
  401. ::google::protobuf::uint32 repeated_uint32_value(int index) const;
  402. void set_repeated_uint32_value(int index, ::google::protobuf::uint32 value);
  403. void add_repeated_uint32_value(::google::protobuf::uint32 value);
  404. const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
  405. repeated_uint32_value() const;
  406. ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
  407. mutable_repeated_uint32_value();
  408. // repeated uint64 repeated_uint64_value = 25;
  409. int repeated_uint64_value_size() const;
  410. void clear_repeated_uint64_value();
  411. static const int kRepeatedUint64ValueFieldNumber = 25;
  412. ::google::protobuf::uint64 repeated_uint64_value(int index) const;
  413. void set_repeated_uint64_value(int index, ::google::protobuf::uint64 value);
  414. void add_repeated_uint64_value(::google::protobuf::uint64 value);
  415. const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
  416. repeated_uint64_value() const;
  417. ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
  418. mutable_repeated_uint64_value();
  419. // repeated float repeated_float_value = 26;
  420. int repeated_float_value_size() const;
  421. void clear_repeated_float_value();
  422. static const int kRepeatedFloatValueFieldNumber = 26;
  423. float repeated_float_value(int index) const;
  424. void set_repeated_float_value(int index, float value);
  425. void add_repeated_float_value(float value);
  426. const ::google::protobuf::RepeatedField< float >&
  427. repeated_float_value() const;
  428. ::google::protobuf::RepeatedField< float >*
  429. mutable_repeated_float_value();
  430. // repeated double repeated_double_value = 27;
  431. int repeated_double_value_size() const;
  432. void clear_repeated_double_value();
  433. static const int kRepeatedDoubleValueFieldNumber = 27;
  434. double repeated_double_value(int index) const;
  435. void set_repeated_double_value(int index, double value);
  436. void add_repeated_double_value(double value);
  437. const ::google::protobuf::RepeatedField< double >&
  438. repeated_double_value() const;
  439. ::google::protobuf::RepeatedField< double >*
  440. mutable_repeated_double_value();
  441. // repeated string repeated_string_value = 28;
  442. int repeated_string_value_size() const;
  443. void clear_repeated_string_value();
  444. static const int kRepeatedStringValueFieldNumber = 28;
  445. const ::std::string& repeated_string_value(int index) const;
  446. ::std::string* mutable_repeated_string_value(int index);
  447. void set_repeated_string_value(int index, const ::std::string& value);
  448. #if LANG_CXX11
  449. void set_repeated_string_value(int index, ::std::string&& value);
  450. #endif
  451. void set_repeated_string_value(int index, const char* value);
  452. void set_repeated_string_value(int index, const char* value, size_t size);
  453. ::std::string* add_repeated_string_value();
  454. void add_repeated_string_value(const ::std::string& value);
  455. #if LANG_CXX11
  456. void add_repeated_string_value(::std::string&& value);
  457. #endif
  458. void add_repeated_string_value(const char* value);
  459. void add_repeated_string_value(const char* value, size_t size);
  460. const ::google::protobuf::RepeatedPtrField< ::std::string>& repeated_string_value() const;
  461. ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_repeated_string_value();
  462. // repeated bytes repeated_bytes_value = 29;
  463. int repeated_bytes_value_size() const;
  464. void clear_repeated_bytes_value();
  465. static const int kRepeatedBytesValueFieldNumber = 29;
  466. const ::std::string& repeated_bytes_value(int index) const;
  467. ::std::string* mutable_repeated_bytes_value(int index);
  468. void set_repeated_bytes_value(int index, const ::std::string& value);
  469. #if LANG_CXX11
  470. void set_repeated_bytes_value(int index, ::std::string&& value);
  471. #endif
  472. void set_repeated_bytes_value(int index, const char* value);
  473. void set_repeated_bytes_value(int index, const void* value, size_t size);
  474. ::std::string* add_repeated_bytes_value();
  475. void add_repeated_bytes_value(const ::std::string& value);
  476. #if LANG_CXX11
  477. void add_repeated_bytes_value(::std::string&& value);
  478. #endif
  479. void add_repeated_bytes_value(const char* value);
  480. void add_repeated_bytes_value(const void* value, size_t size);
  481. const ::google::protobuf::RepeatedPtrField< ::std::string>& repeated_bytes_value() const;
  482. ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_repeated_bytes_value();
  483. // repeated .proto3.EnumType repeated_enum_value = 30;
  484. int repeated_enum_value_size() const;
  485. void clear_repeated_enum_value();
  486. static const int kRepeatedEnumValueFieldNumber = 30;
  487. ::proto3::EnumType repeated_enum_value(int index) const;
  488. void set_repeated_enum_value(int index, ::proto3::EnumType value);
  489. void add_repeated_enum_value(::proto3::EnumType value);
  490. const ::google::protobuf::RepeatedField<int>& repeated_enum_value() const;
  491. ::google::protobuf::RepeatedField<int>* mutable_repeated_enum_value();
  492. // repeated .proto3.MessageType repeated_message_value = 31;
  493. int repeated_message_value_size() const;
  494. void clear_repeated_message_value();
  495. static const int kRepeatedMessageValueFieldNumber = 31;
  496. ::proto3::MessageType* mutable_repeated_message_value(int index);
  497. ::google::protobuf::RepeatedPtrField< ::proto3::MessageType >*
  498. mutable_repeated_message_value();
  499. const ::proto3::MessageType& repeated_message_value(int index) const;
  500. ::proto3::MessageType* add_repeated_message_value();
  501. const ::google::protobuf::RepeatedPtrField< ::proto3::MessageType >&
  502. repeated_message_value() const;
  503. // string string_value = 8;
  504. void clear_string_value();
  505. static const int kStringValueFieldNumber = 8;
  506. const ::std::string& string_value() const;
  507. void set_string_value(const ::std::string& value);
  508. #if LANG_CXX11
  509. void set_string_value(::std::string&& value);
  510. #endif
  511. void set_string_value(const char* value);
  512. void set_string_value(const char* value, size_t size);
  513. ::std::string* mutable_string_value();
  514. ::std::string* release_string_value();
  515. void set_allocated_string_value(::std::string* string_value);
  516. // bytes bytes_value = 9;
  517. void clear_bytes_value();
  518. static const int kBytesValueFieldNumber = 9;
  519. const ::std::string& bytes_value() const;
  520. void set_bytes_value(const ::std::string& value);
  521. #if LANG_CXX11
  522. void set_bytes_value(::std::string&& value);
  523. #endif
  524. void set_bytes_value(const char* value);
  525. void set_bytes_value(const void* value, size_t size);
  526. ::std::string* mutable_bytes_value();
  527. ::std::string* release_bytes_value();
  528. void set_allocated_bytes_value(::std::string* bytes_value);
  529. // .proto3.MessageType message_value = 11;
  530. bool has_message_value() const;
  531. void clear_message_value();
  532. static const int kMessageValueFieldNumber = 11;
  533. private:
  534. const ::proto3::MessageType& _internal_message_value() const;
  535. public:
  536. const ::proto3::MessageType& message_value() const;
  537. ::proto3::MessageType* release_message_value();
  538. ::proto3::MessageType* mutable_message_value();
  539. void set_allocated_message_value(::proto3::MessageType* message_value);
  540. // bool bool_value = 1;
  541. void clear_bool_value();
  542. static const int kBoolValueFieldNumber = 1;
  543. bool bool_value() const;
  544. void set_bool_value(bool value);
  545. // int32 int32_value = 2;
  546. void clear_int32_value();
  547. static const int kInt32ValueFieldNumber = 2;
  548. ::google::protobuf::int32 int32_value() const;
  549. void set_int32_value(::google::protobuf::int32 value);
  550. // int64 int64_value = 3;
  551. void clear_int64_value();
  552. static const int kInt64ValueFieldNumber = 3;
  553. ::google::protobuf::int64 int64_value() const;
  554. void set_int64_value(::google::protobuf::int64 value);
  555. // uint64 uint64_value = 5;
  556. void clear_uint64_value();
  557. static const int kUint64ValueFieldNumber = 5;
  558. ::google::protobuf::uint64 uint64_value() const;
  559. void set_uint64_value(::google::protobuf::uint64 value);
  560. // uint32 uint32_value = 4;
  561. void clear_uint32_value();
  562. static const int kUint32ValueFieldNumber = 4;
  563. ::google::protobuf::uint32 uint32_value() const;
  564. void set_uint32_value(::google::protobuf::uint32 value);
  565. // float float_value = 6;
  566. void clear_float_value();
  567. static const int kFloatValueFieldNumber = 6;
  568. float float_value() const;
  569. void set_float_value(float value);
  570. // double double_value = 7;
  571. void clear_double_value();
  572. static const int kDoubleValueFieldNumber = 7;
  573. double double_value() const;
  574. void set_double_value(double value);
  575. // .proto3.EnumType enum_value = 10;
  576. void clear_enum_value();
  577. static const int kEnumValueFieldNumber = 10;
  578. ::proto3::EnumType enum_value() const;
  579. void set_enum_value(::proto3::EnumType value);
  580. // @@protoc_insertion_point(class_scope:proto3.TestMessage)
  581. private:
  582. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  583. ::google::protobuf::RepeatedField< bool > repeated_bool_value_;
  584. mutable int _repeated_bool_value_cached_byte_size_;
  585. ::google::protobuf::RepeatedField< ::google::protobuf::int32 > repeated_int32_value_;
  586. mutable int _repeated_int32_value_cached_byte_size_;
  587. ::google::protobuf::RepeatedField< ::google::protobuf::int64 > repeated_int64_value_;
  588. mutable int _repeated_int64_value_cached_byte_size_;
  589. ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > repeated_uint32_value_;
  590. mutable int _repeated_uint32_value_cached_byte_size_;
  591. ::google::protobuf::RepeatedField< ::google::protobuf::uint64 > repeated_uint64_value_;
  592. mutable int _repeated_uint64_value_cached_byte_size_;
  593. ::google::protobuf::RepeatedField< float > repeated_float_value_;
  594. mutable int _repeated_float_value_cached_byte_size_;
  595. ::google::protobuf::RepeatedField< double > repeated_double_value_;
  596. mutable int _repeated_double_value_cached_byte_size_;
  597. ::google::protobuf::RepeatedPtrField< ::std::string> repeated_string_value_;
  598. ::google::protobuf::RepeatedPtrField< ::std::string> repeated_bytes_value_;
  599. ::google::protobuf::RepeatedField<int> repeated_enum_value_;
  600. mutable int _repeated_enum_value_cached_byte_size_;
  601. ::google::protobuf::RepeatedPtrField< ::proto3::MessageType > repeated_message_value_;
  602. ::google::protobuf::internal::ArenaStringPtr string_value_;
  603. ::google::protobuf::internal::ArenaStringPtr bytes_value_;
  604. ::proto3::MessageType* message_value_;
  605. bool bool_value_;
  606. ::google::protobuf::int32 int32_value_;
  607. ::google::protobuf::int64 int64_value_;
  608. ::google::protobuf::uint64 uint64_value_;
  609. ::google::protobuf::uint32 uint32_value_;
  610. float float_value_;
  611. double double_value_;
  612. int enum_value_;
  613. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  614. friend struct ::protobuf_google_2fprotobuf_2futil_2fjson_5fformat_5fproto3_2eproto::TableStruct;
  615. };
  616. // -------------------------------------------------------------------
  617. class TestOneof : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:proto3.TestOneof) */ {
  618. public:
  619. TestOneof();
  620. virtual ~TestOneof();
  621. TestOneof(const TestOneof& from);
  622. inline TestOneof& operator=(const TestOneof& from) {
  623. CopyFrom(from);
  624. return *this;
  625. }
  626. #if LANG_CXX11
  627. TestOneof(TestOneof&& from) noexcept
  628. : TestOneof() {
  629. *this = ::std::move(from);
  630. }
  631. inline TestOneof& operator=(TestOneof&& from) noexcept {
  632. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  633. if (this != &from) InternalSwap(&from);
  634. } else {
  635. CopyFrom(from);
  636. }
  637. return *this;
  638. }
  639. #endif
  640. static const ::google::protobuf::Descriptor* descriptor();
  641. static const TestOneof& default_instance();
  642. enum OneofValueCase {
  643. kOneofInt32Value = 1,
  644. kOneofStringValue = 2,
  645. kOneofBytesValue = 3,
  646. kOneofEnumValue = 4,
  647. kOneofMessageValue = 5,
  648. ONEOF_VALUE_NOT_SET = 0,
  649. };
  650. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  651. static inline const TestOneof* internal_default_instance() {
  652. return reinterpret_cast<const TestOneof*>(
  653. &_TestOneof_default_instance_);
  654. }
  655. static constexpr int kIndexInFileMessages =
  656. 2;
  657. void Swap(TestOneof* other);
  658. friend void swap(TestOneof& a, TestOneof& b) {
  659. a.Swap(&b);
  660. }
  661. // implements Message ----------------------------------------------
  662. inline TestOneof* New() const final {
  663. return CreateMaybeMessage<TestOneof>(NULL);
  664. }
  665. TestOneof* New(::google::protobuf::Arena* arena) const final {
  666. return CreateMaybeMessage<TestOneof>(arena);
  667. }
  668. void CopyFrom(const ::google::protobuf::Message& from) final;
  669. void MergeFrom(const ::google::protobuf::Message& from) final;
  670. void CopyFrom(const TestOneof& from);
  671. void MergeFrom(const TestOneof& from);
  672. void Clear() final;
  673. bool IsInitialized() const final;
  674. size_t ByteSizeLong() const final;
  675. bool MergePartialFromCodedStream(
  676. ::google::protobuf::io::CodedInputStream* input) final;
  677. void SerializeWithCachedSizes(
  678. ::google::protobuf::io::CodedOutputStream* output) const final;
  679. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  680. bool deterministic, ::google::protobuf::uint8* target) const final;
  681. int GetCachedSize() const final { return _cached_size_.Get(); }
  682. private:
  683. void SharedCtor();
  684. void SharedDtor();
  685. void SetCachedSize(int size) const final;
  686. void InternalSwap(TestOneof* other);
  687. private:
  688. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  689. return NULL;
  690. }
  691. inline void* MaybeArenaPtr() const {
  692. return NULL;
  693. }
  694. public:
  695. ::google::protobuf::Metadata GetMetadata() const final;
  696. // nested types ----------------------------------------------------
  697. // accessors -------------------------------------------------------
  698. // int32 oneof_int32_value = 1;
  699. private:
  700. bool has_oneof_int32_value() const;
  701. public:
  702. void clear_oneof_int32_value();
  703. static const int kOneofInt32ValueFieldNumber = 1;
  704. ::google::protobuf::int32 oneof_int32_value() const;
  705. void set_oneof_int32_value(::google::protobuf::int32 value);
  706. // string oneof_string_value = 2;
  707. private:
  708. bool has_oneof_string_value() const;
  709. public:
  710. void clear_oneof_string_value();
  711. static const int kOneofStringValueFieldNumber = 2;
  712. const ::std::string& oneof_string_value() const;
  713. void set_oneof_string_value(const ::std::string& value);
  714. #if LANG_CXX11
  715. void set_oneof_string_value(::std::string&& value);
  716. #endif
  717. void set_oneof_string_value(const char* value);
  718. void set_oneof_string_value(const char* value, size_t size);
  719. ::std::string* mutable_oneof_string_value();
  720. ::std::string* release_oneof_string_value();
  721. void set_allocated_oneof_string_value(::std::string* oneof_string_value);
  722. // bytes oneof_bytes_value = 3;
  723. private:
  724. bool has_oneof_bytes_value() const;
  725. public:
  726. void clear_oneof_bytes_value();
  727. static const int kOneofBytesValueFieldNumber = 3;
  728. const ::std::string& oneof_bytes_value() const;
  729. void set_oneof_bytes_value(const ::std::string& value);
  730. #if LANG_CXX11
  731. void set_oneof_bytes_value(::std::string&& value);
  732. #endif
  733. void set_oneof_bytes_value(const char* value);
  734. void set_oneof_bytes_value(const void* value, size_t size);
  735. ::std::string* mutable_oneof_bytes_value();
  736. ::std::string* release_oneof_bytes_value();
  737. void set_allocated_oneof_bytes_value(::std::string* oneof_bytes_value);
  738. // .proto3.EnumType oneof_enum_value = 4;
  739. private:
  740. bool has_oneof_enum_value() const;
  741. public:
  742. void clear_oneof_enum_value();
  743. static const int kOneofEnumValueFieldNumber = 4;
  744. ::proto3::EnumType oneof_enum_value() const;
  745. void set_oneof_enum_value(::proto3::EnumType value);
  746. // .proto3.MessageType oneof_message_value = 5;
  747. bool has_oneof_message_value() const;
  748. void clear_oneof_message_value();
  749. static const int kOneofMessageValueFieldNumber = 5;
  750. private:
  751. const ::proto3::MessageType& _internal_oneof_message_value() const;
  752. public:
  753. const ::proto3::MessageType& oneof_message_value() const;
  754. ::proto3::MessageType* release_oneof_message_value();
  755. ::proto3::MessageType* mutable_oneof_message_value();
  756. void set_allocated_oneof_message_value(::proto3::MessageType* oneof_message_value);
  757. void clear_oneof_value();
  758. OneofValueCase oneof_value_case() const;
  759. // @@protoc_insertion_point(class_scope:proto3.TestOneof)
  760. private:
  761. void set_has_oneof_int32_value();
  762. void set_has_oneof_string_value();
  763. void set_has_oneof_bytes_value();
  764. void set_has_oneof_enum_value();
  765. void set_has_oneof_message_value();
  766. inline bool has_oneof_value() const;
  767. inline void clear_has_oneof_value();
  768. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  769. union OneofValueUnion {
  770. OneofValueUnion() {}
  771. ::google::protobuf::int32 oneof_int32_value_;
  772. ::google::protobuf::internal::ArenaStringPtr oneof_string_value_;
  773. ::google::protobuf::internal::ArenaStringPtr oneof_bytes_value_;
  774. int oneof_enum_value_;
  775. ::proto3::MessageType* oneof_message_value_;
  776. } oneof_value_;
  777. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  778. ::google::protobuf::uint32 _oneof_case_[1];
  779. friend struct ::protobuf_google_2fprotobuf_2futil_2fjson_5fformat_5fproto3_2eproto::TableStruct;
  780. };
  781. // -------------------------------------------------------------------
  782. class TestMap_BoolMapEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestMap_BoolMapEntry_DoNotUse,
  783. bool, ::google::protobuf::int32,
  784. ::google::protobuf::internal::WireFormatLite::TYPE_BOOL,
  785. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  786. 0 > {
  787. public:
  788. typedef ::google::protobuf::internal::MapEntry<TestMap_BoolMapEntry_DoNotUse,
  789. bool, ::google::protobuf::int32,
  790. ::google::protobuf::internal::WireFormatLite::TYPE_BOOL,
  791. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  792. 0 > SuperType;
  793. TestMap_BoolMapEntry_DoNotUse();
  794. TestMap_BoolMapEntry_DoNotUse(::google::protobuf::Arena* arena);
  795. void MergeFrom(const TestMap_BoolMapEntry_DoNotUse& other);
  796. static const TestMap_BoolMapEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestMap_BoolMapEntry_DoNotUse*>(&_TestMap_BoolMapEntry_DoNotUse_default_instance_); }
  797. void MergeFrom(const ::google::protobuf::Message& other) final;
  798. ::google::protobuf::Metadata GetMetadata() const;
  799. };
  800. // -------------------------------------------------------------------
  801. class TestMap_Int32MapEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestMap_Int32MapEntry_DoNotUse,
  802. ::google::protobuf::int32, ::google::protobuf::int32,
  803. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  804. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  805. 0 > {
  806. public:
  807. typedef ::google::protobuf::internal::MapEntry<TestMap_Int32MapEntry_DoNotUse,
  808. ::google::protobuf::int32, ::google::protobuf::int32,
  809. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  810. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  811. 0 > SuperType;
  812. TestMap_Int32MapEntry_DoNotUse();
  813. TestMap_Int32MapEntry_DoNotUse(::google::protobuf::Arena* arena);
  814. void MergeFrom(const TestMap_Int32MapEntry_DoNotUse& other);
  815. static const TestMap_Int32MapEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestMap_Int32MapEntry_DoNotUse*>(&_TestMap_Int32MapEntry_DoNotUse_default_instance_); }
  816. void MergeFrom(const ::google::protobuf::Message& other) final;
  817. ::google::protobuf::Metadata GetMetadata() const;
  818. };
  819. // -------------------------------------------------------------------
  820. class TestMap_Int64MapEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestMap_Int64MapEntry_DoNotUse,
  821. ::google::protobuf::int64, ::google::protobuf::int32,
  822. ::google::protobuf::internal::WireFormatLite::TYPE_INT64,
  823. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  824. 0 > {
  825. public:
  826. typedef ::google::protobuf::internal::MapEntry<TestMap_Int64MapEntry_DoNotUse,
  827. ::google::protobuf::int64, ::google::protobuf::int32,
  828. ::google::protobuf::internal::WireFormatLite::TYPE_INT64,
  829. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  830. 0 > SuperType;
  831. TestMap_Int64MapEntry_DoNotUse();
  832. TestMap_Int64MapEntry_DoNotUse(::google::protobuf::Arena* arena);
  833. void MergeFrom(const TestMap_Int64MapEntry_DoNotUse& other);
  834. static const TestMap_Int64MapEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestMap_Int64MapEntry_DoNotUse*>(&_TestMap_Int64MapEntry_DoNotUse_default_instance_); }
  835. void MergeFrom(const ::google::protobuf::Message& other) final;
  836. ::google::protobuf::Metadata GetMetadata() const;
  837. };
  838. // -------------------------------------------------------------------
  839. class TestMap_Uint32MapEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestMap_Uint32MapEntry_DoNotUse,
  840. ::google::protobuf::uint32, ::google::protobuf::int32,
  841. ::google::protobuf::internal::WireFormatLite::TYPE_UINT32,
  842. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  843. 0 > {
  844. public:
  845. typedef ::google::protobuf::internal::MapEntry<TestMap_Uint32MapEntry_DoNotUse,
  846. ::google::protobuf::uint32, ::google::protobuf::int32,
  847. ::google::protobuf::internal::WireFormatLite::TYPE_UINT32,
  848. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  849. 0 > SuperType;
  850. TestMap_Uint32MapEntry_DoNotUse();
  851. TestMap_Uint32MapEntry_DoNotUse(::google::protobuf::Arena* arena);
  852. void MergeFrom(const TestMap_Uint32MapEntry_DoNotUse& other);
  853. static const TestMap_Uint32MapEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestMap_Uint32MapEntry_DoNotUse*>(&_TestMap_Uint32MapEntry_DoNotUse_default_instance_); }
  854. void MergeFrom(const ::google::protobuf::Message& other) final;
  855. ::google::protobuf::Metadata GetMetadata() const;
  856. };
  857. // -------------------------------------------------------------------
  858. class TestMap_Uint64MapEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestMap_Uint64MapEntry_DoNotUse,
  859. ::google::protobuf::uint64, ::google::protobuf::int32,
  860. ::google::protobuf::internal::WireFormatLite::TYPE_UINT64,
  861. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  862. 0 > {
  863. public:
  864. typedef ::google::protobuf::internal::MapEntry<TestMap_Uint64MapEntry_DoNotUse,
  865. ::google::protobuf::uint64, ::google::protobuf::int32,
  866. ::google::protobuf::internal::WireFormatLite::TYPE_UINT64,
  867. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  868. 0 > SuperType;
  869. TestMap_Uint64MapEntry_DoNotUse();
  870. TestMap_Uint64MapEntry_DoNotUse(::google::protobuf::Arena* arena);
  871. void MergeFrom(const TestMap_Uint64MapEntry_DoNotUse& other);
  872. static const TestMap_Uint64MapEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestMap_Uint64MapEntry_DoNotUse*>(&_TestMap_Uint64MapEntry_DoNotUse_default_instance_); }
  873. void MergeFrom(const ::google::protobuf::Message& other) final;
  874. ::google::protobuf::Metadata GetMetadata() const;
  875. };
  876. // -------------------------------------------------------------------
  877. class TestMap_StringMapEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestMap_StringMapEntry_DoNotUse,
  878. ::std::string, ::google::protobuf::int32,
  879. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  880. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  881. 0 > {
  882. public:
  883. typedef ::google::protobuf::internal::MapEntry<TestMap_StringMapEntry_DoNotUse,
  884. ::std::string, ::google::protobuf::int32,
  885. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  886. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  887. 0 > SuperType;
  888. TestMap_StringMapEntry_DoNotUse();
  889. TestMap_StringMapEntry_DoNotUse(::google::protobuf::Arena* arena);
  890. void MergeFrom(const TestMap_StringMapEntry_DoNotUse& other);
  891. static const TestMap_StringMapEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestMap_StringMapEntry_DoNotUse*>(&_TestMap_StringMapEntry_DoNotUse_default_instance_); }
  892. void MergeFrom(const ::google::protobuf::Message& other) final;
  893. ::google::protobuf::Metadata GetMetadata() const;
  894. };
  895. // -------------------------------------------------------------------
  896. class TestMap : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:proto3.TestMap) */ {
  897. public:
  898. TestMap();
  899. virtual ~TestMap();
  900. TestMap(const TestMap& from);
  901. inline TestMap& operator=(const TestMap& from) {
  902. CopyFrom(from);
  903. return *this;
  904. }
  905. #if LANG_CXX11
  906. TestMap(TestMap&& from) noexcept
  907. : TestMap() {
  908. *this = ::std::move(from);
  909. }
  910. inline TestMap& operator=(TestMap&& from) noexcept {
  911. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  912. if (this != &from) InternalSwap(&from);
  913. } else {
  914. CopyFrom(from);
  915. }
  916. return *this;
  917. }
  918. #endif
  919. static const ::google::protobuf::Descriptor* descriptor();
  920. static const TestMap& default_instance();
  921. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  922. static inline const TestMap* internal_default_instance() {
  923. return reinterpret_cast<const TestMap*>(
  924. &_TestMap_default_instance_);
  925. }
  926. static constexpr int kIndexInFileMessages =
  927. 9;
  928. void Swap(TestMap* other);
  929. friend void swap(TestMap& a, TestMap& b) {
  930. a.Swap(&b);
  931. }
  932. // implements Message ----------------------------------------------
  933. inline TestMap* New() const final {
  934. return CreateMaybeMessage<TestMap>(NULL);
  935. }
  936. TestMap* New(::google::protobuf::Arena* arena) const final {
  937. return CreateMaybeMessage<TestMap>(arena);
  938. }
  939. void CopyFrom(const ::google::protobuf::Message& from) final;
  940. void MergeFrom(const ::google::protobuf::Message& from) final;
  941. void CopyFrom(const TestMap& from);
  942. void MergeFrom(const TestMap& from);
  943. void Clear() final;
  944. bool IsInitialized() const final;
  945. size_t ByteSizeLong() const final;
  946. bool MergePartialFromCodedStream(
  947. ::google::protobuf::io::CodedInputStream* input) final;
  948. void SerializeWithCachedSizes(
  949. ::google::protobuf::io::CodedOutputStream* output) const final;
  950. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  951. bool deterministic, ::google::protobuf::uint8* target) const final;
  952. int GetCachedSize() const final { return _cached_size_.Get(); }
  953. private:
  954. void SharedCtor();
  955. void SharedDtor();
  956. void SetCachedSize(int size) const final;
  957. void InternalSwap(TestMap* other);
  958. private:
  959. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  960. return NULL;
  961. }
  962. inline void* MaybeArenaPtr() const {
  963. return NULL;
  964. }
  965. public:
  966. ::google::protobuf::Metadata GetMetadata() const final;
  967. // nested types ----------------------------------------------------
  968. // accessors -------------------------------------------------------
  969. // map<bool, int32> bool_map = 1;
  970. int bool_map_size() const;
  971. void clear_bool_map();
  972. static const int kBoolMapFieldNumber = 1;
  973. const ::google::protobuf::Map< bool, ::google::protobuf::int32 >&
  974. bool_map() const;
  975. ::google::protobuf::Map< bool, ::google::protobuf::int32 >*
  976. mutable_bool_map();
  977. // map<int32, int32> int32_map = 2;
  978. int int32_map_size() const;
  979. void clear_int32_map();
  980. static const int kInt32MapFieldNumber = 2;
  981. const ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >&
  982. int32_map() const;
  983. ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >*
  984. mutable_int32_map();
  985. // map<int64, int32> int64_map = 3;
  986. int int64_map_size() const;
  987. void clear_int64_map();
  988. static const int kInt64MapFieldNumber = 3;
  989. const ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int32 >&
  990. int64_map() const;
  991. ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int32 >*
  992. mutable_int64_map();
  993. // map<uint32, int32> uint32_map = 4;
  994. int uint32_map_size() const;
  995. void clear_uint32_map();
  996. static const int kUint32MapFieldNumber = 4;
  997. const ::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::int32 >&
  998. uint32_map() const;
  999. ::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::int32 >*
  1000. mutable_uint32_map();
  1001. // map<uint64, int32> uint64_map = 5;
  1002. int uint64_map_size() const;
  1003. void clear_uint64_map();
  1004. static const int kUint64MapFieldNumber = 5;
  1005. const ::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::int32 >&
  1006. uint64_map() const;
  1007. ::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::int32 >*
  1008. mutable_uint64_map();
  1009. // map<string, int32> string_map = 6;
  1010. int string_map_size() const;
  1011. void clear_string_map();
  1012. static const int kStringMapFieldNumber = 6;
  1013. const ::google::protobuf::Map< ::std::string, ::google::protobuf::int32 >&
  1014. string_map() const;
  1015. ::google::protobuf::Map< ::std::string, ::google::protobuf::int32 >*
  1016. mutable_string_map();
  1017. // @@protoc_insertion_point(class_scope:proto3.TestMap)
  1018. private:
  1019. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1020. ::google::protobuf::internal::MapField<
  1021. TestMap_BoolMapEntry_DoNotUse,
  1022. bool, ::google::protobuf::int32,
  1023. ::google::protobuf::internal::WireFormatLite::TYPE_BOOL,
  1024. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1025. 0 > bool_map_;
  1026. ::google::protobuf::internal::MapField<
  1027. TestMap_Int32MapEntry_DoNotUse,
  1028. ::google::protobuf::int32, ::google::protobuf::int32,
  1029. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1030. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1031. 0 > int32_map_;
  1032. ::google::protobuf::internal::MapField<
  1033. TestMap_Int64MapEntry_DoNotUse,
  1034. ::google::protobuf::int64, ::google::protobuf::int32,
  1035. ::google::protobuf::internal::WireFormatLite::TYPE_INT64,
  1036. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1037. 0 > int64_map_;
  1038. ::google::protobuf::internal::MapField<
  1039. TestMap_Uint32MapEntry_DoNotUse,
  1040. ::google::protobuf::uint32, ::google::protobuf::int32,
  1041. ::google::protobuf::internal::WireFormatLite::TYPE_UINT32,
  1042. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1043. 0 > uint32_map_;
  1044. ::google::protobuf::internal::MapField<
  1045. TestMap_Uint64MapEntry_DoNotUse,
  1046. ::google::protobuf::uint64, ::google::protobuf::int32,
  1047. ::google::protobuf::internal::WireFormatLite::TYPE_UINT64,
  1048. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1049. 0 > uint64_map_;
  1050. ::google::protobuf::internal::MapField<
  1051. TestMap_StringMapEntry_DoNotUse,
  1052. ::std::string, ::google::protobuf::int32,
  1053. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  1054. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1055. 0 > string_map_;
  1056. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1057. friend struct ::protobuf_google_2fprotobuf_2futil_2fjson_5fformat_5fproto3_2eproto::TableStruct;
  1058. };
  1059. // -------------------------------------------------------------------
  1060. class TestNestedMap_BoolMapEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestNestedMap_BoolMapEntry_DoNotUse,
  1061. bool, ::google::protobuf::int32,
  1062. ::google::protobuf::internal::WireFormatLite::TYPE_BOOL,
  1063. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1064. 0 > {
  1065. public:
  1066. typedef ::google::protobuf::internal::MapEntry<TestNestedMap_BoolMapEntry_DoNotUse,
  1067. bool, ::google::protobuf::int32,
  1068. ::google::protobuf::internal::WireFormatLite::TYPE_BOOL,
  1069. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1070. 0 > SuperType;
  1071. TestNestedMap_BoolMapEntry_DoNotUse();
  1072. TestNestedMap_BoolMapEntry_DoNotUse(::google::protobuf::Arena* arena);
  1073. void MergeFrom(const TestNestedMap_BoolMapEntry_DoNotUse& other);
  1074. static const TestNestedMap_BoolMapEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestNestedMap_BoolMapEntry_DoNotUse*>(&_TestNestedMap_BoolMapEntry_DoNotUse_default_instance_); }
  1075. void MergeFrom(const ::google::protobuf::Message& other) final;
  1076. ::google::protobuf::Metadata GetMetadata() const;
  1077. };
  1078. // -------------------------------------------------------------------
  1079. class TestNestedMap_Int32MapEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestNestedMap_Int32MapEntry_DoNotUse,
  1080. ::google::protobuf::int32, ::google::protobuf::int32,
  1081. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1082. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1083. 0 > {
  1084. public:
  1085. typedef ::google::protobuf::internal::MapEntry<TestNestedMap_Int32MapEntry_DoNotUse,
  1086. ::google::protobuf::int32, ::google::protobuf::int32,
  1087. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1088. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1089. 0 > SuperType;
  1090. TestNestedMap_Int32MapEntry_DoNotUse();
  1091. TestNestedMap_Int32MapEntry_DoNotUse(::google::protobuf::Arena* arena);
  1092. void MergeFrom(const TestNestedMap_Int32MapEntry_DoNotUse& other);
  1093. static const TestNestedMap_Int32MapEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestNestedMap_Int32MapEntry_DoNotUse*>(&_TestNestedMap_Int32MapEntry_DoNotUse_default_instance_); }
  1094. void MergeFrom(const ::google::protobuf::Message& other) final;
  1095. ::google::protobuf::Metadata GetMetadata() const;
  1096. };
  1097. // -------------------------------------------------------------------
  1098. class TestNestedMap_Int64MapEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestNestedMap_Int64MapEntry_DoNotUse,
  1099. ::google::protobuf::int64, ::google::protobuf::int32,
  1100. ::google::protobuf::internal::WireFormatLite::TYPE_INT64,
  1101. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1102. 0 > {
  1103. public:
  1104. typedef ::google::protobuf::internal::MapEntry<TestNestedMap_Int64MapEntry_DoNotUse,
  1105. ::google::protobuf::int64, ::google::protobuf::int32,
  1106. ::google::protobuf::internal::WireFormatLite::TYPE_INT64,
  1107. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1108. 0 > SuperType;
  1109. TestNestedMap_Int64MapEntry_DoNotUse();
  1110. TestNestedMap_Int64MapEntry_DoNotUse(::google::protobuf::Arena* arena);
  1111. void MergeFrom(const TestNestedMap_Int64MapEntry_DoNotUse& other);
  1112. static const TestNestedMap_Int64MapEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestNestedMap_Int64MapEntry_DoNotUse*>(&_TestNestedMap_Int64MapEntry_DoNotUse_default_instance_); }
  1113. void MergeFrom(const ::google::protobuf::Message& other) final;
  1114. ::google::protobuf::Metadata GetMetadata() const;
  1115. };
  1116. // -------------------------------------------------------------------
  1117. class TestNestedMap_Uint32MapEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestNestedMap_Uint32MapEntry_DoNotUse,
  1118. ::google::protobuf::uint32, ::google::protobuf::int32,
  1119. ::google::protobuf::internal::WireFormatLite::TYPE_UINT32,
  1120. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1121. 0 > {
  1122. public:
  1123. typedef ::google::protobuf::internal::MapEntry<TestNestedMap_Uint32MapEntry_DoNotUse,
  1124. ::google::protobuf::uint32, ::google::protobuf::int32,
  1125. ::google::protobuf::internal::WireFormatLite::TYPE_UINT32,
  1126. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1127. 0 > SuperType;
  1128. TestNestedMap_Uint32MapEntry_DoNotUse();
  1129. TestNestedMap_Uint32MapEntry_DoNotUse(::google::protobuf::Arena* arena);
  1130. void MergeFrom(const TestNestedMap_Uint32MapEntry_DoNotUse& other);
  1131. static const TestNestedMap_Uint32MapEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestNestedMap_Uint32MapEntry_DoNotUse*>(&_TestNestedMap_Uint32MapEntry_DoNotUse_default_instance_); }
  1132. void MergeFrom(const ::google::protobuf::Message& other) final;
  1133. ::google::protobuf::Metadata GetMetadata() const;
  1134. };
  1135. // -------------------------------------------------------------------
  1136. class TestNestedMap_Uint64MapEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestNestedMap_Uint64MapEntry_DoNotUse,
  1137. ::google::protobuf::uint64, ::google::protobuf::int32,
  1138. ::google::protobuf::internal::WireFormatLite::TYPE_UINT64,
  1139. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1140. 0 > {
  1141. public:
  1142. typedef ::google::protobuf::internal::MapEntry<TestNestedMap_Uint64MapEntry_DoNotUse,
  1143. ::google::protobuf::uint64, ::google::protobuf::int32,
  1144. ::google::protobuf::internal::WireFormatLite::TYPE_UINT64,
  1145. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1146. 0 > SuperType;
  1147. TestNestedMap_Uint64MapEntry_DoNotUse();
  1148. TestNestedMap_Uint64MapEntry_DoNotUse(::google::protobuf::Arena* arena);
  1149. void MergeFrom(const TestNestedMap_Uint64MapEntry_DoNotUse& other);
  1150. static const TestNestedMap_Uint64MapEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestNestedMap_Uint64MapEntry_DoNotUse*>(&_TestNestedMap_Uint64MapEntry_DoNotUse_default_instance_); }
  1151. void MergeFrom(const ::google::protobuf::Message& other) final;
  1152. ::google::protobuf::Metadata GetMetadata() const;
  1153. };
  1154. // -------------------------------------------------------------------
  1155. class TestNestedMap_StringMapEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestNestedMap_StringMapEntry_DoNotUse,
  1156. ::std::string, ::google::protobuf::int32,
  1157. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  1158. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1159. 0 > {
  1160. public:
  1161. typedef ::google::protobuf::internal::MapEntry<TestNestedMap_StringMapEntry_DoNotUse,
  1162. ::std::string, ::google::protobuf::int32,
  1163. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  1164. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1165. 0 > SuperType;
  1166. TestNestedMap_StringMapEntry_DoNotUse();
  1167. TestNestedMap_StringMapEntry_DoNotUse(::google::protobuf::Arena* arena);
  1168. void MergeFrom(const TestNestedMap_StringMapEntry_DoNotUse& other);
  1169. static const TestNestedMap_StringMapEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestNestedMap_StringMapEntry_DoNotUse*>(&_TestNestedMap_StringMapEntry_DoNotUse_default_instance_); }
  1170. void MergeFrom(const ::google::protobuf::Message& other) final;
  1171. ::google::protobuf::Metadata GetMetadata() const;
  1172. };
  1173. // -------------------------------------------------------------------
  1174. class TestNestedMap_MapMapEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestNestedMap_MapMapEntry_DoNotUse,
  1175. ::std::string, ::proto3::TestNestedMap,
  1176. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  1177. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  1178. 0 > {
  1179. public:
  1180. typedef ::google::protobuf::internal::MapEntry<TestNestedMap_MapMapEntry_DoNotUse,
  1181. ::std::string, ::proto3::TestNestedMap,
  1182. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  1183. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  1184. 0 > SuperType;
  1185. TestNestedMap_MapMapEntry_DoNotUse();
  1186. TestNestedMap_MapMapEntry_DoNotUse(::google::protobuf::Arena* arena);
  1187. void MergeFrom(const TestNestedMap_MapMapEntry_DoNotUse& other);
  1188. static const TestNestedMap_MapMapEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestNestedMap_MapMapEntry_DoNotUse*>(&_TestNestedMap_MapMapEntry_DoNotUse_default_instance_); }
  1189. void MergeFrom(const ::google::protobuf::Message& other) final;
  1190. ::google::protobuf::Metadata GetMetadata() const;
  1191. };
  1192. // -------------------------------------------------------------------
  1193. class TestNestedMap : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:proto3.TestNestedMap) */ {
  1194. public:
  1195. TestNestedMap();
  1196. virtual ~TestNestedMap();
  1197. TestNestedMap(const TestNestedMap& from);
  1198. inline TestNestedMap& operator=(const TestNestedMap& from) {
  1199. CopyFrom(from);
  1200. return *this;
  1201. }
  1202. #if LANG_CXX11
  1203. TestNestedMap(TestNestedMap&& from) noexcept
  1204. : TestNestedMap() {
  1205. *this = ::std::move(from);
  1206. }
  1207. inline TestNestedMap& operator=(TestNestedMap&& from) noexcept {
  1208. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1209. if (this != &from) InternalSwap(&from);
  1210. } else {
  1211. CopyFrom(from);
  1212. }
  1213. return *this;
  1214. }
  1215. #endif
  1216. static const ::google::protobuf::Descriptor* descriptor();
  1217. static const TestNestedMap& default_instance();
  1218. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1219. static inline const TestNestedMap* internal_default_instance() {
  1220. return reinterpret_cast<const TestNestedMap*>(
  1221. &_TestNestedMap_default_instance_);
  1222. }
  1223. static constexpr int kIndexInFileMessages =
  1224. 17;
  1225. void Swap(TestNestedMap* other);
  1226. friend void swap(TestNestedMap& a, TestNestedMap& b) {
  1227. a.Swap(&b);
  1228. }
  1229. // implements Message ----------------------------------------------
  1230. inline TestNestedMap* New() const final {
  1231. return CreateMaybeMessage<TestNestedMap>(NULL);
  1232. }
  1233. TestNestedMap* New(::google::protobuf::Arena* arena) const final {
  1234. return CreateMaybeMessage<TestNestedMap>(arena);
  1235. }
  1236. void CopyFrom(const ::google::protobuf::Message& from) final;
  1237. void MergeFrom(const ::google::protobuf::Message& from) final;
  1238. void CopyFrom(const TestNestedMap& from);
  1239. void MergeFrom(const TestNestedMap& from);
  1240. void Clear() final;
  1241. bool IsInitialized() const final;
  1242. size_t ByteSizeLong() const final;
  1243. bool MergePartialFromCodedStream(
  1244. ::google::protobuf::io::CodedInputStream* input) final;
  1245. void SerializeWithCachedSizes(
  1246. ::google::protobuf::io::CodedOutputStream* output) const final;
  1247. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1248. bool deterministic, ::google::protobuf::uint8* target) const final;
  1249. int GetCachedSize() const final { return _cached_size_.Get(); }
  1250. private:
  1251. void SharedCtor();
  1252. void SharedDtor();
  1253. void SetCachedSize(int size) const final;
  1254. void InternalSwap(TestNestedMap* other);
  1255. private:
  1256. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1257. return NULL;
  1258. }
  1259. inline void* MaybeArenaPtr() const {
  1260. return NULL;
  1261. }
  1262. public:
  1263. ::google::protobuf::Metadata GetMetadata() const final;
  1264. // nested types ----------------------------------------------------
  1265. // accessors -------------------------------------------------------
  1266. // map<bool, int32> bool_map = 1;
  1267. int bool_map_size() const;
  1268. void clear_bool_map();
  1269. static const int kBoolMapFieldNumber = 1;
  1270. const ::google::protobuf::Map< bool, ::google::protobuf::int32 >&
  1271. bool_map() const;
  1272. ::google::protobuf::Map< bool, ::google::protobuf::int32 >*
  1273. mutable_bool_map();
  1274. // map<int32, int32> int32_map = 2;
  1275. int int32_map_size() const;
  1276. void clear_int32_map();
  1277. static const int kInt32MapFieldNumber = 2;
  1278. const ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >&
  1279. int32_map() const;
  1280. ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >*
  1281. mutable_int32_map();
  1282. // map<int64, int32> int64_map = 3;
  1283. int int64_map_size() const;
  1284. void clear_int64_map();
  1285. static const int kInt64MapFieldNumber = 3;
  1286. const ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int32 >&
  1287. int64_map() const;
  1288. ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int32 >*
  1289. mutable_int64_map();
  1290. // map<uint32, int32> uint32_map = 4;
  1291. int uint32_map_size() const;
  1292. void clear_uint32_map();
  1293. static const int kUint32MapFieldNumber = 4;
  1294. const ::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::int32 >&
  1295. uint32_map() const;
  1296. ::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::int32 >*
  1297. mutable_uint32_map();
  1298. // map<uint64, int32> uint64_map = 5;
  1299. int uint64_map_size() const;
  1300. void clear_uint64_map();
  1301. static const int kUint64MapFieldNumber = 5;
  1302. const ::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::int32 >&
  1303. uint64_map() const;
  1304. ::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::int32 >*
  1305. mutable_uint64_map();
  1306. // map<string, int32> string_map = 6;
  1307. int string_map_size() const;
  1308. void clear_string_map();
  1309. static const int kStringMapFieldNumber = 6;
  1310. const ::google::protobuf::Map< ::std::string, ::google::protobuf::int32 >&
  1311. string_map() const;
  1312. ::google::protobuf::Map< ::std::string, ::google::protobuf::int32 >*
  1313. mutable_string_map();
  1314. // map<string, .proto3.TestNestedMap> map_map = 7;
  1315. int map_map_size() const;
  1316. void clear_map_map();
  1317. static const int kMapMapFieldNumber = 7;
  1318. const ::google::protobuf::Map< ::std::string, ::proto3::TestNestedMap >&
  1319. map_map() const;
  1320. ::google::protobuf::Map< ::std::string, ::proto3::TestNestedMap >*
  1321. mutable_map_map();
  1322. // @@protoc_insertion_point(class_scope:proto3.TestNestedMap)
  1323. private:
  1324. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1325. ::google::protobuf::internal::MapField<
  1326. TestNestedMap_BoolMapEntry_DoNotUse,
  1327. bool, ::google::protobuf::int32,
  1328. ::google::protobuf::internal::WireFormatLite::TYPE_BOOL,
  1329. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1330. 0 > bool_map_;
  1331. ::google::protobuf::internal::MapField<
  1332. TestNestedMap_Int32MapEntry_DoNotUse,
  1333. ::google::protobuf::int32, ::google::protobuf::int32,
  1334. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1335. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1336. 0 > int32_map_;
  1337. ::google::protobuf::internal::MapField<
  1338. TestNestedMap_Int64MapEntry_DoNotUse,
  1339. ::google::protobuf::int64, ::google::protobuf::int32,
  1340. ::google::protobuf::internal::WireFormatLite::TYPE_INT64,
  1341. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1342. 0 > int64_map_;
  1343. ::google::protobuf::internal::MapField<
  1344. TestNestedMap_Uint32MapEntry_DoNotUse,
  1345. ::google::protobuf::uint32, ::google::protobuf::int32,
  1346. ::google::protobuf::internal::WireFormatLite::TYPE_UINT32,
  1347. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1348. 0 > uint32_map_;
  1349. ::google::protobuf::internal::MapField<
  1350. TestNestedMap_Uint64MapEntry_DoNotUse,
  1351. ::google::protobuf::uint64, ::google::protobuf::int32,
  1352. ::google::protobuf::internal::WireFormatLite::TYPE_UINT64,
  1353. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1354. 0 > uint64_map_;
  1355. ::google::protobuf::internal::MapField<
  1356. TestNestedMap_StringMapEntry_DoNotUse,
  1357. ::std::string, ::google::protobuf::int32,
  1358. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  1359. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1360. 0 > string_map_;
  1361. ::google::protobuf::internal::MapField<
  1362. TestNestedMap_MapMapEntry_DoNotUse,
  1363. ::std::string, ::proto3::TestNestedMap,
  1364. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  1365. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  1366. 0 > map_map_;
  1367. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1368. friend struct ::protobuf_google_2fprotobuf_2futil_2fjson_5fformat_5fproto3_2eproto::TableStruct;
  1369. };
  1370. // -------------------------------------------------------------------
  1371. class TestWrapper : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:proto3.TestWrapper) */ {
  1372. public:
  1373. TestWrapper();
  1374. virtual ~TestWrapper();
  1375. TestWrapper(const TestWrapper& from);
  1376. inline TestWrapper& operator=(const TestWrapper& from) {
  1377. CopyFrom(from);
  1378. return *this;
  1379. }
  1380. #if LANG_CXX11
  1381. TestWrapper(TestWrapper&& from) noexcept
  1382. : TestWrapper() {
  1383. *this = ::std::move(from);
  1384. }
  1385. inline TestWrapper& operator=(TestWrapper&& from) noexcept {
  1386. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1387. if (this != &from) InternalSwap(&from);
  1388. } else {
  1389. CopyFrom(from);
  1390. }
  1391. return *this;
  1392. }
  1393. #endif
  1394. static const ::google::protobuf::Descriptor* descriptor();
  1395. static const TestWrapper& default_instance();
  1396. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1397. static inline const TestWrapper* internal_default_instance() {
  1398. return reinterpret_cast<const TestWrapper*>(
  1399. &_TestWrapper_default_instance_);
  1400. }
  1401. static constexpr int kIndexInFileMessages =
  1402. 18;
  1403. void Swap(TestWrapper* other);
  1404. friend void swap(TestWrapper& a, TestWrapper& b) {
  1405. a.Swap(&b);
  1406. }
  1407. // implements Message ----------------------------------------------
  1408. inline TestWrapper* New() const final {
  1409. return CreateMaybeMessage<TestWrapper>(NULL);
  1410. }
  1411. TestWrapper* New(::google::protobuf::Arena* arena) const final {
  1412. return CreateMaybeMessage<TestWrapper>(arena);
  1413. }
  1414. void CopyFrom(const ::google::protobuf::Message& from) final;
  1415. void MergeFrom(const ::google::protobuf::Message& from) final;
  1416. void CopyFrom(const TestWrapper& from);
  1417. void MergeFrom(const TestWrapper& from);
  1418. void Clear() final;
  1419. bool IsInitialized() const final;
  1420. size_t ByteSizeLong() const final;
  1421. bool MergePartialFromCodedStream(
  1422. ::google::protobuf::io::CodedInputStream* input) final;
  1423. void SerializeWithCachedSizes(
  1424. ::google::protobuf::io::CodedOutputStream* output) const final;
  1425. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1426. bool deterministic, ::google::protobuf::uint8* target) const final;
  1427. int GetCachedSize() const final { return _cached_size_.Get(); }
  1428. private:
  1429. void SharedCtor();
  1430. void SharedDtor();
  1431. void SetCachedSize(int size) const final;
  1432. void InternalSwap(TestWrapper* other);
  1433. private:
  1434. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1435. return NULL;
  1436. }
  1437. inline void* MaybeArenaPtr() const {
  1438. return NULL;
  1439. }
  1440. public:
  1441. ::google::protobuf::Metadata GetMetadata() const final;
  1442. // nested types ----------------------------------------------------
  1443. // accessors -------------------------------------------------------
  1444. // repeated .google.protobuf.BoolValue repeated_bool_value = 11;
  1445. int repeated_bool_value_size() const;
  1446. void clear_repeated_bool_value();
  1447. static const int kRepeatedBoolValueFieldNumber = 11;
  1448. ::google::protobuf::BoolValue* mutable_repeated_bool_value(int index);
  1449. ::google::protobuf::RepeatedPtrField< ::google::protobuf::BoolValue >*
  1450. mutable_repeated_bool_value();
  1451. const ::google::protobuf::BoolValue& repeated_bool_value(int index) const;
  1452. ::google::protobuf::BoolValue* add_repeated_bool_value();
  1453. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::BoolValue >&
  1454. repeated_bool_value() const;
  1455. // repeated .google.protobuf.Int32Value repeated_int32_value = 12;
  1456. int repeated_int32_value_size() const;
  1457. void clear_repeated_int32_value();
  1458. static const int kRepeatedInt32ValueFieldNumber = 12;
  1459. ::google::protobuf::Int32Value* mutable_repeated_int32_value(int index);
  1460. ::google::protobuf::RepeatedPtrField< ::google::protobuf::Int32Value >*
  1461. mutable_repeated_int32_value();
  1462. const ::google::protobuf::Int32Value& repeated_int32_value(int index) const;
  1463. ::google::protobuf::Int32Value* add_repeated_int32_value();
  1464. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Int32Value >&
  1465. repeated_int32_value() const;
  1466. // repeated .google.protobuf.Int64Value repeated_int64_value = 13;
  1467. int repeated_int64_value_size() const;
  1468. void clear_repeated_int64_value();
  1469. static const int kRepeatedInt64ValueFieldNumber = 13;
  1470. ::google::protobuf::Int64Value* mutable_repeated_int64_value(int index);
  1471. ::google::protobuf::RepeatedPtrField< ::google::protobuf::Int64Value >*
  1472. mutable_repeated_int64_value();
  1473. const ::google::protobuf::Int64Value& repeated_int64_value(int index) const;
  1474. ::google::protobuf::Int64Value* add_repeated_int64_value();
  1475. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Int64Value >&
  1476. repeated_int64_value() const;
  1477. // repeated .google.protobuf.UInt32Value repeated_uint32_value = 14;
  1478. int repeated_uint32_value_size() const;
  1479. void clear_repeated_uint32_value();
  1480. static const int kRepeatedUint32ValueFieldNumber = 14;
  1481. ::google::protobuf::UInt32Value* mutable_repeated_uint32_value(int index);
  1482. ::google::protobuf::RepeatedPtrField< ::google::protobuf::UInt32Value >*
  1483. mutable_repeated_uint32_value();
  1484. const ::google::protobuf::UInt32Value& repeated_uint32_value(int index) const;
  1485. ::google::protobuf::UInt32Value* add_repeated_uint32_value();
  1486. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UInt32Value >&
  1487. repeated_uint32_value() const;
  1488. // repeated .google.protobuf.UInt64Value repeated_uint64_value = 15;
  1489. int repeated_uint64_value_size() const;
  1490. void clear_repeated_uint64_value();
  1491. static const int kRepeatedUint64ValueFieldNumber = 15;
  1492. ::google::protobuf::UInt64Value* mutable_repeated_uint64_value(int index);
  1493. ::google::protobuf::RepeatedPtrField< ::google::protobuf::UInt64Value >*
  1494. mutable_repeated_uint64_value();
  1495. const ::google::protobuf::UInt64Value& repeated_uint64_value(int index) const;
  1496. ::google::protobuf::UInt64Value* add_repeated_uint64_value();
  1497. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UInt64Value >&
  1498. repeated_uint64_value() const;
  1499. // repeated .google.protobuf.FloatValue repeated_float_value = 16;
  1500. int repeated_float_value_size() const;
  1501. void clear_repeated_float_value();
  1502. static const int kRepeatedFloatValueFieldNumber = 16;
  1503. ::google::protobuf::FloatValue* mutable_repeated_float_value(int index);
  1504. ::google::protobuf::RepeatedPtrField< ::google::protobuf::FloatValue >*
  1505. mutable_repeated_float_value();
  1506. const ::google::protobuf::FloatValue& repeated_float_value(int index) const;
  1507. ::google::protobuf::FloatValue* add_repeated_float_value();
  1508. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FloatValue >&
  1509. repeated_float_value() const;
  1510. // repeated .google.protobuf.DoubleValue repeated_double_value = 17;
  1511. int repeated_double_value_size() const;
  1512. void clear_repeated_double_value();
  1513. static const int kRepeatedDoubleValueFieldNumber = 17;
  1514. ::google::protobuf::DoubleValue* mutable_repeated_double_value(int index);
  1515. ::google::protobuf::RepeatedPtrField< ::google::protobuf::DoubleValue >*
  1516. mutable_repeated_double_value();
  1517. const ::google::protobuf::DoubleValue& repeated_double_value(int index) const;
  1518. ::google::protobuf::DoubleValue* add_repeated_double_value();
  1519. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DoubleValue >&
  1520. repeated_double_value() const;
  1521. // repeated .google.protobuf.StringValue repeated_string_value = 18;
  1522. int repeated_string_value_size() const;
  1523. void clear_repeated_string_value();
  1524. static const int kRepeatedStringValueFieldNumber = 18;
  1525. ::google::protobuf::StringValue* mutable_repeated_string_value(int index);
  1526. ::google::protobuf::RepeatedPtrField< ::google::protobuf::StringValue >*
  1527. mutable_repeated_string_value();
  1528. const ::google::protobuf::StringValue& repeated_string_value(int index) const;
  1529. ::google::protobuf::StringValue* add_repeated_string_value();
  1530. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::StringValue >&
  1531. repeated_string_value() const;
  1532. // repeated .google.protobuf.BytesValue repeated_bytes_value = 19;
  1533. int repeated_bytes_value_size() const;
  1534. void clear_repeated_bytes_value();
  1535. static const int kRepeatedBytesValueFieldNumber = 19;
  1536. ::google::protobuf::BytesValue* mutable_repeated_bytes_value(int index);
  1537. ::google::protobuf::RepeatedPtrField< ::google::protobuf::BytesValue >*
  1538. mutable_repeated_bytes_value();
  1539. const ::google::protobuf::BytesValue& repeated_bytes_value(int index) const;
  1540. ::google::protobuf::BytesValue* add_repeated_bytes_value();
  1541. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::BytesValue >&
  1542. repeated_bytes_value() const;
  1543. // .google.protobuf.BoolValue bool_value = 1;
  1544. bool has_bool_value() const;
  1545. void clear_bool_value();
  1546. static const int kBoolValueFieldNumber = 1;
  1547. private:
  1548. const ::google::protobuf::BoolValue& _internal_bool_value() const;
  1549. public:
  1550. const ::google::protobuf::BoolValue& bool_value() const;
  1551. ::google::protobuf::BoolValue* release_bool_value();
  1552. ::google::protobuf::BoolValue* mutable_bool_value();
  1553. void set_allocated_bool_value(::google::protobuf::BoolValue* bool_value);
  1554. // .google.protobuf.Int32Value int32_value = 2;
  1555. bool has_int32_value() const;
  1556. void clear_int32_value();
  1557. static const int kInt32ValueFieldNumber = 2;
  1558. private:
  1559. const ::google::protobuf::Int32Value& _internal_int32_value() const;
  1560. public:
  1561. const ::google::protobuf::Int32Value& int32_value() const;
  1562. ::google::protobuf::Int32Value* release_int32_value();
  1563. ::google::protobuf::Int32Value* mutable_int32_value();
  1564. void set_allocated_int32_value(::google::protobuf::Int32Value* int32_value);
  1565. // .google.protobuf.Int64Value int64_value = 3;
  1566. bool has_int64_value() const;
  1567. void clear_int64_value();
  1568. static const int kInt64ValueFieldNumber = 3;
  1569. private:
  1570. const ::google::protobuf::Int64Value& _internal_int64_value() const;
  1571. public:
  1572. const ::google::protobuf::Int64Value& int64_value() const;
  1573. ::google::protobuf::Int64Value* release_int64_value();
  1574. ::google::protobuf::Int64Value* mutable_int64_value();
  1575. void set_allocated_int64_value(::google::protobuf::Int64Value* int64_value);
  1576. // .google.protobuf.UInt32Value uint32_value = 4;
  1577. bool has_uint32_value() const;
  1578. void clear_uint32_value();
  1579. static const int kUint32ValueFieldNumber = 4;
  1580. private:
  1581. const ::google::protobuf::UInt32Value& _internal_uint32_value() const;
  1582. public:
  1583. const ::google::protobuf::UInt32Value& uint32_value() const;
  1584. ::google::protobuf::UInt32Value* release_uint32_value();
  1585. ::google::protobuf::UInt32Value* mutable_uint32_value();
  1586. void set_allocated_uint32_value(::google::protobuf::UInt32Value* uint32_value);
  1587. // .google.protobuf.UInt64Value uint64_value = 5;
  1588. bool has_uint64_value() const;
  1589. void clear_uint64_value();
  1590. static const int kUint64ValueFieldNumber = 5;
  1591. private:
  1592. const ::google::protobuf::UInt64Value& _internal_uint64_value() const;
  1593. public:
  1594. const ::google::protobuf::UInt64Value& uint64_value() const;
  1595. ::google::protobuf::UInt64Value* release_uint64_value();
  1596. ::google::protobuf::UInt64Value* mutable_uint64_value();
  1597. void set_allocated_uint64_value(::google::protobuf::UInt64Value* uint64_value);
  1598. // .google.protobuf.FloatValue float_value = 6;
  1599. bool has_float_value() const;
  1600. void clear_float_value();
  1601. static const int kFloatValueFieldNumber = 6;
  1602. private:
  1603. const ::google::protobuf::FloatValue& _internal_float_value() const;
  1604. public:
  1605. const ::google::protobuf::FloatValue& float_value() const;
  1606. ::google::protobuf::FloatValue* release_float_value();
  1607. ::google::protobuf::FloatValue* mutable_float_value();
  1608. void set_allocated_float_value(::google::protobuf::FloatValue* float_value);
  1609. // .google.protobuf.DoubleValue double_value = 7;
  1610. bool has_double_value() const;
  1611. void clear_double_value();
  1612. static const int kDoubleValueFieldNumber = 7;
  1613. private:
  1614. const ::google::protobuf::DoubleValue& _internal_double_value() const;
  1615. public:
  1616. const ::google::protobuf::DoubleValue& double_value() const;
  1617. ::google::protobuf::DoubleValue* release_double_value();
  1618. ::google::protobuf::DoubleValue* mutable_double_value();
  1619. void set_allocated_double_value(::google::protobuf::DoubleValue* double_value);
  1620. // .google.protobuf.StringValue string_value = 8;
  1621. bool has_string_value() const;
  1622. void clear_string_value();
  1623. static const int kStringValueFieldNumber = 8;
  1624. private:
  1625. const ::google::protobuf::StringValue& _internal_string_value() const;
  1626. public:
  1627. const ::google::protobuf::StringValue& string_value() const;
  1628. ::google::protobuf::StringValue* release_string_value();
  1629. ::google::protobuf::StringValue* mutable_string_value();
  1630. void set_allocated_string_value(::google::protobuf::StringValue* string_value);
  1631. // .google.protobuf.BytesValue bytes_value = 9;
  1632. bool has_bytes_value() const;
  1633. void clear_bytes_value();
  1634. static const int kBytesValueFieldNumber = 9;
  1635. private:
  1636. const ::google::protobuf::BytesValue& _internal_bytes_value() const;
  1637. public:
  1638. const ::google::protobuf::BytesValue& bytes_value() const;
  1639. ::google::protobuf::BytesValue* release_bytes_value();
  1640. ::google::protobuf::BytesValue* mutable_bytes_value();
  1641. void set_allocated_bytes_value(::google::protobuf::BytesValue* bytes_value);
  1642. // @@protoc_insertion_point(class_scope:proto3.TestWrapper)
  1643. private:
  1644. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1645. ::google::protobuf::RepeatedPtrField< ::google::protobuf::BoolValue > repeated_bool_value_;
  1646. ::google::protobuf::RepeatedPtrField< ::google::protobuf::Int32Value > repeated_int32_value_;
  1647. ::google::protobuf::RepeatedPtrField< ::google::protobuf::Int64Value > repeated_int64_value_;
  1648. ::google::protobuf::RepeatedPtrField< ::google::protobuf::UInt32Value > repeated_uint32_value_;
  1649. ::google::protobuf::RepeatedPtrField< ::google::protobuf::UInt64Value > repeated_uint64_value_;
  1650. ::google::protobuf::RepeatedPtrField< ::google::protobuf::FloatValue > repeated_float_value_;
  1651. ::google::protobuf::RepeatedPtrField< ::google::protobuf::DoubleValue > repeated_double_value_;
  1652. ::google::protobuf::RepeatedPtrField< ::google::protobuf::StringValue > repeated_string_value_;
  1653. ::google::protobuf::RepeatedPtrField< ::google::protobuf::BytesValue > repeated_bytes_value_;
  1654. ::google::protobuf::BoolValue* bool_value_;
  1655. ::google::protobuf::Int32Value* int32_value_;
  1656. ::google::protobuf::Int64Value* int64_value_;
  1657. ::google::protobuf::UInt32Value* uint32_value_;
  1658. ::google::protobuf::UInt64Value* uint64_value_;
  1659. ::google::protobuf::FloatValue* float_value_;
  1660. ::google::protobuf::DoubleValue* double_value_;
  1661. ::google::protobuf::StringValue* string_value_;
  1662. ::google::protobuf::BytesValue* bytes_value_;
  1663. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1664. friend struct ::protobuf_google_2fprotobuf_2futil_2fjson_5fformat_5fproto3_2eproto::TableStruct;
  1665. };
  1666. // -------------------------------------------------------------------
  1667. class TestTimestamp : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:proto3.TestTimestamp) */ {
  1668. public:
  1669. TestTimestamp();
  1670. virtual ~TestTimestamp();
  1671. TestTimestamp(const TestTimestamp& from);
  1672. inline TestTimestamp& operator=(const TestTimestamp& from) {
  1673. CopyFrom(from);
  1674. return *this;
  1675. }
  1676. #if LANG_CXX11
  1677. TestTimestamp(TestTimestamp&& from) noexcept
  1678. : TestTimestamp() {
  1679. *this = ::std::move(from);
  1680. }
  1681. inline TestTimestamp& operator=(TestTimestamp&& from) noexcept {
  1682. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1683. if (this != &from) InternalSwap(&from);
  1684. } else {
  1685. CopyFrom(from);
  1686. }
  1687. return *this;
  1688. }
  1689. #endif
  1690. static const ::google::protobuf::Descriptor* descriptor();
  1691. static const TestTimestamp& default_instance();
  1692. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1693. static inline const TestTimestamp* internal_default_instance() {
  1694. return reinterpret_cast<const TestTimestamp*>(
  1695. &_TestTimestamp_default_instance_);
  1696. }
  1697. static constexpr int kIndexInFileMessages =
  1698. 19;
  1699. void Swap(TestTimestamp* other);
  1700. friend void swap(TestTimestamp& a, TestTimestamp& b) {
  1701. a.Swap(&b);
  1702. }
  1703. // implements Message ----------------------------------------------
  1704. inline TestTimestamp* New() const final {
  1705. return CreateMaybeMessage<TestTimestamp>(NULL);
  1706. }
  1707. TestTimestamp* New(::google::protobuf::Arena* arena) const final {
  1708. return CreateMaybeMessage<TestTimestamp>(arena);
  1709. }
  1710. void CopyFrom(const ::google::protobuf::Message& from) final;
  1711. void MergeFrom(const ::google::protobuf::Message& from) final;
  1712. void CopyFrom(const TestTimestamp& from);
  1713. void MergeFrom(const TestTimestamp& from);
  1714. void Clear() final;
  1715. bool IsInitialized() const final;
  1716. size_t ByteSizeLong() const final;
  1717. bool MergePartialFromCodedStream(
  1718. ::google::protobuf::io::CodedInputStream* input) final;
  1719. void SerializeWithCachedSizes(
  1720. ::google::protobuf::io::CodedOutputStream* output) const final;
  1721. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1722. bool deterministic, ::google::protobuf::uint8* target) const final;
  1723. int GetCachedSize() const final { return _cached_size_.Get(); }
  1724. private:
  1725. void SharedCtor();
  1726. void SharedDtor();
  1727. void SetCachedSize(int size) const final;
  1728. void InternalSwap(TestTimestamp* other);
  1729. private:
  1730. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1731. return NULL;
  1732. }
  1733. inline void* MaybeArenaPtr() const {
  1734. return NULL;
  1735. }
  1736. public:
  1737. ::google::protobuf::Metadata GetMetadata() const final;
  1738. // nested types ----------------------------------------------------
  1739. // accessors -------------------------------------------------------
  1740. // repeated .google.protobuf.Timestamp repeated_value = 2;
  1741. int repeated_value_size() const;
  1742. void clear_repeated_value();
  1743. static const int kRepeatedValueFieldNumber = 2;
  1744. ::google::protobuf::Timestamp* mutable_repeated_value(int index);
  1745. ::google::protobuf::RepeatedPtrField< ::google::protobuf::Timestamp >*
  1746. mutable_repeated_value();
  1747. const ::google::protobuf::Timestamp& repeated_value(int index) const;
  1748. ::google::protobuf::Timestamp* add_repeated_value();
  1749. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Timestamp >&
  1750. repeated_value() const;
  1751. // .google.protobuf.Timestamp value = 1;
  1752. bool has_value() const;
  1753. void clear_value();
  1754. static const int kValueFieldNumber = 1;
  1755. private:
  1756. const ::google::protobuf::Timestamp& _internal_value() const;
  1757. public:
  1758. const ::google::protobuf::Timestamp& value() const;
  1759. ::google::protobuf::Timestamp* release_value();
  1760. ::google::protobuf::Timestamp* mutable_value();
  1761. void set_allocated_value(::google::protobuf::Timestamp* value);
  1762. // @@protoc_insertion_point(class_scope:proto3.TestTimestamp)
  1763. private:
  1764. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1765. ::google::protobuf::RepeatedPtrField< ::google::protobuf::Timestamp > repeated_value_;
  1766. ::google::protobuf::Timestamp* value_;
  1767. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1768. friend struct ::protobuf_google_2fprotobuf_2futil_2fjson_5fformat_5fproto3_2eproto::TableStruct;
  1769. };
  1770. // -------------------------------------------------------------------
  1771. class TestDuration : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:proto3.TestDuration) */ {
  1772. public:
  1773. TestDuration();
  1774. virtual ~TestDuration();
  1775. TestDuration(const TestDuration& from);
  1776. inline TestDuration& operator=(const TestDuration& from) {
  1777. CopyFrom(from);
  1778. return *this;
  1779. }
  1780. #if LANG_CXX11
  1781. TestDuration(TestDuration&& from) noexcept
  1782. : TestDuration() {
  1783. *this = ::std::move(from);
  1784. }
  1785. inline TestDuration& operator=(TestDuration&& from) noexcept {
  1786. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1787. if (this != &from) InternalSwap(&from);
  1788. } else {
  1789. CopyFrom(from);
  1790. }
  1791. return *this;
  1792. }
  1793. #endif
  1794. static const ::google::protobuf::Descriptor* descriptor();
  1795. static const TestDuration& default_instance();
  1796. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1797. static inline const TestDuration* internal_default_instance() {
  1798. return reinterpret_cast<const TestDuration*>(
  1799. &_TestDuration_default_instance_);
  1800. }
  1801. static constexpr int kIndexInFileMessages =
  1802. 20;
  1803. void Swap(TestDuration* other);
  1804. friend void swap(TestDuration& a, TestDuration& b) {
  1805. a.Swap(&b);
  1806. }
  1807. // implements Message ----------------------------------------------
  1808. inline TestDuration* New() const final {
  1809. return CreateMaybeMessage<TestDuration>(NULL);
  1810. }
  1811. TestDuration* New(::google::protobuf::Arena* arena) const final {
  1812. return CreateMaybeMessage<TestDuration>(arena);
  1813. }
  1814. void CopyFrom(const ::google::protobuf::Message& from) final;
  1815. void MergeFrom(const ::google::protobuf::Message& from) final;
  1816. void CopyFrom(const TestDuration& from);
  1817. void MergeFrom(const TestDuration& from);
  1818. void Clear() final;
  1819. bool IsInitialized() const final;
  1820. size_t ByteSizeLong() const final;
  1821. bool MergePartialFromCodedStream(
  1822. ::google::protobuf::io::CodedInputStream* input) final;
  1823. void SerializeWithCachedSizes(
  1824. ::google::protobuf::io::CodedOutputStream* output) const final;
  1825. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1826. bool deterministic, ::google::protobuf::uint8* target) const final;
  1827. int GetCachedSize() const final { return _cached_size_.Get(); }
  1828. private:
  1829. void SharedCtor();
  1830. void SharedDtor();
  1831. void SetCachedSize(int size) const final;
  1832. void InternalSwap(TestDuration* other);
  1833. private:
  1834. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1835. return NULL;
  1836. }
  1837. inline void* MaybeArenaPtr() const {
  1838. return NULL;
  1839. }
  1840. public:
  1841. ::google::protobuf::Metadata GetMetadata() const final;
  1842. // nested types ----------------------------------------------------
  1843. // accessors -------------------------------------------------------
  1844. // repeated .google.protobuf.Duration repeated_value = 2;
  1845. int repeated_value_size() const;
  1846. void clear_repeated_value();
  1847. static const int kRepeatedValueFieldNumber = 2;
  1848. ::google::protobuf::Duration* mutable_repeated_value(int index);
  1849. ::google::protobuf::RepeatedPtrField< ::google::protobuf::Duration >*
  1850. mutable_repeated_value();
  1851. const ::google::protobuf::Duration& repeated_value(int index) const;
  1852. ::google::protobuf::Duration* add_repeated_value();
  1853. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Duration >&
  1854. repeated_value() const;
  1855. // .google.protobuf.Duration value = 1;
  1856. bool has_value() const;
  1857. void clear_value();
  1858. static const int kValueFieldNumber = 1;
  1859. private:
  1860. const ::google::protobuf::Duration& _internal_value() const;
  1861. public:
  1862. const ::google::protobuf::Duration& value() const;
  1863. ::google::protobuf::Duration* release_value();
  1864. ::google::protobuf::Duration* mutable_value();
  1865. void set_allocated_value(::google::protobuf::Duration* value);
  1866. // @@protoc_insertion_point(class_scope:proto3.TestDuration)
  1867. private:
  1868. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1869. ::google::protobuf::RepeatedPtrField< ::google::protobuf::Duration > repeated_value_;
  1870. ::google::protobuf::Duration* value_;
  1871. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1872. friend struct ::protobuf_google_2fprotobuf_2futil_2fjson_5fformat_5fproto3_2eproto::TableStruct;
  1873. };
  1874. // -------------------------------------------------------------------
  1875. class TestFieldMask : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:proto3.TestFieldMask) */ {
  1876. public:
  1877. TestFieldMask();
  1878. virtual ~TestFieldMask();
  1879. TestFieldMask(const TestFieldMask& from);
  1880. inline TestFieldMask& operator=(const TestFieldMask& from) {
  1881. CopyFrom(from);
  1882. return *this;
  1883. }
  1884. #if LANG_CXX11
  1885. TestFieldMask(TestFieldMask&& from) noexcept
  1886. : TestFieldMask() {
  1887. *this = ::std::move(from);
  1888. }
  1889. inline TestFieldMask& operator=(TestFieldMask&& from) noexcept {
  1890. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1891. if (this != &from) InternalSwap(&from);
  1892. } else {
  1893. CopyFrom(from);
  1894. }
  1895. return *this;
  1896. }
  1897. #endif
  1898. static const ::google::protobuf::Descriptor* descriptor();
  1899. static const TestFieldMask& default_instance();
  1900. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1901. static inline const TestFieldMask* internal_default_instance() {
  1902. return reinterpret_cast<const TestFieldMask*>(
  1903. &_TestFieldMask_default_instance_);
  1904. }
  1905. static constexpr int kIndexInFileMessages =
  1906. 21;
  1907. void Swap(TestFieldMask* other);
  1908. friend void swap(TestFieldMask& a, TestFieldMask& b) {
  1909. a.Swap(&b);
  1910. }
  1911. // implements Message ----------------------------------------------
  1912. inline TestFieldMask* New() const final {
  1913. return CreateMaybeMessage<TestFieldMask>(NULL);
  1914. }
  1915. TestFieldMask* New(::google::protobuf::Arena* arena) const final {
  1916. return CreateMaybeMessage<TestFieldMask>(arena);
  1917. }
  1918. void CopyFrom(const ::google::protobuf::Message& from) final;
  1919. void MergeFrom(const ::google::protobuf::Message& from) final;
  1920. void CopyFrom(const TestFieldMask& from);
  1921. void MergeFrom(const TestFieldMask& from);
  1922. void Clear() final;
  1923. bool IsInitialized() const final;
  1924. size_t ByteSizeLong() const final;
  1925. bool MergePartialFromCodedStream(
  1926. ::google::protobuf::io::CodedInputStream* input) final;
  1927. void SerializeWithCachedSizes(
  1928. ::google::protobuf::io::CodedOutputStream* output) const final;
  1929. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1930. bool deterministic, ::google::protobuf::uint8* target) const final;
  1931. int GetCachedSize() const final { return _cached_size_.Get(); }
  1932. private:
  1933. void SharedCtor();
  1934. void SharedDtor();
  1935. void SetCachedSize(int size) const final;
  1936. void InternalSwap(TestFieldMask* other);
  1937. private:
  1938. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1939. return NULL;
  1940. }
  1941. inline void* MaybeArenaPtr() const {
  1942. return NULL;
  1943. }
  1944. public:
  1945. ::google::protobuf::Metadata GetMetadata() const final;
  1946. // nested types ----------------------------------------------------
  1947. // accessors -------------------------------------------------------
  1948. // .google.protobuf.FieldMask value = 1;
  1949. bool has_value() const;
  1950. void clear_value();
  1951. static const int kValueFieldNumber = 1;
  1952. private:
  1953. const ::google::protobuf::FieldMask& _internal_value() const;
  1954. public:
  1955. const ::google::protobuf::FieldMask& value() const;
  1956. ::google::protobuf::FieldMask* release_value();
  1957. ::google::protobuf::FieldMask* mutable_value();
  1958. void set_allocated_value(::google::protobuf::FieldMask* value);
  1959. // @@protoc_insertion_point(class_scope:proto3.TestFieldMask)
  1960. private:
  1961. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1962. ::google::protobuf::FieldMask* value_;
  1963. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1964. friend struct ::protobuf_google_2fprotobuf_2futil_2fjson_5fformat_5fproto3_2eproto::TableStruct;
  1965. };
  1966. // -------------------------------------------------------------------
  1967. class TestStruct : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:proto3.TestStruct) */ {
  1968. public:
  1969. TestStruct();
  1970. virtual ~TestStruct();
  1971. TestStruct(const TestStruct& from);
  1972. inline TestStruct& operator=(const TestStruct& from) {
  1973. CopyFrom(from);
  1974. return *this;
  1975. }
  1976. #if LANG_CXX11
  1977. TestStruct(TestStruct&& from) noexcept
  1978. : TestStruct() {
  1979. *this = ::std::move(from);
  1980. }
  1981. inline TestStruct& operator=(TestStruct&& from) noexcept {
  1982. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1983. if (this != &from) InternalSwap(&from);
  1984. } else {
  1985. CopyFrom(from);
  1986. }
  1987. return *this;
  1988. }
  1989. #endif
  1990. static const ::google::protobuf::Descriptor* descriptor();
  1991. static const TestStruct& default_instance();
  1992. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1993. static inline const TestStruct* internal_default_instance() {
  1994. return reinterpret_cast<const TestStruct*>(
  1995. &_TestStruct_default_instance_);
  1996. }
  1997. static constexpr int kIndexInFileMessages =
  1998. 22;
  1999. void Swap(TestStruct* other);
  2000. friend void swap(TestStruct& a, TestStruct& b) {
  2001. a.Swap(&b);
  2002. }
  2003. // implements Message ----------------------------------------------
  2004. inline TestStruct* New() const final {
  2005. return CreateMaybeMessage<TestStruct>(NULL);
  2006. }
  2007. TestStruct* New(::google::protobuf::Arena* arena) const final {
  2008. return CreateMaybeMessage<TestStruct>(arena);
  2009. }
  2010. void CopyFrom(const ::google::protobuf::Message& from) final;
  2011. void MergeFrom(const ::google::protobuf::Message& from) final;
  2012. void CopyFrom(const TestStruct& from);
  2013. void MergeFrom(const TestStruct& from);
  2014. void Clear() final;
  2015. bool IsInitialized() const final;
  2016. size_t ByteSizeLong() const final;
  2017. bool MergePartialFromCodedStream(
  2018. ::google::protobuf::io::CodedInputStream* input) final;
  2019. void SerializeWithCachedSizes(
  2020. ::google::protobuf::io::CodedOutputStream* output) const final;
  2021. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  2022. bool deterministic, ::google::protobuf::uint8* target) const final;
  2023. int GetCachedSize() const final { return _cached_size_.Get(); }
  2024. private:
  2025. void SharedCtor();
  2026. void SharedDtor();
  2027. void SetCachedSize(int size) const final;
  2028. void InternalSwap(TestStruct* other);
  2029. private:
  2030. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  2031. return NULL;
  2032. }
  2033. inline void* MaybeArenaPtr() const {
  2034. return NULL;
  2035. }
  2036. public:
  2037. ::google::protobuf::Metadata GetMetadata() const final;
  2038. // nested types ----------------------------------------------------
  2039. // accessors -------------------------------------------------------
  2040. // repeated .google.protobuf.Struct repeated_value = 2;
  2041. int repeated_value_size() const;
  2042. void clear_repeated_value();
  2043. static const int kRepeatedValueFieldNumber = 2;
  2044. ::google::protobuf::Struct* mutable_repeated_value(int index);
  2045. ::google::protobuf::RepeatedPtrField< ::google::protobuf::Struct >*
  2046. mutable_repeated_value();
  2047. const ::google::protobuf::Struct& repeated_value(int index) const;
  2048. ::google::protobuf::Struct* add_repeated_value();
  2049. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Struct >&
  2050. repeated_value() const;
  2051. // .google.protobuf.Struct value = 1;
  2052. bool has_value() const;
  2053. void clear_value();
  2054. static const int kValueFieldNumber = 1;
  2055. private:
  2056. const ::google::protobuf::Struct& _internal_value() const;
  2057. public:
  2058. const ::google::protobuf::Struct& value() const;
  2059. ::google::protobuf::Struct* release_value();
  2060. ::google::protobuf::Struct* mutable_value();
  2061. void set_allocated_value(::google::protobuf::Struct* value);
  2062. // @@protoc_insertion_point(class_scope:proto3.TestStruct)
  2063. private:
  2064. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  2065. ::google::protobuf::RepeatedPtrField< ::google::protobuf::Struct > repeated_value_;
  2066. ::google::protobuf::Struct* value_;
  2067. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2068. friend struct ::protobuf_google_2fprotobuf_2futil_2fjson_5fformat_5fproto3_2eproto::TableStruct;
  2069. };
  2070. // -------------------------------------------------------------------
  2071. class TestAny : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:proto3.TestAny) */ {
  2072. public:
  2073. TestAny();
  2074. virtual ~TestAny();
  2075. TestAny(const TestAny& from);
  2076. inline TestAny& operator=(const TestAny& from) {
  2077. CopyFrom(from);
  2078. return *this;
  2079. }
  2080. #if LANG_CXX11
  2081. TestAny(TestAny&& from) noexcept
  2082. : TestAny() {
  2083. *this = ::std::move(from);
  2084. }
  2085. inline TestAny& operator=(TestAny&& from) noexcept {
  2086. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2087. if (this != &from) InternalSwap(&from);
  2088. } else {
  2089. CopyFrom(from);
  2090. }
  2091. return *this;
  2092. }
  2093. #endif
  2094. static const ::google::protobuf::Descriptor* descriptor();
  2095. static const TestAny& default_instance();
  2096. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2097. static inline const TestAny* internal_default_instance() {
  2098. return reinterpret_cast<const TestAny*>(
  2099. &_TestAny_default_instance_);
  2100. }
  2101. static constexpr int kIndexInFileMessages =
  2102. 23;
  2103. void Swap(TestAny* other);
  2104. friend void swap(TestAny& a, TestAny& b) {
  2105. a.Swap(&b);
  2106. }
  2107. // implements Message ----------------------------------------------
  2108. inline TestAny* New() const final {
  2109. return CreateMaybeMessage<TestAny>(NULL);
  2110. }
  2111. TestAny* New(::google::protobuf::Arena* arena) const final {
  2112. return CreateMaybeMessage<TestAny>(arena);
  2113. }
  2114. void CopyFrom(const ::google::protobuf::Message& from) final;
  2115. void MergeFrom(const ::google::protobuf::Message& from) final;
  2116. void CopyFrom(const TestAny& from);
  2117. void MergeFrom(const TestAny& from);
  2118. void Clear() final;
  2119. bool IsInitialized() const final;
  2120. size_t ByteSizeLong() const final;
  2121. bool MergePartialFromCodedStream(
  2122. ::google::protobuf::io::CodedInputStream* input) final;
  2123. void SerializeWithCachedSizes(
  2124. ::google::protobuf::io::CodedOutputStream* output) const final;
  2125. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  2126. bool deterministic, ::google::protobuf::uint8* target) const final;
  2127. int GetCachedSize() const final { return _cached_size_.Get(); }
  2128. private:
  2129. void SharedCtor();
  2130. void SharedDtor();
  2131. void SetCachedSize(int size) const final;
  2132. void InternalSwap(TestAny* other);
  2133. private:
  2134. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  2135. return NULL;
  2136. }
  2137. inline void* MaybeArenaPtr() const {
  2138. return NULL;
  2139. }
  2140. public:
  2141. ::google::protobuf::Metadata GetMetadata() const final;
  2142. // nested types ----------------------------------------------------
  2143. // accessors -------------------------------------------------------
  2144. // repeated .google.protobuf.Any repeated_value = 2;
  2145. int repeated_value_size() const;
  2146. void clear_repeated_value();
  2147. static const int kRepeatedValueFieldNumber = 2;
  2148. ::google::protobuf::Any* mutable_repeated_value(int index);
  2149. ::google::protobuf::RepeatedPtrField< ::google::protobuf::Any >*
  2150. mutable_repeated_value();
  2151. const ::google::protobuf::Any& repeated_value(int index) const;
  2152. ::google::protobuf::Any* add_repeated_value();
  2153. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Any >&
  2154. repeated_value() const;
  2155. // .google.protobuf.Any value = 1;
  2156. bool has_value() const;
  2157. void clear_value();
  2158. static const int kValueFieldNumber = 1;
  2159. private:
  2160. const ::google::protobuf::Any& _internal_value() const;
  2161. public:
  2162. const ::google::protobuf::Any& value() const;
  2163. ::google::protobuf::Any* release_value();
  2164. ::google::protobuf::Any* mutable_value();
  2165. void set_allocated_value(::google::protobuf::Any* value);
  2166. // @@protoc_insertion_point(class_scope:proto3.TestAny)
  2167. private:
  2168. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  2169. ::google::protobuf::RepeatedPtrField< ::google::protobuf::Any > repeated_value_;
  2170. ::google::protobuf::Any* value_;
  2171. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2172. friend struct ::protobuf_google_2fprotobuf_2futil_2fjson_5fformat_5fproto3_2eproto::TableStruct;
  2173. };
  2174. // -------------------------------------------------------------------
  2175. class TestValue : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:proto3.TestValue) */ {
  2176. public:
  2177. TestValue();
  2178. virtual ~TestValue();
  2179. TestValue(const TestValue& from);
  2180. inline TestValue& operator=(const TestValue& from) {
  2181. CopyFrom(from);
  2182. return *this;
  2183. }
  2184. #if LANG_CXX11
  2185. TestValue(TestValue&& from) noexcept
  2186. : TestValue() {
  2187. *this = ::std::move(from);
  2188. }
  2189. inline TestValue& operator=(TestValue&& from) noexcept {
  2190. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2191. if (this != &from) InternalSwap(&from);
  2192. } else {
  2193. CopyFrom(from);
  2194. }
  2195. return *this;
  2196. }
  2197. #endif
  2198. static const ::google::protobuf::Descriptor* descriptor();
  2199. static const TestValue& default_instance();
  2200. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2201. static inline const TestValue* internal_default_instance() {
  2202. return reinterpret_cast<const TestValue*>(
  2203. &_TestValue_default_instance_);
  2204. }
  2205. static constexpr int kIndexInFileMessages =
  2206. 24;
  2207. void Swap(TestValue* other);
  2208. friend void swap(TestValue& a, TestValue& b) {
  2209. a.Swap(&b);
  2210. }
  2211. // implements Message ----------------------------------------------
  2212. inline TestValue* New() const final {
  2213. return CreateMaybeMessage<TestValue>(NULL);
  2214. }
  2215. TestValue* New(::google::protobuf::Arena* arena) const final {
  2216. return CreateMaybeMessage<TestValue>(arena);
  2217. }
  2218. void CopyFrom(const ::google::protobuf::Message& from) final;
  2219. void MergeFrom(const ::google::protobuf::Message& from) final;
  2220. void CopyFrom(const TestValue& from);
  2221. void MergeFrom(const TestValue& from);
  2222. void Clear() final;
  2223. bool IsInitialized() const final;
  2224. size_t ByteSizeLong() const final;
  2225. bool MergePartialFromCodedStream(
  2226. ::google::protobuf::io::CodedInputStream* input) final;
  2227. void SerializeWithCachedSizes(
  2228. ::google::protobuf::io::CodedOutputStream* output) const final;
  2229. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  2230. bool deterministic, ::google::protobuf::uint8* target) const final;
  2231. int GetCachedSize() const final { return _cached_size_.Get(); }
  2232. private:
  2233. void SharedCtor();
  2234. void SharedDtor();
  2235. void SetCachedSize(int size) const final;
  2236. void InternalSwap(TestValue* other);
  2237. private:
  2238. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  2239. return NULL;
  2240. }
  2241. inline void* MaybeArenaPtr() const {
  2242. return NULL;
  2243. }
  2244. public:
  2245. ::google::protobuf::Metadata GetMetadata() const final;
  2246. // nested types ----------------------------------------------------
  2247. // accessors -------------------------------------------------------
  2248. // repeated .google.protobuf.Value repeated_value = 2;
  2249. int repeated_value_size() const;
  2250. void clear_repeated_value();
  2251. static const int kRepeatedValueFieldNumber = 2;
  2252. ::google::protobuf::Value* mutable_repeated_value(int index);
  2253. ::google::protobuf::RepeatedPtrField< ::google::protobuf::Value >*
  2254. mutable_repeated_value();
  2255. const ::google::protobuf::Value& repeated_value(int index) const;
  2256. ::google::protobuf::Value* add_repeated_value();
  2257. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Value >&
  2258. repeated_value() const;
  2259. // .google.protobuf.Value value = 1;
  2260. bool has_value() const;
  2261. void clear_value();
  2262. static const int kValueFieldNumber = 1;
  2263. private:
  2264. const ::google::protobuf::Value& _internal_value() const;
  2265. public:
  2266. const ::google::protobuf::Value& value() const;
  2267. ::google::protobuf::Value* release_value();
  2268. ::google::protobuf::Value* mutable_value();
  2269. void set_allocated_value(::google::protobuf::Value* value);
  2270. // @@protoc_insertion_point(class_scope:proto3.TestValue)
  2271. private:
  2272. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  2273. ::google::protobuf::RepeatedPtrField< ::google::protobuf::Value > repeated_value_;
  2274. ::google::protobuf::Value* value_;
  2275. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2276. friend struct ::protobuf_google_2fprotobuf_2futil_2fjson_5fformat_5fproto3_2eproto::TableStruct;
  2277. };
  2278. // -------------------------------------------------------------------
  2279. class TestListValue : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:proto3.TestListValue) */ {
  2280. public:
  2281. TestListValue();
  2282. virtual ~TestListValue();
  2283. TestListValue(const TestListValue& from);
  2284. inline TestListValue& operator=(const TestListValue& from) {
  2285. CopyFrom(from);
  2286. return *this;
  2287. }
  2288. #if LANG_CXX11
  2289. TestListValue(TestListValue&& from) noexcept
  2290. : TestListValue() {
  2291. *this = ::std::move(from);
  2292. }
  2293. inline TestListValue& operator=(TestListValue&& from) noexcept {
  2294. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2295. if (this != &from) InternalSwap(&from);
  2296. } else {
  2297. CopyFrom(from);
  2298. }
  2299. return *this;
  2300. }
  2301. #endif
  2302. static const ::google::protobuf::Descriptor* descriptor();
  2303. static const TestListValue& default_instance();
  2304. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2305. static inline const TestListValue* internal_default_instance() {
  2306. return reinterpret_cast<const TestListValue*>(
  2307. &_TestListValue_default_instance_);
  2308. }
  2309. static constexpr int kIndexInFileMessages =
  2310. 25;
  2311. void Swap(TestListValue* other);
  2312. friend void swap(TestListValue& a, TestListValue& b) {
  2313. a.Swap(&b);
  2314. }
  2315. // implements Message ----------------------------------------------
  2316. inline TestListValue* New() const final {
  2317. return CreateMaybeMessage<TestListValue>(NULL);
  2318. }
  2319. TestListValue* New(::google::protobuf::Arena* arena) const final {
  2320. return CreateMaybeMessage<TestListValue>(arena);
  2321. }
  2322. void CopyFrom(const ::google::protobuf::Message& from) final;
  2323. void MergeFrom(const ::google::protobuf::Message& from) final;
  2324. void CopyFrom(const TestListValue& from);
  2325. void MergeFrom(const TestListValue& from);
  2326. void Clear() final;
  2327. bool IsInitialized() const final;
  2328. size_t ByteSizeLong() const final;
  2329. bool MergePartialFromCodedStream(
  2330. ::google::protobuf::io::CodedInputStream* input) final;
  2331. void SerializeWithCachedSizes(
  2332. ::google::protobuf::io::CodedOutputStream* output) const final;
  2333. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  2334. bool deterministic, ::google::protobuf::uint8* target) const final;
  2335. int GetCachedSize() const final { return _cached_size_.Get(); }
  2336. private:
  2337. void SharedCtor();
  2338. void SharedDtor();
  2339. void SetCachedSize(int size) const final;
  2340. void InternalSwap(TestListValue* other);
  2341. private:
  2342. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  2343. return NULL;
  2344. }
  2345. inline void* MaybeArenaPtr() const {
  2346. return NULL;
  2347. }
  2348. public:
  2349. ::google::protobuf::Metadata GetMetadata() const final;
  2350. // nested types ----------------------------------------------------
  2351. // accessors -------------------------------------------------------
  2352. // repeated .google.protobuf.ListValue repeated_value = 2;
  2353. int repeated_value_size() const;
  2354. void clear_repeated_value();
  2355. static const int kRepeatedValueFieldNumber = 2;
  2356. ::google::protobuf::ListValue* mutable_repeated_value(int index);
  2357. ::google::protobuf::RepeatedPtrField< ::google::protobuf::ListValue >*
  2358. mutable_repeated_value();
  2359. const ::google::protobuf::ListValue& repeated_value(int index) const;
  2360. ::google::protobuf::ListValue* add_repeated_value();
  2361. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::ListValue >&
  2362. repeated_value() const;
  2363. // .google.protobuf.ListValue value = 1;
  2364. bool has_value() const;
  2365. void clear_value();
  2366. static const int kValueFieldNumber = 1;
  2367. private:
  2368. const ::google::protobuf::ListValue& _internal_value() const;
  2369. public:
  2370. const ::google::protobuf::ListValue& value() const;
  2371. ::google::protobuf::ListValue* release_value();
  2372. ::google::protobuf::ListValue* mutable_value();
  2373. void set_allocated_value(::google::protobuf::ListValue* value);
  2374. // @@protoc_insertion_point(class_scope:proto3.TestListValue)
  2375. private:
  2376. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  2377. ::google::protobuf::RepeatedPtrField< ::google::protobuf::ListValue > repeated_value_;
  2378. ::google::protobuf::ListValue* value_;
  2379. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2380. friend struct ::protobuf_google_2fprotobuf_2futil_2fjson_5fformat_5fproto3_2eproto::TableStruct;
  2381. };
  2382. // -------------------------------------------------------------------
  2383. class TestBoolValue_BoolMapEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestBoolValue_BoolMapEntry_DoNotUse,
  2384. bool, ::google::protobuf::int32,
  2385. ::google::protobuf::internal::WireFormatLite::TYPE_BOOL,
  2386. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  2387. 0 > {
  2388. public:
  2389. typedef ::google::protobuf::internal::MapEntry<TestBoolValue_BoolMapEntry_DoNotUse,
  2390. bool, ::google::protobuf::int32,
  2391. ::google::protobuf::internal::WireFormatLite::TYPE_BOOL,
  2392. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  2393. 0 > SuperType;
  2394. TestBoolValue_BoolMapEntry_DoNotUse();
  2395. TestBoolValue_BoolMapEntry_DoNotUse(::google::protobuf::Arena* arena);
  2396. void MergeFrom(const TestBoolValue_BoolMapEntry_DoNotUse& other);
  2397. static const TestBoolValue_BoolMapEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestBoolValue_BoolMapEntry_DoNotUse*>(&_TestBoolValue_BoolMapEntry_DoNotUse_default_instance_); }
  2398. void MergeFrom(const ::google::protobuf::Message& other) final;
  2399. ::google::protobuf::Metadata GetMetadata() const;
  2400. };
  2401. // -------------------------------------------------------------------
  2402. class TestBoolValue : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:proto3.TestBoolValue) */ {
  2403. public:
  2404. TestBoolValue();
  2405. virtual ~TestBoolValue();
  2406. TestBoolValue(const TestBoolValue& from);
  2407. inline TestBoolValue& operator=(const TestBoolValue& from) {
  2408. CopyFrom(from);
  2409. return *this;
  2410. }
  2411. #if LANG_CXX11
  2412. TestBoolValue(TestBoolValue&& from) noexcept
  2413. : TestBoolValue() {
  2414. *this = ::std::move(from);
  2415. }
  2416. inline TestBoolValue& operator=(TestBoolValue&& from) noexcept {
  2417. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2418. if (this != &from) InternalSwap(&from);
  2419. } else {
  2420. CopyFrom(from);
  2421. }
  2422. return *this;
  2423. }
  2424. #endif
  2425. static const ::google::protobuf::Descriptor* descriptor();
  2426. static const TestBoolValue& default_instance();
  2427. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2428. static inline const TestBoolValue* internal_default_instance() {
  2429. return reinterpret_cast<const TestBoolValue*>(
  2430. &_TestBoolValue_default_instance_);
  2431. }
  2432. static constexpr int kIndexInFileMessages =
  2433. 27;
  2434. void Swap(TestBoolValue* other);
  2435. friend void swap(TestBoolValue& a, TestBoolValue& b) {
  2436. a.Swap(&b);
  2437. }
  2438. // implements Message ----------------------------------------------
  2439. inline TestBoolValue* New() const final {
  2440. return CreateMaybeMessage<TestBoolValue>(NULL);
  2441. }
  2442. TestBoolValue* New(::google::protobuf::Arena* arena) const final {
  2443. return CreateMaybeMessage<TestBoolValue>(arena);
  2444. }
  2445. void CopyFrom(const ::google::protobuf::Message& from) final;
  2446. void MergeFrom(const ::google::protobuf::Message& from) final;
  2447. void CopyFrom(const TestBoolValue& from);
  2448. void MergeFrom(const TestBoolValue& from);
  2449. void Clear() final;
  2450. bool IsInitialized() const final;
  2451. size_t ByteSizeLong() const final;
  2452. bool MergePartialFromCodedStream(
  2453. ::google::protobuf::io::CodedInputStream* input) final;
  2454. void SerializeWithCachedSizes(
  2455. ::google::protobuf::io::CodedOutputStream* output) const final;
  2456. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  2457. bool deterministic, ::google::protobuf::uint8* target) const final;
  2458. int GetCachedSize() const final { return _cached_size_.Get(); }
  2459. private:
  2460. void SharedCtor();
  2461. void SharedDtor();
  2462. void SetCachedSize(int size) const final;
  2463. void InternalSwap(TestBoolValue* other);
  2464. private:
  2465. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  2466. return NULL;
  2467. }
  2468. inline void* MaybeArenaPtr() const {
  2469. return NULL;
  2470. }
  2471. public:
  2472. ::google::protobuf::Metadata GetMetadata() const final;
  2473. // nested types ----------------------------------------------------
  2474. // accessors -------------------------------------------------------
  2475. // map<bool, int32> bool_map = 2;
  2476. int bool_map_size() const;
  2477. void clear_bool_map();
  2478. static const int kBoolMapFieldNumber = 2;
  2479. const ::google::protobuf::Map< bool, ::google::protobuf::int32 >&
  2480. bool_map() const;
  2481. ::google::protobuf::Map< bool, ::google::protobuf::int32 >*
  2482. mutable_bool_map();
  2483. // bool bool_value = 1;
  2484. void clear_bool_value();
  2485. static const int kBoolValueFieldNumber = 1;
  2486. bool bool_value() const;
  2487. void set_bool_value(bool value);
  2488. // @@protoc_insertion_point(class_scope:proto3.TestBoolValue)
  2489. private:
  2490. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  2491. ::google::protobuf::internal::MapField<
  2492. TestBoolValue_BoolMapEntry_DoNotUse,
  2493. bool, ::google::protobuf::int32,
  2494. ::google::protobuf::internal::WireFormatLite::TYPE_BOOL,
  2495. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  2496. 0 > bool_map_;
  2497. bool bool_value_;
  2498. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2499. friend struct ::protobuf_google_2fprotobuf_2futil_2fjson_5fformat_5fproto3_2eproto::TableStruct;
  2500. };
  2501. // -------------------------------------------------------------------
  2502. class TestCustomJsonName : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:proto3.TestCustomJsonName) */ {
  2503. public:
  2504. TestCustomJsonName();
  2505. virtual ~TestCustomJsonName();
  2506. TestCustomJsonName(const TestCustomJsonName& from);
  2507. inline TestCustomJsonName& operator=(const TestCustomJsonName& from) {
  2508. CopyFrom(from);
  2509. return *this;
  2510. }
  2511. #if LANG_CXX11
  2512. TestCustomJsonName(TestCustomJsonName&& from) noexcept
  2513. : TestCustomJsonName() {
  2514. *this = ::std::move(from);
  2515. }
  2516. inline TestCustomJsonName& operator=(TestCustomJsonName&& from) noexcept {
  2517. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2518. if (this != &from) InternalSwap(&from);
  2519. } else {
  2520. CopyFrom(from);
  2521. }
  2522. return *this;
  2523. }
  2524. #endif
  2525. static const ::google::protobuf::Descriptor* descriptor();
  2526. static const TestCustomJsonName& default_instance();
  2527. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2528. static inline const TestCustomJsonName* internal_default_instance() {
  2529. return reinterpret_cast<const TestCustomJsonName*>(
  2530. &_TestCustomJsonName_default_instance_);
  2531. }
  2532. static constexpr int kIndexInFileMessages =
  2533. 28;
  2534. void Swap(TestCustomJsonName* other);
  2535. friend void swap(TestCustomJsonName& a, TestCustomJsonName& b) {
  2536. a.Swap(&b);
  2537. }
  2538. // implements Message ----------------------------------------------
  2539. inline TestCustomJsonName* New() const final {
  2540. return CreateMaybeMessage<TestCustomJsonName>(NULL);
  2541. }
  2542. TestCustomJsonName* New(::google::protobuf::Arena* arena) const final {
  2543. return CreateMaybeMessage<TestCustomJsonName>(arena);
  2544. }
  2545. void CopyFrom(const ::google::protobuf::Message& from) final;
  2546. void MergeFrom(const ::google::protobuf::Message& from) final;
  2547. void CopyFrom(const TestCustomJsonName& from);
  2548. void MergeFrom(const TestCustomJsonName& from);
  2549. void Clear() final;
  2550. bool IsInitialized() const final;
  2551. size_t ByteSizeLong() const final;
  2552. bool MergePartialFromCodedStream(
  2553. ::google::protobuf::io::CodedInputStream* input) final;
  2554. void SerializeWithCachedSizes(
  2555. ::google::protobuf::io::CodedOutputStream* output) const final;
  2556. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  2557. bool deterministic, ::google::protobuf::uint8* target) const final;
  2558. int GetCachedSize() const final { return _cached_size_.Get(); }
  2559. private:
  2560. void SharedCtor();
  2561. void SharedDtor();
  2562. void SetCachedSize(int size) const final;
  2563. void InternalSwap(TestCustomJsonName* other);
  2564. private:
  2565. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  2566. return NULL;
  2567. }
  2568. inline void* MaybeArenaPtr() const {
  2569. return NULL;
  2570. }
  2571. public:
  2572. ::google::protobuf::Metadata GetMetadata() const final;
  2573. // nested types ----------------------------------------------------
  2574. // accessors -------------------------------------------------------
  2575. // int32 value = 1[json_name = "@value"];
  2576. void clear_value();
  2577. static const int kValueFieldNumber = 1;
  2578. ::google::protobuf::int32 value() const;
  2579. void set_value(::google::protobuf::int32 value);
  2580. // @@protoc_insertion_point(class_scope:proto3.TestCustomJsonName)
  2581. private:
  2582. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  2583. ::google::protobuf::int32 value_;
  2584. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2585. friend struct ::protobuf_google_2fprotobuf_2futil_2fjson_5fformat_5fproto3_2eproto::TableStruct;
  2586. };
  2587. // -------------------------------------------------------------------
  2588. class TestExtensions : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:proto3.TestExtensions) */ {
  2589. public:
  2590. TestExtensions();
  2591. virtual ~TestExtensions();
  2592. TestExtensions(const TestExtensions& from);
  2593. inline TestExtensions& operator=(const TestExtensions& from) {
  2594. CopyFrom(from);
  2595. return *this;
  2596. }
  2597. #if LANG_CXX11
  2598. TestExtensions(TestExtensions&& from) noexcept
  2599. : TestExtensions() {
  2600. *this = ::std::move(from);
  2601. }
  2602. inline TestExtensions& operator=(TestExtensions&& from) noexcept {
  2603. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2604. if (this != &from) InternalSwap(&from);
  2605. } else {
  2606. CopyFrom(from);
  2607. }
  2608. return *this;
  2609. }
  2610. #endif
  2611. static const ::google::protobuf::Descriptor* descriptor();
  2612. static const TestExtensions& default_instance();
  2613. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2614. static inline const TestExtensions* internal_default_instance() {
  2615. return reinterpret_cast<const TestExtensions*>(
  2616. &_TestExtensions_default_instance_);
  2617. }
  2618. static constexpr int kIndexInFileMessages =
  2619. 29;
  2620. void Swap(TestExtensions* other);
  2621. friend void swap(TestExtensions& a, TestExtensions& b) {
  2622. a.Swap(&b);
  2623. }
  2624. // implements Message ----------------------------------------------
  2625. inline TestExtensions* New() const final {
  2626. return CreateMaybeMessage<TestExtensions>(NULL);
  2627. }
  2628. TestExtensions* New(::google::protobuf::Arena* arena) const final {
  2629. return CreateMaybeMessage<TestExtensions>(arena);
  2630. }
  2631. void CopyFrom(const ::google::protobuf::Message& from) final;
  2632. void MergeFrom(const ::google::protobuf::Message& from) final;
  2633. void CopyFrom(const TestExtensions& from);
  2634. void MergeFrom(const TestExtensions& from);
  2635. void Clear() final;
  2636. bool IsInitialized() const final;
  2637. size_t ByteSizeLong() const final;
  2638. bool MergePartialFromCodedStream(
  2639. ::google::protobuf::io::CodedInputStream* input) final;
  2640. void SerializeWithCachedSizes(
  2641. ::google::protobuf::io::CodedOutputStream* output) const final;
  2642. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  2643. bool deterministic, ::google::protobuf::uint8* target) const final;
  2644. int GetCachedSize() const final { return _cached_size_.Get(); }
  2645. private:
  2646. void SharedCtor();
  2647. void SharedDtor();
  2648. void SetCachedSize(int size) const final;
  2649. void InternalSwap(TestExtensions* other);
  2650. private:
  2651. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  2652. return NULL;
  2653. }
  2654. inline void* MaybeArenaPtr() const {
  2655. return NULL;
  2656. }
  2657. public:
  2658. ::google::protobuf::Metadata GetMetadata() const final;
  2659. // nested types ----------------------------------------------------
  2660. // accessors -------------------------------------------------------
  2661. // .protobuf_unittest.TestAllExtensions extensions = 1;
  2662. bool has_extensions() const;
  2663. void clear_extensions();
  2664. static const int kExtensionsFieldNumber = 1;
  2665. private:
  2666. const ::protobuf_unittest::TestAllExtensions& _internal_extensions() const;
  2667. public:
  2668. const ::protobuf_unittest::TestAllExtensions& extensions() const;
  2669. ::protobuf_unittest::TestAllExtensions* release_extensions();
  2670. ::protobuf_unittest::TestAllExtensions* mutable_extensions();
  2671. void set_allocated_extensions(::protobuf_unittest::TestAllExtensions* extensions);
  2672. // @@protoc_insertion_point(class_scope:proto3.TestExtensions)
  2673. private:
  2674. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  2675. ::protobuf_unittest::TestAllExtensions* extensions_;
  2676. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2677. friend struct ::protobuf_google_2fprotobuf_2futil_2fjson_5fformat_5fproto3_2eproto::TableStruct;
  2678. };
  2679. // -------------------------------------------------------------------
  2680. class TestEnumValue : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:proto3.TestEnumValue) */ {
  2681. public:
  2682. TestEnumValue();
  2683. virtual ~TestEnumValue();
  2684. TestEnumValue(const TestEnumValue& from);
  2685. inline TestEnumValue& operator=(const TestEnumValue& from) {
  2686. CopyFrom(from);
  2687. return *this;
  2688. }
  2689. #if LANG_CXX11
  2690. TestEnumValue(TestEnumValue&& from) noexcept
  2691. : TestEnumValue() {
  2692. *this = ::std::move(from);
  2693. }
  2694. inline TestEnumValue& operator=(TestEnumValue&& from) noexcept {
  2695. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2696. if (this != &from) InternalSwap(&from);
  2697. } else {
  2698. CopyFrom(from);
  2699. }
  2700. return *this;
  2701. }
  2702. #endif
  2703. static const ::google::protobuf::Descriptor* descriptor();
  2704. static const TestEnumValue& default_instance();
  2705. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2706. static inline const TestEnumValue* internal_default_instance() {
  2707. return reinterpret_cast<const TestEnumValue*>(
  2708. &_TestEnumValue_default_instance_);
  2709. }
  2710. static constexpr int kIndexInFileMessages =
  2711. 30;
  2712. void Swap(TestEnumValue* other);
  2713. friend void swap(TestEnumValue& a, TestEnumValue& b) {
  2714. a.Swap(&b);
  2715. }
  2716. // implements Message ----------------------------------------------
  2717. inline TestEnumValue* New() const final {
  2718. return CreateMaybeMessage<TestEnumValue>(NULL);
  2719. }
  2720. TestEnumValue* New(::google::protobuf::Arena* arena) const final {
  2721. return CreateMaybeMessage<TestEnumValue>(arena);
  2722. }
  2723. void CopyFrom(const ::google::protobuf::Message& from) final;
  2724. void MergeFrom(const ::google::protobuf::Message& from) final;
  2725. void CopyFrom(const TestEnumValue& from);
  2726. void MergeFrom(const TestEnumValue& from);
  2727. void Clear() final;
  2728. bool IsInitialized() const final;
  2729. size_t ByteSizeLong() const final;
  2730. bool MergePartialFromCodedStream(
  2731. ::google::protobuf::io::CodedInputStream* input) final;
  2732. void SerializeWithCachedSizes(
  2733. ::google::protobuf::io::CodedOutputStream* output) const final;
  2734. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  2735. bool deterministic, ::google::protobuf::uint8* target) const final;
  2736. int GetCachedSize() const final { return _cached_size_.Get(); }
  2737. private:
  2738. void SharedCtor();
  2739. void SharedDtor();
  2740. void SetCachedSize(int size) const final;
  2741. void InternalSwap(TestEnumValue* other);
  2742. private:
  2743. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  2744. return NULL;
  2745. }
  2746. inline void* MaybeArenaPtr() const {
  2747. return NULL;
  2748. }
  2749. public:
  2750. ::google::protobuf::Metadata GetMetadata() const final;
  2751. // nested types ----------------------------------------------------
  2752. // accessors -------------------------------------------------------
  2753. // .proto3.EnumType enum_value1 = 1;
  2754. void clear_enum_value1();
  2755. static const int kEnumValue1FieldNumber = 1;
  2756. ::proto3::EnumType enum_value1() const;
  2757. void set_enum_value1(::proto3::EnumType value);
  2758. // .proto3.EnumType enum_value2 = 2;
  2759. void clear_enum_value2();
  2760. static const int kEnumValue2FieldNumber = 2;
  2761. ::proto3::EnumType enum_value2() const;
  2762. void set_enum_value2(::proto3::EnumType value);
  2763. // .proto3.EnumType enum_value3 = 3;
  2764. void clear_enum_value3();
  2765. static const int kEnumValue3FieldNumber = 3;
  2766. ::proto3::EnumType enum_value3() const;
  2767. void set_enum_value3(::proto3::EnumType value);
  2768. // @@protoc_insertion_point(class_scope:proto3.TestEnumValue)
  2769. private:
  2770. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  2771. int enum_value1_;
  2772. int enum_value2_;
  2773. int enum_value3_;
  2774. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2775. friend struct ::protobuf_google_2fprotobuf_2futil_2fjson_5fformat_5fproto3_2eproto::TableStruct;
  2776. };
  2777. // ===================================================================
  2778. // ===================================================================
  2779. #ifdef __GNUC__
  2780. #pragma GCC diagnostic push
  2781. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  2782. #endif // __GNUC__
  2783. // MessageType
  2784. // int32 value = 1;
  2785. inline void MessageType::clear_value() {
  2786. value_ = 0;
  2787. }
  2788. inline ::google::protobuf::int32 MessageType::value() const {
  2789. // @@protoc_insertion_point(field_get:proto3.MessageType.value)
  2790. return value_;
  2791. }
  2792. inline void MessageType::set_value(::google::protobuf::int32 value) {
  2793. value_ = value;
  2794. // @@protoc_insertion_point(field_set:proto3.MessageType.value)
  2795. }
  2796. // -------------------------------------------------------------------
  2797. // TestMessage
  2798. // bool bool_value = 1;
  2799. inline void TestMessage::clear_bool_value() {
  2800. bool_value_ = false;
  2801. }
  2802. inline bool TestMessage::bool_value() const {
  2803. // @@protoc_insertion_point(field_get:proto3.TestMessage.bool_value)
  2804. return bool_value_;
  2805. }
  2806. inline void TestMessage::set_bool_value(bool value) {
  2807. bool_value_ = value;
  2808. // @@protoc_insertion_point(field_set:proto3.TestMessage.bool_value)
  2809. }
  2810. // int32 int32_value = 2;
  2811. inline void TestMessage::clear_int32_value() {
  2812. int32_value_ = 0;
  2813. }
  2814. inline ::google::protobuf::int32 TestMessage::int32_value() const {
  2815. // @@protoc_insertion_point(field_get:proto3.TestMessage.int32_value)
  2816. return int32_value_;
  2817. }
  2818. inline void TestMessage::set_int32_value(::google::protobuf::int32 value) {
  2819. int32_value_ = value;
  2820. // @@protoc_insertion_point(field_set:proto3.TestMessage.int32_value)
  2821. }
  2822. // int64 int64_value = 3;
  2823. inline void TestMessage::clear_int64_value() {
  2824. int64_value_ = GOOGLE_LONGLONG(0);
  2825. }
  2826. inline ::google::protobuf::int64 TestMessage::int64_value() const {
  2827. // @@protoc_insertion_point(field_get:proto3.TestMessage.int64_value)
  2828. return int64_value_;
  2829. }
  2830. inline void TestMessage::set_int64_value(::google::protobuf::int64 value) {
  2831. int64_value_ = value;
  2832. // @@protoc_insertion_point(field_set:proto3.TestMessage.int64_value)
  2833. }
  2834. // uint32 uint32_value = 4;
  2835. inline void TestMessage::clear_uint32_value() {
  2836. uint32_value_ = 0u;
  2837. }
  2838. inline ::google::protobuf::uint32 TestMessage::uint32_value() const {
  2839. // @@protoc_insertion_point(field_get:proto3.TestMessage.uint32_value)
  2840. return uint32_value_;
  2841. }
  2842. inline void TestMessage::set_uint32_value(::google::protobuf::uint32 value) {
  2843. uint32_value_ = value;
  2844. // @@protoc_insertion_point(field_set:proto3.TestMessage.uint32_value)
  2845. }
  2846. // uint64 uint64_value = 5;
  2847. inline void TestMessage::clear_uint64_value() {
  2848. uint64_value_ = GOOGLE_ULONGLONG(0);
  2849. }
  2850. inline ::google::protobuf::uint64 TestMessage::uint64_value() const {
  2851. // @@protoc_insertion_point(field_get:proto3.TestMessage.uint64_value)
  2852. return uint64_value_;
  2853. }
  2854. inline void TestMessage::set_uint64_value(::google::protobuf::uint64 value) {
  2855. uint64_value_ = value;
  2856. // @@protoc_insertion_point(field_set:proto3.TestMessage.uint64_value)
  2857. }
  2858. // float float_value = 6;
  2859. inline void TestMessage::clear_float_value() {
  2860. float_value_ = 0;
  2861. }
  2862. inline float TestMessage::float_value() const {
  2863. // @@protoc_insertion_point(field_get:proto3.TestMessage.float_value)
  2864. return float_value_;
  2865. }
  2866. inline void TestMessage::set_float_value(float value) {
  2867. float_value_ = value;
  2868. // @@protoc_insertion_point(field_set:proto3.TestMessage.float_value)
  2869. }
  2870. // double double_value = 7;
  2871. inline void TestMessage::clear_double_value() {
  2872. double_value_ = 0;
  2873. }
  2874. inline double TestMessage::double_value() const {
  2875. // @@protoc_insertion_point(field_get:proto3.TestMessage.double_value)
  2876. return double_value_;
  2877. }
  2878. inline void TestMessage::set_double_value(double value) {
  2879. double_value_ = value;
  2880. // @@protoc_insertion_point(field_set:proto3.TestMessage.double_value)
  2881. }
  2882. // string string_value = 8;
  2883. inline void TestMessage::clear_string_value() {
  2884. string_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2885. }
  2886. inline const ::std::string& TestMessage::string_value() const {
  2887. // @@protoc_insertion_point(field_get:proto3.TestMessage.string_value)
  2888. return string_value_.GetNoArena();
  2889. }
  2890. inline void TestMessage::set_string_value(const ::std::string& value) {
  2891. string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  2892. // @@protoc_insertion_point(field_set:proto3.TestMessage.string_value)
  2893. }
  2894. #if LANG_CXX11
  2895. inline void TestMessage::set_string_value(::std::string&& value) {
  2896. string_value_.SetNoArena(
  2897. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  2898. // @@protoc_insertion_point(field_set_rvalue:proto3.TestMessage.string_value)
  2899. }
  2900. #endif
  2901. inline void TestMessage::set_string_value(const char* value) {
  2902. GOOGLE_DCHECK(value != NULL);
  2903. string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  2904. // @@protoc_insertion_point(field_set_char:proto3.TestMessage.string_value)
  2905. }
  2906. inline void TestMessage::set_string_value(const char* value, size_t size) {
  2907. string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  2908. ::std::string(reinterpret_cast<const char*>(value), size));
  2909. // @@protoc_insertion_point(field_set_pointer:proto3.TestMessage.string_value)
  2910. }
  2911. inline ::std::string* TestMessage::mutable_string_value() {
  2912. // @@protoc_insertion_point(field_mutable:proto3.TestMessage.string_value)
  2913. return string_value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2914. }
  2915. inline ::std::string* TestMessage::release_string_value() {
  2916. // @@protoc_insertion_point(field_release:proto3.TestMessage.string_value)
  2917. return string_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2918. }
  2919. inline void TestMessage::set_allocated_string_value(::std::string* string_value) {
  2920. if (string_value != NULL) {
  2921. } else {
  2922. }
  2923. string_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), string_value);
  2924. // @@protoc_insertion_point(field_set_allocated:proto3.TestMessage.string_value)
  2925. }
  2926. // bytes bytes_value = 9;
  2927. inline void TestMessage::clear_bytes_value() {
  2928. bytes_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2929. }
  2930. inline const ::std::string& TestMessage::bytes_value() const {
  2931. // @@protoc_insertion_point(field_get:proto3.TestMessage.bytes_value)
  2932. return bytes_value_.GetNoArena();
  2933. }
  2934. inline void TestMessage::set_bytes_value(const ::std::string& value) {
  2935. bytes_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  2936. // @@protoc_insertion_point(field_set:proto3.TestMessage.bytes_value)
  2937. }
  2938. #if LANG_CXX11
  2939. inline void TestMessage::set_bytes_value(::std::string&& value) {
  2940. bytes_value_.SetNoArena(
  2941. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  2942. // @@protoc_insertion_point(field_set_rvalue:proto3.TestMessage.bytes_value)
  2943. }
  2944. #endif
  2945. inline void TestMessage::set_bytes_value(const char* value) {
  2946. GOOGLE_DCHECK(value != NULL);
  2947. bytes_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  2948. // @@protoc_insertion_point(field_set_char:proto3.TestMessage.bytes_value)
  2949. }
  2950. inline void TestMessage::set_bytes_value(const void* value, size_t size) {
  2951. bytes_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  2952. ::std::string(reinterpret_cast<const char*>(value), size));
  2953. // @@protoc_insertion_point(field_set_pointer:proto3.TestMessage.bytes_value)
  2954. }
  2955. inline ::std::string* TestMessage::mutable_bytes_value() {
  2956. // @@protoc_insertion_point(field_mutable:proto3.TestMessage.bytes_value)
  2957. return bytes_value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2958. }
  2959. inline ::std::string* TestMessage::release_bytes_value() {
  2960. // @@protoc_insertion_point(field_release:proto3.TestMessage.bytes_value)
  2961. return bytes_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2962. }
  2963. inline void TestMessage::set_allocated_bytes_value(::std::string* bytes_value) {
  2964. if (bytes_value != NULL) {
  2965. } else {
  2966. }
  2967. bytes_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), bytes_value);
  2968. // @@protoc_insertion_point(field_set_allocated:proto3.TestMessage.bytes_value)
  2969. }
  2970. // .proto3.EnumType enum_value = 10;
  2971. inline void TestMessage::clear_enum_value() {
  2972. enum_value_ = 0;
  2973. }
  2974. inline ::proto3::EnumType TestMessage::enum_value() const {
  2975. // @@protoc_insertion_point(field_get:proto3.TestMessage.enum_value)
  2976. return static_cast< ::proto3::EnumType >(enum_value_);
  2977. }
  2978. inline void TestMessage::set_enum_value(::proto3::EnumType value) {
  2979. enum_value_ = value;
  2980. // @@protoc_insertion_point(field_set:proto3.TestMessage.enum_value)
  2981. }
  2982. // .proto3.MessageType message_value = 11;
  2983. inline bool TestMessage::has_message_value() const {
  2984. return this != internal_default_instance() && message_value_ != NULL;
  2985. }
  2986. inline void TestMessage::clear_message_value() {
  2987. if (GetArenaNoVirtual() == NULL && message_value_ != NULL) {
  2988. delete message_value_;
  2989. }
  2990. message_value_ = NULL;
  2991. }
  2992. inline const ::proto3::MessageType& TestMessage::_internal_message_value() const {
  2993. return *message_value_;
  2994. }
  2995. inline const ::proto3::MessageType& TestMessage::message_value() const {
  2996. const ::proto3::MessageType* p = message_value_;
  2997. // @@protoc_insertion_point(field_get:proto3.TestMessage.message_value)
  2998. return p != NULL ? *p : *reinterpret_cast<const ::proto3::MessageType*>(
  2999. &::proto3::_MessageType_default_instance_);
  3000. }
  3001. inline ::proto3::MessageType* TestMessage::release_message_value() {
  3002. // @@protoc_insertion_point(field_release:proto3.TestMessage.message_value)
  3003. ::proto3::MessageType* temp = message_value_;
  3004. message_value_ = NULL;
  3005. return temp;
  3006. }
  3007. inline ::proto3::MessageType* TestMessage::mutable_message_value() {
  3008. if (message_value_ == NULL) {
  3009. auto* p = CreateMaybeMessage<::proto3::MessageType>(GetArenaNoVirtual());
  3010. message_value_ = p;
  3011. }
  3012. // @@protoc_insertion_point(field_mutable:proto3.TestMessage.message_value)
  3013. return message_value_;
  3014. }
  3015. inline void TestMessage::set_allocated_message_value(::proto3::MessageType* message_value) {
  3016. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  3017. if (message_arena == NULL) {
  3018. delete message_value_;
  3019. }
  3020. if (message_value) {
  3021. ::google::protobuf::Arena* submessage_arena = NULL;
  3022. if (message_arena != submessage_arena) {
  3023. message_value = ::google::protobuf::internal::GetOwnedMessage(
  3024. message_arena, message_value, submessage_arena);
  3025. }
  3026. } else {
  3027. }
  3028. message_value_ = message_value;
  3029. // @@protoc_insertion_point(field_set_allocated:proto3.TestMessage.message_value)
  3030. }
  3031. // repeated bool repeated_bool_value = 21;
  3032. inline int TestMessage::repeated_bool_value_size() const {
  3033. return repeated_bool_value_.size();
  3034. }
  3035. inline void TestMessage::clear_repeated_bool_value() {
  3036. repeated_bool_value_.Clear();
  3037. }
  3038. inline bool TestMessage::repeated_bool_value(int index) const {
  3039. // @@protoc_insertion_point(field_get:proto3.TestMessage.repeated_bool_value)
  3040. return repeated_bool_value_.Get(index);
  3041. }
  3042. inline void TestMessage::set_repeated_bool_value(int index, bool value) {
  3043. repeated_bool_value_.Set(index, value);
  3044. // @@protoc_insertion_point(field_set:proto3.TestMessage.repeated_bool_value)
  3045. }
  3046. inline void TestMessage::add_repeated_bool_value(bool value) {
  3047. repeated_bool_value_.Add(value);
  3048. // @@protoc_insertion_point(field_add:proto3.TestMessage.repeated_bool_value)
  3049. }
  3050. inline const ::google::protobuf::RepeatedField< bool >&
  3051. TestMessage::repeated_bool_value() const {
  3052. // @@protoc_insertion_point(field_list:proto3.TestMessage.repeated_bool_value)
  3053. return repeated_bool_value_;
  3054. }
  3055. inline ::google::protobuf::RepeatedField< bool >*
  3056. TestMessage::mutable_repeated_bool_value() {
  3057. // @@protoc_insertion_point(field_mutable_list:proto3.TestMessage.repeated_bool_value)
  3058. return &repeated_bool_value_;
  3059. }
  3060. // repeated int32 repeated_int32_value = 22;
  3061. inline int TestMessage::repeated_int32_value_size() const {
  3062. return repeated_int32_value_.size();
  3063. }
  3064. inline void TestMessage::clear_repeated_int32_value() {
  3065. repeated_int32_value_.Clear();
  3066. }
  3067. inline ::google::protobuf::int32 TestMessage::repeated_int32_value(int index) const {
  3068. // @@protoc_insertion_point(field_get:proto3.TestMessage.repeated_int32_value)
  3069. return repeated_int32_value_.Get(index);
  3070. }
  3071. inline void TestMessage::set_repeated_int32_value(int index, ::google::protobuf::int32 value) {
  3072. repeated_int32_value_.Set(index, value);
  3073. // @@protoc_insertion_point(field_set:proto3.TestMessage.repeated_int32_value)
  3074. }
  3075. inline void TestMessage::add_repeated_int32_value(::google::protobuf::int32 value) {
  3076. repeated_int32_value_.Add(value);
  3077. // @@protoc_insertion_point(field_add:proto3.TestMessage.repeated_int32_value)
  3078. }
  3079. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  3080. TestMessage::repeated_int32_value() const {
  3081. // @@protoc_insertion_point(field_list:proto3.TestMessage.repeated_int32_value)
  3082. return repeated_int32_value_;
  3083. }
  3084. inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  3085. TestMessage::mutable_repeated_int32_value() {
  3086. // @@protoc_insertion_point(field_mutable_list:proto3.TestMessage.repeated_int32_value)
  3087. return &repeated_int32_value_;
  3088. }
  3089. // repeated int64 repeated_int64_value = 23;
  3090. inline int TestMessage::repeated_int64_value_size() const {
  3091. return repeated_int64_value_.size();
  3092. }
  3093. inline void TestMessage::clear_repeated_int64_value() {
  3094. repeated_int64_value_.Clear();
  3095. }
  3096. inline ::google::protobuf::int64 TestMessage::repeated_int64_value(int index) const {
  3097. // @@protoc_insertion_point(field_get:proto3.TestMessage.repeated_int64_value)
  3098. return repeated_int64_value_.Get(index);
  3099. }
  3100. inline void TestMessage::set_repeated_int64_value(int index, ::google::protobuf::int64 value) {
  3101. repeated_int64_value_.Set(index, value);
  3102. // @@protoc_insertion_point(field_set:proto3.TestMessage.repeated_int64_value)
  3103. }
  3104. inline void TestMessage::add_repeated_int64_value(::google::protobuf::int64 value) {
  3105. repeated_int64_value_.Add(value);
  3106. // @@protoc_insertion_point(field_add:proto3.TestMessage.repeated_int64_value)
  3107. }
  3108. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
  3109. TestMessage::repeated_int64_value() const {
  3110. // @@protoc_insertion_point(field_list:proto3.TestMessage.repeated_int64_value)
  3111. return repeated_int64_value_;
  3112. }
  3113. inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
  3114. TestMessage::mutable_repeated_int64_value() {
  3115. // @@protoc_insertion_point(field_mutable_list:proto3.TestMessage.repeated_int64_value)
  3116. return &repeated_int64_value_;
  3117. }
  3118. // repeated uint32 repeated_uint32_value = 24;
  3119. inline int TestMessage::repeated_uint32_value_size() const {
  3120. return repeated_uint32_value_.size();
  3121. }
  3122. inline void TestMessage::clear_repeated_uint32_value() {
  3123. repeated_uint32_value_.Clear();
  3124. }
  3125. inline ::google::protobuf::uint32 TestMessage::repeated_uint32_value(int index) const {
  3126. // @@protoc_insertion_point(field_get:proto3.TestMessage.repeated_uint32_value)
  3127. return repeated_uint32_value_.Get(index);
  3128. }
  3129. inline void TestMessage::set_repeated_uint32_value(int index, ::google::protobuf::uint32 value) {
  3130. repeated_uint32_value_.Set(index, value);
  3131. // @@protoc_insertion_point(field_set:proto3.TestMessage.repeated_uint32_value)
  3132. }
  3133. inline void TestMessage::add_repeated_uint32_value(::google::protobuf::uint32 value) {
  3134. repeated_uint32_value_.Add(value);
  3135. // @@protoc_insertion_point(field_add:proto3.TestMessage.repeated_uint32_value)
  3136. }
  3137. inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
  3138. TestMessage::repeated_uint32_value() const {
  3139. // @@protoc_insertion_point(field_list:proto3.TestMessage.repeated_uint32_value)
  3140. return repeated_uint32_value_;
  3141. }
  3142. inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
  3143. TestMessage::mutable_repeated_uint32_value() {
  3144. // @@protoc_insertion_point(field_mutable_list:proto3.TestMessage.repeated_uint32_value)
  3145. return &repeated_uint32_value_;
  3146. }
  3147. // repeated uint64 repeated_uint64_value = 25;
  3148. inline int TestMessage::repeated_uint64_value_size() const {
  3149. return repeated_uint64_value_.size();
  3150. }
  3151. inline void TestMessage::clear_repeated_uint64_value() {
  3152. repeated_uint64_value_.Clear();
  3153. }
  3154. inline ::google::protobuf::uint64 TestMessage::repeated_uint64_value(int index) const {
  3155. // @@protoc_insertion_point(field_get:proto3.TestMessage.repeated_uint64_value)
  3156. return repeated_uint64_value_.Get(index);
  3157. }
  3158. inline void TestMessage::set_repeated_uint64_value(int index, ::google::protobuf::uint64 value) {
  3159. repeated_uint64_value_.Set(index, value);
  3160. // @@protoc_insertion_point(field_set:proto3.TestMessage.repeated_uint64_value)
  3161. }
  3162. inline void TestMessage::add_repeated_uint64_value(::google::protobuf::uint64 value) {
  3163. repeated_uint64_value_.Add(value);
  3164. // @@protoc_insertion_point(field_add:proto3.TestMessage.repeated_uint64_value)
  3165. }
  3166. inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
  3167. TestMessage::repeated_uint64_value() const {
  3168. // @@protoc_insertion_point(field_list:proto3.TestMessage.repeated_uint64_value)
  3169. return repeated_uint64_value_;
  3170. }
  3171. inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
  3172. TestMessage::mutable_repeated_uint64_value() {
  3173. // @@protoc_insertion_point(field_mutable_list:proto3.TestMessage.repeated_uint64_value)
  3174. return &repeated_uint64_value_;
  3175. }
  3176. // repeated float repeated_float_value = 26;
  3177. inline int TestMessage::repeated_float_value_size() const {
  3178. return repeated_float_value_.size();
  3179. }
  3180. inline void TestMessage::clear_repeated_float_value() {
  3181. repeated_float_value_.Clear();
  3182. }
  3183. inline float TestMessage::repeated_float_value(int index) const {
  3184. // @@protoc_insertion_point(field_get:proto3.TestMessage.repeated_float_value)
  3185. return repeated_float_value_.Get(index);
  3186. }
  3187. inline void TestMessage::set_repeated_float_value(int index, float value) {
  3188. repeated_float_value_.Set(index, value);
  3189. // @@protoc_insertion_point(field_set:proto3.TestMessage.repeated_float_value)
  3190. }
  3191. inline void TestMessage::add_repeated_float_value(float value) {
  3192. repeated_float_value_.Add(value);
  3193. // @@protoc_insertion_point(field_add:proto3.TestMessage.repeated_float_value)
  3194. }
  3195. inline const ::google::protobuf::RepeatedField< float >&
  3196. TestMessage::repeated_float_value() const {
  3197. // @@protoc_insertion_point(field_list:proto3.TestMessage.repeated_float_value)
  3198. return repeated_float_value_;
  3199. }
  3200. inline ::google::protobuf::RepeatedField< float >*
  3201. TestMessage::mutable_repeated_float_value() {
  3202. // @@protoc_insertion_point(field_mutable_list:proto3.TestMessage.repeated_float_value)
  3203. return &repeated_float_value_;
  3204. }
  3205. // repeated double repeated_double_value = 27;
  3206. inline int TestMessage::repeated_double_value_size() const {
  3207. return repeated_double_value_.size();
  3208. }
  3209. inline void TestMessage::clear_repeated_double_value() {
  3210. repeated_double_value_.Clear();
  3211. }
  3212. inline double TestMessage::repeated_double_value(int index) const {
  3213. // @@protoc_insertion_point(field_get:proto3.TestMessage.repeated_double_value)
  3214. return repeated_double_value_.Get(index);
  3215. }
  3216. inline void TestMessage::set_repeated_double_value(int index, double value) {
  3217. repeated_double_value_.Set(index, value);
  3218. // @@protoc_insertion_point(field_set:proto3.TestMessage.repeated_double_value)
  3219. }
  3220. inline void TestMessage::add_repeated_double_value(double value) {
  3221. repeated_double_value_.Add(value);
  3222. // @@protoc_insertion_point(field_add:proto3.TestMessage.repeated_double_value)
  3223. }
  3224. inline const ::google::protobuf::RepeatedField< double >&
  3225. TestMessage::repeated_double_value() const {
  3226. // @@protoc_insertion_point(field_list:proto3.TestMessage.repeated_double_value)
  3227. return repeated_double_value_;
  3228. }
  3229. inline ::google::protobuf::RepeatedField< double >*
  3230. TestMessage::mutable_repeated_double_value() {
  3231. // @@protoc_insertion_point(field_mutable_list:proto3.TestMessage.repeated_double_value)
  3232. return &repeated_double_value_;
  3233. }
  3234. // repeated string repeated_string_value = 28;
  3235. inline int TestMessage::repeated_string_value_size() const {
  3236. return repeated_string_value_.size();
  3237. }
  3238. inline void TestMessage::clear_repeated_string_value() {
  3239. repeated_string_value_.Clear();
  3240. }
  3241. inline const ::std::string& TestMessage::repeated_string_value(int index) const {
  3242. // @@protoc_insertion_point(field_get:proto3.TestMessage.repeated_string_value)
  3243. return repeated_string_value_.Get(index);
  3244. }
  3245. inline ::std::string* TestMessage::mutable_repeated_string_value(int index) {
  3246. // @@protoc_insertion_point(field_mutable:proto3.TestMessage.repeated_string_value)
  3247. return repeated_string_value_.Mutable(index);
  3248. }
  3249. inline void TestMessage::set_repeated_string_value(int index, const ::std::string& value) {
  3250. // @@protoc_insertion_point(field_set:proto3.TestMessage.repeated_string_value)
  3251. repeated_string_value_.Mutable(index)->assign(value);
  3252. }
  3253. #if LANG_CXX11
  3254. inline void TestMessage::set_repeated_string_value(int index, ::std::string&& value) {
  3255. // @@protoc_insertion_point(field_set:proto3.TestMessage.repeated_string_value)
  3256. repeated_string_value_.Mutable(index)->assign(std::move(value));
  3257. }
  3258. #endif
  3259. inline void TestMessage::set_repeated_string_value(int index, const char* value) {
  3260. GOOGLE_DCHECK(value != NULL);
  3261. repeated_string_value_.Mutable(index)->assign(value);
  3262. // @@protoc_insertion_point(field_set_char:proto3.TestMessage.repeated_string_value)
  3263. }
  3264. inline void TestMessage::set_repeated_string_value(int index, const char* value, size_t size) {
  3265. repeated_string_value_.Mutable(index)->assign(
  3266. reinterpret_cast<const char*>(value), size);
  3267. // @@protoc_insertion_point(field_set_pointer:proto3.TestMessage.repeated_string_value)
  3268. }
  3269. inline ::std::string* TestMessage::add_repeated_string_value() {
  3270. // @@protoc_insertion_point(field_add_mutable:proto3.TestMessage.repeated_string_value)
  3271. return repeated_string_value_.Add();
  3272. }
  3273. inline void TestMessage::add_repeated_string_value(const ::std::string& value) {
  3274. repeated_string_value_.Add()->assign(value);
  3275. // @@protoc_insertion_point(field_add:proto3.TestMessage.repeated_string_value)
  3276. }
  3277. #if LANG_CXX11
  3278. inline void TestMessage::add_repeated_string_value(::std::string&& value) {
  3279. repeated_string_value_.Add(std::move(value));
  3280. // @@protoc_insertion_point(field_add:proto3.TestMessage.repeated_string_value)
  3281. }
  3282. #endif
  3283. inline void TestMessage::add_repeated_string_value(const char* value) {
  3284. GOOGLE_DCHECK(value != NULL);
  3285. repeated_string_value_.Add()->assign(value);
  3286. // @@protoc_insertion_point(field_add_char:proto3.TestMessage.repeated_string_value)
  3287. }
  3288. inline void TestMessage::add_repeated_string_value(const char* value, size_t size) {
  3289. repeated_string_value_.Add()->assign(reinterpret_cast<const char*>(value), size);
  3290. // @@protoc_insertion_point(field_add_pointer:proto3.TestMessage.repeated_string_value)
  3291. }
  3292. inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
  3293. TestMessage::repeated_string_value() const {
  3294. // @@protoc_insertion_point(field_list:proto3.TestMessage.repeated_string_value)
  3295. return repeated_string_value_;
  3296. }
  3297. inline ::google::protobuf::RepeatedPtrField< ::std::string>*
  3298. TestMessage::mutable_repeated_string_value() {
  3299. // @@protoc_insertion_point(field_mutable_list:proto3.TestMessage.repeated_string_value)
  3300. return &repeated_string_value_;
  3301. }
  3302. // repeated bytes repeated_bytes_value = 29;
  3303. inline int TestMessage::repeated_bytes_value_size() const {
  3304. return repeated_bytes_value_.size();
  3305. }
  3306. inline void TestMessage::clear_repeated_bytes_value() {
  3307. repeated_bytes_value_.Clear();
  3308. }
  3309. inline const ::std::string& TestMessage::repeated_bytes_value(int index) const {
  3310. // @@protoc_insertion_point(field_get:proto3.TestMessage.repeated_bytes_value)
  3311. return repeated_bytes_value_.Get(index);
  3312. }
  3313. inline ::std::string* TestMessage::mutable_repeated_bytes_value(int index) {
  3314. // @@protoc_insertion_point(field_mutable:proto3.TestMessage.repeated_bytes_value)
  3315. return repeated_bytes_value_.Mutable(index);
  3316. }
  3317. inline void TestMessage::set_repeated_bytes_value(int index, const ::std::string& value) {
  3318. // @@protoc_insertion_point(field_set:proto3.TestMessage.repeated_bytes_value)
  3319. repeated_bytes_value_.Mutable(index)->assign(value);
  3320. }
  3321. #if LANG_CXX11
  3322. inline void TestMessage::set_repeated_bytes_value(int index, ::std::string&& value) {
  3323. // @@protoc_insertion_point(field_set:proto3.TestMessage.repeated_bytes_value)
  3324. repeated_bytes_value_.Mutable(index)->assign(std::move(value));
  3325. }
  3326. #endif
  3327. inline void TestMessage::set_repeated_bytes_value(int index, const char* value) {
  3328. GOOGLE_DCHECK(value != NULL);
  3329. repeated_bytes_value_.Mutable(index)->assign(value);
  3330. // @@protoc_insertion_point(field_set_char:proto3.TestMessage.repeated_bytes_value)
  3331. }
  3332. inline void TestMessage::set_repeated_bytes_value(int index, const void* value, size_t size) {
  3333. repeated_bytes_value_.Mutable(index)->assign(
  3334. reinterpret_cast<const char*>(value), size);
  3335. // @@protoc_insertion_point(field_set_pointer:proto3.TestMessage.repeated_bytes_value)
  3336. }
  3337. inline ::std::string* TestMessage::add_repeated_bytes_value() {
  3338. // @@protoc_insertion_point(field_add_mutable:proto3.TestMessage.repeated_bytes_value)
  3339. return repeated_bytes_value_.Add();
  3340. }
  3341. inline void TestMessage::add_repeated_bytes_value(const ::std::string& value) {
  3342. repeated_bytes_value_.Add()->assign(value);
  3343. // @@protoc_insertion_point(field_add:proto3.TestMessage.repeated_bytes_value)
  3344. }
  3345. #if LANG_CXX11
  3346. inline void TestMessage::add_repeated_bytes_value(::std::string&& value) {
  3347. repeated_bytes_value_.Add(std::move(value));
  3348. // @@protoc_insertion_point(field_add:proto3.TestMessage.repeated_bytes_value)
  3349. }
  3350. #endif
  3351. inline void TestMessage::add_repeated_bytes_value(const char* value) {
  3352. GOOGLE_DCHECK(value != NULL);
  3353. repeated_bytes_value_.Add()->assign(value);
  3354. // @@protoc_insertion_point(field_add_char:proto3.TestMessage.repeated_bytes_value)
  3355. }
  3356. inline void TestMessage::add_repeated_bytes_value(const void* value, size_t size) {
  3357. repeated_bytes_value_.Add()->assign(reinterpret_cast<const char*>(value), size);
  3358. // @@protoc_insertion_point(field_add_pointer:proto3.TestMessage.repeated_bytes_value)
  3359. }
  3360. inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
  3361. TestMessage::repeated_bytes_value() const {
  3362. // @@protoc_insertion_point(field_list:proto3.TestMessage.repeated_bytes_value)
  3363. return repeated_bytes_value_;
  3364. }
  3365. inline ::google::protobuf::RepeatedPtrField< ::std::string>*
  3366. TestMessage::mutable_repeated_bytes_value() {
  3367. // @@protoc_insertion_point(field_mutable_list:proto3.TestMessage.repeated_bytes_value)
  3368. return &repeated_bytes_value_;
  3369. }
  3370. // repeated .proto3.EnumType repeated_enum_value = 30;
  3371. inline int TestMessage::repeated_enum_value_size() const {
  3372. return repeated_enum_value_.size();
  3373. }
  3374. inline void TestMessage::clear_repeated_enum_value() {
  3375. repeated_enum_value_.Clear();
  3376. }
  3377. inline ::proto3::EnumType TestMessage::repeated_enum_value(int index) const {
  3378. // @@protoc_insertion_point(field_get:proto3.TestMessage.repeated_enum_value)
  3379. return static_cast< ::proto3::EnumType >(repeated_enum_value_.Get(index));
  3380. }
  3381. inline void TestMessage::set_repeated_enum_value(int index, ::proto3::EnumType value) {
  3382. repeated_enum_value_.Set(index, value);
  3383. // @@protoc_insertion_point(field_set:proto3.TestMessage.repeated_enum_value)
  3384. }
  3385. inline void TestMessage::add_repeated_enum_value(::proto3::EnumType value) {
  3386. repeated_enum_value_.Add(value);
  3387. // @@protoc_insertion_point(field_add:proto3.TestMessage.repeated_enum_value)
  3388. }
  3389. inline const ::google::protobuf::RepeatedField<int>&
  3390. TestMessage::repeated_enum_value() const {
  3391. // @@protoc_insertion_point(field_list:proto3.TestMessage.repeated_enum_value)
  3392. return repeated_enum_value_;
  3393. }
  3394. inline ::google::protobuf::RepeatedField<int>*
  3395. TestMessage::mutable_repeated_enum_value() {
  3396. // @@protoc_insertion_point(field_mutable_list:proto3.TestMessage.repeated_enum_value)
  3397. return &repeated_enum_value_;
  3398. }
  3399. // repeated .proto3.MessageType repeated_message_value = 31;
  3400. inline int TestMessage::repeated_message_value_size() const {
  3401. return repeated_message_value_.size();
  3402. }
  3403. inline void TestMessage::clear_repeated_message_value() {
  3404. repeated_message_value_.Clear();
  3405. }
  3406. inline ::proto3::MessageType* TestMessage::mutable_repeated_message_value(int index) {
  3407. // @@protoc_insertion_point(field_mutable:proto3.TestMessage.repeated_message_value)
  3408. return repeated_message_value_.Mutable(index);
  3409. }
  3410. inline ::google::protobuf::RepeatedPtrField< ::proto3::MessageType >*
  3411. TestMessage::mutable_repeated_message_value() {
  3412. // @@protoc_insertion_point(field_mutable_list:proto3.TestMessage.repeated_message_value)
  3413. return &repeated_message_value_;
  3414. }
  3415. inline const ::proto3::MessageType& TestMessage::repeated_message_value(int index) const {
  3416. // @@protoc_insertion_point(field_get:proto3.TestMessage.repeated_message_value)
  3417. return repeated_message_value_.Get(index);
  3418. }
  3419. inline ::proto3::MessageType* TestMessage::add_repeated_message_value() {
  3420. // @@protoc_insertion_point(field_add:proto3.TestMessage.repeated_message_value)
  3421. return repeated_message_value_.Add();
  3422. }
  3423. inline const ::google::protobuf::RepeatedPtrField< ::proto3::MessageType >&
  3424. TestMessage::repeated_message_value() const {
  3425. // @@protoc_insertion_point(field_list:proto3.TestMessage.repeated_message_value)
  3426. return repeated_message_value_;
  3427. }
  3428. // -------------------------------------------------------------------
  3429. // TestOneof
  3430. // int32 oneof_int32_value = 1;
  3431. inline bool TestOneof::has_oneof_int32_value() const {
  3432. return oneof_value_case() == kOneofInt32Value;
  3433. }
  3434. inline void TestOneof::set_has_oneof_int32_value() {
  3435. _oneof_case_[0] = kOneofInt32Value;
  3436. }
  3437. inline void TestOneof::clear_oneof_int32_value() {
  3438. if (has_oneof_int32_value()) {
  3439. oneof_value_.oneof_int32_value_ = 0;
  3440. clear_has_oneof_value();
  3441. }
  3442. }
  3443. inline ::google::protobuf::int32 TestOneof::oneof_int32_value() const {
  3444. // @@protoc_insertion_point(field_get:proto3.TestOneof.oneof_int32_value)
  3445. if (has_oneof_int32_value()) {
  3446. return oneof_value_.oneof_int32_value_;
  3447. }
  3448. return 0;
  3449. }
  3450. inline void TestOneof::set_oneof_int32_value(::google::protobuf::int32 value) {
  3451. if (!has_oneof_int32_value()) {
  3452. clear_oneof_value();
  3453. set_has_oneof_int32_value();
  3454. }
  3455. oneof_value_.oneof_int32_value_ = value;
  3456. // @@protoc_insertion_point(field_set:proto3.TestOneof.oneof_int32_value)
  3457. }
  3458. // string oneof_string_value = 2;
  3459. inline bool TestOneof::has_oneof_string_value() const {
  3460. return oneof_value_case() == kOneofStringValue;
  3461. }
  3462. inline void TestOneof::set_has_oneof_string_value() {
  3463. _oneof_case_[0] = kOneofStringValue;
  3464. }
  3465. inline void TestOneof::clear_oneof_string_value() {
  3466. if (has_oneof_string_value()) {
  3467. oneof_value_.oneof_string_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3468. clear_has_oneof_value();
  3469. }
  3470. }
  3471. inline const ::std::string& TestOneof::oneof_string_value() const {
  3472. // @@protoc_insertion_point(field_get:proto3.TestOneof.oneof_string_value)
  3473. if (has_oneof_string_value()) {
  3474. return oneof_value_.oneof_string_value_.GetNoArena();
  3475. }
  3476. return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
  3477. }
  3478. inline void TestOneof::set_oneof_string_value(const ::std::string& value) {
  3479. // @@protoc_insertion_point(field_set:proto3.TestOneof.oneof_string_value)
  3480. if (!has_oneof_string_value()) {
  3481. clear_oneof_value();
  3482. set_has_oneof_string_value();
  3483. oneof_value_.oneof_string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3484. }
  3485. oneof_value_.oneof_string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  3486. // @@protoc_insertion_point(field_set:proto3.TestOneof.oneof_string_value)
  3487. }
  3488. #if LANG_CXX11
  3489. inline void TestOneof::set_oneof_string_value(::std::string&& value) {
  3490. // @@protoc_insertion_point(field_set:proto3.TestOneof.oneof_string_value)
  3491. if (!has_oneof_string_value()) {
  3492. clear_oneof_value();
  3493. set_has_oneof_string_value();
  3494. oneof_value_.oneof_string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3495. }
  3496. oneof_value_.oneof_string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  3497. // @@protoc_insertion_point(field_set_rvalue:proto3.TestOneof.oneof_string_value)
  3498. }
  3499. #endif
  3500. inline void TestOneof::set_oneof_string_value(const char* value) {
  3501. GOOGLE_DCHECK(value != NULL);
  3502. if (!has_oneof_string_value()) {
  3503. clear_oneof_value();
  3504. set_has_oneof_string_value();
  3505. oneof_value_.oneof_string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3506. }
  3507. oneof_value_.oneof_string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  3508. ::std::string(value));
  3509. // @@protoc_insertion_point(field_set_char:proto3.TestOneof.oneof_string_value)
  3510. }
  3511. inline void TestOneof::set_oneof_string_value(const char* value, size_t size) {
  3512. if (!has_oneof_string_value()) {
  3513. clear_oneof_value();
  3514. set_has_oneof_string_value();
  3515. oneof_value_.oneof_string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3516. }
  3517. oneof_value_.oneof_string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  3518. reinterpret_cast<const char*>(value), size));
  3519. // @@protoc_insertion_point(field_set_pointer:proto3.TestOneof.oneof_string_value)
  3520. }
  3521. inline ::std::string* TestOneof::mutable_oneof_string_value() {
  3522. if (!has_oneof_string_value()) {
  3523. clear_oneof_value();
  3524. set_has_oneof_string_value();
  3525. oneof_value_.oneof_string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3526. }
  3527. // @@protoc_insertion_point(field_mutable:proto3.TestOneof.oneof_string_value)
  3528. return oneof_value_.oneof_string_value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3529. }
  3530. inline ::std::string* TestOneof::release_oneof_string_value() {
  3531. // @@protoc_insertion_point(field_release:proto3.TestOneof.oneof_string_value)
  3532. if (has_oneof_string_value()) {
  3533. clear_has_oneof_value();
  3534. return oneof_value_.oneof_string_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3535. } else {
  3536. return NULL;
  3537. }
  3538. }
  3539. inline void TestOneof::set_allocated_oneof_string_value(::std::string* oneof_string_value) {
  3540. if (!has_oneof_string_value()) {
  3541. oneof_value_.oneof_string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3542. }
  3543. clear_oneof_value();
  3544. if (oneof_string_value != NULL) {
  3545. set_has_oneof_string_value();
  3546. oneof_value_.oneof_string_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), oneof_string_value);
  3547. }
  3548. // @@protoc_insertion_point(field_set_allocated:proto3.TestOneof.oneof_string_value)
  3549. }
  3550. // bytes oneof_bytes_value = 3;
  3551. inline bool TestOneof::has_oneof_bytes_value() const {
  3552. return oneof_value_case() == kOneofBytesValue;
  3553. }
  3554. inline void TestOneof::set_has_oneof_bytes_value() {
  3555. _oneof_case_[0] = kOneofBytesValue;
  3556. }
  3557. inline void TestOneof::clear_oneof_bytes_value() {
  3558. if (has_oneof_bytes_value()) {
  3559. oneof_value_.oneof_bytes_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3560. clear_has_oneof_value();
  3561. }
  3562. }
  3563. inline const ::std::string& TestOneof::oneof_bytes_value() const {
  3564. // @@protoc_insertion_point(field_get:proto3.TestOneof.oneof_bytes_value)
  3565. if (has_oneof_bytes_value()) {
  3566. return oneof_value_.oneof_bytes_value_.GetNoArena();
  3567. }
  3568. return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
  3569. }
  3570. inline void TestOneof::set_oneof_bytes_value(const ::std::string& value) {
  3571. // @@protoc_insertion_point(field_set:proto3.TestOneof.oneof_bytes_value)
  3572. if (!has_oneof_bytes_value()) {
  3573. clear_oneof_value();
  3574. set_has_oneof_bytes_value();
  3575. oneof_value_.oneof_bytes_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3576. }
  3577. oneof_value_.oneof_bytes_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  3578. // @@protoc_insertion_point(field_set:proto3.TestOneof.oneof_bytes_value)
  3579. }
  3580. #if LANG_CXX11
  3581. inline void TestOneof::set_oneof_bytes_value(::std::string&& value) {
  3582. // @@protoc_insertion_point(field_set:proto3.TestOneof.oneof_bytes_value)
  3583. if (!has_oneof_bytes_value()) {
  3584. clear_oneof_value();
  3585. set_has_oneof_bytes_value();
  3586. oneof_value_.oneof_bytes_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3587. }
  3588. oneof_value_.oneof_bytes_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  3589. // @@protoc_insertion_point(field_set_rvalue:proto3.TestOneof.oneof_bytes_value)
  3590. }
  3591. #endif
  3592. inline void TestOneof::set_oneof_bytes_value(const char* value) {
  3593. GOOGLE_DCHECK(value != NULL);
  3594. if (!has_oneof_bytes_value()) {
  3595. clear_oneof_value();
  3596. set_has_oneof_bytes_value();
  3597. oneof_value_.oneof_bytes_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3598. }
  3599. oneof_value_.oneof_bytes_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  3600. ::std::string(value));
  3601. // @@protoc_insertion_point(field_set_char:proto3.TestOneof.oneof_bytes_value)
  3602. }
  3603. inline void TestOneof::set_oneof_bytes_value(const void* value, size_t size) {
  3604. if (!has_oneof_bytes_value()) {
  3605. clear_oneof_value();
  3606. set_has_oneof_bytes_value();
  3607. oneof_value_.oneof_bytes_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3608. }
  3609. oneof_value_.oneof_bytes_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  3610. reinterpret_cast<const char*>(value), size));
  3611. // @@protoc_insertion_point(field_set_pointer:proto3.TestOneof.oneof_bytes_value)
  3612. }
  3613. inline ::std::string* TestOneof::mutable_oneof_bytes_value() {
  3614. if (!has_oneof_bytes_value()) {
  3615. clear_oneof_value();
  3616. set_has_oneof_bytes_value();
  3617. oneof_value_.oneof_bytes_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3618. }
  3619. // @@protoc_insertion_point(field_mutable:proto3.TestOneof.oneof_bytes_value)
  3620. return oneof_value_.oneof_bytes_value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3621. }
  3622. inline ::std::string* TestOneof::release_oneof_bytes_value() {
  3623. // @@protoc_insertion_point(field_release:proto3.TestOneof.oneof_bytes_value)
  3624. if (has_oneof_bytes_value()) {
  3625. clear_has_oneof_value();
  3626. return oneof_value_.oneof_bytes_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3627. } else {
  3628. return NULL;
  3629. }
  3630. }
  3631. inline void TestOneof::set_allocated_oneof_bytes_value(::std::string* oneof_bytes_value) {
  3632. if (!has_oneof_bytes_value()) {
  3633. oneof_value_.oneof_bytes_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3634. }
  3635. clear_oneof_value();
  3636. if (oneof_bytes_value != NULL) {
  3637. set_has_oneof_bytes_value();
  3638. oneof_value_.oneof_bytes_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), oneof_bytes_value);
  3639. }
  3640. // @@protoc_insertion_point(field_set_allocated:proto3.TestOneof.oneof_bytes_value)
  3641. }
  3642. // .proto3.EnumType oneof_enum_value = 4;
  3643. inline bool TestOneof::has_oneof_enum_value() const {
  3644. return oneof_value_case() == kOneofEnumValue;
  3645. }
  3646. inline void TestOneof::set_has_oneof_enum_value() {
  3647. _oneof_case_[0] = kOneofEnumValue;
  3648. }
  3649. inline void TestOneof::clear_oneof_enum_value() {
  3650. if (has_oneof_enum_value()) {
  3651. oneof_value_.oneof_enum_value_ = 0;
  3652. clear_has_oneof_value();
  3653. }
  3654. }
  3655. inline ::proto3::EnumType TestOneof::oneof_enum_value() const {
  3656. // @@protoc_insertion_point(field_get:proto3.TestOneof.oneof_enum_value)
  3657. if (has_oneof_enum_value()) {
  3658. return static_cast< ::proto3::EnumType >(oneof_value_.oneof_enum_value_);
  3659. }
  3660. return static_cast< ::proto3::EnumType >(0);
  3661. }
  3662. inline void TestOneof::set_oneof_enum_value(::proto3::EnumType value) {
  3663. if (!has_oneof_enum_value()) {
  3664. clear_oneof_value();
  3665. set_has_oneof_enum_value();
  3666. }
  3667. oneof_value_.oneof_enum_value_ = value;
  3668. // @@protoc_insertion_point(field_set:proto3.TestOneof.oneof_enum_value)
  3669. }
  3670. // .proto3.MessageType oneof_message_value = 5;
  3671. inline bool TestOneof::has_oneof_message_value() const {
  3672. return oneof_value_case() == kOneofMessageValue;
  3673. }
  3674. inline void TestOneof::set_has_oneof_message_value() {
  3675. _oneof_case_[0] = kOneofMessageValue;
  3676. }
  3677. inline void TestOneof::clear_oneof_message_value() {
  3678. if (has_oneof_message_value()) {
  3679. delete oneof_value_.oneof_message_value_;
  3680. clear_has_oneof_value();
  3681. }
  3682. }
  3683. inline const ::proto3::MessageType& TestOneof::_internal_oneof_message_value() const {
  3684. return *oneof_value_.oneof_message_value_;
  3685. }
  3686. inline ::proto3::MessageType* TestOneof::release_oneof_message_value() {
  3687. // @@protoc_insertion_point(field_release:proto3.TestOneof.oneof_message_value)
  3688. if (has_oneof_message_value()) {
  3689. clear_has_oneof_value();
  3690. ::proto3::MessageType* temp = oneof_value_.oneof_message_value_;
  3691. oneof_value_.oneof_message_value_ = NULL;
  3692. return temp;
  3693. } else {
  3694. return NULL;
  3695. }
  3696. }
  3697. inline const ::proto3::MessageType& TestOneof::oneof_message_value() const {
  3698. // @@protoc_insertion_point(field_get:proto3.TestOneof.oneof_message_value)
  3699. return has_oneof_message_value()
  3700. ? *oneof_value_.oneof_message_value_
  3701. : *reinterpret_cast< ::proto3::MessageType*>(&::proto3::_MessageType_default_instance_);
  3702. }
  3703. inline ::proto3::MessageType* TestOneof::mutable_oneof_message_value() {
  3704. if (!has_oneof_message_value()) {
  3705. clear_oneof_value();
  3706. set_has_oneof_message_value();
  3707. oneof_value_.oneof_message_value_ = CreateMaybeMessage< ::proto3::MessageType >(
  3708. GetArenaNoVirtual());
  3709. }
  3710. // @@protoc_insertion_point(field_mutable:proto3.TestOneof.oneof_message_value)
  3711. return oneof_value_.oneof_message_value_;
  3712. }
  3713. inline bool TestOneof::has_oneof_value() const {
  3714. return oneof_value_case() != ONEOF_VALUE_NOT_SET;
  3715. }
  3716. inline void TestOneof::clear_has_oneof_value() {
  3717. _oneof_case_[0] = ONEOF_VALUE_NOT_SET;
  3718. }
  3719. inline TestOneof::OneofValueCase TestOneof::oneof_value_case() const {
  3720. return TestOneof::OneofValueCase(_oneof_case_[0]);
  3721. }
  3722. // -------------------------------------------------------------------
  3723. // -------------------------------------------------------------------
  3724. // -------------------------------------------------------------------
  3725. // -------------------------------------------------------------------
  3726. // -------------------------------------------------------------------
  3727. // -------------------------------------------------------------------
  3728. // -------------------------------------------------------------------
  3729. // TestMap
  3730. // map<bool, int32> bool_map = 1;
  3731. inline int TestMap::bool_map_size() const {
  3732. return bool_map_.size();
  3733. }
  3734. inline void TestMap::clear_bool_map() {
  3735. bool_map_.Clear();
  3736. }
  3737. inline const ::google::protobuf::Map< bool, ::google::protobuf::int32 >&
  3738. TestMap::bool_map() const {
  3739. // @@protoc_insertion_point(field_map:proto3.TestMap.bool_map)
  3740. return bool_map_.GetMap();
  3741. }
  3742. inline ::google::protobuf::Map< bool, ::google::protobuf::int32 >*
  3743. TestMap::mutable_bool_map() {
  3744. // @@protoc_insertion_point(field_mutable_map:proto3.TestMap.bool_map)
  3745. return bool_map_.MutableMap();
  3746. }
  3747. // map<int32, int32> int32_map = 2;
  3748. inline int TestMap::int32_map_size() const {
  3749. return int32_map_.size();
  3750. }
  3751. inline void TestMap::clear_int32_map() {
  3752. int32_map_.Clear();
  3753. }
  3754. inline const ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >&
  3755. TestMap::int32_map() const {
  3756. // @@protoc_insertion_point(field_map:proto3.TestMap.int32_map)
  3757. return int32_map_.GetMap();
  3758. }
  3759. inline ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >*
  3760. TestMap::mutable_int32_map() {
  3761. // @@protoc_insertion_point(field_mutable_map:proto3.TestMap.int32_map)
  3762. return int32_map_.MutableMap();
  3763. }
  3764. // map<int64, int32> int64_map = 3;
  3765. inline int TestMap::int64_map_size() const {
  3766. return int64_map_.size();
  3767. }
  3768. inline void TestMap::clear_int64_map() {
  3769. int64_map_.Clear();
  3770. }
  3771. inline const ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int32 >&
  3772. TestMap::int64_map() const {
  3773. // @@protoc_insertion_point(field_map:proto3.TestMap.int64_map)
  3774. return int64_map_.GetMap();
  3775. }
  3776. inline ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int32 >*
  3777. TestMap::mutable_int64_map() {
  3778. // @@protoc_insertion_point(field_mutable_map:proto3.TestMap.int64_map)
  3779. return int64_map_.MutableMap();
  3780. }
  3781. // map<uint32, int32> uint32_map = 4;
  3782. inline int TestMap::uint32_map_size() const {
  3783. return uint32_map_.size();
  3784. }
  3785. inline void TestMap::clear_uint32_map() {
  3786. uint32_map_.Clear();
  3787. }
  3788. inline const ::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::int32 >&
  3789. TestMap::uint32_map() const {
  3790. // @@protoc_insertion_point(field_map:proto3.TestMap.uint32_map)
  3791. return uint32_map_.GetMap();
  3792. }
  3793. inline ::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::int32 >*
  3794. TestMap::mutable_uint32_map() {
  3795. // @@protoc_insertion_point(field_mutable_map:proto3.TestMap.uint32_map)
  3796. return uint32_map_.MutableMap();
  3797. }
  3798. // map<uint64, int32> uint64_map = 5;
  3799. inline int TestMap::uint64_map_size() const {
  3800. return uint64_map_.size();
  3801. }
  3802. inline void TestMap::clear_uint64_map() {
  3803. uint64_map_.Clear();
  3804. }
  3805. inline const ::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::int32 >&
  3806. TestMap::uint64_map() const {
  3807. // @@protoc_insertion_point(field_map:proto3.TestMap.uint64_map)
  3808. return uint64_map_.GetMap();
  3809. }
  3810. inline ::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::int32 >*
  3811. TestMap::mutable_uint64_map() {
  3812. // @@protoc_insertion_point(field_mutable_map:proto3.TestMap.uint64_map)
  3813. return uint64_map_.MutableMap();
  3814. }
  3815. // map<string, int32> string_map = 6;
  3816. inline int TestMap::string_map_size() const {
  3817. return string_map_.size();
  3818. }
  3819. inline void TestMap::clear_string_map() {
  3820. string_map_.Clear();
  3821. }
  3822. inline const ::google::protobuf::Map< ::std::string, ::google::protobuf::int32 >&
  3823. TestMap::string_map() const {
  3824. // @@protoc_insertion_point(field_map:proto3.TestMap.string_map)
  3825. return string_map_.GetMap();
  3826. }
  3827. inline ::google::protobuf::Map< ::std::string, ::google::protobuf::int32 >*
  3828. TestMap::mutable_string_map() {
  3829. // @@protoc_insertion_point(field_mutable_map:proto3.TestMap.string_map)
  3830. return string_map_.MutableMap();
  3831. }
  3832. // -------------------------------------------------------------------
  3833. // -------------------------------------------------------------------
  3834. // -------------------------------------------------------------------
  3835. // -------------------------------------------------------------------
  3836. // -------------------------------------------------------------------
  3837. // -------------------------------------------------------------------
  3838. // -------------------------------------------------------------------
  3839. // -------------------------------------------------------------------
  3840. // TestNestedMap
  3841. // map<bool, int32> bool_map = 1;
  3842. inline int TestNestedMap::bool_map_size() const {
  3843. return bool_map_.size();
  3844. }
  3845. inline void TestNestedMap::clear_bool_map() {
  3846. bool_map_.Clear();
  3847. }
  3848. inline const ::google::protobuf::Map< bool, ::google::protobuf::int32 >&
  3849. TestNestedMap::bool_map() const {
  3850. // @@protoc_insertion_point(field_map:proto3.TestNestedMap.bool_map)
  3851. return bool_map_.GetMap();
  3852. }
  3853. inline ::google::protobuf::Map< bool, ::google::protobuf::int32 >*
  3854. TestNestedMap::mutable_bool_map() {
  3855. // @@protoc_insertion_point(field_mutable_map:proto3.TestNestedMap.bool_map)
  3856. return bool_map_.MutableMap();
  3857. }
  3858. // map<int32, int32> int32_map = 2;
  3859. inline int TestNestedMap::int32_map_size() const {
  3860. return int32_map_.size();
  3861. }
  3862. inline void TestNestedMap::clear_int32_map() {
  3863. int32_map_.Clear();
  3864. }
  3865. inline const ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >&
  3866. TestNestedMap::int32_map() const {
  3867. // @@protoc_insertion_point(field_map:proto3.TestNestedMap.int32_map)
  3868. return int32_map_.GetMap();
  3869. }
  3870. inline ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >*
  3871. TestNestedMap::mutable_int32_map() {
  3872. // @@protoc_insertion_point(field_mutable_map:proto3.TestNestedMap.int32_map)
  3873. return int32_map_.MutableMap();
  3874. }
  3875. // map<int64, int32> int64_map = 3;
  3876. inline int TestNestedMap::int64_map_size() const {
  3877. return int64_map_.size();
  3878. }
  3879. inline void TestNestedMap::clear_int64_map() {
  3880. int64_map_.Clear();
  3881. }
  3882. inline const ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int32 >&
  3883. TestNestedMap::int64_map() const {
  3884. // @@protoc_insertion_point(field_map:proto3.TestNestedMap.int64_map)
  3885. return int64_map_.GetMap();
  3886. }
  3887. inline ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int32 >*
  3888. TestNestedMap::mutable_int64_map() {
  3889. // @@protoc_insertion_point(field_mutable_map:proto3.TestNestedMap.int64_map)
  3890. return int64_map_.MutableMap();
  3891. }
  3892. // map<uint32, int32> uint32_map = 4;
  3893. inline int TestNestedMap::uint32_map_size() const {
  3894. return uint32_map_.size();
  3895. }
  3896. inline void TestNestedMap::clear_uint32_map() {
  3897. uint32_map_.Clear();
  3898. }
  3899. inline const ::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::int32 >&
  3900. TestNestedMap::uint32_map() const {
  3901. // @@protoc_insertion_point(field_map:proto3.TestNestedMap.uint32_map)
  3902. return uint32_map_.GetMap();
  3903. }
  3904. inline ::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::int32 >*
  3905. TestNestedMap::mutable_uint32_map() {
  3906. // @@protoc_insertion_point(field_mutable_map:proto3.TestNestedMap.uint32_map)
  3907. return uint32_map_.MutableMap();
  3908. }
  3909. // map<uint64, int32> uint64_map = 5;
  3910. inline int TestNestedMap::uint64_map_size() const {
  3911. return uint64_map_.size();
  3912. }
  3913. inline void TestNestedMap::clear_uint64_map() {
  3914. uint64_map_.Clear();
  3915. }
  3916. inline const ::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::int32 >&
  3917. TestNestedMap::uint64_map() const {
  3918. // @@protoc_insertion_point(field_map:proto3.TestNestedMap.uint64_map)
  3919. return uint64_map_.GetMap();
  3920. }
  3921. inline ::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::int32 >*
  3922. TestNestedMap::mutable_uint64_map() {
  3923. // @@protoc_insertion_point(field_mutable_map:proto3.TestNestedMap.uint64_map)
  3924. return uint64_map_.MutableMap();
  3925. }
  3926. // map<string, int32> string_map = 6;
  3927. inline int TestNestedMap::string_map_size() const {
  3928. return string_map_.size();
  3929. }
  3930. inline void TestNestedMap::clear_string_map() {
  3931. string_map_.Clear();
  3932. }
  3933. inline const ::google::protobuf::Map< ::std::string, ::google::protobuf::int32 >&
  3934. TestNestedMap::string_map() const {
  3935. // @@protoc_insertion_point(field_map:proto3.TestNestedMap.string_map)
  3936. return string_map_.GetMap();
  3937. }
  3938. inline ::google::protobuf::Map< ::std::string, ::google::protobuf::int32 >*
  3939. TestNestedMap::mutable_string_map() {
  3940. // @@protoc_insertion_point(field_mutable_map:proto3.TestNestedMap.string_map)
  3941. return string_map_.MutableMap();
  3942. }
  3943. // map<string, .proto3.TestNestedMap> map_map = 7;
  3944. inline int TestNestedMap::map_map_size() const {
  3945. return map_map_.size();
  3946. }
  3947. inline void TestNestedMap::clear_map_map() {
  3948. map_map_.Clear();
  3949. }
  3950. inline const ::google::protobuf::Map< ::std::string, ::proto3::TestNestedMap >&
  3951. TestNestedMap::map_map() const {
  3952. // @@protoc_insertion_point(field_map:proto3.TestNestedMap.map_map)
  3953. return map_map_.GetMap();
  3954. }
  3955. inline ::google::protobuf::Map< ::std::string, ::proto3::TestNestedMap >*
  3956. TestNestedMap::mutable_map_map() {
  3957. // @@protoc_insertion_point(field_mutable_map:proto3.TestNestedMap.map_map)
  3958. return map_map_.MutableMap();
  3959. }
  3960. // -------------------------------------------------------------------
  3961. // TestWrapper
  3962. // .google.protobuf.BoolValue bool_value = 1;
  3963. inline bool TestWrapper::has_bool_value() const {
  3964. return this != internal_default_instance() && bool_value_ != NULL;
  3965. }
  3966. inline const ::google::protobuf::BoolValue& TestWrapper::_internal_bool_value() const {
  3967. return *bool_value_;
  3968. }
  3969. inline const ::google::protobuf::BoolValue& TestWrapper::bool_value() const {
  3970. const ::google::protobuf::BoolValue* p = bool_value_;
  3971. // @@protoc_insertion_point(field_get:proto3.TestWrapper.bool_value)
  3972. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::BoolValue*>(
  3973. &::google::protobuf::_BoolValue_default_instance_);
  3974. }
  3975. inline ::google::protobuf::BoolValue* TestWrapper::release_bool_value() {
  3976. // @@protoc_insertion_point(field_release:proto3.TestWrapper.bool_value)
  3977. ::google::protobuf::BoolValue* temp = bool_value_;
  3978. bool_value_ = NULL;
  3979. return temp;
  3980. }
  3981. inline ::google::protobuf::BoolValue* TestWrapper::mutable_bool_value() {
  3982. if (bool_value_ == NULL) {
  3983. auto* p = CreateMaybeMessage<::google::protobuf::BoolValue>(GetArenaNoVirtual());
  3984. bool_value_ = p;
  3985. }
  3986. // @@protoc_insertion_point(field_mutable:proto3.TestWrapper.bool_value)
  3987. return bool_value_;
  3988. }
  3989. inline void TestWrapper::set_allocated_bool_value(::google::protobuf::BoolValue* bool_value) {
  3990. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  3991. if (message_arena == NULL) {
  3992. delete reinterpret_cast< ::google::protobuf::MessageLite*>(bool_value_);
  3993. }
  3994. if (bool_value) {
  3995. ::google::protobuf::Arena* submessage_arena =
  3996. reinterpret_cast<::google::protobuf::MessageLite*>(bool_value)->GetArena();
  3997. if (message_arena != submessage_arena) {
  3998. bool_value = ::google::protobuf::internal::GetOwnedMessage(
  3999. message_arena, bool_value, submessage_arena);
  4000. }
  4001. } else {
  4002. }
  4003. bool_value_ = bool_value;
  4004. // @@protoc_insertion_point(field_set_allocated:proto3.TestWrapper.bool_value)
  4005. }
  4006. // .google.protobuf.Int32Value int32_value = 2;
  4007. inline bool TestWrapper::has_int32_value() const {
  4008. return this != internal_default_instance() && int32_value_ != NULL;
  4009. }
  4010. inline const ::google::protobuf::Int32Value& TestWrapper::_internal_int32_value() const {
  4011. return *int32_value_;
  4012. }
  4013. inline const ::google::protobuf::Int32Value& TestWrapper::int32_value() const {
  4014. const ::google::protobuf::Int32Value* p = int32_value_;
  4015. // @@protoc_insertion_point(field_get:proto3.TestWrapper.int32_value)
  4016. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Int32Value*>(
  4017. &::google::protobuf::_Int32Value_default_instance_);
  4018. }
  4019. inline ::google::protobuf::Int32Value* TestWrapper::release_int32_value() {
  4020. // @@protoc_insertion_point(field_release:proto3.TestWrapper.int32_value)
  4021. ::google::protobuf::Int32Value* temp = int32_value_;
  4022. int32_value_ = NULL;
  4023. return temp;
  4024. }
  4025. inline ::google::protobuf::Int32Value* TestWrapper::mutable_int32_value() {
  4026. if (int32_value_ == NULL) {
  4027. auto* p = CreateMaybeMessage<::google::protobuf::Int32Value>(GetArenaNoVirtual());
  4028. int32_value_ = p;
  4029. }
  4030. // @@protoc_insertion_point(field_mutable:proto3.TestWrapper.int32_value)
  4031. return int32_value_;
  4032. }
  4033. inline void TestWrapper::set_allocated_int32_value(::google::protobuf::Int32Value* int32_value) {
  4034. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  4035. if (message_arena == NULL) {
  4036. delete reinterpret_cast< ::google::protobuf::MessageLite*>(int32_value_);
  4037. }
  4038. if (int32_value) {
  4039. ::google::protobuf::Arena* submessage_arena =
  4040. reinterpret_cast<::google::protobuf::MessageLite*>(int32_value)->GetArena();
  4041. if (message_arena != submessage_arena) {
  4042. int32_value = ::google::protobuf::internal::GetOwnedMessage(
  4043. message_arena, int32_value, submessage_arena);
  4044. }
  4045. } else {
  4046. }
  4047. int32_value_ = int32_value;
  4048. // @@protoc_insertion_point(field_set_allocated:proto3.TestWrapper.int32_value)
  4049. }
  4050. // .google.protobuf.Int64Value int64_value = 3;
  4051. inline bool TestWrapper::has_int64_value() const {
  4052. return this != internal_default_instance() && int64_value_ != NULL;
  4053. }
  4054. inline const ::google::protobuf::Int64Value& TestWrapper::_internal_int64_value() const {
  4055. return *int64_value_;
  4056. }
  4057. inline const ::google::protobuf::Int64Value& TestWrapper::int64_value() const {
  4058. const ::google::protobuf::Int64Value* p = int64_value_;
  4059. // @@protoc_insertion_point(field_get:proto3.TestWrapper.int64_value)
  4060. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Int64Value*>(
  4061. &::google::protobuf::_Int64Value_default_instance_);
  4062. }
  4063. inline ::google::protobuf::Int64Value* TestWrapper::release_int64_value() {
  4064. // @@protoc_insertion_point(field_release:proto3.TestWrapper.int64_value)
  4065. ::google::protobuf::Int64Value* temp = int64_value_;
  4066. int64_value_ = NULL;
  4067. return temp;
  4068. }
  4069. inline ::google::protobuf::Int64Value* TestWrapper::mutable_int64_value() {
  4070. if (int64_value_ == NULL) {
  4071. auto* p = CreateMaybeMessage<::google::protobuf::Int64Value>(GetArenaNoVirtual());
  4072. int64_value_ = p;
  4073. }
  4074. // @@protoc_insertion_point(field_mutable:proto3.TestWrapper.int64_value)
  4075. return int64_value_;
  4076. }
  4077. inline void TestWrapper::set_allocated_int64_value(::google::protobuf::Int64Value* int64_value) {
  4078. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  4079. if (message_arena == NULL) {
  4080. delete reinterpret_cast< ::google::protobuf::MessageLite*>(int64_value_);
  4081. }
  4082. if (int64_value) {
  4083. ::google::protobuf::Arena* submessage_arena =
  4084. reinterpret_cast<::google::protobuf::MessageLite*>(int64_value)->GetArena();
  4085. if (message_arena != submessage_arena) {
  4086. int64_value = ::google::protobuf::internal::GetOwnedMessage(
  4087. message_arena, int64_value, submessage_arena);
  4088. }
  4089. } else {
  4090. }
  4091. int64_value_ = int64_value;
  4092. // @@protoc_insertion_point(field_set_allocated:proto3.TestWrapper.int64_value)
  4093. }
  4094. // .google.protobuf.UInt32Value uint32_value = 4;
  4095. inline bool TestWrapper::has_uint32_value() const {
  4096. return this != internal_default_instance() && uint32_value_ != NULL;
  4097. }
  4098. inline const ::google::protobuf::UInt32Value& TestWrapper::_internal_uint32_value() const {
  4099. return *uint32_value_;
  4100. }
  4101. inline const ::google::protobuf::UInt32Value& TestWrapper::uint32_value() const {
  4102. const ::google::protobuf::UInt32Value* p = uint32_value_;
  4103. // @@protoc_insertion_point(field_get:proto3.TestWrapper.uint32_value)
  4104. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::UInt32Value*>(
  4105. &::google::protobuf::_UInt32Value_default_instance_);
  4106. }
  4107. inline ::google::protobuf::UInt32Value* TestWrapper::release_uint32_value() {
  4108. // @@protoc_insertion_point(field_release:proto3.TestWrapper.uint32_value)
  4109. ::google::protobuf::UInt32Value* temp = uint32_value_;
  4110. uint32_value_ = NULL;
  4111. return temp;
  4112. }
  4113. inline ::google::protobuf::UInt32Value* TestWrapper::mutable_uint32_value() {
  4114. if (uint32_value_ == NULL) {
  4115. auto* p = CreateMaybeMessage<::google::protobuf::UInt32Value>(GetArenaNoVirtual());
  4116. uint32_value_ = p;
  4117. }
  4118. // @@protoc_insertion_point(field_mutable:proto3.TestWrapper.uint32_value)
  4119. return uint32_value_;
  4120. }
  4121. inline void TestWrapper::set_allocated_uint32_value(::google::protobuf::UInt32Value* uint32_value) {
  4122. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  4123. if (message_arena == NULL) {
  4124. delete reinterpret_cast< ::google::protobuf::MessageLite*>(uint32_value_);
  4125. }
  4126. if (uint32_value) {
  4127. ::google::protobuf::Arena* submessage_arena =
  4128. reinterpret_cast<::google::protobuf::MessageLite*>(uint32_value)->GetArena();
  4129. if (message_arena != submessage_arena) {
  4130. uint32_value = ::google::protobuf::internal::GetOwnedMessage(
  4131. message_arena, uint32_value, submessage_arena);
  4132. }
  4133. } else {
  4134. }
  4135. uint32_value_ = uint32_value;
  4136. // @@protoc_insertion_point(field_set_allocated:proto3.TestWrapper.uint32_value)
  4137. }
  4138. // .google.protobuf.UInt64Value uint64_value = 5;
  4139. inline bool TestWrapper::has_uint64_value() const {
  4140. return this != internal_default_instance() && uint64_value_ != NULL;
  4141. }
  4142. inline const ::google::protobuf::UInt64Value& TestWrapper::_internal_uint64_value() const {
  4143. return *uint64_value_;
  4144. }
  4145. inline const ::google::protobuf::UInt64Value& TestWrapper::uint64_value() const {
  4146. const ::google::protobuf::UInt64Value* p = uint64_value_;
  4147. // @@protoc_insertion_point(field_get:proto3.TestWrapper.uint64_value)
  4148. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::UInt64Value*>(
  4149. &::google::protobuf::_UInt64Value_default_instance_);
  4150. }
  4151. inline ::google::protobuf::UInt64Value* TestWrapper::release_uint64_value() {
  4152. // @@protoc_insertion_point(field_release:proto3.TestWrapper.uint64_value)
  4153. ::google::protobuf::UInt64Value* temp = uint64_value_;
  4154. uint64_value_ = NULL;
  4155. return temp;
  4156. }
  4157. inline ::google::protobuf::UInt64Value* TestWrapper::mutable_uint64_value() {
  4158. if (uint64_value_ == NULL) {
  4159. auto* p = CreateMaybeMessage<::google::protobuf::UInt64Value>(GetArenaNoVirtual());
  4160. uint64_value_ = p;
  4161. }
  4162. // @@protoc_insertion_point(field_mutable:proto3.TestWrapper.uint64_value)
  4163. return uint64_value_;
  4164. }
  4165. inline void TestWrapper::set_allocated_uint64_value(::google::protobuf::UInt64Value* uint64_value) {
  4166. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  4167. if (message_arena == NULL) {
  4168. delete reinterpret_cast< ::google::protobuf::MessageLite*>(uint64_value_);
  4169. }
  4170. if (uint64_value) {
  4171. ::google::protobuf::Arena* submessage_arena =
  4172. reinterpret_cast<::google::protobuf::MessageLite*>(uint64_value)->GetArena();
  4173. if (message_arena != submessage_arena) {
  4174. uint64_value = ::google::protobuf::internal::GetOwnedMessage(
  4175. message_arena, uint64_value, submessage_arena);
  4176. }
  4177. } else {
  4178. }
  4179. uint64_value_ = uint64_value;
  4180. // @@protoc_insertion_point(field_set_allocated:proto3.TestWrapper.uint64_value)
  4181. }
  4182. // .google.protobuf.FloatValue float_value = 6;
  4183. inline bool TestWrapper::has_float_value() const {
  4184. return this != internal_default_instance() && float_value_ != NULL;
  4185. }
  4186. inline const ::google::protobuf::FloatValue& TestWrapper::_internal_float_value() const {
  4187. return *float_value_;
  4188. }
  4189. inline const ::google::protobuf::FloatValue& TestWrapper::float_value() const {
  4190. const ::google::protobuf::FloatValue* p = float_value_;
  4191. // @@protoc_insertion_point(field_get:proto3.TestWrapper.float_value)
  4192. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::FloatValue*>(
  4193. &::google::protobuf::_FloatValue_default_instance_);
  4194. }
  4195. inline ::google::protobuf::FloatValue* TestWrapper::release_float_value() {
  4196. // @@protoc_insertion_point(field_release:proto3.TestWrapper.float_value)
  4197. ::google::protobuf::FloatValue* temp = float_value_;
  4198. float_value_ = NULL;
  4199. return temp;
  4200. }
  4201. inline ::google::protobuf::FloatValue* TestWrapper::mutable_float_value() {
  4202. if (float_value_ == NULL) {
  4203. auto* p = CreateMaybeMessage<::google::protobuf::FloatValue>(GetArenaNoVirtual());
  4204. float_value_ = p;
  4205. }
  4206. // @@protoc_insertion_point(field_mutable:proto3.TestWrapper.float_value)
  4207. return float_value_;
  4208. }
  4209. inline void TestWrapper::set_allocated_float_value(::google::protobuf::FloatValue* float_value) {
  4210. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  4211. if (message_arena == NULL) {
  4212. delete reinterpret_cast< ::google::protobuf::MessageLite*>(float_value_);
  4213. }
  4214. if (float_value) {
  4215. ::google::protobuf::Arena* submessage_arena =
  4216. reinterpret_cast<::google::protobuf::MessageLite*>(float_value)->GetArena();
  4217. if (message_arena != submessage_arena) {
  4218. float_value = ::google::protobuf::internal::GetOwnedMessage(
  4219. message_arena, float_value, submessage_arena);
  4220. }
  4221. } else {
  4222. }
  4223. float_value_ = float_value;
  4224. // @@protoc_insertion_point(field_set_allocated:proto3.TestWrapper.float_value)
  4225. }
  4226. // .google.protobuf.DoubleValue double_value = 7;
  4227. inline bool TestWrapper::has_double_value() const {
  4228. return this != internal_default_instance() && double_value_ != NULL;
  4229. }
  4230. inline const ::google::protobuf::DoubleValue& TestWrapper::_internal_double_value() const {
  4231. return *double_value_;
  4232. }
  4233. inline const ::google::protobuf::DoubleValue& TestWrapper::double_value() const {
  4234. const ::google::protobuf::DoubleValue* p = double_value_;
  4235. // @@protoc_insertion_point(field_get:proto3.TestWrapper.double_value)
  4236. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::DoubleValue*>(
  4237. &::google::protobuf::_DoubleValue_default_instance_);
  4238. }
  4239. inline ::google::protobuf::DoubleValue* TestWrapper::release_double_value() {
  4240. // @@protoc_insertion_point(field_release:proto3.TestWrapper.double_value)
  4241. ::google::protobuf::DoubleValue* temp = double_value_;
  4242. double_value_ = NULL;
  4243. return temp;
  4244. }
  4245. inline ::google::protobuf::DoubleValue* TestWrapper::mutable_double_value() {
  4246. if (double_value_ == NULL) {
  4247. auto* p = CreateMaybeMessage<::google::protobuf::DoubleValue>(GetArenaNoVirtual());
  4248. double_value_ = p;
  4249. }
  4250. // @@protoc_insertion_point(field_mutable:proto3.TestWrapper.double_value)
  4251. return double_value_;
  4252. }
  4253. inline void TestWrapper::set_allocated_double_value(::google::protobuf::DoubleValue* double_value) {
  4254. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  4255. if (message_arena == NULL) {
  4256. delete reinterpret_cast< ::google::protobuf::MessageLite*>(double_value_);
  4257. }
  4258. if (double_value) {
  4259. ::google::protobuf::Arena* submessage_arena =
  4260. reinterpret_cast<::google::protobuf::MessageLite*>(double_value)->GetArena();
  4261. if (message_arena != submessage_arena) {
  4262. double_value = ::google::protobuf::internal::GetOwnedMessage(
  4263. message_arena, double_value, submessage_arena);
  4264. }
  4265. } else {
  4266. }
  4267. double_value_ = double_value;
  4268. // @@protoc_insertion_point(field_set_allocated:proto3.TestWrapper.double_value)
  4269. }
  4270. // .google.protobuf.StringValue string_value = 8;
  4271. inline bool TestWrapper::has_string_value() const {
  4272. return this != internal_default_instance() && string_value_ != NULL;
  4273. }
  4274. inline const ::google::protobuf::StringValue& TestWrapper::_internal_string_value() const {
  4275. return *string_value_;
  4276. }
  4277. inline const ::google::protobuf::StringValue& TestWrapper::string_value() const {
  4278. const ::google::protobuf::StringValue* p = string_value_;
  4279. // @@protoc_insertion_point(field_get:proto3.TestWrapper.string_value)
  4280. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::StringValue*>(
  4281. &::google::protobuf::_StringValue_default_instance_);
  4282. }
  4283. inline ::google::protobuf::StringValue* TestWrapper::release_string_value() {
  4284. // @@protoc_insertion_point(field_release:proto3.TestWrapper.string_value)
  4285. ::google::protobuf::StringValue* temp = string_value_;
  4286. string_value_ = NULL;
  4287. return temp;
  4288. }
  4289. inline ::google::protobuf::StringValue* TestWrapper::mutable_string_value() {
  4290. if (string_value_ == NULL) {
  4291. auto* p = CreateMaybeMessage<::google::protobuf::StringValue>(GetArenaNoVirtual());
  4292. string_value_ = p;
  4293. }
  4294. // @@protoc_insertion_point(field_mutable:proto3.TestWrapper.string_value)
  4295. return string_value_;
  4296. }
  4297. inline void TestWrapper::set_allocated_string_value(::google::protobuf::StringValue* string_value) {
  4298. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  4299. if (message_arena == NULL) {
  4300. delete reinterpret_cast< ::google::protobuf::MessageLite*>(string_value_);
  4301. }
  4302. if (string_value) {
  4303. ::google::protobuf::Arena* submessage_arena =
  4304. reinterpret_cast<::google::protobuf::MessageLite*>(string_value)->GetArena();
  4305. if (message_arena != submessage_arena) {
  4306. string_value = ::google::protobuf::internal::GetOwnedMessage(
  4307. message_arena, string_value, submessage_arena);
  4308. }
  4309. } else {
  4310. }
  4311. string_value_ = string_value;
  4312. // @@protoc_insertion_point(field_set_allocated:proto3.TestWrapper.string_value)
  4313. }
  4314. // .google.protobuf.BytesValue bytes_value = 9;
  4315. inline bool TestWrapper::has_bytes_value() const {
  4316. return this != internal_default_instance() && bytes_value_ != NULL;
  4317. }
  4318. inline const ::google::protobuf::BytesValue& TestWrapper::_internal_bytes_value() const {
  4319. return *bytes_value_;
  4320. }
  4321. inline const ::google::protobuf::BytesValue& TestWrapper::bytes_value() const {
  4322. const ::google::protobuf::BytesValue* p = bytes_value_;
  4323. // @@protoc_insertion_point(field_get:proto3.TestWrapper.bytes_value)
  4324. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::BytesValue*>(
  4325. &::google::protobuf::_BytesValue_default_instance_);
  4326. }
  4327. inline ::google::protobuf::BytesValue* TestWrapper::release_bytes_value() {
  4328. // @@protoc_insertion_point(field_release:proto3.TestWrapper.bytes_value)
  4329. ::google::protobuf::BytesValue* temp = bytes_value_;
  4330. bytes_value_ = NULL;
  4331. return temp;
  4332. }
  4333. inline ::google::protobuf::BytesValue* TestWrapper::mutable_bytes_value() {
  4334. if (bytes_value_ == NULL) {
  4335. auto* p = CreateMaybeMessage<::google::protobuf::BytesValue>(GetArenaNoVirtual());
  4336. bytes_value_ = p;
  4337. }
  4338. // @@protoc_insertion_point(field_mutable:proto3.TestWrapper.bytes_value)
  4339. return bytes_value_;
  4340. }
  4341. inline void TestWrapper::set_allocated_bytes_value(::google::protobuf::BytesValue* bytes_value) {
  4342. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  4343. if (message_arena == NULL) {
  4344. delete reinterpret_cast< ::google::protobuf::MessageLite*>(bytes_value_);
  4345. }
  4346. if (bytes_value) {
  4347. ::google::protobuf::Arena* submessage_arena =
  4348. reinterpret_cast<::google::protobuf::MessageLite*>(bytes_value)->GetArena();
  4349. if (message_arena != submessage_arena) {
  4350. bytes_value = ::google::protobuf::internal::GetOwnedMessage(
  4351. message_arena, bytes_value, submessage_arena);
  4352. }
  4353. } else {
  4354. }
  4355. bytes_value_ = bytes_value;
  4356. // @@protoc_insertion_point(field_set_allocated:proto3.TestWrapper.bytes_value)
  4357. }
  4358. // repeated .google.protobuf.BoolValue repeated_bool_value = 11;
  4359. inline int TestWrapper::repeated_bool_value_size() const {
  4360. return repeated_bool_value_.size();
  4361. }
  4362. inline ::google::protobuf::BoolValue* TestWrapper::mutable_repeated_bool_value(int index) {
  4363. // @@protoc_insertion_point(field_mutable:proto3.TestWrapper.repeated_bool_value)
  4364. return repeated_bool_value_.Mutable(index);
  4365. }
  4366. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::BoolValue >*
  4367. TestWrapper::mutable_repeated_bool_value() {
  4368. // @@protoc_insertion_point(field_mutable_list:proto3.TestWrapper.repeated_bool_value)
  4369. return &repeated_bool_value_;
  4370. }
  4371. inline const ::google::protobuf::BoolValue& TestWrapper::repeated_bool_value(int index) const {
  4372. // @@protoc_insertion_point(field_get:proto3.TestWrapper.repeated_bool_value)
  4373. return repeated_bool_value_.Get(index);
  4374. }
  4375. inline ::google::protobuf::BoolValue* TestWrapper::add_repeated_bool_value() {
  4376. // @@protoc_insertion_point(field_add:proto3.TestWrapper.repeated_bool_value)
  4377. return repeated_bool_value_.Add();
  4378. }
  4379. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::BoolValue >&
  4380. TestWrapper::repeated_bool_value() const {
  4381. // @@protoc_insertion_point(field_list:proto3.TestWrapper.repeated_bool_value)
  4382. return repeated_bool_value_;
  4383. }
  4384. // repeated .google.protobuf.Int32Value repeated_int32_value = 12;
  4385. inline int TestWrapper::repeated_int32_value_size() const {
  4386. return repeated_int32_value_.size();
  4387. }
  4388. inline ::google::protobuf::Int32Value* TestWrapper::mutable_repeated_int32_value(int index) {
  4389. // @@protoc_insertion_point(field_mutable:proto3.TestWrapper.repeated_int32_value)
  4390. return repeated_int32_value_.Mutable(index);
  4391. }
  4392. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::Int32Value >*
  4393. TestWrapper::mutable_repeated_int32_value() {
  4394. // @@protoc_insertion_point(field_mutable_list:proto3.TestWrapper.repeated_int32_value)
  4395. return &repeated_int32_value_;
  4396. }
  4397. inline const ::google::protobuf::Int32Value& TestWrapper::repeated_int32_value(int index) const {
  4398. // @@protoc_insertion_point(field_get:proto3.TestWrapper.repeated_int32_value)
  4399. return repeated_int32_value_.Get(index);
  4400. }
  4401. inline ::google::protobuf::Int32Value* TestWrapper::add_repeated_int32_value() {
  4402. // @@protoc_insertion_point(field_add:proto3.TestWrapper.repeated_int32_value)
  4403. return repeated_int32_value_.Add();
  4404. }
  4405. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Int32Value >&
  4406. TestWrapper::repeated_int32_value() const {
  4407. // @@protoc_insertion_point(field_list:proto3.TestWrapper.repeated_int32_value)
  4408. return repeated_int32_value_;
  4409. }
  4410. // repeated .google.protobuf.Int64Value repeated_int64_value = 13;
  4411. inline int TestWrapper::repeated_int64_value_size() const {
  4412. return repeated_int64_value_.size();
  4413. }
  4414. inline ::google::protobuf::Int64Value* TestWrapper::mutable_repeated_int64_value(int index) {
  4415. // @@protoc_insertion_point(field_mutable:proto3.TestWrapper.repeated_int64_value)
  4416. return repeated_int64_value_.Mutable(index);
  4417. }
  4418. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::Int64Value >*
  4419. TestWrapper::mutable_repeated_int64_value() {
  4420. // @@protoc_insertion_point(field_mutable_list:proto3.TestWrapper.repeated_int64_value)
  4421. return &repeated_int64_value_;
  4422. }
  4423. inline const ::google::protobuf::Int64Value& TestWrapper::repeated_int64_value(int index) const {
  4424. // @@protoc_insertion_point(field_get:proto3.TestWrapper.repeated_int64_value)
  4425. return repeated_int64_value_.Get(index);
  4426. }
  4427. inline ::google::protobuf::Int64Value* TestWrapper::add_repeated_int64_value() {
  4428. // @@protoc_insertion_point(field_add:proto3.TestWrapper.repeated_int64_value)
  4429. return repeated_int64_value_.Add();
  4430. }
  4431. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Int64Value >&
  4432. TestWrapper::repeated_int64_value() const {
  4433. // @@protoc_insertion_point(field_list:proto3.TestWrapper.repeated_int64_value)
  4434. return repeated_int64_value_;
  4435. }
  4436. // repeated .google.protobuf.UInt32Value repeated_uint32_value = 14;
  4437. inline int TestWrapper::repeated_uint32_value_size() const {
  4438. return repeated_uint32_value_.size();
  4439. }
  4440. inline ::google::protobuf::UInt32Value* TestWrapper::mutable_repeated_uint32_value(int index) {
  4441. // @@protoc_insertion_point(field_mutable:proto3.TestWrapper.repeated_uint32_value)
  4442. return repeated_uint32_value_.Mutable(index);
  4443. }
  4444. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UInt32Value >*
  4445. TestWrapper::mutable_repeated_uint32_value() {
  4446. // @@protoc_insertion_point(field_mutable_list:proto3.TestWrapper.repeated_uint32_value)
  4447. return &repeated_uint32_value_;
  4448. }
  4449. inline const ::google::protobuf::UInt32Value& TestWrapper::repeated_uint32_value(int index) const {
  4450. // @@protoc_insertion_point(field_get:proto3.TestWrapper.repeated_uint32_value)
  4451. return repeated_uint32_value_.Get(index);
  4452. }
  4453. inline ::google::protobuf::UInt32Value* TestWrapper::add_repeated_uint32_value() {
  4454. // @@protoc_insertion_point(field_add:proto3.TestWrapper.repeated_uint32_value)
  4455. return repeated_uint32_value_.Add();
  4456. }
  4457. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UInt32Value >&
  4458. TestWrapper::repeated_uint32_value() const {
  4459. // @@protoc_insertion_point(field_list:proto3.TestWrapper.repeated_uint32_value)
  4460. return repeated_uint32_value_;
  4461. }
  4462. // repeated .google.protobuf.UInt64Value repeated_uint64_value = 15;
  4463. inline int TestWrapper::repeated_uint64_value_size() const {
  4464. return repeated_uint64_value_.size();
  4465. }
  4466. inline ::google::protobuf::UInt64Value* TestWrapper::mutable_repeated_uint64_value(int index) {
  4467. // @@protoc_insertion_point(field_mutable:proto3.TestWrapper.repeated_uint64_value)
  4468. return repeated_uint64_value_.Mutable(index);
  4469. }
  4470. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UInt64Value >*
  4471. TestWrapper::mutable_repeated_uint64_value() {
  4472. // @@protoc_insertion_point(field_mutable_list:proto3.TestWrapper.repeated_uint64_value)
  4473. return &repeated_uint64_value_;
  4474. }
  4475. inline const ::google::protobuf::UInt64Value& TestWrapper::repeated_uint64_value(int index) const {
  4476. // @@protoc_insertion_point(field_get:proto3.TestWrapper.repeated_uint64_value)
  4477. return repeated_uint64_value_.Get(index);
  4478. }
  4479. inline ::google::protobuf::UInt64Value* TestWrapper::add_repeated_uint64_value() {
  4480. // @@protoc_insertion_point(field_add:proto3.TestWrapper.repeated_uint64_value)
  4481. return repeated_uint64_value_.Add();
  4482. }
  4483. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UInt64Value >&
  4484. TestWrapper::repeated_uint64_value() const {
  4485. // @@protoc_insertion_point(field_list:proto3.TestWrapper.repeated_uint64_value)
  4486. return repeated_uint64_value_;
  4487. }
  4488. // repeated .google.protobuf.FloatValue repeated_float_value = 16;
  4489. inline int TestWrapper::repeated_float_value_size() const {
  4490. return repeated_float_value_.size();
  4491. }
  4492. inline ::google::protobuf::FloatValue* TestWrapper::mutable_repeated_float_value(int index) {
  4493. // @@protoc_insertion_point(field_mutable:proto3.TestWrapper.repeated_float_value)
  4494. return repeated_float_value_.Mutable(index);
  4495. }
  4496. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FloatValue >*
  4497. TestWrapper::mutable_repeated_float_value() {
  4498. // @@protoc_insertion_point(field_mutable_list:proto3.TestWrapper.repeated_float_value)
  4499. return &repeated_float_value_;
  4500. }
  4501. inline const ::google::protobuf::FloatValue& TestWrapper::repeated_float_value(int index) const {
  4502. // @@protoc_insertion_point(field_get:proto3.TestWrapper.repeated_float_value)
  4503. return repeated_float_value_.Get(index);
  4504. }
  4505. inline ::google::protobuf::FloatValue* TestWrapper::add_repeated_float_value() {
  4506. // @@protoc_insertion_point(field_add:proto3.TestWrapper.repeated_float_value)
  4507. return repeated_float_value_.Add();
  4508. }
  4509. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FloatValue >&
  4510. TestWrapper::repeated_float_value() const {
  4511. // @@protoc_insertion_point(field_list:proto3.TestWrapper.repeated_float_value)
  4512. return repeated_float_value_;
  4513. }
  4514. // repeated .google.protobuf.DoubleValue repeated_double_value = 17;
  4515. inline int TestWrapper::repeated_double_value_size() const {
  4516. return repeated_double_value_.size();
  4517. }
  4518. inline ::google::protobuf::DoubleValue* TestWrapper::mutable_repeated_double_value(int index) {
  4519. // @@protoc_insertion_point(field_mutable:proto3.TestWrapper.repeated_double_value)
  4520. return repeated_double_value_.Mutable(index);
  4521. }
  4522. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::DoubleValue >*
  4523. TestWrapper::mutable_repeated_double_value() {
  4524. // @@protoc_insertion_point(field_mutable_list:proto3.TestWrapper.repeated_double_value)
  4525. return &repeated_double_value_;
  4526. }
  4527. inline const ::google::protobuf::DoubleValue& TestWrapper::repeated_double_value(int index) const {
  4528. // @@protoc_insertion_point(field_get:proto3.TestWrapper.repeated_double_value)
  4529. return repeated_double_value_.Get(index);
  4530. }
  4531. inline ::google::protobuf::DoubleValue* TestWrapper::add_repeated_double_value() {
  4532. // @@protoc_insertion_point(field_add:proto3.TestWrapper.repeated_double_value)
  4533. return repeated_double_value_.Add();
  4534. }
  4535. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DoubleValue >&
  4536. TestWrapper::repeated_double_value() const {
  4537. // @@protoc_insertion_point(field_list:proto3.TestWrapper.repeated_double_value)
  4538. return repeated_double_value_;
  4539. }
  4540. // repeated .google.protobuf.StringValue repeated_string_value = 18;
  4541. inline int TestWrapper::repeated_string_value_size() const {
  4542. return repeated_string_value_.size();
  4543. }
  4544. inline ::google::protobuf::StringValue* TestWrapper::mutable_repeated_string_value(int index) {
  4545. // @@protoc_insertion_point(field_mutable:proto3.TestWrapper.repeated_string_value)
  4546. return repeated_string_value_.Mutable(index);
  4547. }
  4548. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::StringValue >*
  4549. TestWrapper::mutable_repeated_string_value() {
  4550. // @@protoc_insertion_point(field_mutable_list:proto3.TestWrapper.repeated_string_value)
  4551. return &repeated_string_value_;
  4552. }
  4553. inline const ::google::protobuf::StringValue& TestWrapper::repeated_string_value(int index) const {
  4554. // @@protoc_insertion_point(field_get:proto3.TestWrapper.repeated_string_value)
  4555. return repeated_string_value_.Get(index);
  4556. }
  4557. inline ::google::protobuf::StringValue* TestWrapper::add_repeated_string_value() {
  4558. // @@protoc_insertion_point(field_add:proto3.TestWrapper.repeated_string_value)
  4559. return repeated_string_value_.Add();
  4560. }
  4561. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::StringValue >&
  4562. TestWrapper::repeated_string_value() const {
  4563. // @@protoc_insertion_point(field_list:proto3.TestWrapper.repeated_string_value)
  4564. return repeated_string_value_;
  4565. }
  4566. // repeated .google.protobuf.BytesValue repeated_bytes_value = 19;
  4567. inline int TestWrapper::repeated_bytes_value_size() const {
  4568. return repeated_bytes_value_.size();
  4569. }
  4570. inline ::google::protobuf::BytesValue* TestWrapper::mutable_repeated_bytes_value(int index) {
  4571. // @@protoc_insertion_point(field_mutable:proto3.TestWrapper.repeated_bytes_value)
  4572. return repeated_bytes_value_.Mutable(index);
  4573. }
  4574. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::BytesValue >*
  4575. TestWrapper::mutable_repeated_bytes_value() {
  4576. // @@protoc_insertion_point(field_mutable_list:proto3.TestWrapper.repeated_bytes_value)
  4577. return &repeated_bytes_value_;
  4578. }
  4579. inline const ::google::protobuf::BytesValue& TestWrapper::repeated_bytes_value(int index) const {
  4580. // @@protoc_insertion_point(field_get:proto3.TestWrapper.repeated_bytes_value)
  4581. return repeated_bytes_value_.Get(index);
  4582. }
  4583. inline ::google::protobuf::BytesValue* TestWrapper::add_repeated_bytes_value() {
  4584. // @@protoc_insertion_point(field_add:proto3.TestWrapper.repeated_bytes_value)
  4585. return repeated_bytes_value_.Add();
  4586. }
  4587. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::BytesValue >&
  4588. TestWrapper::repeated_bytes_value() const {
  4589. // @@protoc_insertion_point(field_list:proto3.TestWrapper.repeated_bytes_value)
  4590. return repeated_bytes_value_;
  4591. }
  4592. // -------------------------------------------------------------------
  4593. // TestTimestamp
  4594. // .google.protobuf.Timestamp value = 1;
  4595. inline bool TestTimestamp::has_value() const {
  4596. return this != internal_default_instance() && value_ != NULL;
  4597. }
  4598. inline const ::google::protobuf::Timestamp& TestTimestamp::_internal_value() const {
  4599. return *value_;
  4600. }
  4601. inline const ::google::protobuf::Timestamp& TestTimestamp::value() const {
  4602. const ::google::protobuf::Timestamp* p = value_;
  4603. // @@protoc_insertion_point(field_get:proto3.TestTimestamp.value)
  4604. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Timestamp*>(
  4605. &::google::protobuf::_Timestamp_default_instance_);
  4606. }
  4607. inline ::google::protobuf::Timestamp* TestTimestamp::release_value() {
  4608. // @@protoc_insertion_point(field_release:proto3.TestTimestamp.value)
  4609. ::google::protobuf::Timestamp* temp = value_;
  4610. value_ = NULL;
  4611. return temp;
  4612. }
  4613. inline ::google::protobuf::Timestamp* TestTimestamp::mutable_value() {
  4614. if (value_ == NULL) {
  4615. auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual());
  4616. value_ = p;
  4617. }
  4618. // @@protoc_insertion_point(field_mutable:proto3.TestTimestamp.value)
  4619. return value_;
  4620. }
  4621. inline void TestTimestamp::set_allocated_value(::google::protobuf::Timestamp* value) {
  4622. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  4623. if (message_arena == NULL) {
  4624. delete reinterpret_cast< ::google::protobuf::MessageLite*>(value_);
  4625. }
  4626. if (value) {
  4627. ::google::protobuf::Arena* submessage_arena =
  4628. reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena();
  4629. if (message_arena != submessage_arena) {
  4630. value = ::google::protobuf::internal::GetOwnedMessage(
  4631. message_arena, value, submessage_arena);
  4632. }
  4633. } else {
  4634. }
  4635. value_ = value;
  4636. // @@protoc_insertion_point(field_set_allocated:proto3.TestTimestamp.value)
  4637. }
  4638. // repeated .google.protobuf.Timestamp repeated_value = 2;
  4639. inline int TestTimestamp::repeated_value_size() const {
  4640. return repeated_value_.size();
  4641. }
  4642. inline ::google::protobuf::Timestamp* TestTimestamp::mutable_repeated_value(int index) {
  4643. // @@protoc_insertion_point(field_mutable:proto3.TestTimestamp.repeated_value)
  4644. return repeated_value_.Mutable(index);
  4645. }
  4646. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::Timestamp >*
  4647. TestTimestamp::mutable_repeated_value() {
  4648. // @@protoc_insertion_point(field_mutable_list:proto3.TestTimestamp.repeated_value)
  4649. return &repeated_value_;
  4650. }
  4651. inline const ::google::protobuf::Timestamp& TestTimestamp::repeated_value(int index) const {
  4652. // @@protoc_insertion_point(field_get:proto3.TestTimestamp.repeated_value)
  4653. return repeated_value_.Get(index);
  4654. }
  4655. inline ::google::protobuf::Timestamp* TestTimestamp::add_repeated_value() {
  4656. // @@protoc_insertion_point(field_add:proto3.TestTimestamp.repeated_value)
  4657. return repeated_value_.Add();
  4658. }
  4659. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Timestamp >&
  4660. TestTimestamp::repeated_value() const {
  4661. // @@protoc_insertion_point(field_list:proto3.TestTimestamp.repeated_value)
  4662. return repeated_value_;
  4663. }
  4664. // -------------------------------------------------------------------
  4665. // TestDuration
  4666. // .google.protobuf.Duration value = 1;
  4667. inline bool TestDuration::has_value() const {
  4668. return this != internal_default_instance() && value_ != NULL;
  4669. }
  4670. inline const ::google::protobuf::Duration& TestDuration::_internal_value() const {
  4671. return *value_;
  4672. }
  4673. inline const ::google::protobuf::Duration& TestDuration::value() const {
  4674. const ::google::protobuf::Duration* p = value_;
  4675. // @@protoc_insertion_point(field_get:proto3.TestDuration.value)
  4676. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Duration*>(
  4677. &::google::protobuf::_Duration_default_instance_);
  4678. }
  4679. inline ::google::protobuf::Duration* TestDuration::release_value() {
  4680. // @@protoc_insertion_point(field_release:proto3.TestDuration.value)
  4681. ::google::protobuf::Duration* temp = value_;
  4682. value_ = NULL;
  4683. return temp;
  4684. }
  4685. inline ::google::protobuf::Duration* TestDuration::mutable_value() {
  4686. if (value_ == NULL) {
  4687. auto* p = CreateMaybeMessage<::google::protobuf::Duration>(GetArenaNoVirtual());
  4688. value_ = p;
  4689. }
  4690. // @@protoc_insertion_point(field_mutable:proto3.TestDuration.value)
  4691. return value_;
  4692. }
  4693. inline void TestDuration::set_allocated_value(::google::protobuf::Duration* value) {
  4694. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  4695. if (message_arena == NULL) {
  4696. delete reinterpret_cast< ::google::protobuf::MessageLite*>(value_);
  4697. }
  4698. if (value) {
  4699. ::google::protobuf::Arena* submessage_arena =
  4700. reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena();
  4701. if (message_arena != submessage_arena) {
  4702. value = ::google::protobuf::internal::GetOwnedMessage(
  4703. message_arena, value, submessage_arena);
  4704. }
  4705. } else {
  4706. }
  4707. value_ = value;
  4708. // @@protoc_insertion_point(field_set_allocated:proto3.TestDuration.value)
  4709. }
  4710. // repeated .google.protobuf.Duration repeated_value = 2;
  4711. inline int TestDuration::repeated_value_size() const {
  4712. return repeated_value_.size();
  4713. }
  4714. inline ::google::protobuf::Duration* TestDuration::mutable_repeated_value(int index) {
  4715. // @@protoc_insertion_point(field_mutable:proto3.TestDuration.repeated_value)
  4716. return repeated_value_.Mutable(index);
  4717. }
  4718. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::Duration >*
  4719. TestDuration::mutable_repeated_value() {
  4720. // @@protoc_insertion_point(field_mutable_list:proto3.TestDuration.repeated_value)
  4721. return &repeated_value_;
  4722. }
  4723. inline const ::google::protobuf::Duration& TestDuration::repeated_value(int index) const {
  4724. // @@protoc_insertion_point(field_get:proto3.TestDuration.repeated_value)
  4725. return repeated_value_.Get(index);
  4726. }
  4727. inline ::google::protobuf::Duration* TestDuration::add_repeated_value() {
  4728. // @@protoc_insertion_point(field_add:proto3.TestDuration.repeated_value)
  4729. return repeated_value_.Add();
  4730. }
  4731. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Duration >&
  4732. TestDuration::repeated_value() const {
  4733. // @@protoc_insertion_point(field_list:proto3.TestDuration.repeated_value)
  4734. return repeated_value_;
  4735. }
  4736. // -------------------------------------------------------------------
  4737. // TestFieldMask
  4738. // .google.protobuf.FieldMask value = 1;
  4739. inline bool TestFieldMask::has_value() const {
  4740. return this != internal_default_instance() && value_ != NULL;
  4741. }
  4742. inline const ::google::protobuf::FieldMask& TestFieldMask::_internal_value() const {
  4743. return *value_;
  4744. }
  4745. inline const ::google::protobuf::FieldMask& TestFieldMask::value() const {
  4746. const ::google::protobuf::FieldMask* p = value_;
  4747. // @@protoc_insertion_point(field_get:proto3.TestFieldMask.value)
  4748. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::FieldMask*>(
  4749. &::google::protobuf::_FieldMask_default_instance_);
  4750. }
  4751. inline ::google::protobuf::FieldMask* TestFieldMask::release_value() {
  4752. // @@protoc_insertion_point(field_release:proto3.TestFieldMask.value)
  4753. ::google::protobuf::FieldMask* temp = value_;
  4754. value_ = NULL;
  4755. return temp;
  4756. }
  4757. inline ::google::protobuf::FieldMask* TestFieldMask::mutable_value() {
  4758. if (value_ == NULL) {
  4759. auto* p = CreateMaybeMessage<::google::protobuf::FieldMask>(GetArenaNoVirtual());
  4760. value_ = p;
  4761. }
  4762. // @@protoc_insertion_point(field_mutable:proto3.TestFieldMask.value)
  4763. return value_;
  4764. }
  4765. inline void TestFieldMask::set_allocated_value(::google::protobuf::FieldMask* value) {
  4766. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  4767. if (message_arena == NULL) {
  4768. delete reinterpret_cast< ::google::protobuf::MessageLite*>(value_);
  4769. }
  4770. if (value) {
  4771. ::google::protobuf::Arena* submessage_arena = NULL;
  4772. if (message_arena != submessage_arena) {
  4773. value = ::google::protobuf::internal::GetOwnedMessage(
  4774. message_arena, value, submessage_arena);
  4775. }
  4776. } else {
  4777. }
  4778. value_ = value;
  4779. // @@protoc_insertion_point(field_set_allocated:proto3.TestFieldMask.value)
  4780. }
  4781. // -------------------------------------------------------------------
  4782. // TestStruct
  4783. // .google.protobuf.Struct value = 1;
  4784. inline bool TestStruct::has_value() const {
  4785. return this != internal_default_instance() && value_ != NULL;
  4786. }
  4787. inline const ::google::protobuf::Struct& TestStruct::_internal_value() const {
  4788. return *value_;
  4789. }
  4790. inline const ::google::protobuf::Struct& TestStruct::value() const {
  4791. const ::google::protobuf::Struct* p = value_;
  4792. // @@protoc_insertion_point(field_get:proto3.TestStruct.value)
  4793. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Struct*>(
  4794. &::google::protobuf::_Struct_default_instance_);
  4795. }
  4796. inline ::google::protobuf::Struct* TestStruct::release_value() {
  4797. // @@protoc_insertion_point(field_release:proto3.TestStruct.value)
  4798. ::google::protobuf::Struct* temp = value_;
  4799. value_ = NULL;
  4800. return temp;
  4801. }
  4802. inline ::google::protobuf::Struct* TestStruct::mutable_value() {
  4803. if (value_ == NULL) {
  4804. auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArenaNoVirtual());
  4805. value_ = p;
  4806. }
  4807. // @@protoc_insertion_point(field_mutable:proto3.TestStruct.value)
  4808. return value_;
  4809. }
  4810. inline void TestStruct::set_allocated_value(::google::protobuf::Struct* value) {
  4811. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  4812. if (message_arena == NULL) {
  4813. delete reinterpret_cast< ::google::protobuf::MessageLite*>(value_);
  4814. }
  4815. if (value) {
  4816. ::google::protobuf::Arena* submessage_arena =
  4817. reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena();
  4818. if (message_arena != submessage_arena) {
  4819. value = ::google::protobuf::internal::GetOwnedMessage(
  4820. message_arena, value, submessage_arena);
  4821. }
  4822. } else {
  4823. }
  4824. value_ = value;
  4825. // @@protoc_insertion_point(field_set_allocated:proto3.TestStruct.value)
  4826. }
  4827. // repeated .google.protobuf.Struct repeated_value = 2;
  4828. inline int TestStruct::repeated_value_size() const {
  4829. return repeated_value_.size();
  4830. }
  4831. inline ::google::protobuf::Struct* TestStruct::mutable_repeated_value(int index) {
  4832. // @@protoc_insertion_point(field_mutable:proto3.TestStruct.repeated_value)
  4833. return repeated_value_.Mutable(index);
  4834. }
  4835. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::Struct >*
  4836. TestStruct::mutable_repeated_value() {
  4837. // @@protoc_insertion_point(field_mutable_list:proto3.TestStruct.repeated_value)
  4838. return &repeated_value_;
  4839. }
  4840. inline const ::google::protobuf::Struct& TestStruct::repeated_value(int index) const {
  4841. // @@protoc_insertion_point(field_get:proto3.TestStruct.repeated_value)
  4842. return repeated_value_.Get(index);
  4843. }
  4844. inline ::google::protobuf::Struct* TestStruct::add_repeated_value() {
  4845. // @@protoc_insertion_point(field_add:proto3.TestStruct.repeated_value)
  4846. return repeated_value_.Add();
  4847. }
  4848. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Struct >&
  4849. TestStruct::repeated_value() const {
  4850. // @@protoc_insertion_point(field_list:proto3.TestStruct.repeated_value)
  4851. return repeated_value_;
  4852. }
  4853. // -------------------------------------------------------------------
  4854. // TestAny
  4855. // .google.protobuf.Any value = 1;
  4856. inline bool TestAny::has_value() const {
  4857. return this != internal_default_instance() && value_ != NULL;
  4858. }
  4859. inline const ::google::protobuf::Any& TestAny::_internal_value() const {
  4860. return *value_;
  4861. }
  4862. inline const ::google::protobuf::Any& TestAny::value() const {
  4863. const ::google::protobuf::Any* p = value_;
  4864. // @@protoc_insertion_point(field_get:proto3.TestAny.value)
  4865. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Any*>(
  4866. &::google::protobuf::_Any_default_instance_);
  4867. }
  4868. inline ::google::protobuf::Any* TestAny::release_value() {
  4869. // @@protoc_insertion_point(field_release:proto3.TestAny.value)
  4870. ::google::protobuf::Any* temp = value_;
  4871. value_ = NULL;
  4872. return temp;
  4873. }
  4874. inline ::google::protobuf::Any* TestAny::mutable_value() {
  4875. if (value_ == NULL) {
  4876. auto* p = CreateMaybeMessage<::google::protobuf::Any>(GetArenaNoVirtual());
  4877. value_ = p;
  4878. }
  4879. // @@protoc_insertion_point(field_mutable:proto3.TestAny.value)
  4880. return value_;
  4881. }
  4882. inline void TestAny::set_allocated_value(::google::protobuf::Any* value) {
  4883. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  4884. if (message_arena == NULL) {
  4885. delete reinterpret_cast< ::google::protobuf::MessageLite*>(value_);
  4886. }
  4887. if (value) {
  4888. ::google::protobuf::Arena* submessage_arena = NULL;
  4889. if (message_arena != submessage_arena) {
  4890. value = ::google::protobuf::internal::GetOwnedMessage(
  4891. message_arena, value, submessage_arena);
  4892. }
  4893. } else {
  4894. }
  4895. value_ = value;
  4896. // @@protoc_insertion_point(field_set_allocated:proto3.TestAny.value)
  4897. }
  4898. // repeated .google.protobuf.Any repeated_value = 2;
  4899. inline int TestAny::repeated_value_size() const {
  4900. return repeated_value_.size();
  4901. }
  4902. inline ::google::protobuf::Any* TestAny::mutable_repeated_value(int index) {
  4903. // @@protoc_insertion_point(field_mutable:proto3.TestAny.repeated_value)
  4904. return repeated_value_.Mutable(index);
  4905. }
  4906. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::Any >*
  4907. TestAny::mutable_repeated_value() {
  4908. // @@protoc_insertion_point(field_mutable_list:proto3.TestAny.repeated_value)
  4909. return &repeated_value_;
  4910. }
  4911. inline const ::google::protobuf::Any& TestAny::repeated_value(int index) const {
  4912. // @@protoc_insertion_point(field_get:proto3.TestAny.repeated_value)
  4913. return repeated_value_.Get(index);
  4914. }
  4915. inline ::google::protobuf::Any* TestAny::add_repeated_value() {
  4916. // @@protoc_insertion_point(field_add:proto3.TestAny.repeated_value)
  4917. return repeated_value_.Add();
  4918. }
  4919. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Any >&
  4920. TestAny::repeated_value() const {
  4921. // @@protoc_insertion_point(field_list:proto3.TestAny.repeated_value)
  4922. return repeated_value_;
  4923. }
  4924. // -------------------------------------------------------------------
  4925. // TestValue
  4926. // .google.protobuf.Value value = 1;
  4927. inline bool TestValue::has_value() const {
  4928. return this != internal_default_instance() && value_ != NULL;
  4929. }
  4930. inline const ::google::protobuf::Value& TestValue::_internal_value() const {
  4931. return *value_;
  4932. }
  4933. inline const ::google::protobuf::Value& TestValue::value() const {
  4934. const ::google::protobuf::Value* p = value_;
  4935. // @@protoc_insertion_point(field_get:proto3.TestValue.value)
  4936. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Value*>(
  4937. &::google::protobuf::_Value_default_instance_);
  4938. }
  4939. inline ::google::protobuf::Value* TestValue::release_value() {
  4940. // @@protoc_insertion_point(field_release:proto3.TestValue.value)
  4941. ::google::protobuf::Value* temp = value_;
  4942. value_ = NULL;
  4943. return temp;
  4944. }
  4945. inline ::google::protobuf::Value* TestValue::mutable_value() {
  4946. if (value_ == NULL) {
  4947. auto* p = CreateMaybeMessage<::google::protobuf::Value>(GetArenaNoVirtual());
  4948. value_ = p;
  4949. }
  4950. // @@protoc_insertion_point(field_mutable:proto3.TestValue.value)
  4951. return value_;
  4952. }
  4953. inline void TestValue::set_allocated_value(::google::protobuf::Value* value) {
  4954. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  4955. if (message_arena == NULL) {
  4956. delete reinterpret_cast< ::google::protobuf::MessageLite*>(value_);
  4957. }
  4958. if (value) {
  4959. ::google::protobuf::Arena* submessage_arena =
  4960. reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena();
  4961. if (message_arena != submessage_arena) {
  4962. value = ::google::protobuf::internal::GetOwnedMessage(
  4963. message_arena, value, submessage_arena);
  4964. }
  4965. } else {
  4966. }
  4967. value_ = value;
  4968. // @@protoc_insertion_point(field_set_allocated:proto3.TestValue.value)
  4969. }
  4970. // repeated .google.protobuf.Value repeated_value = 2;
  4971. inline int TestValue::repeated_value_size() const {
  4972. return repeated_value_.size();
  4973. }
  4974. inline ::google::protobuf::Value* TestValue::mutable_repeated_value(int index) {
  4975. // @@protoc_insertion_point(field_mutable:proto3.TestValue.repeated_value)
  4976. return repeated_value_.Mutable(index);
  4977. }
  4978. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::Value >*
  4979. TestValue::mutable_repeated_value() {
  4980. // @@protoc_insertion_point(field_mutable_list:proto3.TestValue.repeated_value)
  4981. return &repeated_value_;
  4982. }
  4983. inline const ::google::protobuf::Value& TestValue::repeated_value(int index) const {
  4984. // @@protoc_insertion_point(field_get:proto3.TestValue.repeated_value)
  4985. return repeated_value_.Get(index);
  4986. }
  4987. inline ::google::protobuf::Value* TestValue::add_repeated_value() {
  4988. // @@protoc_insertion_point(field_add:proto3.TestValue.repeated_value)
  4989. return repeated_value_.Add();
  4990. }
  4991. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Value >&
  4992. TestValue::repeated_value() const {
  4993. // @@protoc_insertion_point(field_list:proto3.TestValue.repeated_value)
  4994. return repeated_value_;
  4995. }
  4996. // -------------------------------------------------------------------
  4997. // TestListValue
  4998. // .google.protobuf.ListValue value = 1;
  4999. inline bool TestListValue::has_value() const {
  5000. return this != internal_default_instance() && value_ != NULL;
  5001. }
  5002. inline const ::google::protobuf::ListValue& TestListValue::_internal_value() const {
  5003. return *value_;
  5004. }
  5005. inline const ::google::protobuf::ListValue& TestListValue::value() const {
  5006. const ::google::protobuf::ListValue* p = value_;
  5007. // @@protoc_insertion_point(field_get:proto3.TestListValue.value)
  5008. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::ListValue*>(
  5009. &::google::protobuf::_ListValue_default_instance_);
  5010. }
  5011. inline ::google::protobuf::ListValue* TestListValue::release_value() {
  5012. // @@protoc_insertion_point(field_release:proto3.TestListValue.value)
  5013. ::google::protobuf::ListValue* temp = value_;
  5014. value_ = NULL;
  5015. return temp;
  5016. }
  5017. inline ::google::protobuf::ListValue* TestListValue::mutable_value() {
  5018. if (value_ == NULL) {
  5019. auto* p = CreateMaybeMessage<::google::protobuf::ListValue>(GetArenaNoVirtual());
  5020. value_ = p;
  5021. }
  5022. // @@protoc_insertion_point(field_mutable:proto3.TestListValue.value)
  5023. return value_;
  5024. }
  5025. inline void TestListValue::set_allocated_value(::google::protobuf::ListValue* value) {
  5026. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  5027. if (message_arena == NULL) {
  5028. delete reinterpret_cast< ::google::protobuf::MessageLite*>(value_);
  5029. }
  5030. if (value) {
  5031. ::google::protobuf::Arena* submessage_arena =
  5032. reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena();
  5033. if (message_arena != submessage_arena) {
  5034. value = ::google::protobuf::internal::GetOwnedMessage(
  5035. message_arena, value, submessage_arena);
  5036. }
  5037. } else {
  5038. }
  5039. value_ = value;
  5040. // @@protoc_insertion_point(field_set_allocated:proto3.TestListValue.value)
  5041. }
  5042. // repeated .google.protobuf.ListValue repeated_value = 2;
  5043. inline int TestListValue::repeated_value_size() const {
  5044. return repeated_value_.size();
  5045. }
  5046. inline ::google::protobuf::ListValue* TestListValue::mutable_repeated_value(int index) {
  5047. // @@protoc_insertion_point(field_mutable:proto3.TestListValue.repeated_value)
  5048. return repeated_value_.Mutable(index);
  5049. }
  5050. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::ListValue >*
  5051. TestListValue::mutable_repeated_value() {
  5052. // @@protoc_insertion_point(field_mutable_list:proto3.TestListValue.repeated_value)
  5053. return &repeated_value_;
  5054. }
  5055. inline const ::google::protobuf::ListValue& TestListValue::repeated_value(int index) const {
  5056. // @@protoc_insertion_point(field_get:proto3.TestListValue.repeated_value)
  5057. return repeated_value_.Get(index);
  5058. }
  5059. inline ::google::protobuf::ListValue* TestListValue::add_repeated_value() {
  5060. // @@protoc_insertion_point(field_add:proto3.TestListValue.repeated_value)
  5061. return repeated_value_.Add();
  5062. }
  5063. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::ListValue >&
  5064. TestListValue::repeated_value() const {
  5065. // @@protoc_insertion_point(field_list:proto3.TestListValue.repeated_value)
  5066. return repeated_value_;
  5067. }
  5068. // -------------------------------------------------------------------
  5069. // -------------------------------------------------------------------
  5070. // TestBoolValue
  5071. // bool bool_value = 1;
  5072. inline void TestBoolValue::clear_bool_value() {
  5073. bool_value_ = false;
  5074. }
  5075. inline bool TestBoolValue::bool_value() const {
  5076. // @@protoc_insertion_point(field_get:proto3.TestBoolValue.bool_value)
  5077. return bool_value_;
  5078. }
  5079. inline void TestBoolValue::set_bool_value(bool value) {
  5080. bool_value_ = value;
  5081. // @@protoc_insertion_point(field_set:proto3.TestBoolValue.bool_value)
  5082. }
  5083. // map<bool, int32> bool_map = 2;
  5084. inline int TestBoolValue::bool_map_size() const {
  5085. return bool_map_.size();
  5086. }
  5087. inline void TestBoolValue::clear_bool_map() {
  5088. bool_map_.Clear();
  5089. }
  5090. inline const ::google::protobuf::Map< bool, ::google::protobuf::int32 >&
  5091. TestBoolValue::bool_map() const {
  5092. // @@protoc_insertion_point(field_map:proto3.TestBoolValue.bool_map)
  5093. return bool_map_.GetMap();
  5094. }
  5095. inline ::google::protobuf::Map< bool, ::google::protobuf::int32 >*
  5096. TestBoolValue::mutable_bool_map() {
  5097. // @@protoc_insertion_point(field_mutable_map:proto3.TestBoolValue.bool_map)
  5098. return bool_map_.MutableMap();
  5099. }
  5100. // -------------------------------------------------------------------
  5101. // TestCustomJsonName
  5102. // int32 value = 1[json_name = "@value"];
  5103. inline void TestCustomJsonName::clear_value() {
  5104. value_ = 0;
  5105. }
  5106. inline ::google::protobuf::int32 TestCustomJsonName::value() const {
  5107. // @@protoc_insertion_point(field_get:proto3.TestCustomJsonName.value)
  5108. return value_;
  5109. }
  5110. inline void TestCustomJsonName::set_value(::google::protobuf::int32 value) {
  5111. value_ = value;
  5112. // @@protoc_insertion_point(field_set:proto3.TestCustomJsonName.value)
  5113. }
  5114. // -------------------------------------------------------------------
  5115. // TestExtensions
  5116. // .protobuf_unittest.TestAllExtensions extensions = 1;
  5117. inline bool TestExtensions::has_extensions() const {
  5118. return this != internal_default_instance() && extensions_ != NULL;
  5119. }
  5120. inline const ::protobuf_unittest::TestAllExtensions& TestExtensions::_internal_extensions() const {
  5121. return *extensions_;
  5122. }
  5123. inline const ::protobuf_unittest::TestAllExtensions& TestExtensions::extensions() const {
  5124. const ::protobuf_unittest::TestAllExtensions* p = extensions_;
  5125. // @@protoc_insertion_point(field_get:proto3.TestExtensions.extensions)
  5126. return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestAllExtensions*>(
  5127. &::protobuf_unittest::_TestAllExtensions_default_instance_);
  5128. }
  5129. inline ::protobuf_unittest::TestAllExtensions* TestExtensions::release_extensions() {
  5130. // @@protoc_insertion_point(field_release:proto3.TestExtensions.extensions)
  5131. ::protobuf_unittest::TestAllExtensions* temp = extensions_;
  5132. extensions_ = NULL;
  5133. return temp;
  5134. }
  5135. inline ::protobuf_unittest::TestAllExtensions* TestExtensions::mutable_extensions() {
  5136. if (extensions_ == NULL) {
  5137. auto* p = CreateMaybeMessage<::protobuf_unittest::TestAllExtensions>(GetArenaNoVirtual());
  5138. extensions_ = p;
  5139. }
  5140. // @@protoc_insertion_point(field_mutable:proto3.TestExtensions.extensions)
  5141. return extensions_;
  5142. }
  5143. inline void TestExtensions::set_allocated_extensions(::protobuf_unittest::TestAllExtensions* extensions) {
  5144. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  5145. if (message_arena == NULL) {
  5146. delete reinterpret_cast< ::google::protobuf::MessageLite*>(extensions_);
  5147. }
  5148. if (extensions) {
  5149. ::google::protobuf::Arena* submessage_arena =
  5150. reinterpret_cast<::google::protobuf::MessageLite*>(extensions)->GetArena();
  5151. if (message_arena != submessage_arena) {
  5152. extensions = ::google::protobuf::internal::GetOwnedMessage(
  5153. message_arena, extensions, submessage_arena);
  5154. }
  5155. } else {
  5156. }
  5157. extensions_ = extensions;
  5158. // @@protoc_insertion_point(field_set_allocated:proto3.TestExtensions.extensions)
  5159. }
  5160. // -------------------------------------------------------------------
  5161. // TestEnumValue
  5162. // .proto3.EnumType enum_value1 = 1;
  5163. inline void TestEnumValue::clear_enum_value1() {
  5164. enum_value1_ = 0;
  5165. }
  5166. inline ::proto3::EnumType TestEnumValue::enum_value1() const {
  5167. // @@protoc_insertion_point(field_get:proto3.TestEnumValue.enum_value1)
  5168. return static_cast< ::proto3::EnumType >(enum_value1_);
  5169. }
  5170. inline void TestEnumValue::set_enum_value1(::proto3::EnumType value) {
  5171. enum_value1_ = value;
  5172. // @@protoc_insertion_point(field_set:proto3.TestEnumValue.enum_value1)
  5173. }
  5174. // .proto3.EnumType enum_value2 = 2;
  5175. inline void TestEnumValue::clear_enum_value2() {
  5176. enum_value2_ = 0;
  5177. }
  5178. inline ::proto3::EnumType TestEnumValue::enum_value2() const {
  5179. // @@protoc_insertion_point(field_get:proto3.TestEnumValue.enum_value2)
  5180. return static_cast< ::proto3::EnumType >(enum_value2_);
  5181. }
  5182. inline void TestEnumValue::set_enum_value2(::proto3::EnumType value) {
  5183. enum_value2_ = value;
  5184. // @@protoc_insertion_point(field_set:proto3.TestEnumValue.enum_value2)
  5185. }
  5186. // .proto3.EnumType enum_value3 = 3;
  5187. inline void TestEnumValue::clear_enum_value3() {
  5188. enum_value3_ = 0;
  5189. }
  5190. inline ::proto3::EnumType TestEnumValue::enum_value3() const {
  5191. // @@protoc_insertion_point(field_get:proto3.TestEnumValue.enum_value3)
  5192. return static_cast< ::proto3::EnumType >(enum_value3_);
  5193. }
  5194. inline void TestEnumValue::set_enum_value3(::proto3::EnumType value) {
  5195. enum_value3_ = value;
  5196. // @@protoc_insertion_point(field_set:proto3.TestEnumValue.enum_value3)
  5197. }
  5198. #ifdef __GNUC__
  5199. #pragma GCC diagnostic pop
  5200. #endif // __GNUC__
  5201. // -------------------------------------------------------------------
  5202. // -------------------------------------------------------------------
  5203. // -------------------------------------------------------------------
  5204. // -------------------------------------------------------------------
  5205. // -------------------------------------------------------------------
  5206. // -------------------------------------------------------------------
  5207. // -------------------------------------------------------------------
  5208. // -------------------------------------------------------------------
  5209. // -------------------------------------------------------------------
  5210. // -------------------------------------------------------------------
  5211. // -------------------------------------------------------------------
  5212. // -------------------------------------------------------------------
  5213. // -------------------------------------------------------------------
  5214. // -------------------------------------------------------------------
  5215. // -------------------------------------------------------------------
  5216. // -------------------------------------------------------------------
  5217. // -------------------------------------------------------------------
  5218. // -------------------------------------------------------------------
  5219. // -------------------------------------------------------------------
  5220. // -------------------------------------------------------------------
  5221. // -------------------------------------------------------------------
  5222. // -------------------------------------------------------------------
  5223. // -------------------------------------------------------------------
  5224. // -------------------------------------------------------------------
  5225. // -------------------------------------------------------------------
  5226. // -------------------------------------------------------------------
  5227. // -------------------------------------------------------------------
  5228. // -------------------------------------------------------------------
  5229. // -------------------------------------------------------------------
  5230. // -------------------------------------------------------------------
  5231. // @@protoc_insertion_point(namespace_scope)
  5232. } // namespace proto3
  5233. namespace google {
  5234. namespace protobuf {
  5235. template <> struct is_proto_enum< ::proto3::EnumType> : ::std::true_type {};
  5236. template <>
  5237. inline const EnumDescriptor* GetEnumDescriptor< ::proto3::EnumType>() {
  5238. return ::proto3::EnumType_descriptor();
  5239. }
  5240. } // namespace protobuf
  5241. } // namespace google
  5242. // @@protoc_insertion_point(global_scope)
  5243. #endif // PROTOBUF_INCLUDED_google_2fprotobuf_2futil_2fjson_5fformat_5fproto3_2eproto