struct.pb.h 187 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: google/protobuf/util/internal/testdata/struct.proto
  3. #ifndef PROTOBUF_INCLUDED_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto
  4. #define PROTOBUF_INCLUDED_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_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/unknown_field_set.h>
  31. #include <google/protobuf/struct.pb.h>
  32. // @@protoc_insertion_point(includes)
  33. #define PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto
  34. namespace protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto {
  35. // Internal implementation detail -- do not use these members.
  36. struct TableStruct {
  37. static const ::google::protobuf::internal::ParseTableField entries[];
  38. static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
  39. static const ::google::protobuf::internal::ParseTable schema[12];
  40. static const ::google::protobuf::internal::FieldMetadata field_metadata[];
  41. static const ::google::protobuf::internal::SerializationTable serialization_table[];
  42. static const ::google::protobuf::uint32 offsets[];
  43. };
  44. void AddDescriptors();
  45. } // namespace protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto
  46. namespace google {
  47. namespace protobuf {
  48. namespace testing {
  49. class Dummy;
  50. class DummyDefaultTypeInternal;
  51. extern DummyDefaultTypeInternal _Dummy_default_instance_;
  52. class ListValueWrapper;
  53. class ListValueWrapperDefaultTypeInternal;
  54. extern ListValueWrapperDefaultTypeInternal _ListValueWrapper_default_instance_;
  55. class MapOfStruct;
  56. class MapOfStructDefaultTypeInternal;
  57. extern MapOfStructDefaultTypeInternal _MapOfStruct_default_instance_;
  58. class MapOfStruct_ListvalueMapEntry_DoNotUse;
  59. class MapOfStruct_ListvalueMapEntry_DoNotUseDefaultTypeInternal;
  60. extern MapOfStruct_ListvalueMapEntry_DoNotUseDefaultTypeInternal _MapOfStruct_ListvalueMapEntry_DoNotUse_default_instance_;
  61. class MapOfStruct_StructMapEntry_DoNotUse;
  62. class MapOfStruct_StructMapEntry_DoNotUseDefaultTypeInternal;
  63. extern MapOfStruct_StructMapEntry_DoNotUseDefaultTypeInternal _MapOfStruct_StructMapEntry_DoNotUse_default_instance_;
  64. class MapOfStruct_ValueMapEntry_DoNotUse;
  65. class MapOfStruct_ValueMapEntry_DoNotUseDefaultTypeInternal;
  66. extern MapOfStruct_ValueMapEntry_DoNotUseDefaultTypeInternal _MapOfStruct_ValueMapEntry_DoNotUse_default_instance_;
  67. class RepeatedListValueWrapper;
  68. class RepeatedListValueWrapperDefaultTypeInternal;
  69. extern RepeatedListValueWrapperDefaultTypeInternal _RepeatedListValueWrapper_default_instance_;
  70. class RepeatedValueWrapper;
  71. class RepeatedValueWrapperDefaultTypeInternal;
  72. extern RepeatedValueWrapperDefaultTypeInternal _RepeatedValueWrapper_default_instance_;
  73. class StructTestCases;
  74. class StructTestCasesDefaultTypeInternal;
  75. extern StructTestCasesDefaultTypeInternal _StructTestCases_default_instance_;
  76. class StructType;
  77. class StructTypeDefaultTypeInternal;
  78. extern StructTypeDefaultTypeInternal _StructType_default_instance_;
  79. class StructWrapper;
  80. class StructWrapperDefaultTypeInternal;
  81. extern StructWrapperDefaultTypeInternal _StructWrapper_default_instance_;
  82. class ValueWrapper;
  83. class ValueWrapperDefaultTypeInternal;
  84. extern ValueWrapperDefaultTypeInternal _ValueWrapper_default_instance_;
  85. } // namespace testing
  86. } // namespace protobuf
  87. } // namespace google
  88. namespace google {
  89. namespace protobuf {
  90. template<> ::google::protobuf::testing::Dummy* Arena::CreateMaybeMessage<::google::protobuf::testing::Dummy>(Arena*);
  91. template<> ::google::protobuf::testing::ListValueWrapper* Arena::CreateMaybeMessage<::google::protobuf::testing::ListValueWrapper>(Arena*);
  92. template<> ::google::protobuf::testing::MapOfStruct* Arena::CreateMaybeMessage<::google::protobuf::testing::MapOfStruct>(Arena*);
  93. template<> ::google::protobuf::testing::MapOfStruct_ListvalueMapEntry_DoNotUse* Arena::CreateMaybeMessage<::google::protobuf::testing::MapOfStruct_ListvalueMapEntry_DoNotUse>(Arena*);
  94. template<> ::google::protobuf::testing::MapOfStruct_StructMapEntry_DoNotUse* Arena::CreateMaybeMessage<::google::protobuf::testing::MapOfStruct_StructMapEntry_DoNotUse>(Arena*);
  95. template<> ::google::protobuf::testing::MapOfStruct_ValueMapEntry_DoNotUse* Arena::CreateMaybeMessage<::google::protobuf::testing::MapOfStruct_ValueMapEntry_DoNotUse>(Arena*);
  96. template<> ::google::protobuf::testing::RepeatedListValueWrapper* Arena::CreateMaybeMessage<::google::protobuf::testing::RepeatedListValueWrapper>(Arena*);
  97. template<> ::google::protobuf::testing::RepeatedValueWrapper* Arena::CreateMaybeMessage<::google::protobuf::testing::RepeatedValueWrapper>(Arena*);
  98. template<> ::google::protobuf::testing::StructTestCases* Arena::CreateMaybeMessage<::google::protobuf::testing::StructTestCases>(Arena*);
  99. template<> ::google::protobuf::testing::StructType* Arena::CreateMaybeMessage<::google::protobuf::testing::StructType>(Arena*);
  100. template<> ::google::protobuf::testing::StructWrapper* Arena::CreateMaybeMessage<::google::protobuf::testing::StructWrapper>(Arena*);
  101. template<> ::google::protobuf::testing::ValueWrapper* Arena::CreateMaybeMessage<::google::protobuf::testing::ValueWrapper>(Arena*);
  102. } // namespace protobuf
  103. } // namespace google
  104. namespace google {
  105. namespace protobuf {
  106. namespace testing {
  107. // ===================================================================
  108. class StructTestCases : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.StructTestCases) */ {
  109. public:
  110. StructTestCases();
  111. virtual ~StructTestCases();
  112. StructTestCases(const StructTestCases& from);
  113. inline StructTestCases& operator=(const StructTestCases& from) {
  114. CopyFrom(from);
  115. return *this;
  116. }
  117. #if LANG_CXX11
  118. StructTestCases(StructTestCases&& from) noexcept
  119. : StructTestCases() {
  120. *this = ::std::move(from);
  121. }
  122. inline StructTestCases& operator=(StructTestCases&& from) noexcept {
  123. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  124. if (this != &from) InternalSwap(&from);
  125. } else {
  126. CopyFrom(from);
  127. }
  128. return *this;
  129. }
  130. #endif
  131. static const ::google::protobuf::Descriptor* descriptor();
  132. static const StructTestCases& default_instance();
  133. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  134. static inline const StructTestCases* internal_default_instance() {
  135. return reinterpret_cast<const StructTestCases*>(
  136. &_StructTestCases_default_instance_);
  137. }
  138. static constexpr int kIndexInFileMessages =
  139. 0;
  140. void Swap(StructTestCases* other);
  141. friend void swap(StructTestCases& a, StructTestCases& b) {
  142. a.Swap(&b);
  143. }
  144. // implements Message ----------------------------------------------
  145. inline StructTestCases* New() const final {
  146. return CreateMaybeMessage<StructTestCases>(NULL);
  147. }
  148. StructTestCases* New(::google::protobuf::Arena* arena) const final {
  149. return CreateMaybeMessage<StructTestCases>(arena);
  150. }
  151. void CopyFrom(const ::google::protobuf::Message& from) final;
  152. void MergeFrom(const ::google::protobuf::Message& from) final;
  153. void CopyFrom(const StructTestCases& from);
  154. void MergeFrom(const StructTestCases& from);
  155. void Clear() final;
  156. bool IsInitialized() const final;
  157. size_t ByteSizeLong() const final;
  158. bool MergePartialFromCodedStream(
  159. ::google::protobuf::io::CodedInputStream* input) final;
  160. void SerializeWithCachedSizes(
  161. ::google::protobuf::io::CodedOutputStream* output) const final;
  162. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  163. bool deterministic, ::google::protobuf::uint8* target) const final;
  164. int GetCachedSize() const final { return _cached_size_.Get(); }
  165. private:
  166. void SharedCtor();
  167. void SharedDtor();
  168. void SetCachedSize(int size) const final;
  169. void InternalSwap(StructTestCases* other);
  170. private:
  171. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  172. return NULL;
  173. }
  174. inline void* MaybeArenaPtr() const {
  175. return NULL;
  176. }
  177. public:
  178. ::google::protobuf::Metadata GetMetadata() const final;
  179. // nested types ----------------------------------------------------
  180. // accessors -------------------------------------------------------
  181. // .google.protobuf.testing.StructWrapper empty_value = 1;
  182. bool has_empty_value() const;
  183. void clear_empty_value();
  184. static const int kEmptyValueFieldNumber = 1;
  185. private:
  186. const ::google::protobuf::testing::StructWrapper& _internal_empty_value() const;
  187. public:
  188. const ::google::protobuf::testing::StructWrapper& empty_value() const;
  189. ::google::protobuf::testing::StructWrapper* release_empty_value();
  190. ::google::protobuf::testing::StructWrapper* mutable_empty_value();
  191. void set_allocated_empty_value(::google::protobuf::testing::StructWrapper* empty_value);
  192. // .google.protobuf.testing.StructWrapper empty_value2 = 2;
  193. bool has_empty_value2() const;
  194. void clear_empty_value2();
  195. static const int kEmptyValue2FieldNumber = 2;
  196. private:
  197. const ::google::protobuf::testing::StructWrapper& _internal_empty_value2() const;
  198. public:
  199. const ::google::protobuf::testing::StructWrapper& empty_value2() const;
  200. ::google::protobuf::testing::StructWrapper* release_empty_value2();
  201. ::google::protobuf::testing::StructWrapper* mutable_empty_value2();
  202. void set_allocated_empty_value2(::google::protobuf::testing::StructWrapper* empty_value2);
  203. // .google.protobuf.testing.StructWrapper null_value = 3;
  204. bool has_null_value() const;
  205. void clear_null_value();
  206. static const int kNullValueFieldNumber = 3;
  207. private:
  208. const ::google::protobuf::testing::StructWrapper& _internal_null_value() const;
  209. public:
  210. const ::google::protobuf::testing::StructWrapper& null_value() const;
  211. ::google::protobuf::testing::StructWrapper* release_null_value();
  212. ::google::protobuf::testing::StructWrapper* mutable_null_value();
  213. void set_allocated_null_value(::google::protobuf::testing::StructWrapper* null_value);
  214. // .google.protobuf.testing.StructWrapper simple_struct = 4;
  215. bool has_simple_struct() const;
  216. void clear_simple_struct();
  217. static const int kSimpleStructFieldNumber = 4;
  218. private:
  219. const ::google::protobuf::testing::StructWrapper& _internal_simple_struct() const;
  220. public:
  221. const ::google::protobuf::testing::StructWrapper& simple_struct() const;
  222. ::google::protobuf::testing::StructWrapper* release_simple_struct();
  223. ::google::protobuf::testing::StructWrapper* mutable_simple_struct();
  224. void set_allocated_simple_struct(::google::protobuf::testing::StructWrapper* simple_struct);
  225. // .google.protobuf.testing.StructWrapper longer_struct = 5;
  226. bool has_longer_struct() const;
  227. void clear_longer_struct();
  228. static const int kLongerStructFieldNumber = 5;
  229. private:
  230. const ::google::protobuf::testing::StructWrapper& _internal_longer_struct() const;
  231. public:
  232. const ::google::protobuf::testing::StructWrapper& longer_struct() const;
  233. ::google::protobuf::testing::StructWrapper* release_longer_struct();
  234. ::google::protobuf::testing::StructWrapper* mutable_longer_struct();
  235. void set_allocated_longer_struct(::google::protobuf::testing::StructWrapper* longer_struct);
  236. // .google.protobuf.testing.StructWrapper struct_with_nested_struct = 6;
  237. bool has_struct_with_nested_struct() const;
  238. void clear_struct_with_nested_struct();
  239. static const int kStructWithNestedStructFieldNumber = 6;
  240. private:
  241. const ::google::protobuf::testing::StructWrapper& _internal_struct_with_nested_struct() const;
  242. public:
  243. const ::google::protobuf::testing::StructWrapper& struct_with_nested_struct() const;
  244. ::google::protobuf::testing::StructWrapper* release_struct_with_nested_struct();
  245. ::google::protobuf::testing::StructWrapper* mutable_struct_with_nested_struct();
  246. void set_allocated_struct_with_nested_struct(::google::protobuf::testing::StructWrapper* struct_with_nested_struct);
  247. // .google.protobuf.testing.StructWrapper struct_with_nested_list = 7;
  248. bool has_struct_with_nested_list() const;
  249. void clear_struct_with_nested_list();
  250. static const int kStructWithNestedListFieldNumber = 7;
  251. private:
  252. const ::google::protobuf::testing::StructWrapper& _internal_struct_with_nested_list() const;
  253. public:
  254. const ::google::protobuf::testing::StructWrapper& struct_with_nested_list() const;
  255. ::google::protobuf::testing::StructWrapper* release_struct_with_nested_list();
  256. ::google::protobuf::testing::StructWrapper* mutable_struct_with_nested_list();
  257. void set_allocated_struct_with_nested_list(::google::protobuf::testing::StructWrapper* struct_with_nested_list);
  258. // .google.protobuf.testing.StructWrapper struct_with_list_of_nulls = 8;
  259. bool has_struct_with_list_of_nulls() const;
  260. void clear_struct_with_list_of_nulls();
  261. static const int kStructWithListOfNullsFieldNumber = 8;
  262. private:
  263. const ::google::protobuf::testing::StructWrapper& _internal_struct_with_list_of_nulls() const;
  264. public:
  265. const ::google::protobuf::testing::StructWrapper& struct_with_list_of_nulls() const;
  266. ::google::protobuf::testing::StructWrapper* release_struct_with_list_of_nulls();
  267. ::google::protobuf::testing::StructWrapper* mutable_struct_with_list_of_nulls();
  268. void set_allocated_struct_with_list_of_nulls(::google::protobuf::testing::StructWrapper* struct_with_list_of_nulls);
  269. // .google.protobuf.testing.StructWrapper struct_with_list_of_lists = 9;
  270. bool has_struct_with_list_of_lists() const;
  271. void clear_struct_with_list_of_lists();
  272. static const int kStructWithListOfListsFieldNumber = 9;
  273. private:
  274. const ::google::protobuf::testing::StructWrapper& _internal_struct_with_list_of_lists() const;
  275. public:
  276. const ::google::protobuf::testing::StructWrapper& struct_with_list_of_lists() const;
  277. ::google::protobuf::testing::StructWrapper* release_struct_with_list_of_lists();
  278. ::google::protobuf::testing::StructWrapper* mutable_struct_with_list_of_lists();
  279. void set_allocated_struct_with_list_of_lists(::google::protobuf::testing::StructWrapper* struct_with_list_of_lists);
  280. // .google.protobuf.testing.StructWrapper struct_with_list_of_structs = 10;
  281. bool has_struct_with_list_of_structs() const;
  282. void clear_struct_with_list_of_structs();
  283. static const int kStructWithListOfStructsFieldNumber = 10;
  284. private:
  285. const ::google::protobuf::testing::StructWrapper& _internal_struct_with_list_of_structs() const;
  286. public:
  287. const ::google::protobuf::testing::StructWrapper& struct_with_list_of_structs() const;
  288. ::google::protobuf::testing::StructWrapper* release_struct_with_list_of_structs();
  289. ::google::protobuf::testing::StructWrapper* mutable_struct_with_list_of_structs();
  290. void set_allocated_struct_with_list_of_structs(::google::protobuf::testing::StructWrapper* struct_with_list_of_structs);
  291. // .google.protobuf.testing.StructWrapper struct_with_empty_list = 11;
  292. bool has_struct_with_empty_list() const;
  293. void clear_struct_with_empty_list();
  294. static const int kStructWithEmptyListFieldNumber = 11;
  295. private:
  296. const ::google::protobuf::testing::StructWrapper& _internal_struct_with_empty_list() const;
  297. public:
  298. const ::google::protobuf::testing::StructWrapper& struct_with_empty_list() const;
  299. ::google::protobuf::testing::StructWrapper* release_struct_with_empty_list();
  300. ::google::protobuf::testing::StructWrapper* mutable_struct_with_empty_list();
  301. void set_allocated_struct_with_empty_list(::google::protobuf::testing::StructWrapper* struct_with_empty_list);
  302. // .google.protobuf.testing.StructWrapper struct_with_list_with_empty_struct = 12;
  303. bool has_struct_with_list_with_empty_struct() const;
  304. void clear_struct_with_list_with_empty_struct();
  305. static const int kStructWithListWithEmptyStructFieldNumber = 12;
  306. private:
  307. const ::google::protobuf::testing::StructWrapper& _internal_struct_with_list_with_empty_struct() const;
  308. public:
  309. const ::google::protobuf::testing::StructWrapper& struct_with_list_with_empty_struct() const;
  310. ::google::protobuf::testing::StructWrapper* release_struct_with_list_with_empty_struct();
  311. ::google::protobuf::testing::StructWrapper* mutable_struct_with_list_with_empty_struct();
  312. void set_allocated_struct_with_list_with_empty_struct(::google::protobuf::testing::StructWrapper* struct_with_list_with_empty_struct);
  313. // .google.protobuf.Struct top_level_struct = 13;
  314. bool has_top_level_struct() const;
  315. void clear_top_level_struct();
  316. static const int kTopLevelStructFieldNumber = 13;
  317. private:
  318. const ::google::protobuf::Struct& _internal_top_level_struct() const;
  319. public:
  320. const ::google::protobuf::Struct& top_level_struct() const;
  321. ::google::protobuf::Struct* release_top_level_struct();
  322. ::google::protobuf::Struct* mutable_top_level_struct();
  323. void set_allocated_top_level_struct(::google::protobuf::Struct* top_level_struct);
  324. // .google.protobuf.Struct top_level_struct_with_empty_list = 14;
  325. bool has_top_level_struct_with_empty_list() const;
  326. void clear_top_level_struct_with_empty_list();
  327. static const int kTopLevelStructWithEmptyListFieldNumber = 14;
  328. private:
  329. const ::google::protobuf::Struct& _internal_top_level_struct_with_empty_list() const;
  330. public:
  331. const ::google::protobuf::Struct& top_level_struct_with_empty_list() const;
  332. ::google::protobuf::Struct* release_top_level_struct_with_empty_list();
  333. ::google::protobuf::Struct* mutable_top_level_struct_with_empty_list();
  334. void set_allocated_top_level_struct_with_empty_list(::google::protobuf::Struct* top_level_struct_with_empty_list);
  335. // .google.protobuf.Struct top_level_struct_with_list_with_empty_struct = 15;
  336. bool has_top_level_struct_with_list_with_empty_struct() const;
  337. void clear_top_level_struct_with_list_with_empty_struct();
  338. static const int kTopLevelStructWithListWithEmptyStructFieldNumber = 15;
  339. private:
  340. const ::google::protobuf::Struct& _internal_top_level_struct_with_list_with_empty_struct() const;
  341. public:
  342. const ::google::protobuf::Struct& top_level_struct_with_list_with_empty_struct() const;
  343. ::google::protobuf::Struct* release_top_level_struct_with_list_with_empty_struct();
  344. ::google::protobuf::Struct* mutable_top_level_struct_with_list_with_empty_struct();
  345. void set_allocated_top_level_struct_with_list_with_empty_struct(::google::protobuf::Struct* top_level_struct_with_list_with_empty_struct);
  346. // .google.protobuf.testing.ValueWrapper value_wrapper_simple = 16;
  347. bool has_value_wrapper_simple() const;
  348. void clear_value_wrapper_simple();
  349. static const int kValueWrapperSimpleFieldNumber = 16;
  350. private:
  351. const ::google::protobuf::testing::ValueWrapper& _internal_value_wrapper_simple() const;
  352. public:
  353. const ::google::protobuf::testing::ValueWrapper& value_wrapper_simple() const;
  354. ::google::protobuf::testing::ValueWrapper* release_value_wrapper_simple();
  355. ::google::protobuf::testing::ValueWrapper* mutable_value_wrapper_simple();
  356. void set_allocated_value_wrapper_simple(::google::protobuf::testing::ValueWrapper* value_wrapper_simple);
  357. // .google.protobuf.testing.ValueWrapper value_wrapper_with_struct = 17;
  358. bool has_value_wrapper_with_struct() const;
  359. void clear_value_wrapper_with_struct();
  360. static const int kValueWrapperWithStructFieldNumber = 17;
  361. private:
  362. const ::google::protobuf::testing::ValueWrapper& _internal_value_wrapper_with_struct() const;
  363. public:
  364. const ::google::protobuf::testing::ValueWrapper& value_wrapper_with_struct() const;
  365. ::google::protobuf::testing::ValueWrapper* release_value_wrapper_with_struct();
  366. ::google::protobuf::testing::ValueWrapper* mutable_value_wrapper_with_struct();
  367. void set_allocated_value_wrapper_with_struct(::google::protobuf::testing::ValueWrapper* value_wrapper_with_struct);
  368. // .google.protobuf.testing.ValueWrapper value_wrapper_with_list = 18;
  369. bool has_value_wrapper_with_list() const;
  370. void clear_value_wrapper_with_list();
  371. static const int kValueWrapperWithListFieldNumber = 18;
  372. private:
  373. const ::google::protobuf::testing::ValueWrapper& _internal_value_wrapper_with_list() const;
  374. public:
  375. const ::google::protobuf::testing::ValueWrapper& value_wrapper_with_list() const;
  376. ::google::protobuf::testing::ValueWrapper* release_value_wrapper_with_list();
  377. ::google::protobuf::testing::ValueWrapper* mutable_value_wrapper_with_list();
  378. void set_allocated_value_wrapper_with_list(::google::protobuf::testing::ValueWrapper* value_wrapper_with_list);
  379. // .google.protobuf.testing.ValueWrapper value_wrapper_with_empty_list = 19;
  380. bool has_value_wrapper_with_empty_list() const;
  381. void clear_value_wrapper_with_empty_list();
  382. static const int kValueWrapperWithEmptyListFieldNumber = 19;
  383. private:
  384. const ::google::protobuf::testing::ValueWrapper& _internal_value_wrapper_with_empty_list() const;
  385. public:
  386. const ::google::protobuf::testing::ValueWrapper& value_wrapper_with_empty_list() const;
  387. ::google::protobuf::testing::ValueWrapper* release_value_wrapper_with_empty_list();
  388. ::google::protobuf::testing::ValueWrapper* mutable_value_wrapper_with_empty_list();
  389. void set_allocated_value_wrapper_with_empty_list(::google::protobuf::testing::ValueWrapper* value_wrapper_with_empty_list);
  390. // .google.protobuf.testing.ValueWrapper value_wrapper_with_list_with_empty_struct = 20;
  391. bool has_value_wrapper_with_list_with_empty_struct() const;
  392. void clear_value_wrapper_with_list_with_empty_struct();
  393. static const int kValueWrapperWithListWithEmptyStructFieldNumber = 20;
  394. private:
  395. const ::google::protobuf::testing::ValueWrapper& _internal_value_wrapper_with_list_with_empty_struct() const;
  396. public:
  397. const ::google::protobuf::testing::ValueWrapper& value_wrapper_with_list_with_empty_struct() const;
  398. ::google::protobuf::testing::ValueWrapper* release_value_wrapper_with_list_with_empty_struct();
  399. ::google::protobuf::testing::ValueWrapper* mutable_value_wrapper_with_list_with_empty_struct();
  400. void set_allocated_value_wrapper_with_list_with_empty_struct(::google::protobuf::testing::ValueWrapper* value_wrapper_with_list_with_empty_struct);
  401. // .google.protobuf.testing.ListValueWrapper list_value_wrapper = 21;
  402. bool has_list_value_wrapper() const;
  403. void clear_list_value_wrapper();
  404. static const int kListValueWrapperFieldNumber = 21;
  405. private:
  406. const ::google::protobuf::testing::ListValueWrapper& _internal_list_value_wrapper() const;
  407. public:
  408. const ::google::protobuf::testing::ListValueWrapper& list_value_wrapper() const;
  409. ::google::protobuf::testing::ListValueWrapper* release_list_value_wrapper();
  410. ::google::protobuf::testing::ListValueWrapper* mutable_list_value_wrapper();
  411. void set_allocated_list_value_wrapper(::google::protobuf::testing::ListValueWrapper* list_value_wrapper);
  412. // .google.protobuf.testing.ListValueWrapper list_value_wrapper_with_empty_list = 22;
  413. bool has_list_value_wrapper_with_empty_list() const;
  414. void clear_list_value_wrapper_with_empty_list();
  415. static const int kListValueWrapperWithEmptyListFieldNumber = 22;
  416. private:
  417. const ::google::protobuf::testing::ListValueWrapper& _internal_list_value_wrapper_with_empty_list() const;
  418. public:
  419. const ::google::protobuf::testing::ListValueWrapper& list_value_wrapper_with_empty_list() const;
  420. ::google::protobuf::testing::ListValueWrapper* release_list_value_wrapper_with_empty_list();
  421. ::google::protobuf::testing::ListValueWrapper* mutable_list_value_wrapper_with_empty_list();
  422. void set_allocated_list_value_wrapper_with_empty_list(::google::protobuf::testing::ListValueWrapper* list_value_wrapper_with_empty_list);
  423. // .google.protobuf.testing.ListValueWrapper list_value_wrapper_with_list_with_empty_struct = 23;
  424. bool has_list_value_wrapper_with_list_with_empty_struct() const;
  425. void clear_list_value_wrapper_with_list_with_empty_struct();
  426. static const int kListValueWrapperWithListWithEmptyStructFieldNumber = 23;
  427. private:
  428. const ::google::protobuf::testing::ListValueWrapper& _internal_list_value_wrapper_with_list_with_empty_struct() const;
  429. public:
  430. const ::google::protobuf::testing::ListValueWrapper& list_value_wrapper_with_list_with_empty_struct() const;
  431. ::google::protobuf::testing::ListValueWrapper* release_list_value_wrapper_with_list_with_empty_struct();
  432. ::google::protobuf::testing::ListValueWrapper* mutable_list_value_wrapper_with_list_with_empty_struct();
  433. void set_allocated_list_value_wrapper_with_list_with_empty_struct(::google::protobuf::testing::ListValueWrapper* list_value_wrapper_with_list_with_empty_struct);
  434. // .google.protobuf.Value top_level_value_simple = 24;
  435. bool has_top_level_value_simple() const;
  436. void clear_top_level_value_simple();
  437. static const int kTopLevelValueSimpleFieldNumber = 24;
  438. private:
  439. const ::google::protobuf::Value& _internal_top_level_value_simple() const;
  440. public:
  441. const ::google::protobuf::Value& top_level_value_simple() const;
  442. ::google::protobuf::Value* release_top_level_value_simple();
  443. ::google::protobuf::Value* mutable_top_level_value_simple();
  444. void set_allocated_top_level_value_simple(::google::protobuf::Value* top_level_value_simple);
  445. // .google.protobuf.Value top_level_value_with_struct = 25;
  446. bool has_top_level_value_with_struct() const;
  447. void clear_top_level_value_with_struct();
  448. static const int kTopLevelValueWithStructFieldNumber = 25;
  449. private:
  450. const ::google::protobuf::Value& _internal_top_level_value_with_struct() const;
  451. public:
  452. const ::google::protobuf::Value& top_level_value_with_struct() const;
  453. ::google::protobuf::Value* release_top_level_value_with_struct();
  454. ::google::protobuf::Value* mutable_top_level_value_with_struct();
  455. void set_allocated_top_level_value_with_struct(::google::protobuf::Value* top_level_value_with_struct);
  456. // .google.protobuf.Value top_level_value_with_list = 26;
  457. bool has_top_level_value_with_list() const;
  458. void clear_top_level_value_with_list();
  459. static const int kTopLevelValueWithListFieldNumber = 26;
  460. private:
  461. const ::google::protobuf::Value& _internal_top_level_value_with_list() const;
  462. public:
  463. const ::google::protobuf::Value& top_level_value_with_list() const;
  464. ::google::protobuf::Value* release_top_level_value_with_list();
  465. ::google::protobuf::Value* mutable_top_level_value_with_list();
  466. void set_allocated_top_level_value_with_list(::google::protobuf::Value* top_level_value_with_list);
  467. // .google.protobuf.Value top_level_value_with_empty_list = 27;
  468. bool has_top_level_value_with_empty_list() const;
  469. void clear_top_level_value_with_empty_list();
  470. static const int kTopLevelValueWithEmptyListFieldNumber = 27;
  471. private:
  472. const ::google::protobuf::Value& _internal_top_level_value_with_empty_list() const;
  473. public:
  474. const ::google::protobuf::Value& top_level_value_with_empty_list() const;
  475. ::google::protobuf::Value* release_top_level_value_with_empty_list();
  476. ::google::protobuf::Value* mutable_top_level_value_with_empty_list();
  477. void set_allocated_top_level_value_with_empty_list(::google::protobuf::Value* top_level_value_with_empty_list);
  478. // .google.protobuf.Value top_level_value_with_list_with_empty_struct = 28;
  479. bool has_top_level_value_with_list_with_empty_struct() const;
  480. void clear_top_level_value_with_list_with_empty_struct();
  481. static const int kTopLevelValueWithListWithEmptyStructFieldNumber = 28;
  482. private:
  483. const ::google::protobuf::Value& _internal_top_level_value_with_list_with_empty_struct() const;
  484. public:
  485. const ::google::protobuf::Value& top_level_value_with_list_with_empty_struct() const;
  486. ::google::protobuf::Value* release_top_level_value_with_list_with_empty_struct();
  487. ::google::protobuf::Value* mutable_top_level_value_with_list_with_empty_struct();
  488. void set_allocated_top_level_value_with_list_with_empty_struct(::google::protobuf::Value* top_level_value_with_list_with_empty_struct);
  489. // .google.protobuf.ListValue top_level_listvalue = 29;
  490. bool has_top_level_listvalue() const;
  491. void clear_top_level_listvalue();
  492. static const int kTopLevelListvalueFieldNumber = 29;
  493. private:
  494. const ::google::protobuf::ListValue& _internal_top_level_listvalue() const;
  495. public:
  496. const ::google::protobuf::ListValue& top_level_listvalue() const;
  497. ::google::protobuf::ListValue* release_top_level_listvalue();
  498. ::google::protobuf::ListValue* mutable_top_level_listvalue();
  499. void set_allocated_top_level_listvalue(::google::protobuf::ListValue* top_level_listvalue);
  500. // .google.protobuf.ListValue top_level_empty_listvalue = 30;
  501. bool has_top_level_empty_listvalue() const;
  502. void clear_top_level_empty_listvalue();
  503. static const int kTopLevelEmptyListvalueFieldNumber = 30;
  504. private:
  505. const ::google::protobuf::ListValue& _internal_top_level_empty_listvalue() const;
  506. public:
  507. const ::google::protobuf::ListValue& top_level_empty_listvalue() const;
  508. ::google::protobuf::ListValue* release_top_level_empty_listvalue();
  509. ::google::protobuf::ListValue* mutable_top_level_empty_listvalue();
  510. void set_allocated_top_level_empty_listvalue(::google::protobuf::ListValue* top_level_empty_listvalue);
  511. // .google.protobuf.ListValue top_level_listvalue_with_empty_struct = 31;
  512. bool has_top_level_listvalue_with_empty_struct() const;
  513. void clear_top_level_listvalue_with_empty_struct();
  514. static const int kTopLevelListvalueWithEmptyStructFieldNumber = 31;
  515. private:
  516. const ::google::protobuf::ListValue& _internal_top_level_listvalue_with_empty_struct() const;
  517. public:
  518. const ::google::protobuf::ListValue& top_level_listvalue_with_empty_struct() const;
  519. ::google::protobuf::ListValue* release_top_level_listvalue_with_empty_struct();
  520. ::google::protobuf::ListValue* mutable_top_level_listvalue_with_empty_struct();
  521. void set_allocated_top_level_listvalue_with_empty_struct(::google::protobuf::ListValue* top_level_listvalue_with_empty_struct);
  522. // .google.protobuf.testing.RepeatedValueWrapper repeated_value = 32;
  523. bool has_repeated_value() const;
  524. void clear_repeated_value();
  525. static const int kRepeatedValueFieldNumber = 32;
  526. private:
  527. const ::google::protobuf::testing::RepeatedValueWrapper& _internal_repeated_value() const;
  528. public:
  529. const ::google::protobuf::testing::RepeatedValueWrapper& repeated_value() const;
  530. ::google::protobuf::testing::RepeatedValueWrapper* release_repeated_value();
  531. ::google::protobuf::testing::RepeatedValueWrapper* mutable_repeated_value();
  532. void set_allocated_repeated_value(::google::protobuf::testing::RepeatedValueWrapper* repeated_value);
  533. // .google.protobuf.testing.RepeatedValueWrapper repeated_value_nested_list = 33;
  534. bool has_repeated_value_nested_list() const;
  535. void clear_repeated_value_nested_list();
  536. static const int kRepeatedValueNestedListFieldNumber = 33;
  537. private:
  538. const ::google::protobuf::testing::RepeatedValueWrapper& _internal_repeated_value_nested_list() const;
  539. public:
  540. const ::google::protobuf::testing::RepeatedValueWrapper& repeated_value_nested_list() const;
  541. ::google::protobuf::testing::RepeatedValueWrapper* release_repeated_value_nested_list();
  542. ::google::protobuf::testing::RepeatedValueWrapper* mutable_repeated_value_nested_list();
  543. void set_allocated_repeated_value_nested_list(::google::protobuf::testing::RepeatedValueWrapper* repeated_value_nested_list);
  544. // .google.protobuf.testing.RepeatedValueWrapper repeated_value_nested_list2 = 34;
  545. bool has_repeated_value_nested_list2() const;
  546. void clear_repeated_value_nested_list2();
  547. static const int kRepeatedValueNestedList2FieldNumber = 34;
  548. private:
  549. const ::google::protobuf::testing::RepeatedValueWrapper& _internal_repeated_value_nested_list2() const;
  550. public:
  551. const ::google::protobuf::testing::RepeatedValueWrapper& repeated_value_nested_list2() const;
  552. ::google::protobuf::testing::RepeatedValueWrapper* release_repeated_value_nested_list2();
  553. ::google::protobuf::testing::RepeatedValueWrapper* mutable_repeated_value_nested_list2();
  554. void set_allocated_repeated_value_nested_list2(::google::protobuf::testing::RepeatedValueWrapper* repeated_value_nested_list2);
  555. // .google.protobuf.testing.RepeatedValueWrapper repeated_value_nested_list3 = 35;
  556. bool has_repeated_value_nested_list3() const;
  557. void clear_repeated_value_nested_list3();
  558. static const int kRepeatedValueNestedList3FieldNumber = 35;
  559. private:
  560. const ::google::protobuf::testing::RepeatedValueWrapper& _internal_repeated_value_nested_list3() const;
  561. public:
  562. const ::google::protobuf::testing::RepeatedValueWrapper& repeated_value_nested_list3() const;
  563. ::google::protobuf::testing::RepeatedValueWrapper* release_repeated_value_nested_list3();
  564. ::google::protobuf::testing::RepeatedValueWrapper* mutable_repeated_value_nested_list3();
  565. void set_allocated_repeated_value_nested_list3(::google::protobuf::testing::RepeatedValueWrapper* repeated_value_nested_list3);
  566. // .google.protobuf.testing.RepeatedListValueWrapper repeated_listvalue = 36;
  567. bool has_repeated_listvalue() const;
  568. void clear_repeated_listvalue();
  569. static const int kRepeatedListvalueFieldNumber = 36;
  570. private:
  571. const ::google::protobuf::testing::RepeatedListValueWrapper& _internal_repeated_listvalue() const;
  572. public:
  573. const ::google::protobuf::testing::RepeatedListValueWrapper& repeated_listvalue() const;
  574. ::google::protobuf::testing::RepeatedListValueWrapper* release_repeated_listvalue();
  575. ::google::protobuf::testing::RepeatedListValueWrapper* mutable_repeated_listvalue();
  576. void set_allocated_repeated_listvalue(::google::protobuf::testing::RepeatedListValueWrapper* repeated_listvalue);
  577. // .google.protobuf.testing.MapOfStruct map_of_struct = 37;
  578. bool has_map_of_struct() const;
  579. void clear_map_of_struct();
  580. static const int kMapOfStructFieldNumber = 37;
  581. private:
  582. const ::google::protobuf::testing::MapOfStruct& _internal_map_of_struct() const;
  583. public:
  584. const ::google::protobuf::testing::MapOfStruct& map_of_struct() const;
  585. ::google::protobuf::testing::MapOfStruct* release_map_of_struct();
  586. ::google::protobuf::testing::MapOfStruct* mutable_map_of_struct();
  587. void set_allocated_map_of_struct(::google::protobuf::testing::MapOfStruct* map_of_struct);
  588. // .google.protobuf.testing.MapOfStruct map_of_struct_value = 38;
  589. bool has_map_of_struct_value() const;
  590. void clear_map_of_struct_value();
  591. static const int kMapOfStructValueFieldNumber = 38;
  592. private:
  593. const ::google::protobuf::testing::MapOfStruct& _internal_map_of_struct_value() const;
  594. public:
  595. const ::google::protobuf::testing::MapOfStruct& map_of_struct_value() const;
  596. ::google::protobuf::testing::MapOfStruct* release_map_of_struct_value();
  597. ::google::protobuf::testing::MapOfStruct* mutable_map_of_struct_value();
  598. void set_allocated_map_of_struct_value(::google::protobuf::testing::MapOfStruct* map_of_struct_value);
  599. // .google.protobuf.testing.MapOfStruct map_of_listvalue = 39;
  600. bool has_map_of_listvalue() const;
  601. void clear_map_of_listvalue();
  602. static const int kMapOfListvalueFieldNumber = 39;
  603. private:
  604. const ::google::protobuf::testing::MapOfStruct& _internal_map_of_listvalue() const;
  605. public:
  606. const ::google::protobuf::testing::MapOfStruct& map_of_listvalue() const;
  607. ::google::protobuf::testing::MapOfStruct* release_map_of_listvalue();
  608. ::google::protobuf::testing::MapOfStruct* mutable_map_of_listvalue();
  609. void set_allocated_map_of_listvalue(::google::protobuf::testing::MapOfStruct* map_of_listvalue);
  610. // @@protoc_insertion_point(class_scope:google.protobuf.testing.StructTestCases)
  611. private:
  612. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  613. ::google::protobuf::testing::StructWrapper* empty_value_;
  614. ::google::protobuf::testing::StructWrapper* empty_value2_;
  615. ::google::protobuf::testing::StructWrapper* null_value_;
  616. ::google::protobuf::testing::StructWrapper* simple_struct_;
  617. ::google::protobuf::testing::StructWrapper* longer_struct_;
  618. ::google::protobuf::testing::StructWrapper* struct_with_nested_struct_;
  619. ::google::protobuf::testing::StructWrapper* struct_with_nested_list_;
  620. ::google::protobuf::testing::StructWrapper* struct_with_list_of_nulls_;
  621. ::google::protobuf::testing::StructWrapper* struct_with_list_of_lists_;
  622. ::google::protobuf::testing::StructWrapper* struct_with_list_of_structs_;
  623. ::google::protobuf::testing::StructWrapper* struct_with_empty_list_;
  624. ::google::protobuf::testing::StructWrapper* struct_with_list_with_empty_struct_;
  625. ::google::protobuf::Struct* top_level_struct_;
  626. ::google::protobuf::Struct* top_level_struct_with_empty_list_;
  627. ::google::protobuf::Struct* top_level_struct_with_list_with_empty_struct_;
  628. ::google::protobuf::testing::ValueWrapper* value_wrapper_simple_;
  629. ::google::protobuf::testing::ValueWrapper* value_wrapper_with_struct_;
  630. ::google::protobuf::testing::ValueWrapper* value_wrapper_with_list_;
  631. ::google::protobuf::testing::ValueWrapper* value_wrapper_with_empty_list_;
  632. ::google::protobuf::testing::ValueWrapper* value_wrapper_with_list_with_empty_struct_;
  633. ::google::protobuf::testing::ListValueWrapper* list_value_wrapper_;
  634. ::google::protobuf::testing::ListValueWrapper* list_value_wrapper_with_empty_list_;
  635. ::google::protobuf::testing::ListValueWrapper* list_value_wrapper_with_list_with_empty_struct_;
  636. ::google::protobuf::Value* top_level_value_simple_;
  637. ::google::protobuf::Value* top_level_value_with_struct_;
  638. ::google::protobuf::Value* top_level_value_with_list_;
  639. ::google::protobuf::Value* top_level_value_with_empty_list_;
  640. ::google::protobuf::Value* top_level_value_with_list_with_empty_struct_;
  641. ::google::protobuf::ListValue* top_level_listvalue_;
  642. ::google::protobuf::ListValue* top_level_empty_listvalue_;
  643. ::google::protobuf::ListValue* top_level_listvalue_with_empty_struct_;
  644. ::google::protobuf::testing::RepeatedValueWrapper* repeated_value_;
  645. ::google::protobuf::testing::RepeatedValueWrapper* repeated_value_nested_list_;
  646. ::google::protobuf::testing::RepeatedValueWrapper* repeated_value_nested_list2_;
  647. ::google::protobuf::testing::RepeatedValueWrapper* repeated_value_nested_list3_;
  648. ::google::protobuf::testing::RepeatedListValueWrapper* repeated_listvalue_;
  649. ::google::protobuf::testing::MapOfStruct* map_of_struct_;
  650. ::google::protobuf::testing::MapOfStruct* map_of_struct_value_;
  651. ::google::protobuf::testing::MapOfStruct* map_of_listvalue_;
  652. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  653. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::TableStruct;
  654. };
  655. // -------------------------------------------------------------------
  656. class StructWrapper : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.StructWrapper) */ {
  657. public:
  658. StructWrapper();
  659. virtual ~StructWrapper();
  660. StructWrapper(const StructWrapper& from);
  661. inline StructWrapper& operator=(const StructWrapper& from) {
  662. CopyFrom(from);
  663. return *this;
  664. }
  665. #if LANG_CXX11
  666. StructWrapper(StructWrapper&& from) noexcept
  667. : StructWrapper() {
  668. *this = ::std::move(from);
  669. }
  670. inline StructWrapper& operator=(StructWrapper&& from) noexcept {
  671. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  672. if (this != &from) InternalSwap(&from);
  673. } else {
  674. CopyFrom(from);
  675. }
  676. return *this;
  677. }
  678. #endif
  679. static const ::google::protobuf::Descriptor* descriptor();
  680. static const StructWrapper& default_instance();
  681. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  682. static inline const StructWrapper* internal_default_instance() {
  683. return reinterpret_cast<const StructWrapper*>(
  684. &_StructWrapper_default_instance_);
  685. }
  686. static constexpr int kIndexInFileMessages =
  687. 1;
  688. void Swap(StructWrapper* other);
  689. friend void swap(StructWrapper& a, StructWrapper& b) {
  690. a.Swap(&b);
  691. }
  692. // implements Message ----------------------------------------------
  693. inline StructWrapper* New() const final {
  694. return CreateMaybeMessage<StructWrapper>(NULL);
  695. }
  696. StructWrapper* New(::google::protobuf::Arena* arena) const final {
  697. return CreateMaybeMessage<StructWrapper>(arena);
  698. }
  699. void CopyFrom(const ::google::protobuf::Message& from) final;
  700. void MergeFrom(const ::google::protobuf::Message& from) final;
  701. void CopyFrom(const StructWrapper& from);
  702. void MergeFrom(const StructWrapper& from);
  703. void Clear() final;
  704. bool IsInitialized() const final;
  705. size_t ByteSizeLong() const final;
  706. bool MergePartialFromCodedStream(
  707. ::google::protobuf::io::CodedInputStream* input) final;
  708. void SerializeWithCachedSizes(
  709. ::google::protobuf::io::CodedOutputStream* output) const final;
  710. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  711. bool deterministic, ::google::protobuf::uint8* target) const final;
  712. int GetCachedSize() const final { return _cached_size_.Get(); }
  713. private:
  714. void SharedCtor();
  715. void SharedDtor();
  716. void SetCachedSize(int size) const final;
  717. void InternalSwap(StructWrapper* other);
  718. private:
  719. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  720. return NULL;
  721. }
  722. inline void* MaybeArenaPtr() const {
  723. return NULL;
  724. }
  725. public:
  726. ::google::protobuf::Metadata GetMetadata() const final;
  727. // nested types ----------------------------------------------------
  728. // accessors -------------------------------------------------------
  729. // .google.protobuf.Struct struct = 1;
  730. bool has_struct_() const;
  731. void clear_struct_();
  732. static const int kStructFieldNumber = 1;
  733. private:
  734. const ::google::protobuf::Struct& _internal_struct_() const;
  735. public:
  736. const ::google::protobuf::Struct& struct_() const;
  737. ::google::protobuf::Struct* release_struct_();
  738. ::google::protobuf::Struct* mutable_struct_();
  739. void set_allocated_struct_(::google::protobuf::Struct* struct_);
  740. // @@protoc_insertion_point(class_scope:google.protobuf.testing.StructWrapper)
  741. private:
  742. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  743. ::google::protobuf::Struct* struct__;
  744. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  745. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::TableStruct;
  746. };
  747. // -------------------------------------------------------------------
  748. class ValueWrapper : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.ValueWrapper) */ {
  749. public:
  750. ValueWrapper();
  751. virtual ~ValueWrapper();
  752. ValueWrapper(const ValueWrapper& from);
  753. inline ValueWrapper& operator=(const ValueWrapper& from) {
  754. CopyFrom(from);
  755. return *this;
  756. }
  757. #if LANG_CXX11
  758. ValueWrapper(ValueWrapper&& from) noexcept
  759. : ValueWrapper() {
  760. *this = ::std::move(from);
  761. }
  762. inline ValueWrapper& operator=(ValueWrapper&& from) noexcept {
  763. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  764. if (this != &from) InternalSwap(&from);
  765. } else {
  766. CopyFrom(from);
  767. }
  768. return *this;
  769. }
  770. #endif
  771. static const ::google::protobuf::Descriptor* descriptor();
  772. static const ValueWrapper& default_instance();
  773. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  774. static inline const ValueWrapper* internal_default_instance() {
  775. return reinterpret_cast<const ValueWrapper*>(
  776. &_ValueWrapper_default_instance_);
  777. }
  778. static constexpr int kIndexInFileMessages =
  779. 2;
  780. void Swap(ValueWrapper* other);
  781. friend void swap(ValueWrapper& a, ValueWrapper& b) {
  782. a.Swap(&b);
  783. }
  784. // implements Message ----------------------------------------------
  785. inline ValueWrapper* New() const final {
  786. return CreateMaybeMessage<ValueWrapper>(NULL);
  787. }
  788. ValueWrapper* New(::google::protobuf::Arena* arena) const final {
  789. return CreateMaybeMessage<ValueWrapper>(arena);
  790. }
  791. void CopyFrom(const ::google::protobuf::Message& from) final;
  792. void MergeFrom(const ::google::protobuf::Message& from) final;
  793. void CopyFrom(const ValueWrapper& from);
  794. void MergeFrom(const ValueWrapper& from);
  795. void Clear() final;
  796. bool IsInitialized() const final;
  797. size_t ByteSizeLong() const final;
  798. bool MergePartialFromCodedStream(
  799. ::google::protobuf::io::CodedInputStream* input) final;
  800. void SerializeWithCachedSizes(
  801. ::google::protobuf::io::CodedOutputStream* output) const final;
  802. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  803. bool deterministic, ::google::protobuf::uint8* target) const final;
  804. int GetCachedSize() const final { return _cached_size_.Get(); }
  805. private:
  806. void SharedCtor();
  807. void SharedDtor();
  808. void SetCachedSize(int size) const final;
  809. void InternalSwap(ValueWrapper* other);
  810. private:
  811. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  812. return NULL;
  813. }
  814. inline void* MaybeArenaPtr() const {
  815. return NULL;
  816. }
  817. public:
  818. ::google::protobuf::Metadata GetMetadata() const final;
  819. // nested types ----------------------------------------------------
  820. // accessors -------------------------------------------------------
  821. // .google.protobuf.Value value = 1;
  822. bool has_value() const;
  823. void clear_value();
  824. static const int kValueFieldNumber = 1;
  825. private:
  826. const ::google::protobuf::Value& _internal_value() const;
  827. public:
  828. const ::google::protobuf::Value& value() const;
  829. ::google::protobuf::Value* release_value();
  830. ::google::protobuf::Value* mutable_value();
  831. void set_allocated_value(::google::protobuf::Value* value);
  832. // @@protoc_insertion_point(class_scope:google.protobuf.testing.ValueWrapper)
  833. private:
  834. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  835. ::google::protobuf::Value* value_;
  836. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  837. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::TableStruct;
  838. };
  839. // -------------------------------------------------------------------
  840. class RepeatedValueWrapper : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.RepeatedValueWrapper) */ {
  841. public:
  842. RepeatedValueWrapper();
  843. virtual ~RepeatedValueWrapper();
  844. RepeatedValueWrapper(const RepeatedValueWrapper& from);
  845. inline RepeatedValueWrapper& operator=(const RepeatedValueWrapper& from) {
  846. CopyFrom(from);
  847. return *this;
  848. }
  849. #if LANG_CXX11
  850. RepeatedValueWrapper(RepeatedValueWrapper&& from) noexcept
  851. : RepeatedValueWrapper() {
  852. *this = ::std::move(from);
  853. }
  854. inline RepeatedValueWrapper& operator=(RepeatedValueWrapper&& from) noexcept {
  855. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  856. if (this != &from) InternalSwap(&from);
  857. } else {
  858. CopyFrom(from);
  859. }
  860. return *this;
  861. }
  862. #endif
  863. static const ::google::protobuf::Descriptor* descriptor();
  864. static const RepeatedValueWrapper& default_instance();
  865. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  866. static inline const RepeatedValueWrapper* internal_default_instance() {
  867. return reinterpret_cast<const RepeatedValueWrapper*>(
  868. &_RepeatedValueWrapper_default_instance_);
  869. }
  870. static constexpr int kIndexInFileMessages =
  871. 3;
  872. void Swap(RepeatedValueWrapper* other);
  873. friend void swap(RepeatedValueWrapper& a, RepeatedValueWrapper& b) {
  874. a.Swap(&b);
  875. }
  876. // implements Message ----------------------------------------------
  877. inline RepeatedValueWrapper* New() const final {
  878. return CreateMaybeMessage<RepeatedValueWrapper>(NULL);
  879. }
  880. RepeatedValueWrapper* New(::google::protobuf::Arena* arena) const final {
  881. return CreateMaybeMessage<RepeatedValueWrapper>(arena);
  882. }
  883. void CopyFrom(const ::google::protobuf::Message& from) final;
  884. void MergeFrom(const ::google::protobuf::Message& from) final;
  885. void CopyFrom(const RepeatedValueWrapper& from);
  886. void MergeFrom(const RepeatedValueWrapper& from);
  887. void Clear() final;
  888. bool IsInitialized() const final;
  889. size_t ByteSizeLong() const final;
  890. bool MergePartialFromCodedStream(
  891. ::google::protobuf::io::CodedInputStream* input) final;
  892. void SerializeWithCachedSizes(
  893. ::google::protobuf::io::CodedOutputStream* output) const final;
  894. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  895. bool deterministic, ::google::protobuf::uint8* target) const final;
  896. int GetCachedSize() const final { return _cached_size_.Get(); }
  897. private:
  898. void SharedCtor();
  899. void SharedDtor();
  900. void SetCachedSize(int size) const final;
  901. void InternalSwap(RepeatedValueWrapper* other);
  902. private:
  903. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  904. return NULL;
  905. }
  906. inline void* MaybeArenaPtr() const {
  907. return NULL;
  908. }
  909. public:
  910. ::google::protobuf::Metadata GetMetadata() const final;
  911. // nested types ----------------------------------------------------
  912. // accessors -------------------------------------------------------
  913. // repeated .google.protobuf.Value values = 1;
  914. int values_size() const;
  915. void clear_values();
  916. static const int kValuesFieldNumber = 1;
  917. ::google::protobuf::Value* mutable_values(int index);
  918. ::google::protobuf::RepeatedPtrField< ::google::protobuf::Value >*
  919. mutable_values();
  920. const ::google::protobuf::Value& values(int index) const;
  921. ::google::protobuf::Value* add_values();
  922. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Value >&
  923. values() const;
  924. // @@protoc_insertion_point(class_scope:google.protobuf.testing.RepeatedValueWrapper)
  925. private:
  926. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  927. ::google::protobuf::RepeatedPtrField< ::google::protobuf::Value > values_;
  928. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  929. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::TableStruct;
  930. };
  931. // -------------------------------------------------------------------
  932. class ListValueWrapper : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.ListValueWrapper) */ {
  933. public:
  934. ListValueWrapper();
  935. virtual ~ListValueWrapper();
  936. ListValueWrapper(const ListValueWrapper& from);
  937. inline ListValueWrapper& operator=(const ListValueWrapper& from) {
  938. CopyFrom(from);
  939. return *this;
  940. }
  941. #if LANG_CXX11
  942. ListValueWrapper(ListValueWrapper&& from) noexcept
  943. : ListValueWrapper() {
  944. *this = ::std::move(from);
  945. }
  946. inline ListValueWrapper& operator=(ListValueWrapper&& from) noexcept {
  947. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  948. if (this != &from) InternalSwap(&from);
  949. } else {
  950. CopyFrom(from);
  951. }
  952. return *this;
  953. }
  954. #endif
  955. static const ::google::protobuf::Descriptor* descriptor();
  956. static const ListValueWrapper& default_instance();
  957. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  958. static inline const ListValueWrapper* internal_default_instance() {
  959. return reinterpret_cast<const ListValueWrapper*>(
  960. &_ListValueWrapper_default_instance_);
  961. }
  962. static constexpr int kIndexInFileMessages =
  963. 4;
  964. void Swap(ListValueWrapper* other);
  965. friend void swap(ListValueWrapper& a, ListValueWrapper& b) {
  966. a.Swap(&b);
  967. }
  968. // implements Message ----------------------------------------------
  969. inline ListValueWrapper* New() const final {
  970. return CreateMaybeMessage<ListValueWrapper>(NULL);
  971. }
  972. ListValueWrapper* New(::google::protobuf::Arena* arena) const final {
  973. return CreateMaybeMessage<ListValueWrapper>(arena);
  974. }
  975. void CopyFrom(const ::google::protobuf::Message& from) final;
  976. void MergeFrom(const ::google::protobuf::Message& from) final;
  977. void CopyFrom(const ListValueWrapper& from);
  978. void MergeFrom(const ListValueWrapper& from);
  979. void Clear() final;
  980. bool IsInitialized() const final;
  981. size_t ByteSizeLong() const final;
  982. bool MergePartialFromCodedStream(
  983. ::google::protobuf::io::CodedInputStream* input) final;
  984. void SerializeWithCachedSizes(
  985. ::google::protobuf::io::CodedOutputStream* output) const final;
  986. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  987. bool deterministic, ::google::protobuf::uint8* target) const final;
  988. int GetCachedSize() const final { return _cached_size_.Get(); }
  989. private:
  990. void SharedCtor();
  991. void SharedDtor();
  992. void SetCachedSize(int size) const final;
  993. void InternalSwap(ListValueWrapper* other);
  994. private:
  995. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  996. return NULL;
  997. }
  998. inline void* MaybeArenaPtr() const {
  999. return NULL;
  1000. }
  1001. public:
  1002. ::google::protobuf::Metadata GetMetadata() const final;
  1003. // nested types ----------------------------------------------------
  1004. // accessors -------------------------------------------------------
  1005. // .google.protobuf.ListValue shopping_list = 1;
  1006. bool has_shopping_list() const;
  1007. void clear_shopping_list();
  1008. static const int kShoppingListFieldNumber = 1;
  1009. private:
  1010. const ::google::protobuf::ListValue& _internal_shopping_list() const;
  1011. public:
  1012. const ::google::protobuf::ListValue& shopping_list() const;
  1013. ::google::protobuf::ListValue* release_shopping_list();
  1014. ::google::protobuf::ListValue* mutable_shopping_list();
  1015. void set_allocated_shopping_list(::google::protobuf::ListValue* shopping_list);
  1016. // @@protoc_insertion_point(class_scope:google.protobuf.testing.ListValueWrapper)
  1017. private:
  1018. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1019. ::google::protobuf::ListValue* shopping_list_;
  1020. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1021. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::TableStruct;
  1022. };
  1023. // -------------------------------------------------------------------
  1024. class RepeatedListValueWrapper : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.RepeatedListValueWrapper) */ {
  1025. public:
  1026. RepeatedListValueWrapper();
  1027. virtual ~RepeatedListValueWrapper();
  1028. RepeatedListValueWrapper(const RepeatedListValueWrapper& from);
  1029. inline RepeatedListValueWrapper& operator=(const RepeatedListValueWrapper& from) {
  1030. CopyFrom(from);
  1031. return *this;
  1032. }
  1033. #if LANG_CXX11
  1034. RepeatedListValueWrapper(RepeatedListValueWrapper&& from) noexcept
  1035. : RepeatedListValueWrapper() {
  1036. *this = ::std::move(from);
  1037. }
  1038. inline RepeatedListValueWrapper& operator=(RepeatedListValueWrapper&& from) noexcept {
  1039. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1040. if (this != &from) InternalSwap(&from);
  1041. } else {
  1042. CopyFrom(from);
  1043. }
  1044. return *this;
  1045. }
  1046. #endif
  1047. static const ::google::protobuf::Descriptor* descriptor();
  1048. static const RepeatedListValueWrapper& default_instance();
  1049. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1050. static inline const RepeatedListValueWrapper* internal_default_instance() {
  1051. return reinterpret_cast<const RepeatedListValueWrapper*>(
  1052. &_RepeatedListValueWrapper_default_instance_);
  1053. }
  1054. static constexpr int kIndexInFileMessages =
  1055. 5;
  1056. void Swap(RepeatedListValueWrapper* other);
  1057. friend void swap(RepeatedListValueWrapper& a, RepeatedListValueWrapper& b) {
  1058. a.Swap(&b);
  1059. }
  1060. // implements Message ----------------------------------------------
  1061. inline RepeatedListValueWrapper* New() const final {
  1062. return CreateMaybeMessage<RepeatedListValueWrapper>(NULL);
  1063. }
  1064. RepeatedListValueWrapper* New(::google::protobuf::Arena* arena) const final {
  1065. return CreateMaybeMessage<RepeatedListValueWrapper>(arena);
  1066. }
  1067. void CopyFrom(const ::google::protobuf::Message& from) final;
  1068. void MergeFrom(const ::google::protobuf::Message& from) final;
  1069. void CopyFrom(const RepeatedListValueWrapper& from);
  1070. void MergeFrom(const RepeatedListValueWrapper& from);
  1071. void Clear() final;
  1072. bool IsInitialized() const final;
  1073. size_t ByteSizeLong() const final;
  1074. bool MergePartialFromCodedStream(
  1075. ::google::protobuf::io::CodedInputStream* input) final;
  1076. void SerializeWithCachedSizes(
  1077. ::google::protobuf::io::CodedOutputStream* output) const final;
  1078. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1079. bool deterministic, ::google::protobuf::uint8* target) const final;
  1080. int GetCachedSize() const final { return _cached_size_.Get(); }
  1081. private:
  1082. void SharedCtor();
  1083. void SharedDtor();
  1084. void SetCachedSize(int size) const final;
  1085. void InternalSwap(RepeatedListValueWrapper* other);
  1086. private:
  1087. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1088. return NULL;
  1089. }
  1090. inline void* MaybeArenaPtr() const {
  1091. return NULL;
  1092. }
  1093. public:
  1094. ::google::protobuf::Metadata GetMetadata() const final;
  1095. // nested types ----------------------------------------------------
  1096. // accessors -------------------------------------------------------
  1097. // repeated .google.protobuf.ListValue dimensions = 1;
  1098. int dimensions_size() const;
  1099. void clear_dimensions();
  1100. static const int kDimensionsFieldNumber = 1;
  1101. ::google::protobuf::ListValue* mutable_dimensions(int index);
  1102. ::google::protobuf::RepeatedPtrField< ::google::protobuf::ListValue >*
  1103. mutable_dimensions();
  1104. const ::google::protobuf::ListValue& dimensions(int index) const;
  1105. ::google::protobuf::ListValue* add_dimensions();
  1106. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::ListValue >&
  1107. dimensions() const;
  1108. // @@protoc_insertion_point(class_scope:google.protobuf.testing.RepeatedListValueWrapper)
  1109. private:
  1110. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1111. ::google::protobuf::RepeatedPtrField< ::google::protobuf::ListValue > dimensions_;
  1112. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1113. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::TableStruct;
  1114. };
  1115. // -------------------------------------------------------------------
  1116. class MapOfStruct_StructMapEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<MapOfStruct_StructMapEntry_DoNotUse,
  1117. ::std::string, ::google::protobuf::Struct,
  1118. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  1119. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  1120. 0 > {
  1121. public:
  1122. typedef ::google::protobuf::internal::MapEntry<MapOfStruct_StructMapEntry_DoNotUse,
  1123. ::std::string, ::google::protobuf::Struct,
  1124. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  1125. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  1126. 0 > SuperType;
  1127. MapOfStruct_StructMapEntry_DoNotUse();
  1128. MapOfStruct_StructMapEntry_DoNotUse(::google::protobuf::Arena* arena);
  1129. void MergeFrom(const MapOfStruct_StructMapEntry_DoNotUse& other);
  1130. static const MapOfStruct_StructMapEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const MapOfStruct_StructMapEntry_DoNotUse*>(&_MapOfStruct_StructMapEntry_DoNotUse_default_instance_); }
  1131. void MergeFrom(const ::google::protobuf::Message& other) final;
  1132. ::google::protobuf::Metadata GetMetadata() const;
  1133. };
  1134. // -------------------------------------------------------------------
  1135. class MapOfStruct_ValueMapEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<MapOfStruct_ValueMapEntry_DoNotUse,
  1136. ::std::string, ::google::protobuf::Value,
  1137. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  1138. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  1139. 0 > {
  1140. public:
  1141. typedef ::google::protobuf::internal::MapEntry<MapOfStruct_ValueMapEntry_DoNotUse,
  1142. ::std::string, ::google::protobuf::Value,
  1143. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  1144. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  1145. 0 > SuperType;
  1146. MapOfStruct_ValueMapEntry_DoNotUse();
  1147. MapOfStruct_ValueMapEntry_DoNotUse(::google::protobuf::Arena* arena);
  1148. void MergeFrom(const MapOfStruct_ValueMapEntry_DoNotUse& other);
  1149. static const MapOfStruct_ValueMapEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const MapOfStruct_ValueMapEntry_DoNotUse*>(&_MapOfStruct_ValueMapEntry_DoNotUse_default_instance_); }
  1150. void MergeFrom(const ::google::protobuf::Message& other) final;
  1151. ::google::protobuf::Metadata GetMetadata() const;
  1152. };
  1153. // -------------------------------------------------------------------
  1154. class MapOfStruct_ListvalueMapEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<MapOfStruct_ListvalueMapEntry_DoNotUse,
  1155. ::std::string, ::google::protobuf::ListValue,
  1156. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  1157. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  1158. 0 > {
  1159. public:
  1160. typedef ::google::protobuf::internal::MapEntry<MapOfStruct_ListvalueMapEntry_DoNotUse,
  1161. ::std::string, ::google::protobuf::ListValue,
  1162. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  1163. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  1164. 0 > SuperType;
  1165. MapOfStruct_ListvalueMapEntry_DoNotUse();
  1166. MapOfStruct_ListvalueMapEntry_DoNotUse(::google::protobuf::Arena* arena);
  1167. void MergeFrom(const MapOfStruct_ListvalueMapEntry_DoNotUse& other);
  1168. static const MapOfStruct_ListvalueMapEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const MapOfStruct_ListvalueMapEntry_DoNotUse*>(&_MapOfStruct_ListvalueMapEntry_DoNotUse_default_instance_); }
  1169. void MergeFrom(const ::google::protobuf::Message& other) final;
  1170. ::google::protobuf::Metadata GetMetadata() const;
  1171. };
  1172. // -------------------------------------------------------------------
  1173. class MapOfStruct : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.MapOfStruct) */ {
  1174. public:
  1175. MapOfStruct();
  1176. virtual ~MapOfStruct();
  1177. MapOfStruct(const MapOfStruct& from);
  1178. inline MapOfStruct& operator=(const MapOfStruct& from) {
  1179. CopyFrom(from);
  1180. return *this;
  1181. }
  1182. #if LANG_CXX11
  1183. MapOfStruct(MapOfStruct&& from) noexcept
  1184. : MapOfStruct() {
  1185. *this = ::std::move(from);
  1186. }
  1187. inline MapOfStruct& operator=(MapOfStruct&& from) noexcept {
  1188. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1189. if (this != &from) InternalSwap(&from);
  1190. } else {
  1191. CopyFrom(from);
  1192. }
  1193. return *this;
  1194. }
  1195. #endif
  1196. static const ::google::protobuf::Descriptor* descriptor();
  1197. static const MapOfStruct& default_instance();
  1198. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1199. static inline const MapOfStruct* internal_default_instance() {
  1200. return reinterpret_cast<const MapOfStruct*>(
  1201. &_MapOfStruct_default_instance_);
  1202. }
  1203. static constexpr int kIndexInFileMessages =
  1204. 9;
  1205. void Swap(MapOfStruct* other);
  1206. friend void swap(MapOfStruct& a, MapOfStruct& b) {
  1207. a.Swap(&b);
  1208. }
  1209. // implements Message ----------------------------------------------
  1210. inline MapOfStruct* New() const final {
  1211. return CreateMaybeMessage<MapOfStruct>(NULL);
  1212. }
  1213. MapOfStruct* New(::google::protobuf::Arena* arena) const final {
  1214. return CreateMaybeMessage<MapOfStruct>(arena);
  1215. }
  1216. void CopyFrom(const ::google::protobuf::Message& from) final;
  1217. void MergeFrom(const ::google::protobuf::Message& from) final;
  1218. void CopyFrom(const MapOfStruct& from);
  1219. void MergeFrom(const MapOfStruct& from);
  1220. void Clear() final;
  1221. bool IsInitialized() const final;
  1222. size_t ByteSizeLong() const final;
  1223. bool MergePartialFromCodedStream(
  1224. ::google::protobuf::io::CodedInputStream* input) final;
  1225. void SerializeWithCachedSizes(
  1226. ::google::protobuf::io::CodedOutputStream* output) const final;
  1227. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1228. bool deterministic, ::google::protobuf::uint8* target) const final;
  1229. int GetCachedSize() const final { return _cached_size_.Get(); }
  1230. private:
  1231. void SharedCtor();
  1232. void SharedDtor();
  1233. void SetCachedSize(int size) const final;
  1234. void InternalSwap(MapOfStruct* other);
  1235. private:
  1236. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1237. return NULL;
  1238. }
  1239. inline void* MaybeArenaPtr() const {
  1240. return NULL;
  1241. }
  1242. public:
  1243. ::google::protobuf::Metadata GetMetadata() const final;
  1244. // nested types ----------------------------------------------------
  1245. // accessors -------------------------------------------------------
  1246. // map<string, .google.protobuf.Struct> struct_map = 1;
  1247. int struct_map_size() const;
  1248. void clear_struct_map();
  1249. static const int kStructMapFieldNumber = 1;
  1250. const ::google::protobuf::Map< ::std::string, ::google::protobuf::Struct >&
  1251. struct_map() const;
  1252. ::google::protobuf::Map< ::std::string, ::google::protobuf::Struct >*
  1253. mutable_struct_map();
  1254. // map<string, .google.protobuf.Value> value_map = 2;
  1255. int value_map_size() const;
  1256. void clear_value_map();
  1257. static const int kValueMapFieldNumber = 2;
  1258. const ::google::protobuf::Map< ::std::string, ::google::protobuf::Value >&
  1259. value_map() const;
  1260. ::google::protobuf::Map< ::std::string, ::google::protobuf::Value >*
  1261. mutable_value_map();
  1262. // map<string, .google.protobuf.ListValue> listvalue_map = 3;
  1263. int listvalue_map_size() const;
  1264. void clear_listvalue_map();
  1265. static const int kListvalueMapFieldNumber = 3;
  1266. const ::google::protobuf::Map< ::std::string, ::google::protobuf::ListValue >&
  1267. listvalue_map() const;
  1268. ::google::protobuf::Map< ::std::string, ::google::protobuf::ListValue >*
  1269. mutable_listvalue_map();
  1270. // @@protoc_insertion_point(class_scope:google.protobuf.testing.MapOfStruct)
  1271. private:
  1272. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1273. ::google::protobuf::internal::MapField<
  1274. MapOfStruct_StructMapEntry_DoNotUse,
  1275. ::std::string, ::google::protobuf::Struct,
  1276. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  1277. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  1278. 0 > struct_map_;
  1279. ::google::protobuf::internal::MapField<
  1280. MapOfStruct_ValueMapEntry_DoNotUse,
  1281. ::std::string, ::google::protobuf::Value,
  1282. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  1283. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  1284. 0 > value_map_;
  1285. ::google::protobuf::internal::MapField<
  1286. MapOfStruct_ListvalueMapEntry_DoNotUse,
  1287. ::std::string, ::google::protobuf::ListValue,
  1288. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  1289. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  1290. 0 > listvalue_map_;
  1291. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1292. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::TableStruct;
  1293. };
  1294. // -------------------------------------------------------------------
  1295. class Dummy : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.Dummy) */ {
  1296. public:
  1297. Dummy();
  1298. virtual ~Dummy();
  1299. Dummy(const Dummy& from);
  1300. inline Dummy& operator=(const Dummy& from) {
  1301. CopyFrom(from);
  1302. return *this;
  1303. }
  1304. #if LANG_CXX11
  1305. Dummy(Dummy&& from) noexcept
  1306. : Dummy() {
  1307. *this = ::std::move(from);
  1308. }
  1309. inline Dummy& operator=(Dummy&& from) noexcept {
  1310. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1311. if (this != &from) InternalSwap(&from);
  1312. } else {
  1313. CopyFrom(from);
  1314. }
  1315. return *this;
  1316. }
  1317. #endif
  1318. static const ::google::protobuf::Descriptor* descriptor();
  1319. static const Dummy& default_instance();
  1320. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1321. static inline const Dummy* internal_default_instance() {
  1322. return reinterpret_cast<const Dummy*>(
  1323. &_Dummy_default_instance_);
  1324. }
  1325. static constexpr int kIndexInFileMessages =
  1326. 10;
  1327. void Swap(Dummy* other);
  1328. friend void swap(Dummy& a, Dummy& b) {
  1329. a.Swap(&b);
  1330. }
  1331. // implements Message ----------------------------------------------
  1332. inline Dummy* New() const final {
  1333. return CreateMaybeMessage<Dummy>(NULL);
  1334. }
  1335. Dummy* New(::google::protobuf::Arena* arena) const final {
  1336. return CreateMaybeMessage<Dummy>(arena);
  1337. }
  1338. void CopyFrom(const ::google::protobuf::Message& from) final;
  1339. void MergeFrom(const ::google::protobuf::Message& from) final;
  1340. void CopyFrom(const Dummy& from);
  1341. void MergeFrom(const Dummy& from);
  1342. void Clear() final;
  1343. bool IsInitialized() const final;
  1344. size_t ByteSizeLong() const final;
  1345. bool MergePartialFromCodedStream(
  1346. ::google::protobuf::io::CodedInputStream* input) final;
  1347. void SerializeWithCachedSizes(
  1348. ::google::protobuf::io::CodedOutputStream* output) const final;
  1349. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1350. bool deterministic, ::google::protobuf::uint8* target) const final;
  1351. int GetCachedSize() const final { return _cached_size_.Get(); }
  1352. private:
  1353. void SharedCtor();
  1354. void SharedDtor();
  1355. void SetCachedSize(int size) const final;
  1356. void InternalSwap(Dummy* other);
  1357. private:
  1358. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1359. return NULL;
  1360. }
  1361. inline void* MaybeArenaPtr() const {
  1362. return NULL;
  1363. }
  1364. public:
  1365. ::google::protobuf::Metadata GetMetadata() const final;
  1366. // nested types ----------------------------------------------------
  1367. // accessors -------------------------------------------------------
  1368. // string text = 1;
  1369. void clear_text();
  1370. static const int kTextFieldNumber = 1;
  1371. const ::std::string& text() const;
  1372. void set_text(const ::std::string& value);
  1373. #if LANG_CXX11
  1374. void set_text(::std::string&& value);
  1375. #endif
  1376. void set_text(const char* value);
  1377. void set_text(const char* value, size_t size);
  1378. ::std::string* mutable_text();
  1379. ::std::string* release_text();
  1380. void set_allocated_text(::std::string* text);
  1381. // @@protoc_insertion_point(class_scope:google.protobuf.testing.Dummy)
  1382. private:
  1383. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1384. ::google::protobuf::internal::ArenaStringPtr text_;
  1385. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1386. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::TableStruct;
  1387. };
  1388. // -------------------------------------------------------------------
  1389. class StructType : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.StructType) */ {
  1390. public:
  1391. StructType();
  1392. virtual ~StructType();
  1393. StructType(const StructType& from);
  1394. inline StructType& operator=(const StructType& from) {
  1395. CopyFrom(from);
  1396. return *this;
  1397. }
  1398. #if LANG_CXX11
  1399. StructType(StructType&& from) noexcept
  1400. : StructType() {
  1401. *this = ::std::move(from);
  1402. }
  1403. inline StructType& operator=(StructType&& from) noexcept {
  1404. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1405. if (this != &from) InternalSwap(&from);
  1406. } else {
  1407. CopyFrom(from);
  1408. }
  1409. return *this;
  1410. }
  1411. #endif
  1412. static const ::google::protobuf::Descriptor* descriptor();
  1413. static const StructType& default_instance();
  1414. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1415. static inline const StructType* internal_default_instance() {
  1416. return reinterpret_cast<const StructType*>(
  1417. &_StructType_default_instance_);
  1418. }
  1419. static constexpr int kIndexInFileMessages =
  1420. 11;
  1421. void Swap(StructType* other);
  1422. friend void swap(StructType& a, StructType& b) {
  1423. a.Swap(&b);
  1424. }
  1425. // implements Message ----------------------------------------------
  1426. inline StructType* New() const final {
  1427. return CreateMaybeMessage<StructType>(NULL);
  1428. }
  1429. StructType* New(::google::protobuf::Arena* arena) const final {
  1430. return CreateMaybeMessage<StructType>(arena);
  1431. }
  1432. void CopyFrom(const ::google::protobuf::Message& from) final;
  1433. void MergeFrom(const ::google::protobuf::Message& from) final;
  1434. void CopyFrom(const StructType& from);
  1435. void MergeFrom(const StructType& from);
  1436. void Clear() final;
  1437. bool IsInitialized() const final;
  1438. size_t ByteSizeLong() const final;
  1439. bool MergePartialFromCodedStream(
  1440. ::google::protobuf::io::CodedInputStream* input) final;
  1441. void SerializeWithCachedSizes(
  1442. ::google::protobuf::io::CodedOutputStream* output) const final;
  1443. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1444. bool deterministic, ::google::protobuf::uint8* target) const final;
  1445. int GetCachedSize() const final { return _cached_size_.Get(); }
  1446. private:
  1447. void SharedCtor();
  1448. void SharedDtor();
  1449. void SetCachedSize(int size) const final;
  1450. void InternalSwap(StructType* other);
  1451. private:
  1452. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1453. return NULL;
  1454. }
  1455. inline void* MaybeArenaPtr() const {
  1456. return NULL;
  1457. }
  1458. public:
  1459. ::google::protobuf::Metadata GetMetadata() const final;
  1460. // nested types ----------------------------------------------------
  1461. // accessors -------------------------------------------------------
  1462. // .google.protobuf.Struct object = 1;
  1463. bool has_object() const;
  1464. void clear_object();
  1465. static const int kObjectFieldNumber = 1;
  1466. private:
  1467. const ::google::protobuf::Struct& _internal_object() const;
  1468. public:
  1469. const ::google::protobuf::Struct& object() const;
  1470. ::google::protobuf::Struct* release_object();
  1471. ::google::protobuf::Struct* mutable_object();
  1472. void set_allocated_object(::google::protobuf::Struct* object);
  1473. // @@protoc_insertion_point(class_scope:google.protobuf.testing.StructType)
  1474. private:
  1475. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1476. ::google::protobuf::Struct* object_;
  1477. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1478. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto::TableStruct;
  1479. };
  1480. // ===================================================================
  1481. // ===================================================================
  1482. #ifdef __GNUC__
  1483. #pragma GCC diagnostic push
  1484. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  1485. #endif // __GNUC__
  1486. // StructTestCases
  1487. // .google.protobuf.testing.StructWrapper empty_value = 1;
  1488. inline bool StructTestCases::has_empty_value() const {
  1489. return this != internal_default_instance() && empty_value_ != NULL;
  1490. }
  1491. inline void StructTestCases::clear_empty_value() {
  1492. if (GetArenaNoVirtual() == NULL && empty_value_ != NULL) {
  1493. delete empty_value_;
  1494. }
  1495. empty_value_ = NULL;
  1496. }
  1497. inline const ::google::protobuf::testing::StructWrapper& StructTestCases::_internal_empty_value() const {
  1498. return *empty_value_;
  1499. }
  1500. inline const ::google::protobuf::testing::StructWrapper& StructTestCases::empty_value() const {
  1501. const ::google::protobuf::testing::StructWrapper* p = empty_value_;
  1502. // @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.empty_value)
  1503. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::StructWrapper*>(
  1504. &::google::protobuf::testing::_StructWrapper_default_instance_);
  1505. }
  1506. inline ::google::protobuf::testing::StructWrapper* StructTestCases::release_empty_value() {
  1507. // @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.empty_value)
  1508. ::google::protobuf::testing::StructWrapper* temp = empty_value_;
  1509. empty_value_ = NULL;
  1510. return temp;
  1511. }
  1512. inline ::google::protobuf::testing::StructWrapper* StructTestCases::mutable_empty_value() {
  1513. if (empty_value_ == NULL) {
  1514. auto* p = CreateMaybeMessage<::google::protobuf::testing::StructWrapper>(GetArenaNoVirtual());
  1515. empty_value_ = p;
  1516. }
  1517. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.empty_value)
  1518. return empty_value_;
  1519. }
  1520. inline void StructTestCases::set_allocated_empty_value(::google::protobuf::testing::StructWrapper* empty_value) {
  1521. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1522. if (message_arena == NULL) {
  1523. delete empty_value_;
  1524. }
  1525. if (empty_value) {
  1526. ::google::protobuf::Arena* submessage_arena = NULL;
  1527. if (message_arena != submessage_arena) {
  1528. empty_value = ::google::protobuf::internal::GetOwnedMessage(
  1529. message_arena, empty_value, submessage_arena);
  1530. }
  1531. } else {
  1532. }
  1533. empty_value_ = empty_value;
  1534. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.empty_value)
  1535. }
  1536. // .google.protobuf.testing.StructWrapper empty_value2 = 2;
  1537. inline bool StructTestCases::has_empty_value2() const {
  1538. return this != internal_default_instance() && empty_value2_ != NULL;
  1539. }
  1540. inline void StructTestCases::clear_empty_value2() {
  1541. if (GetArenaNoVirtual() == NULL && empty_value2_ != NULL) {
  1542. delete empty_value2_;
  1543. }
  1544. empty_value2_ = NULL;
  1545. }
  1546. inline const ::google::protobuf::testing::StructWrapper& StructTestCases::_internal_empty_value2() const {
  1547. return *empty_value2_;
  1548. }
  1549. inline const ::google::protobuf::testing::StructWrapper& StructTestCases::empty_value2() const {
  1550. const ::google::protobuf::testing::StructWrapper* p = empty_value2_;
  1551. // @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.empty_value2)
  1552. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::StructWrapper*>(
  1553. &::google::protobuf::testing::_StructWrapper_default_instance_);
  1554. }
  1555. inline ::google::protobuf::testing::StructWrapper* StructTestCases::release_empty_value2() {
  1556. // @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.empty_value2)
  1557. ::google::protobuf::testing::StructWrapper* temp = empty_value2_;
  1558. empty_value2_ = NULL;
  1559. return temp;
  1560. }
  1561. inline ::google::protobuf::testing::StructWrapper* StructTestCases::mutable_empty_value2() {
  1562. if (empty_value2_ == NULL) {
  1563. auto* p = CreateMaybeMessage<::google::protobuf::testing::StructWrapper>(GetArenaNoVirtual());
  1564. empty_value2_ = p;
  1565. }
  1566. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.empty_value2)
  1567. return empty_value2_;
  1568. }
  1569. inline void StructTestCases::set_allocated_empty_value2(::google::protobuf::testing::StructWrapper* empty_value2) {
  1570. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1571. if (message_arena == NULL) {
  1572. delete empty_value2_;
  1573. }
  1574. if (empty_value2) {
  1575. ::google::protobuf::Arena* submessage_arena = NULL;
  1576. if (message_arena != submessage_arena) {
  1577. empty_value2 = ::google::protobuf::internal::GetOwnedMessage(
  1578. message_arena, empty_value2, submessage_arena);
  1579. }
  1580. } else {
  1581. }
  1582. empty_value2_ = empty_value2;
  1583. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.empty_value2)
  1584. }
  1585. // .google.protobuf.testing.StructWrapper null_value = 3;
  1586. inline bool StructTestCases::has_null_value() const {
  1587. return this != internal_default_instance() && null_value_ != NULL;
  1588. }
  1589. inline void StructTestCases::clear_null_value() {
  1590. if (GetArenaNoVirtual() == NULL && null_value_ != NULL) {
  1591. delete null_value_;
  1592. }
  1593. null_value_ = NULL;
  1594. }
  1595. inline const ::google::protobuf::testing::StructWrapper& StructTestCases::_internal_null_value() const {
  1596. return *null_value_;
  1597. }
  1598. inline const ::google::protobuf::testing::StructWrapper& StructTestCases::null_value() const {
  1599. const ::google::protobuf::testing::StructWrapper* p = null_value_;
  1600. // @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.null_value)
  1601. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::StructWrapper*>(
  1602. &::google::protobuf::testing::_StructWrapper_default_instance_);
  1603. }
  1604. inline ::google::protobuf::testing::StructWrapper* StructTestCases::release_null_value() {
  1605. // @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.null_value)
  1606. ::google::protobuf::testing::StructWrapper* temp = null_value_;
  1607. null_value_ = NULL;
  1608. return temp;
  1609. }
  1610. inline ::google::protobuf::testing::StructWrapper* StructTestCases::mutable_null_value() {
  1611. if (null_value_ == NULL) {
  1612. auto* p = CreateMaybeMessage<::google::protobuf::testing::StructWrapper>(GetArenaNoVirtual());
  1613. null_value_ = p;
  1614. }
  1615. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.null_value)
  1616. return null_value_;
  1617. }
  1618. inline void StructTestCases::set_allocated_null_value(::google::protobuf::testing::StructWrapper* null_value) {
  1619. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1620. if (message_arena == NULL) {
  1621. delete null_value_;
  1622. }
  1623. if (null_value) {
  1624. ::google::protobuf::Arena* submessage_arena = NULL;
  1625. if (message_arena != submessage_arena) {
  1626. null_value = ::google::protobuf::internal::GetOwnedMessage(
  1627. message_arena, null_value, submessage_arena);
  1628. }
  1629. } else {
  1630. }
  1631. null_value_ = null_value;
  1632. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.null_value)
  1633. }
  1634. // .google.protobuf.testing.StructWrapper simple_struct = 4;
  1635. inline bool StructTestCases::has_simple_struct() const {
  1636. return this != internal_default_instance() && simple_struct_ != NULL;
  1637. }
  1638. inline void StructTestCases::clear_simple_struct() {
  1639. if (GetArenaNoVirtual() == NULL && simple_struct_ != NULL) {
  1640. delete simple_struct_;
  1641. }
  1642. simple_struct_ = NULL;
  1643. }
  1644. inline const ::google::protobuf::testing::StructWrapper& StructTestCases::_internal_simple_struct() const {
  1645. return *simple_struct_;
  1646. }
  1647. inline const ::google::protobuf::testing::StructWrapper& StructTestCases::simple_struct() const {
  1648. const ::google::protobuf::testing::StructWrapper* p = simple_struct_;
  1649. // @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.simple_struct)
  1650. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::StructWrapper*>(
  1651. &::google::protobuf::testing::_StructWrapper_default_instance_);
  1652. }
  1653. inline ::google::protobuf::testing::StructWrapper* StructTestCases::release_simple_struct() {
  1654. // @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.simple_struct)
  1655. ::google::protobuf::testing::StructWrapper* temp = simple_struct_;
  1656. simple_struct_ = NULL;
  1657. return temp;
  1658. }
  1659. inline ::google::protobuf::testing::StructWrapper* StructTestCases::mutable_simple_struct() {
  1660. if (simple_struct_ == NULL) {
  1661. auto* p = CreateMaybeMessage<::google::protobuf::testing::StructWrapper>(GetArenaNoVirtual());
  1662. simple_struct_ = p;
  1663. }
  1664. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.simple_struct)
  1665. return simple_struct_;
  1666. }
  1667. inline void StructTestCases::set_allocated_simple_struct(::google::protobuf::testing::StructWrapper* simple_struct) {
  1668. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1669. if (message_arena == NULL) {
  1670. delete simple_struct_;
  1671. }
  1672. if (simple_struct) {
  1673. ::google::protobuf::Arena* submessage_arena = NULL;
  1674. if (message_arena != submessage_arena) {
  1675. simple_struct = ::google::protobuf::internal::GetOwnedMessage(
  1676. message_arena, simple_struct, submessage_arena);
  1677. }
  1678. } else {
  1679. }
  1680. simple_struct_ = simple_struct;
  1681. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.simple_struct)
  1682. }
  1683. // .google.protobuf.testing.StructWrapper longer_struct = 5;
  1684. inline bool StructTestCases::has_longer_struct() const {
  1685. return this != internal_default_instance() && longer_struct_ != NULL;
  1686. }
  1687. inline void StructTestCases::clear_longer_struct() {
  1688. if (GetArenaNoVirtual() == NULL && longer_struct_ != NULL) {
  1689. delete longer_struct_;
  1690. }
  1691. longer_struct_ = NULL;
  1692. }
  1693. inline const ::google::protobuf::testing::StructWrapper& StructTestCases::_internal_longer_struct() const {
  1694. return *longer_struct_;
  1695. }
  1696. inline const ::google::protobuf::testing::StructWrapper& StructTestCases::longer_struct() const {
  1697. const ::google::protobuf::testing::StructWrapper* p = longer_struct_;
  1698. // @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.longer_struct)
  1699. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::StructWrapper*>(
  1700. &::google::protobuf::testing::_StructWrapper_default_instance_);
  1701. }
  1702. inline ::google::protobuf::testing::StructWrapper* StructTestCases::release_longer_struct() {
  1703. // @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.longer_struct)
  1704. ::google::protobuf::testing::StructWrapper* temp = longer_struct_;
  1705. longer_struct_ = NULL;
  1706. return temp;
  1707. }
  1708. inline ::google::protobuf::testing::StructWrapper* StructTestCases::mutable_longer_struct() {
  1709. if (longer_struct_ == NULL) {
  1710. auto* p = CreateMaybeMessage<::google::protobuf::testing::StructWrapper>(GetArenaNoVirtual());
  1711. longer_struct_ = p;
  1712. }
  1713. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.longer_struct)
  1714. return longer_struct_;
  1715. }
  1716. inline void StructTestCases::set_allocated_longer_struct(::google::protobuf::testing::StructWrapper* longer_struct) {
  1717. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1718. if (message_arena == NULL) {
  1719. delete longer_struct_;
  1720. }
  1721. if (longer_struct) {
  1722. ::google::protobuf::Arena* submessage_arena = NULL;
  1723. if (message_arena != submessage_arena) {
  1724. longer_struct = ::google::protobuf::internal::GetOwnedMessage(
  1725. message_arena, longer_struct, submessage_arena);
  1726. }
  1727. } else {
  1728. }
  1729. longer_struct_ = longer_struct;
  1730. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.longer_struct)
  1731. }
  1732. // .google.protobuf.testing.StructWrapper struct_with_nested_struct = 6;
  1733. inline bool StructTestCases::has_struct_with_nested_struct() const {
  1734. return this != internal_default_instance() && struct_with_nested_struct_ != NULL;
  1735. }
  1736. inline void StructTestCases::clear_struct_with_nested_struct() {
  1737. if (GetArenaNoVirtual() == NULL && struct_with_nested_struct_ != NULL) {
  1738. delete struct_with_nested_struct_;
  1739. }
  1740. struct_with_nested_struct_ = NULL;
  1741. }
  1742. inline const ::google::protobuf::testing::StructWrapper& StructTestCases::_internal_struct_with_nested_struct() const {
  1743. return *struct_with_nested_struct_;
  1744. }
  1745. inline const ::google::protobuf::testing::StructWrapper& StructTestCases::struct_with_nested_struct() const {
  1746. const ::google::protobuf::testing::StructWrapper* p = struct_with_nested_struct_;
  1747. // @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.struct_with_nested_struct)
  1748. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::StructWrapper*>(
  1749. &::google::protobuf::testing::_StructWrapper_default_instance_);
  1750. }
  1751. inline ::google::protobuf::testing::StructWrapper* StructTestCases::release_struct_with_nested_struct() {
  1752. // @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.struct_with_nested_struct)
  1753. ::google::protobuf::testing::StructWrapper* temp = struct_with_nested_struct_;
  1754. struct_with_nested_struct_ = NULL;
  1755. return temp;
  1756. }
  1757. inline ::google::protobuf::testing::StructWrapper* StructTestCases::mutable_struct_with_nested_struct() {
  1758. if (struct_with_nested_struct_ == NULL) {
  1759. auto* p = CreateMaybeMessage<::google::protobuf::testing::StructWrapper>(GetArenaNoVirtual());
  1760. struct_with_nested_struct_ = p;
  1761. }
  1762. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.struct_with_nested_struct)
  1763. return struct_with_nested_struct_;
  1764. }
  1765. inline void StructTestCases::set_allocated_struct_with_nested_struct(::google::protobuf::testing::StructWrapper* struct_with_nested_struct) {
  1766. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1767. if (message_arena == NULL) {
  1768. delete struct_with_nested_struct_;
  1769. }
  1770. if (struct_with_nested_struct) {
  1771. ::google::protobuf::Arena* submessage_arena = NULL;
  1772. if (message_arena != submessage_arena) {
  1773. struct_with_nested_struct = ::google::protobuf::internal::GetOwnedMessage(
  1774. message_arena, struct_with_nested_struct, submessage_arena);
  1775. }
  1776. } else {
  1777. }
  1778. struct_with_nested_struct_ = struct_with_nested_struct;
  1779. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.struct_with_nested_struct)
  1780. }
  1781. // .google.protobuf.testing.StructWrapper struct_with_nested_list = 7;
  1782. inline bool StructTestCases::has_struct_with_nested_list() const {
  1783. return this != internal_default_instance() && struct_with_nested_list_ != NULL;
  1784. }
  1785. inline void StructTestCases::clear_struct_with_nested_list() {
  1786. if (GetArenaNoVirtual() == NULL && struct_with_nested_list_ != NULL) {
  1787. delete struct_with_nested_list_;
  1788. }
  1789. struct_with_nested_list_ = NULL;
  1790. }
  1791. inline const ::google::protobuf::testing::StructWrapper& StructTestCases::_internal_struct_with_nested_list() const {
  1792. return *struct_with_nested_list_;
  1793. }
  1794. inline const ::google::protobuf::testing::StructWrapper& StructTestCases::struct_with_nested_list() const {
  1795. const ::google::protobuf::testing::StructWrapper* p = struct_with_nested_list_;
  1796. // @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.struct_with_nested_list)
  1797. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::StructWrapper*>(
  1798. &::google::protobuf::testing::_StructWrapper_default_instance_);
  1799. }
  1800. inline ::google::protobuf::testing::StructWrapper* StructTestCases::release_struct_with_nested_list() {
  1801. // @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.struct_with_nested_list)
  1802. ::google::protobuf::testing::StructWrapper* temp = struct_with_nested_list_;
  1803. struct_with_nested_list_ = NULL;
  1804. return temp;
  1805. }
  1806. inline ::google::protobuf::testing::StructWrapper* StructTestCases::mutable_struct_with_nested_list() {
  1807. if (struct_with_nested_list_ == NULL) {
  1808. auto* p = CreateMaybeMessage<::google::protobuf::testing::StructWrapper>(GetArenaNoVirtual());
  1809. struct_with_nested_list_ = p;
  1810. }
  1811. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.struct_with_nested_list)
  1812. return struct_with_nested_list_;
  1813. }
  1814. inline void StructTestCases::set_allocated_struct_with_nested_list(::google::protobuf::testing::StructWrapper* struct_with_nested_list) {
  1815. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1816. if (message_arena == NULL) {
  1817. delete struct_with_nested_list_;
  1818. }
  1819. if (struct_with_nested_list) {
  1820. ::google::protobuf::Arena* submessage_arena = NULL;
  1821. if (message_arena != submessage_arena) {
  1822. struct_with_nested_list = ::google::protobuf::internal::GetOwnedMessage(
  1823. message_arena, struct_with_nested_list, submessage_arena);
  1824. }
  1825. } else {
  1826. }
  1827. struct_with_nested_list_ = struct_with_nested_list;
  1828. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.struct_with_nested_list)
  1829. }
  1830. // .google.protobuf.testing.StructWrapper struct_with_list_of_nulls = 8;
  1831. inline bool StructTestCases::has_struct_with_list_of_nulls() const {
  1832. return this != internal_default_instance() && struct_with_list_of_nulls_ != NULL;
  1833. }
  1834. inline void StructTestCases::clear_struct_with_list_of_nulls() {
  1835. if (GetArenaNoVirtual() == NULL && struct_with_list_of_nulls_ != NULL) {
  1836. delete struct_with_list_of_nulls_;
  1837. }
  1838. struct_with_list_of_nulls_ = NULL;
  1839. }
  1840. inline const ::google::protobuf::testing::StructWrapper& StructTestCases::_internal_struct_with_list_of_nulls() const {
  1841. return *struct_with_list_of_nulls_;
  1842. }
  1843. inline const ::google::protobuf::testing::StructWrapper& StructTestCases::struct_with_list_of_nulls() const {
  1844. const ::google::protobuf::testing::StructWrapper* p = struct_with_list_of_nulls_;
  1845. // @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.struct_with_list_of_nulls)
  1846. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::StructWrapper*>(
  1847. &::google::protobuf::testing::_StructWrapper_default_instance_);
  1848. }
  1849. inline ::google::protobuf::testing::StructWrapper* StructTestCases::release_struct_with_list_of_nulls() {
  1850. // @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.struct_with_list_of_nulls)
  1851. ::google::protobuf::testing::StructWrapper* temp = struct_with_list_of_nulls_;
  1852. struct_with_list_of_nulls_ = NULL;
  1853. return temp;
  1854. }
  1855. inline ::google::protobuf::testing::StructWrapper* StructTestCases::mutable_struct_with_list_of_nulls() {
  1856. if (struct_with_list_of_nulls_ == NULL) {
  1857. auto* p = CreateMaybeMessage<::google::protobuf::testing::StructWrapper>(GetArenaNoVirtual());
  1858. struct_with_list_of_nulls_ = p;
  1859. }
  1860. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.struct_with_list_of_nulls)
  1861. return struct_with_list_of_nulls_;
  1862. }
  1863. inline void StructTestCases::set_allocated_struct_with_list_of_nulls(::google::protobuf::testing::StructWrapper* struct_with_list_of_nulls) {
  1864. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1865. if (message_arena == NULL) {
  1866. delete struct_with_list_of_nulls_;
  1867. }
  1868. if (struct_with_list_of_nulls) {
  1869. ::google::protobuf::Arena* submessage_arena = NULL;
  1870. if (message_arena != submessage_arena) {
  1871. struct_with_list_of_nulls = ::google::protobuf::internal::GetOwnedMessage(
  1872. message_arena, struct_with_list_of_nulls, submessage_arena);
  1873. }
  1874. } else {
  1875. }
  1876. struct_with_list_of_nulls_ = struct_with_list_of_nulls;
  1877. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.struct_with_list_of_nulls)
  1878. }
  1879. // .google.protobuf.testing.StructWrapper struct_with_list_of_lists = 9;
  1880. inline bool StructTestCases::has_struct_with_list_of_lists() const {
  1881. return this != internal_default_instance() && struct_with_list_of_lists_ != NULL;
  1882. }
  1883. inline void StructTestCases::clear_struct_with_list_of_lists() {
  1884. if (GetArenaNoVirtual() == NULL && struct_with_list_of_lists_ != NULL) {
  1885. delete struct_with_list_of_lists_;
  1886. }
  1887. struct_with_list_of_lists_ = NULL;
  1888. }
  1889. inline const ::google::protobuf::testing::StructWrapper& StructTestCases::_internal_struct_with_list_of_lists() const {
  1890. return *struct_with_list_of_lists_;
  1891. }
  1892. inline const ::google::protobuf::testing::StructWrapper& StructTestCases::struct_with_list_of_lists() const {
  1893. const ::google::protobuf::testing::StructWrapper* p = struct_with_list_of_lists_;
  1894. // @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.struct_with_list_of_lists)
  1895. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::StructWrapper*>(
  1896. &::google::protobuf::testing::_StructWrapper_default_instance_);
  1897. }
  1898. inline ::google::protobuf::testing::StructWrapper* StructTestCases::release_struct_with_list_of_lists() {
  1899. // @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.struct_with_list_of_lists)
  1900. ::google::protobuf::testing::StructWrapper* temp = struct_with_list_of_lists_;
  1901. struct_with_list_of_lists_ = NULL;
  1902. return temp;
  1903. }
  1904. inline ::google::protobuf::testing::StructWrapper* StructTestCases::mutable_struct_with_list_of_lists() {
  1905. if (struct_with_list_of_lists_ == NULL) {
  1906. auto* p = CreateMaybeMessage<::google::protobuf::testing::StructWrapper>(GetArenaNoVirtual());
  1907. struct_with_list_of_lists_ = p;
  1908. }
  1909. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.struct_with_list_of_lists)
  1910. return struct_with_list_of_lists_;
  1911. }
  1912. inline void StructTestCases::set_allocated_struct_with_list_of_lists(::google::protobuf::testing::StructWrapper* struct_with_list_of_lists) {
  1913. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1914. if (message_arena == NULL) {
  1915. delete struct_with_list_of_lists_;
  1916. }
  1917. if (struct_with_list_of_lists) {
  1918. ::google::protobuf::Arena* submessage_arena = NULL;
  1919. if (message_arena != submessage_arena) {
  1920. struct_with_list_of_lists = ::google::protobuf::internal::GetOwnedMessage(
  1921. message_arena, struct_with_list_of_lists, submessage_arena);
  1922. }
  1923. } else {
  1924. }
  1925. struct_with_list_of_lists_ = struct_with_list_of_lists;
  1926. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.struct_with_list_of_lists)
  1927. }
  1928. // .google.protobuf.testing.StructWrapper struct_with_list_of_structs = 10;
  1929. inline bool StructTestCases::has_struct_with_list_of_structs() const {
  1930. return this != internal_default_instance() && struct_with_list_of_structs_ != NULL;
  1931. }
  1932. inline void StructTestCases::clear_struct_with_list_of_structs() {
  1933. if (GetArenaNoVirtual() == NULL && struct_with_list_of_structs_ != NULL) {
  1934. delete struct_with_list_of_structs_;
  1935. }
  1936. struct_with_list_of_structs_ = NULL;
  1937. }
  1938. inline const ::google::protobuf::testing::StructWrapper& StructTestCases::_internal_struct_with_list_of_structs() const {
  1939. return *struct_with_list_of_structs_;
  1940. }
  1941. inline const ::google::protobuf::testing::StructWrapper& StructTestCases::struct_with_list_of_structs() const {
  1942. const ::google::protobuf::testing::StructWrapper* p = struct_with_list_of_structs_;
  1943. // @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.struct_with_list_of_structs)
  1944. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::StructWrapper*>(
  1945. &::google::protobuf::testing::_StructWrapper_default_instance_);
  1946. }
  1947. inline ::google::protobuf::testing::StructWrapper* StructTestCases::release_struct_with_list_of_structs() {
  1948. // @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.struct_with_list_of_structs)
  1949. ::google::protobuf::testing::StructWrapper* temp = struct_with_list_of_structs_;
  1950. struct_with_list_of_structs_ = NULL;
  1951. return temp;
  1952. }
  1953. inline ::google::protobuf::testing::StructWrapper* StructTestCases::mutable_struct_with_list_of_structs() {
  1954. if (struct_with_list_of_structs_ == NULL) {
  1955. auto* p = CreateMaybeMessage<::google::protobuf::testing::StructWrapper>(GetArenaNoVirtual());
  1956. struct_with_list_of_structs_ = p;
  1957. }
  1958. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.struct_with_list_of_structs)
  1959. return struct_with_list_of_structs_;
  1960. }
  1961. inline void StructTestCases::set_allocated_struct_with_list_of_structs(::google::protobuf::testing::StructWrapper* struct_with_list_of_structs) {
  1962. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1963. if (message_arena == NULL) {
  1964. delete struct_with_list_of_structs_;
  1965. }
  1966. if (struct_with_list_of_structs) {
  1967. ::google::protobuf::Arena* submessage_arena = NULL;
  1968. if (message_arena != submessage_arena) {
  1969. struct_with_list_of_structs = ::google::protobuf::internal::GetOwnedMessage(
  1970. message_arena, struct_with_list_of_structs, submessage_arena);
  1971. }
  1972. } else {
  1973. }
  1974. struct_with_list_of_structs_ = struct_with_list_of_structs;
  1975. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.struct_with_list_of_structs)
  1976. }
  1977. // .google.protobuf.testing.StructWrapper struct_with_empty_list = 11;
  1978. inline bool StructTestCases::has_struct_with_empty_list() const {
  1979. return this != internal_default_instance() && struct_with_empty_list_ != NULL;
  1980. }
  1981. inline void StructTestCases::clear_struct_with_empty_list() {
  1982. if (GetArenaNoVirtual() == NULL && struct_with_empty_list_ != NULL) {
  1983. delete struct_with_empty_list_;
  1984. }
  1985. struct_with_empty_list_ = NULL;
  1986. }
  1987. inline const ::google::protobuf::testing::StructWrapper& StructTestCases::_internal_struct_with_empty_list() const {
  1988. return *struct_with_empty_list_;
  1989. }
  1990. inline const ::google::protobuf::testing::StructWrapper& StructTestCases::struct_with_empty_list() const {
  1991. const ::google::protobuf::testing::StructWrapper* p = struct_with_empty_list_;
  1992. // @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.struct_with_empty_list)
  1993. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::StructWrapper*>(
  1994. &::google::protobuf::testing::_StructWrapper_default_instance_);
  1995. }
  1996. inline ::google::protobuf::testing::StructWrapper* StructTestCases::release_struct_with_empty_list() {
  1997. // @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.struct_with_empty_list)
  1998. ::google::protobuf::testing::StructWrapper* temp = struct_with_empty_list_;
  1999. struct_with_empty_list_ = NULL;
  2000. return temp;
  2001. }
  2002. inline ::google::protobuf::testing::StructWrapper* StructTestCases::mutable_struct_with_empty_list() {
  2003. if (struct_with_empty_list_ == NULL) {
  2004. auto* p = CreateMaybeMessage<::google::protobuf::testing::StructWrapper>(GetArenaNoVirtual());
  2005. struct_with_empty_list_ = p;
  2006. }
  2007. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.struct_with_empty_list)
  2008. return struct_with_empty_list_;
  2009. }
  2010. inline void StructTestCases::set_allocated_struct_with_empty_list(::google::protobuf::testing::StructWrapper* struct_with_empty_list) {
  2011. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2012. if (message_arena == NULL) {
  2013. delete struct_with_empty_list_;
  2014. }
  2015. if (struct_with_empty_list) {
  2016. ::google::protobuf::Arena* submessage_arena = NULL;
  2017. if (message_arena != submessage_arena) {
  2018. struct_with_empty_list = ::google::protobuf::internal::GetOwnedMessage(
  2019. message_arena, struct_with_empty_list, submessage_arena);
  2020. }
  2021. } else {
  2022. }
  2023. struct_with_empty_list_ = struct_with_empty_list;
  2024. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.struct_with_empty_list)
  2025. }
  2026. // .google.protobuf.testing.StructWrapper struct_with_list_with_empty_struct = 12;
  2027. inline bool StructTestCases::has_struct_with_list_with_empty_struct() const {
  2028. return this != internal_default_instance() && struct_with_list_with_empty_struct_ != NULL;
  2029. }
  2030. inline void StructTestCases::clear_struct_with_list_with_empty_struct() {
  2031. if (GetArenaNoVirtual() == NULL && struct_with_list_with_empty_struct_ != NULL) {
  2032. delete struct_with_list_with_empty_struct_;
  2033. }
  2034. struct_with_list_with_empty_struct_ = NULL;
  2035. }
  2036. inline const ::google::protobuf::testing::StructWrapper& StructTestCases::_internal_struct_with_list_with_empty_struct() const {
  2037. return *struct_with_list_with_empty_struct_;
  2038. }
  2039. inline const ::google::protobuf::testing::StructWrapper& StructTestCases::struct_with_list_with_empty_struct() const {
  2040. const ::google::protobuf::testing::StructWrapper* p = struct_with_list_with_empty_struct_;
  2041. // @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.struct_with_list_with_empty_struct)
  2042. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::StructWrapper*>(
  2043. &::google::protobuf::testing::_StructWrapper_default_instance_);
  2044. }
  2045. inline ::google::protobuf::testing::StructWrapper* StructTestCases::release_struct_with_list_with_empty_struct() {
  2046. // @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.struct_with_list_with_empty_struct)
  2047. ::google::protobuf::testing::StructWrapper* temp = struct_with_list_with_empty_struct_;
  2048. struct_with_list_with_empty_struct_ = NULL;
  2049. return temp;
  2050. }
  2051. inline ::google::protobuf::testing::StructWrapper* StructTestCases::mutable_struct_with_list_with_empty_struct() {
  2052. if (struct_with_list_with_empty_struct_ == NULL) {
  2053. auto* p = CreateMaybeMessage<::google::protobuf::testing::StructWrapper>(GetArenaNoVirtual());
  2054. struct_with_list_with_empty_struct_ = p;
  2055. }
  2056. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.struct_with_list_with_empty_struct)
  2057. return struct_with_list_with_empty_struct_;
  2058. }
  2059. inline void StructTestCases::set_allocated_struct_with_list_with_empty_struct(::google::protobuf::testing::StructWrapper* struct_with_list_with_empty_struct) {
  2060. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2061. if (message_arena == NULL) {
  2062. delete struct_with_list_with_empty_struct_;
  2063. }
  2064. if (struct_with_list_with_empty_struct) {
  2065. ::google::protobuf::Arena* submessage_arena = NULL;
  2066. if (message_arena != submessage_arena) {
  2067. struct_with_list_with_empty_struct = ::google::protobuf::internal::GetOwnedMessage(
  2068. message_arena, struct_with_list_with_empty_struct, submessage_arena);
  2069. }
  2070. } else {
  2071. }
  2072. struct_with_list_with_empty_struct_ = struct_with_list_with_empty_struct;
  2073. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.struct_with_list_with_empty_struct)
  2074. }
  2075. // .google.protobuf.Struct top_level_struct = 13;
  2076. inline bool StructTestCases::has_top_level_struct() const {
  2077. return this != internal_default_instance() && top_level_struct_ != NULL;
  2078. }
  2079. inline const ::google::protobuf::Struct& StructTestCases::_internal_top_level_struct() const {
  2080. return *top_level_struct_;
  2081. }
  2082. inline const ::google::protobuf::Struct& StructTestCases::top_level_struct() const {
  2083. const ::google::protobuf::Struct* p = top_level_struct_;
  2084. // @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.top_level_struct)
  2085. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Struct*>(
  2086. &::google::protobuf::_Struct_default_instance_);
  2087. }
  2088. inline ::google::protobuf::Struct* StructTestCases::release_top_level_struct() {
  2089. // @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.top_level_struct)
  2090. ::google::protobuf::Struct* temp = top_level_struct_;
  2091. top_level_struct_ = NULL;
  2092. return temp;
  2093. }
  2094. inline ::google::protobuf::Struct* StructTestCases::mutable_top_level_struct() {
  2095. if (top_level_struct_ == NULL) {
  2096. auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArenaNoVirtual());
  2097. top_level_struct_ = p;
  2098. }
  2099. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.top_level_struct)
  2100. return top_level_struct_;
  2101. }
  2102. inline void StructTestCases::set_allocated_top_level_struct(::google::protobuf::Struct* top_level_struct) {
  2103. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2104. if (message_arena == NULL) {
  2105. delete reinterpret_cast< ::google::protobuf::MessageLite*>(top_level_struct_);
  2106. }
  2107. if (top_level_struct) {
  2108. ::google::protobuf::Arena* submessage_arena =
  2109. reinterpret_cast<::google::protobuf::MessageLite*>(top_level_struct)->GetArena();
  2110. if (message_arena != submessage_arena) {
  2111. top_level_struct = ::google::protobuf::internal::GetOwnedMessage(
  2112. message_arena, top_level_struct, submessage_arena);
  2113. }
  2114. } else {
  2115. }
  2116. top_level_struct_ = top_level_struct;
  2117. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.top_level_struct)
  2118. }
  2119. // .google.protobuf.Struct top_level_struct_with_empty_list = 14;
  2120. inline bool StructTestCases::has_top_level_struct_with_empty_list() const {
  2121. return this != internal_default_instance() && top_level_struct_with_empty_list_ != NULL;
  2122. }
  2123. inline const ::google::protobuf::Struct& StructTestCases::_internal_top_level_struct_with_empty_list() const {
  2124. return *top_level_struct_with_empty_list_;
  2125. }
  2126. inline const ::google::protobuf::Struct& StructTestCases::top_level_struct_with_empty_list() const {
  2127. const ::google::protobuf::Struct* p = top_level_struct_with_empty_list_;
  2128. // @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.top_level_struct_with_empty_list)
  2129. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Struct*>(
  2130. &::google::protobuf::_Struct_default_instance_);
  2131. }
  2132. inline ::google::protobuf::Struct* StructTestCases::release_top_level_struct_with_empty_list() {
  2133. // @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.top_level_struct_with_empty_list)
  2134. ::google::protobuf::Struct* temp = top_level_struct_with_empty_list_;
  2135. top_level_struct_with_empty_list_ = NULL;
  2136. return temp;
  2137. }
  2138. inline ::google::protobuf::Struct* StructTestCases::mutable_top_level_struct_with_empty_list() {
  2139. if (top_level_struct_with_empty_list_ == NULL) {
  2140. auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArenaNoVirtual());
  2141. top_level_struct_with_empty_list_ = p;
  2142. }
  2143. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.top_level_struct_with_empty_list)
  2144. return top_level_struct_with_empty_list_;
  2145. }
  2146. inline void StructTestCases::set_allocated_top_level_struct_with_empty_list(::google::protobuf::Struct* top_level_struct_with_empty_list) {
  2147. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2148. if (message_arena == NULL) {
  2149. delete reinterpret_cast< ::google::protobuf::MessageLite*>(top_level_struct_with_empty_list_);
  2150. }
  2151. if (top_level_struct_with_empty_list) {
  2152. ::google::protobuf::Arena* submessage_arena =
  2153. reinterpret_cast<::google::protobuf::MessageLite*>(top_level_struct_with_empty_list)->GetArena();
  2154. if (message_arena != submessage_arena) {
  2155. top_level_struct_with_empty_list = ::google::protobuf::internal::GetOwnedMessage(
  2156. message_arena, top_level_struct_with_empty_list, submessage_arena);
  2157. }
  2158. } else {
  2159. }
  2160. top_level_struct_with_empty_list_ = top_level_struct_with_empty_list;
  2161. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.top_level_struct_with_empty_list)
  2162. }
  2163. // .google.protobuf.Struct top_level_struct_with_list_with_empty_struct = 15;
  2164. inline bool StructTestCases::has_top_level_struct_with_list_with_empty_struct() const {
  2165. return this != internal_default_instance() && top_level_struct_with_list_with_empty_struct_ != NULL;
  2166. }
  2167. inline const ::google::protobuf::Struct& StructTestCases::_internal_top_level_struct_with_list_with_empty_struct() const {
  2168. return *top_level_struct_with_list_with_empty_struct_;
  2169. }
  2170. inline const ::google::protobuf::Struct& StructTestCases::top_level_struct_with_list_with_empty_struct() const {
  2171. const ::google::protobuf::Struct* p = top_level_struct_with_list_with_empty_struct_;
  2172. // @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.top_level_struct_with_list_with_empty_struct)
  2173. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Struct*>(
  2174. &::google::protobuf::_Struct_default_instance_);
  2175. }
  2176. inline ::google::protobuf::Struct* StructTestCases::release_top_level_struct_with_list_with_empty_struct() {
  2177. // @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.top_level_struct_with_list_with_empty_struct)
  2178. ::google::protobuf::Struct* temp = top_level_struct_with_list_with_empty_struct_;
  2179. top_level_struct_with_list_with_empty_struct_ = NULL;
  2180. return temp;
  2181. }
  2182. inline ::google::protobuf::Struct* StructTestCases::mutable_top_level_struct_with_list_with_empty_struct() {
  2183. if (top_level_struct_with_list_with_empty_struct_ == NULL) {
  2184. auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArenaNoVirtual());
  2185. top_level_struct_with_list_with_empty_struct_ = p;
  2186. }
  2187. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.top_level_struct_with_list_with_empty_struct)
  2188. return top_level_struct_with_list_with_empty_struct_;
  2189. }
  2190. inline void StructTestCases::set_allocated_top_level_struct_with_list_with_empty_struct(::google::protobuf::Struct* top_level_struct_with_list_with_empty_struct) {
  2191. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2192. if (message_arena == NULL) {
  2193. delete reinterpret_cast< ::google::protobuf::MessageLite*>(top_level_struct_with_list_with_empty_struct_);
  2194. }
  2195. if (top_level_struct_with_list_with_empty_struct) {
  2196. ::google::protobuf::Arena* submessage_arena =
  2197. reinterpret_cast<::google::protobuf::MessageLite*>(top_level_struct_with_list_with_empty_struct)->GetArena();
  2198. if (message_arena != submessage_arena) {
  2199. top_level_struct_with_list_with_empty_struct = ::google::protobuf::internal::GetOwnedMessage(
  2200. message_arena, top_level_struct_with_list_with_empty_struct, submessage_arena);
  2201. }
  2202. } else {
  2203. }
  2204. top_level_struct_with_list_with_empty_struct_ = top_level_struct_with_list_with_empty_struct;
  2205. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.top_level_struct_with_list_with_empty_struct)
  2206. }
  2207. // .google.protobuf.testing.ValueWrapper value_wrapper_simple = 16;
  2208. inline bool StructTestCases::has_value_wrapper_simple() const {
  2209. return this != internal_default_instance() && value_wrapper_simple_ != NULL;
  2210. }
  2211. inline void StructTestCases::clear_value_wrapper_simple() {
  2212. if (GetArenaNoVirtual() == NULL && value_wrapper_simple_ != NULL) {
  2213. delete value_wrapper_simple_;
  2214. }
  2215. value_wrapper_simple_ = NULL;
  2216. }
  2217. inline const ::google::protobuf::testing::ValueWrapper& StructTestCases::_internal_value_wrapper_simple() const {
  2218. return *value_wrapper_simple_;
  2219. }
  2220. inline const ::google::protobuf::testing::ValueWrapper& StructTestCases::value_wrapper_simple() const {
  2221. const ::google::protobuf::testing::ValueWrapper* p = value_wrapper_simple_;
  2222. // @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.value_wrapper_simple)
  2223. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::ValueWrapper*>(
  2224. &::google::protobuf::testing::_ValueWrapper_default_instance_);
  2225. }
  2226. inline ::google::protobuf::testing::ValueWrapper* StructTestCases::release_value_wrapper_simple() {
  2227. // @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.value_wrapper_simple)
  2228. ::google::protobuf::testing::ValueWrapper* temp = value_wrapper_simple_;
  2229. value_wrapper_simple_ = NULL;
  2230. return temp;
  2231. }
  2232. inline ::google::protobuf::testing::ValueWrapper* StructTestCases::mutable_value_wrapper_simple() {
  2233. if (value_wrapper_simple_ == NULL) {
  2234. auto* p = CreateMaybeMessage<::google::protobuf::testing::ValueWrapper>(GetArenaNoVirtual());
  2235. value_wrapper_simple_ = p;
  2236. }
  2237. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.value_wrapper_simple)
  2238. return value_wrapper_simple_;
  2239. }
  2240. inline void StructTestCases::set_allocated_value_wrapper_simple(::google::protobuf::testing::ValueWrapper* value_wrapper_simple) {
  2241. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2242. if (message_arena == NULL) {
  2243. delete value_wrapper_simple_;
  2244. }
  2245. if (value_wrapper_simple) {
  2246. ::google::protobuf::Arena* submessage_arena = NULL;
  2247. if (message_arena != submessage_arena) {
  2248. value_wrapper_simple = ::google::protobuf::internal::GetOwnedMessage(
  2249. message_arena, value_wrapper_simple, submessage_arena);
  2250. }
  2251. } else {
  2252. }
  2253. value_wrapper_simple_ = value_wrapper_simple;
  2254. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.value_wrapper_simple)
  2255. }
  2256. // .google.protobuf.testing.ValueWrapper value_wrapper_with_struct = 17;
  2257. inline bool StructTestCases::has_value_wrapper_with_struct() const {
  2258. return this != internal_default_instance() && value_wrapper_with_struct_ != NULL;
  2259. }
  2260. inline void StructTestCases::clear_value_wrapper_with_struct() {
  2261. if (GetArenaNoVirtual() == NULL && value_wrapper_with_struct_ != NULL) {
  2262. delete value_wrapper_with_struct_;
  2263. }
  2264. value_wrapper_with_struct_ = NULL;
  2265. }
  2266. inline const ::google::protobuf::testing::ValueWrapper& StructTestCases::_internal_value_wrapper_with_struct() const {
  2267. return *value_wrapper_with_struct_;
  2268. }
  2269. inline const ::google::protobuf::testing::ValueWrapper& StructTestCases::value_wrapper_with_struct() const {
  2270. const ::google::protobuf::testing::ValueWrapper* p = value_wrapper_with_struct_;
  2271. // @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.value_wrapper_with_struct)
  2272. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::ValueWrapper*>(
  2273. &::google::protobuf::testing::_ValueWrapper_default_instance_);
  2274. }
  2275. inline ::google::protobuf::testing::ValueWrapper* StructTestCases::release_value_wrapper_with_struct() {
  2276. // @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.value_wrapper_with_struct)
  2277. ::google::protobuf::testing::ValueWrapper* temp = value_wrapper_with_struct_;
  2278. value_wrapper_with_struct_ = NULL;
  2279. return temp;
  2280. }
  2281. inline ::google::protobuf::testing::ValueWrapper* StructTestCases::mutable_value_wrapper_with_struct() {
  2282. if (value_wrapper_with_struct_ == NULL) {
  2283. auto* p = CreateMaybeMessage<::google::protobuf::testing::ValueWrapper>(GetArenaNoVirtual());
  2284. value_wrapper_with_struct_ = p;
  2285. }
  2286. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.value_wrapper_with_struct)
  2287. return value_wrapper_with_struct_;
  2288. }
  2289. inline void StructTestCases::set_allocated_value_wrapper_with_struct(::google::protobuf::testing::ValueWrapper* value_wrapper_with_struct) {
  2290. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2291. if (message_arena == NULL) {
  2292. delete value_wrapper_with_struct_;
  2293. }
  2294. if (value_wrapper_with_struct) {
  2295. ::google::protobuf::Arena* submessage_arena = NULL;
  2296. if (message_arena != submessage_arena) {
  2297. value_wrapper_with_struct = ::google::protobuf::internal::GetOwnedMessage(
  2298. message_arena, value_wrapper_with_struct, submessage_arena);
  2299. }
  2300. } else {
  2301. }
  2302. value_wrapper_with_struct_ = value_wrapper_with_struct;
  2303. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.value_wrapper_with_struct)
  2304. }
  2305. // .google.protobuf.testing.ValueWrapper value_wrapper_with_list = 18;
  2306. inline bool StructTestCases::has_value_wrapper_with_list() const {
  2307. return this != internal_default_instance() && value_wrapper_with_list_ != NULL;
  2308. }
  2309. inline void StructTestCases::clear_value_wrapper_with_list() {
  2310. if (GetArenaNoVirtual() == NULL && value_wrapper_with_list_ != NULL) {
  2311. delete value_wrapper_with_list_;
  2312. }
  2313. value_wrapper_with_list_ = NULL;
  2314. }
  2315. inline const ::google::protobuf::testing::ValueWrapper& StructTestCases::_internal_value_wrapper_with_list() const {
  2316. return *value_wrapper_with_list_;
  2317. }
  2318. inline const ::google::protobuf::testing::ValueWrapper& StructTestCases::value_wrapper_with_list() const {
  2319. const ::google::protobuf::testing::ValueWrapper* p = value_wrapper_with_list_;
  2320. // @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.value_wrapper_with_list)
  2321. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::ValueWrapper*>(
  2322. &::google::protobuf::testing::_ValueWrapper_default_instance_);
  2323. }
  2324. inline ::google::protobuf::testing::ValueWrapper* StructTestCases::release_value_wrapper_with_list() {
  2325. // @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.value_wrapper_with_list)
  2326. ::google::protobuf::testing::ValueWrapper* temp = value_wrapper_with_list_;
  2327. value_wrapper_with_list_ = NULL;
  2328. return temp;
  2329. }
  2330. inline ::google::protobuf::testing::ValueWrapper* StructTestCases::mutable_value_wrapper_with_list() {
  2331. if (value_wrapper_with_list_ == NULL) {
  2332. auto* p = CreateMaybeMessage<::google::protobuf::testing::ValueWrapper>(GetArenaNoVirtual());
  2333. value_wrapper_with_list_ = p;
  2334. }
  2335. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.value_wrapper_with_list)
  2336. return value_wrapper_with_list_;
  2337. }
  2338. inline void StructTestCases::set_allocated_value_wrapper_with_list(::google::protobuf::testing::ValueWrapper* value_wrapper_with_list) {
  2339. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2340. if (message_arena == NULL) {
  2341. delete value_wrapper_with_list_;
  2342. }
  2343. if (value_wrapper_with_list) {
  2344. ::google::protobuf::Arena* submessage_arena = NULL;
  2345. if (message_arena != submessage_arena) {
  2346. value_wrapper_with_list = ::google::protobuf::internal::GetOwnedMessage(
  2347. message_arena, value_wrapper_with_list, submessage_arena);
  2348. }
  2349. } else {
  2350. }
  2351. value_wrapper_with_list_ = value_wrapper_with_list;
  2352. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.value_wrapper_with_list)
  2353. }
  2354. // .google.protobuf.testing.ValueWrapper value_wrapper_with_empty_list = 19;
  2355. inline bool StructTestCases::has_value_wrapper_with_empty_list() const {
  2356. return this != internal_default_instance() && value_wrapper_with_empty_list_ != NULL;
  2357. }
  2358. inline void StructTestCases::clear_value_wrapper_with_empty_list() {
  2359. if (GetArenaNoVirtual() == NULL && value_wrapper_with_empty_list_ != NULL) {
  2360. delete value_wrapper_with_empty_list_;
  2361. }
  2362. value_wrapper_with_empty_list_ = NULL;
  2363. }
  2364. inline const ::google::protobuf::testing::ValueWrapper& StructTestCases::_internal_value_wrapper_with_empty_list() const {
  2365. return *value_wrapper_with_empty_list_;
  2366. }
  2367. inline const ::google::protobuf::testing::ValueWrapper& StructTestCases::value_wrapper_with_empty_list() const {
  2368. const ::google::protobuf::testing::ValueWrapper* p = value_wrapper_with_empty_list_;
  2369. // @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.value_wrapper_with_empty_list)
  2370. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::ValueWrapper*>(
  2371. &::google::protobuf::testing::_ValueWrapper_default_instance_);
  2372. }
  2373. inline ::google::protobuf::testing::ValueWrapper* StructTestCases::release_value_wrapper_with_empty_list() {
  2374. // @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.value_wrapper_with_empty_list)
  2375. ::google::protobuf::testing::ValueWrapper* temp = value_wrapper_with_empty_list_;
  2376. value_wrapper_with_empty_list_ = NULL;
  2377. return temp;
  2378. }
  2379. inline ::google::protobuf::testing::ValueWrapper* StructTestCases::mutable_value_wrapper_with_empty_list() {
  2380. if (value_wrapper_with_empty_list_ == NULL) {
  2381. auto* p = CreateMaybeMessage<::google::protobuf::testing::ValueWrapper>(GetArenaNoVirtual());
  2382. value_wrapper_with_empty_list_ = p;
  2383. }
  2384. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.value_wrapper_with_empty_list)
  2385. return value_wrapper_with_empty_list_;
  2386. }
  2387. inline void StructTestCases::set_allocated_value_wrapper_with_empty_list(::google::protobuf::testing::ValueWrapper* value_wrapper_with_empty_list) {
  2388. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2389. if (message_arena == NULL) {
  2390. delete value_wrapper_with_empty_list_;
  2391. }
  2392. if (value_wrapper_with_empty_list) {
  2393. ::google::protobuf::Arena* submessage_arena = NULL;
  2394. if (message_arena != submessage_arena) {
  2395. value_wrapper_with_empty_list = ::google::protobuf::internal::GetOwnedMessage(
  2396. message_arena, value_wrapper_with_empty_list, submessage_arena);
  2397. }
  2398. } else {
  2399. }
  2400. value_wrapper_with_empty_list_ = value_wrapper_with_empty_list;
  2401. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.value_wrapper_with_empty_list)
  2402. }
  2403. // .google.protobuf.testing.ValueWrapper value_wrapper_with_list_with_empty_struct = 20;
  2404. inline bool StructTestCases::has_value_wrapper_with_list_with_empty_struct() const {
  2405. return this != internal_default_instance() && value_wrapper_with_list_with_empty_struct_ != NULL;
  2406. }
  2407. inline void StructTestCases::clear_value_wrapper_with_list_with_empty_struct() {
  2408. if (GetArenaNoVirtual() == NULL && value_wrapper_with_list_with_empty_struct_ != NULL) {
  2409. delete value_wrapper_with_list_with_empty_struct_;
  2410. }
  2411. value_wrapper_with_list_with_empty_struct_ = NULL;
  2412. }
  2413. inline const ::google::protobuf::testing::ValueWrapper& StructTestCases::_internal_value_wrapper_with_list_with_empty_struct() const {
  2414. return *value_wrapper_with_list_with_empty_struct_;
  2415. }
  2416. inline const ::google::protobuf::testing::ValueWrapper& StructTestCases::value_wrapper_with_list_with_empty_struct() const {
  2417. const ::google::protobuf::testing::ValueWrapper* p = value_wrapper_with_list_with_empty_struct_;
  2418. // @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.value_wrapper_with_list_with_empty_struct)
  2419. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::ValueWrapper*>(
  2420. &::google::protobuf::testing::_ValueWrapper_default_instance_);
  2421. }
  2422. inline ::google::protobuf::testing::ValueWrapper* StructTestCases::release_value_wrapper_with_list_with_empty_struct() {
  2423. // @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.value_wrapper_with_list_with_empty_struct)
  2424. ::google::protobuf::testing::ValueWrapper* temp = value_wrapper_with_list_with_empty_struct_;
  2425. value_wrapper_with_list_with_empty_struct_ = NULL;
  2426. return temp;
  2427. }
  2428. inline ::google::protobuf::testing::ValueWrapper* StructTestCases::mutable_value_wrapper_with_list_with_empty_struct() {
  2429. if (value_wrapper_with_list_with_empty_struct_ == NULL) {
  2430. auto* p = CreateMaybeMessage<::google::protobuf::testing::ValueWrapper>(GetArenaNoVirtual());
  2431. value_wrapper_with_list_with_empty_struct_ = p;
  2432. }
  2433. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.value_wrapper_with_list_with_empty_struct)
  2434. return value_wrapper_with_list_with_empty_struct_;
  2435. }
  2436. inline void StructTestCases::set_allocated_value_wrapper_with_list_with_empty_struct(::google::protobuf::testing::ValueWrapper* value_wrapper_with_list_with_empty_struct) {
  2437. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2438. if (message_arena == NULL) {
  2439. delete value_wrapper_with_list_with_empty_struct_;
  2440. }
  2441. if (value_wrapper_with_list_with_empty_struct) {
  2442. ::google::protobuf::Arena* submessage_arena = NULL;
  2443. if (message_arena != submessage_arena) {
  2444. value_wrapper_with_list_with_empty_struct = ::google::protobuf::internal::GetOwnedMessage(
  2445. message_arena, value_wrapper_with_list_with_empty_struct, submessage_arena);
  2446. }
  2447. } else {
  2448. }
  2449. value_wrapper_with_list_with_empty_struct_ = value_wrapper_with_list_with_empty_struct;
  2450. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.value_wrapper_with_list_with_empty_struct)
  2451. }
  2452. // .google.protobuf.testing.ListValueWrapper list_value_wrapper = 21;
  2453. inline bool StructTestCases::has_list_value_wrapper() const {
  2454. return this != internal_default_instance() && list_value_wrapper_ != NULL;
  2455. }
  2456. inline void StructTestCases::clear_list_value_wrapper() {
  2457. if (GetArenaNoVirtual() == NULL && list_value_wrapper_ != NULL) {
  2458. delete list_value_wrapper_;
  2459. }
  2460. list_value_wrapper_ = NULL;
  2461. }
  2462. inline const ::google::protobuf::testing::ListValueWrapper& StructTestCases::_internal_list_value_wrapper() const {
  2463. return *list_value_wrapper_;
  2464. }
  2465. inline const ::google::protobuf::testing::ListValueWrapper& StructTestCases::list_value_wrapper() const {
  2466. const ::google::protobuf::testing::ListValueWrapper* p = list_value_wrapper_;
  2467. // @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.list_value_wrapper)
  2468. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::ListValueWrapper*>(
  2469. &::google::protobuf::testing::_ListValueWrapper_default_instance_);
  2470. }
  2471. inline ::google::protobuf::testing::ListValueWrapper* StructTestCases::release_list_value_wrapper() {
  2472. // @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.list_value_wrapper)
  2473. ::google::protobuf::testing::ListValueWrapper* temp = list_value_wrapper_;
  2474. list_value_wrapper_ = NULL;
  2475. return temp;
  2476. }
  2477. inline ::google::protobuf::testing::ListValueWrapper* StructTestCases::mutable_list_value_wrapper() {
  2478. if (list_value_wrapper_ == NULL) {
  2479. auto* p = CreateMaybeMessage<::google::protobuf::testing::ListValueWrapper>(GetArenaNoVirtual());
  2480. list_value_wrapper_ = p;
  2481. }
  2482. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.list_value_wrapper)
  2483. return list_value_wrapper_;
  2484. }
  2485. inline void StructTestCases::set_allocated_list_value_wrapper(::google::protobuf::testing::ListValueWrapper* list_value_wrapper) {
  2486. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2487. if (message_arena == NULL) {
  2488. delete list_value_wrapper_;
  2489. }
  2490. if (list_value_wrapper) {
  2491. ::google::protobuf::Arena* submessage_arena = NULL;
  2492. if (message_arena != submessage_arena) {
  2493. list_value_wrapper = ::google::protobuf::internal::GetOwnedMessage(
  2494. message_arena, list_value_wrapper, submessage_arena);
  2495. }
  2496. } else {
  2497. }
  2498. list_value_wrapper_ = list_value_wrapper;
  2499. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.list_value_wrapper)
  2500. }
  2501. // .google.protobuf.testing.ListValueWrapper list_value_wrapper_with_empty_list = 22;
  2502. inline bool StructTestCases::has_list_value_wrapper_with_empty_list() const {
  2503. return this != internal_default_instance() && list_value_wrapper_with_empty_list_ != NULL;
  2504. }
  2505. inline void StructTestCases::clear_list_value_wrapper_with_empty_list() {
  2506. if (GetArenaNoVirtual() == NULL && list_value_wrapper_with_empty_list_ != NULL) {
  2507. delete list_value_wrapper_with_empty_list_;
  2508. }
  2509. list_value_wrapper_with_empty_list_ = NULL;
  2510. }
  2511. inline const ::google::protobuf::testing::ListValueWrapper& StructTestCases::_internal_list_value_wrapper_with_empty_list() const {
  2512. return *list_value_wrapper_with_empty_list_;
  2513. }
  2514. inline const ::google::protobuf::testing::ListValueWrapper& StructTestCases::list_value_wrapper_with_empty_list() const {
  2515. const ::google::protobuf::testing::ListValueWrapper* p = list_value_wrapper_with_empty_list_;
  2516. // @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.list_value_wrapper_with_empty_list)
  2517. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::ListValueWrapper*>(
  2518. &::google::protobuf::testing::_ListValueWrapper_default_instance_);
  2519. }
  2520. inline ::google::protobuf::testing::ListValueWrapper* StructTestCases::release_list_value_wrapper_with_empty_list() {
  2521. // @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.list_value_wrapper_with_empty_list)
  2522. ::google::protobuf::testing::ListValueWrapper* temp = list_value_wrapper_with_empty_list_;
  2523. list_value_wrapper_with_empty_list_ = NULL;
  2524. return temp;
  2525. }
  2526. inline ::google::protobuf::testing::ListValueWrapper* StructTestCases::mutable_list_value_wrapper_with_empty_list() {
  2527. if (list_value_wrapper_with_empty_list_ == NULL) {
  2528. auto* p = CreateMaybeMessage<::google::protobuf::testing::ListValueWrapper>(GetArenaNoVirtual());
  2529. list_value_wrapper_with_empty_list_ = p;
  2530. }
  2531. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.list_value_wrapper_with_empty_list)
  2532. return list_value_wrapper_with_empty_list_;
  2533. }
  2534. inline void StructTestCases::set_allocated_list_value_wrapper_with_empty_list(::google::protobuf::testing::ListValueWrapper* list_value_wrapper_with_empty_list) {
  2535. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2536. if (message_arena == NULL) {
  2537. delete list_value_wrapper_with_empty_list_;
  2538. }
  2539. if (list_value_wrapper_with_empty_list) {
  2540. ::google::protobuf::Arena* submessage_arena = NULL;
  2541. if (message_arena != submessage_arena) {
  2542. list_value_wrapper_with_empty_list = ::google::protobuf::internal::GetOwnedMessage(
  2543. message_arena, list_value_wrapper_with_empty_list, submessage_arena);
  2544. }
  2545. } else {
  2546. }
  2547. list_value_wrapper_with_empty_list_ = list_value_wrapper_with_empty_list;
  2548. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.list_value_wrapper_with_empty_list)
  2549. }
  2550. // .google.protobuf.testing.ListValueWrapper list_value_wrapper_with_list_with_empty_struct = 23;
  2551. inline bool StructTestCases::has_list_value_wrapper_with_list_with_empty_struct() const {
  2552. return this != internal_default_instance() && list_value_wrapper_with_list_with_empty_struct_ != NULL;
  2553. }
  2554. inline void StructTestCases::clear_list_value_wrapper_with_list_with_empty_struct() {
  2555. if (GetArenaNoVirtual() == NULL && list_value_wrapper_with_list_with_empty_struct_ != NULL) {
  2556. delete list_value_wrapper_with_list_with_empty_struct_;
  2557. }
  2558. list_value_wrapper_with_list_with_empty_struct_ = NULL;
  2559. }
  2560. inline const ::google::protobuf::testing::ListValueWrapper& StructTestCases::_internal_list_value_wrapper_with_list_with_empty_struct() const {
  2561. return *list_value_wrapper_with_list_with_empty_struct_;
  2562. }
  2563. inline const ::google::protobuf::testing::ListValueWrapper& StructTestCases::list_value_wrapper_with_list_with_empty_struct() const {
  2564. const ::google::protobuf::testing::ListValueWrapper* p = list_value_wrapper_with_list_with_empty_struct_;
  2565. // @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.list_value_wrapper_with_list_with_empty_struct)
  2566. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::ListValueWrapper*>(
  2567. &::google::protobuf::testing::_ListValueWrapper_default_instance_);
  2568. }
  2569. inline ::google::protobuf::testing::ListValueWrapper* StructTestCases::release_list_value_wrapper_with_list_with_empty_struct() {
  2570. // @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.list_value_wrapper_with_list_with_empty_struct)
  2571. ::google::protobuf::testing::ListValueWrapper* temp = list_value_wrapper_with_list_with_empty_struct_;
  2572. list_value_wrapper_with_list_with_empty_struct_ = NULL;
  2573. return temp;
  2574. }
  2575. inline ::google::protobuf::testing::ListValueWrapper* StructTestCases::mutable_list_value_wrapper_with_list_with_empty_struct() {
  2576. if (list_value_wrapper_with_list_with_empty_struct_ == NULL) {
  2577. auto* p = CreateMaybeMessage<::google::protobuf::testing::ListValueWrapper>(GetArenaNoVirtual());
  2578. list_value_wrapper_with_list_with_empty_struct_ = p;
  2579. }
  2580. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.list_value_wrapper_with_list_with_empty_struct)
  2581. return list_value_wrapper_with_list_with_empty_struct_;
  2582. }
  2583. inline void StructTestCases::set_allocated_list_value_wrapper_with_list_with_empty_struct(::google::protobuf::testing::ListValueWrapper* list_value_wrapper_with_list_with_empty_struct) {
  2584. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2585. if (message_arena == NULL) {
  2586. delete list_value_wrapper_with_list_with_empty_struct_;
  2587. }
  2588. if (list_value_wrapper_with_list_with_empty_struct) {
  2589. ::google::protobuf::Arena* submessage_arena = NULL;
  2590. if (message_arena != submessage_arena) {
  2591. list_value_wrapper_with_list_with_empty_struct = ::google::protobuf::internal::GetOwnedMessage(
  2592. message_arena, list_value_wrapper_with_list_with_empty_struct, submessage_arena);
  2593. }
  2594. } else {
  2595. }
  2596. list_value_wrapper_with_list_with_empty_struct_ = list_value_wrapper_with_list_with_empty_struct;
  2597. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.list_value_wrapper_with_list_with_empty_struct)
  2598. }
  2599. // .google.protobuf.Value top_level_value_simple = 24;
  2600. inline bool StructTestCases::has_top_level_value_simple() const {
  2601. return this != internal_default_instance() && top_level_value_simple_ != NULL;
  2602. }
  2603. inline const ::google::protobuf::Value& StructTestCases::_internal_top_level_value_simple() const {
  2604. return *top_level_value_simple_;
  2605. }
  2606. inline const ::google::protobuf::Value& StructTestCases::top_level_value_simple() const {
  2607. const ::google::protobuf::Value* p = top_level_value_simple_;
  2608. // @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.top_level_value_simple)
  2609. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Value*>(
  2610. &::google::protobuf::_Value_default_instance_);
  2611. }
  2612. inline ::google::protobuf::Value* StructTestCases::release_top_level_value_simple() {
  2613. // @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.top_level_value_simple)
  2614. ::google::protobuf::Value* temp = top_level_value_simple_;
  2615. top_level_value_simple_ = NULL;
  2616. return temp;
  2617. }
  2618. inline ::google::protobuf::Value* StructTestCases::mutable_top_level_value_simple() {
  2619. if (top_level_value_simple_ == NULL) {
  2620. auto* p = CreateMaybeMessage<::google::protobuf::Value>(GetArenaNoVirtual());
  2621. top_level_value_simple_ = p;
  2622. }
  2623. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.top_level_value_simple)
  2624. return top_level_value_simple_;
  2625. }
  2626. inline void StructTestCases::set_allocated_top_level_value_simple(::google::protobuf::Value* top_level_value_simple) {
  2627. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2628. if (message_arena == NULL) {
  2629. delete reinterpret_cast< ::google::protobuf::MessageLite*>(top_level_value_simple_);
  2630. }
  2631. if (top_level_value_simple) {
  2632. ::google::protobuf::Arena* submessage_arena =
  2633. reinterpret_cast<::google::protobuf::MessageLite*>(top_level_value_simple)->GetArena();
  2634. if (message_arena != submessage_arena) {
  2635. top_level_value_simple = ::google::protobuf::internal::GetOwnedMessage(
  2636. message_arena, top_level_value_simple, submessage_arena);
  2637. }
  2638. } else {
  2639. }
  2640. top_level_value_simple_ = top_level_value_simple;
  2641. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.top_level_value_simple)
  2642. }
  2643. // .google.protobuf.Value top_level_value_with_struct = 25;
  2644. inline bool StructTestCases::has_top_level_value_with_struct() const {
  2645. return this != internal_default_instance() && top_level_value_with_struct_ != NULL;
  2646. }
  2647. inline const ::google::protobuf::Value& StructTestCases::_internal_top_level_value_with_struct() const {
  2648. return *top_level_value_with_struct_;
  2649. }
  2650. inline const ::google::protobuf::Value& StructTestCases::top_level_value_with_struct() const {
  2651. const ::google::protobuf::Value* p = top_level_value_with_struct_;
  2652. // @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.top_level_value_with_struct)
  2653. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Value*>(
  2654. &::google::protobuf::_Value_default_instance_);
  2655. }
  2656. inline ::google::protobuf::Value* StructTestCases::release_top_level_value_with_struct() {
  2657. // @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.top_level_value_with_struct)
  2658. ::google::protobuf::Value* temp = top_level_value_with_struct_;
  2659. top_level_value_with_struct_ = NULL;
  2660. return temp;
  2661. }
  2662. inline ::google::protobuf::Value* StructTestCases::mutable_top_level_value_with_struct() {
  2663. if (top_level_value_with_struct_ == NULL) {
  2664. auto* p = CreateMaybeMessage<::google::protobuf::Value>(GetArenaNoVirtual());
  2665. top_level_value_with_struct_ = p;
  2666. }
  2667. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.top_level_value_with_struct)
  2668. return top_level_value_with_struct_;
  2669. }
  2670. inline void StructTestCases::set_allocated_top_level_value_with_struct(::google::protobuf::Value* top_level_value_with_struct) {
  2671. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2672. if (message_arena == NULL) {
  2673. delete reinterpret_cast< ::google::protobuf::MessageLite*>(top_level_value_with_struct_);
  2674. }
  2675. if (top_level_value_with_struct) {
  2676. ::google::protobuf::Arena* submessage_arena =
  2677. reinterpret_cast<::google::protobuf::MessageLite*>(top_level_value_with_struct)->GetArena();
  2678. if (message_arena != submessage_arena) {
  2679. top_level_value_with_struct = ::google::protobuf::internal::GetOwnedMessage(
  2680. message_arena, top_level_value_with_struct, submessage_arena);
  2681. }
  2682. } else {
  2683. }
  2684. top_level_value_with_struct_ = top_level_value_with_struct;
  2685. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.top_level_value_with_struct)
  2686. }
  2687. // .google.protobuf.Value top_level_value_with_list = 26;
  2688. inline bool StructTestCases::has_top_level_value_with_list() const {
  2689. return this != internal_default_instance() && top_level_value_with_list_ != NULL;
  2690. }
  2691. inline const ::google::protobuf::Value& StructTestCases::_internal_top_level_value_with_list() const {
  2692. return *top_level_value_with_list_;
  2693. }
  2694. inline const ::google::protobuf::Value& StructTestCases::top_level_value_with_list() const {
  2695. const ::google::protobuf::Value* p = top_level_value_with_list_;
  2696. // @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.top_level_value_with_list)
  2697. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Value*>(
  2698. &::google::protobuf::_Value_default_instance_);
  2699. }
  2700. inline ::google::protobuf::Value* StructTestCases::release_top_level_value_with_list() {
  2701. // @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.top_level_value_with_list)
  2702. ::google::protobuf::Value* temp = top_level_value_with_list_;
  2703. top_level_value_with_list_ = NULL;
  2704. return temp;
  2705. }
  2706. inline ::google::protobuf::Value* StructTestCases::mutable_top_level_value_with_list() {
  2707. if (top_level_value_with_list_ == NULL) {
  2708. auto* p = CreateMaybeMessage<::google::protobuf::Value>(GetArenaNoVirtual());
  2709. top_level_value_with_list_ = p;
  2710. }
  2711. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.top_level_value_with_list)
  2712. return top_level_value_with_list_;
  2713. }
  2714. inline void StructTestCases::set_allocated_top_level_value_with_list(::google::protobuf::Value* top_level_value_with_list) {
  2715. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2716. if (message_arena == NULL) {
  2717. delete reinterpret_cast< ::google::protobuf::MessageLite*>(top_level_value_with_list_);
  2718. }
  2719. if (top_level_value_with_list) {
  2720. ::google::protobuf::Arena* submessage_arena =
  2721. reinterpret_cast<::google::protobuf::MessageLite*>(top_level_value_with_list)->GetArena();
  2722. if (message_arena != submessage_arena) {
  2723. top_level_value_with_list = ::google::protobuf::internal::GetOwnedMessage(
  2724. message_arena, top_level_value_with_list, submessage_arena);
  2725. }
  2726. } else {
  2727. }
  2728. top_level_value_with_list_ = top_level_value_with_list;
  2729. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.top_level_value_with_list)
  2730. }
  2731. // .google.protobuf.Value top_level_value_with_empty_list = 27;
  2732. inline bool StructTestCases::has_top_level_value_with_empty_list() const {
  2733. return this != internal_default_instance() && top_level_value_with_empty_list_ != NULL;
  2734. }
  2735. inline const ::google::protobuf::Value& StructTestCases::_internal_top_level_value_with_empty_list() const {
  2736. return *top_level_value_with_empty_list_;
  2737. }
  2738. inline const ::google::protobuf::Value& StructTestCases::top_level_value_with_empty_list() const {
  2739. const ::google::protobuf::Value* p = top_level_value_with_empty_list_;
  2740. // @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.top_level_value_with_empty_list)
  2741. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Value*>(
  2742. &::google::protobuf::_Value_default_instance_);
  2743. }
  2744. inline ::google::protobuf::Value* StructTestCases::release_top_level_value_with_empty_list() {
  2745. // @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.top_level_value_with_empty_list)
  2746. ::google::protobuf::Value* temp = top_level_value_with_empty_list_;
  2747. top_level_value_with_empty_list_ = NULL;
  2748. return temp;
  2749. }
  2750. inline ::google::protobuf::Value* StructTestCases::mutable_top_level_value_with_empty_list() {
  2751. if (top_level_value_with_empty_list_ == NULL) {
  2752. auto* p = CreateMaybeMessage<::google::protobuf::Value>(GetArenaNoVirtual());
  2753. top_level_value_with_empty_list_ = p;
  2754. }
  2755. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.top_level_value_with_empty_list)
  2756. return top_level_value_with_empty_list_;
  2757. }
  2758. inline void StructTestCases::set_allocated_top_level_value_with_empty_list(::google::protobuf::Value* top_level_value_with_empty_list) {
  2759. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2760. if (message_arena == NULL) {
  2761. delete reinterpret_cast< ::google::protobuf::MessageLite*>(top_level_value_with_empty_list_);
  2762. }
  2763. if (top_level_value_with_empty_list) {
  2764. ::google::protobuf::Arena* submessage_arena =
  2765. reinterpret_cast<::google::protobuf::MessageLite*>(top_level_value_with_empty_list)->GetArena();
  2766. if (message_arena != submessage_arena) {
  2767. top_level_value_with_empty_list = ::google::protobuf::internal::GetOwnedMessage(
  2768. message_arena, top_level_value_with_empty_list, submessage_arena);
  2769. }
  2770. } else {
  2771. }
  2772. top_level_value_with_empty_list_ = top_level_value_with_empty_list;
  2773. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.top_level_value_with_empty_list)
  2774. }
  2775. // .google.protobuf.Value top_level_value_with_list_with_empty_struct = 28;
  2776. inline bool StructTestCases::has_top_level_value_with_list_with_empty_struct() const {
  2777. return this != internal_default_instance() && top_level_value_with_list_with_empty_struct_ != NULL;
  2778. }
  2779. inline const ::google::protobuf::Value& StructTestCases::_internal_top_level_value_with_list_with_empty_struct() const {
  2780. return *top_level_value_with_list_with_empty_struct_;
  2781. }
  2782. inline const ::google::protobuf::Value& StructTestCases::top_level_value_with_list_with_empty_struct() const {
  2783. const ::google::protobuf::Value* p = top_level_value_with_list_with_empty_struct_;
  2784. // @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.top_level_value_with_list_with_empty_struct)
  2785. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Value*>(
  2786. &::google::protobuf::_Value_default_instance_);
  2787. }
  2788. inline ::google::protobuf::Value* StructTestCases::release_top_level_value_with_list_with_empty_struct() {
  2789. // @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.top_level_value_with_list_with_empty_struct)
  2790. ::google::protobuf::Value* temp = top_level_value_with_list_with_empty_struct_;
  2791. top_level_value_with_list_with_empty_struct_ = NULL;
  2792. return temp;
  2793. }
  2794. inline ::google::protobuf::Value* StructTestCases::mutable_top_level_value_with_list_with_empty_struct() {
  2795. if (top_level_value_with_list_with_empty_struct_ == NULL) {
  2796. auto* p = CreateMaybeMessage<::google::protobuf::Value>(GetArenaNoVirtual());
  2797. top_level_value_with_list_with_empty_struct_ = p;
  2798. }
  2799. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.top_level_value_with_list_with_empty_struct)
  2800. return top_level_value_with_list_with_empty_struct_;
  2801. }
  2802. inline void StructTestCases::set_allocated_top_level_value_with_list_with_empty_struct(::google::protobuf::Value* top_level_value_with_list_with_empty_struct) {
  2803. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2804. if (message_arena == NULL) {
  2805. delete reinterpret_cast< ::google::protobuf::MessageLite*>(top_level_value_with_list_with_empty_struct_);
  2806. }
  2807. if (top_level_value_with_list_with_empty_struct) {
  2808. ::google::protobuf::Arena* submessage_arena =
  2809. reinterpret_cast<::google::protobuf::MessageLite*>(top_level_value_with_list_with_empty_struct)->GetArena();
  2810. if (message_arena != submessage_arena) {
  2811. top_level_value_with_list_with_empty_struct = ::google::protobuf::internal::GetOwnedMessage(
  2812. message_arena, top_level_value_with_list_with_empty_struct, submessage_arena);
  2813. }
  2814. } else {
  2815. }
  2816. top_level_value_with_list_with_empty_struct_ = top_level_value_with_list_with_empty_struct;
  2817. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.top_level_value_with_list_with_empty_struct)
  2818. }
  2819. // .google.protobuf.ListValue top_level_listvalue = 29;
  2820. inline bool StructTestCases::has_top_level_listvalue() const {
  2821. return this != internal_default_instance() && top_level_listvalue_ != NULL;
  2822. }
  2823. inline const ::google::protobuf::ListValue& StructTestCases::_internal_top_level_listvalue() const {
  2824. return *top_level_listvalue_;
  2825. }
  2826. inline const ::google::protobuf::ListValue& StructTestCases::top_level_listvalue() const {
  2827. const ::google::protobuf::ListValue* p = top_level_listvalue_;
  2828. // @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.top_level_listvalue)
  2829. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::ListValue*>(
  2830. &::google::protobuf::_ListValue_default_instance_);
  2831. }
  2832. inline ::google::protobuf::ListValue* StructTestCases::release_top_level_listvalue() {
  2833. // @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.top_level_listvalue)
  2834. ::google::protobuf::ListValue* temp = top_level_listvalue_;
  2835. top_level_listvalue_ = NULL;
  2836. return temp;
  2837. }
  2838. inline ::google::protobuf::ListValue* StructTestCases::mutable_top_level_listvalue() {
  2839. if (top_level_listvalue_ == NULL) {
  2840. auto* p = CreateMaybeMessage<::google::protobuf::ListValue>(GetArenaNoVirtual());
  2841. top_level_listvalue_ = p;
  2842. }
  2843. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.top_level_listvalue)
  2844. return top_level_listvalue_;
  2845. }
  2846. inline void StructTestCases::set_allocated_top_level_listvalue(::google::protobuf::ListValue* top_level_listvalue) {
  2847. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2848. if (message_arena == NULL) {
  2849. delete reinterpret_cast< ::google::protobuf::MessageLite*>(top_level_listvalue_);
  2850. }
  2851. if (top_level_listvalue) {
  2852. ::google::protobuf::Arena* submessage_arena =
  2853. reinterpret_cast<::google::protobuf::MessageLite*>(top_level_listvalue)->GetArena();
  2854. if (message_arena != submessage_arena) {
  2855. top_level_listvalue = ::google::protobuf::internal::GetOwnedMessage(
  2856. message_arena, top_level_listvalue, submessage_arena);
  2857. }
  2858. } else {
  2859. }
  2860. top_level_listvalue_ = top_level_listvalue;
  2861. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.top_level_listvalue)
  2862. }
  2863. // .google.protobuf.ListValue top_level_empty_listvalue = 30;
  2864. inline bool StructTestCases::has_top_level_empty_listvalue() const {
  2865. return this != internal_default_instance() && top_level_empty_listvalue_ != NULL;
  2866. }
  2867. inline const ::google::protobuf::ListValue& StructTestCases::_internal_top_level_empty_listvalue() const {
  2868. return *top_level_empty_listvalue_;
  2869. }
  2870. inline const ::google::protobuf::ListValue& StructTestCases::top_level_empty_listvalue() const {
  2871. const ::google::protobuf::ListValue* p = top_level_empty_listvalue_;
  2872. // @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.top_level_empty_listvalue)
  2873. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::ListValue*>(
  2874. &::google::protobuf::_ListValue_default_instance_);
  2875. }
  2876. inline ::google::protobuf::ListValue* StructTestCases::release_top_level_empty_listvalue() {
  2877. // @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.top_level_empty_listvalue)
  2878. ::google::protobuf::ListValue* temp = top_level_empty_listvalue_;
  2879. top_level_empty_listvalue_ = NULL;
  2880. return temp;
  2881. }
  2882. inline ::google::protobuf::ListValue* StructTestCases::mutable_top_level_empty_listvalue() {
  2883. if (top_level_empty_listvalue_ == NULL) {
  2884. auto* p = CreateMaybeMessage<::google::protobuf::ListValue>(GetArenaNoVirtual());
  2885. top_level_empty_listvalue_ = p;
  2886. }
  2887. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.top_level_empty_listvalue)
  2888. return top_level_empty_listvalue_;
  2889. }
  2890. inline void StructTestCases::set_allocated_top_level_empty_listvalue(::google::protobuf::ListValue* top_level_empty_listvalue) {
  2891. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2892. if (message_arena == NULL) {
  2893. delete reinterpret_cast< ::google::protobuf::MessageLite*>(top_level_empty_listvalue_);
  2894. }
  2895. if (top_level_empty_listvalue) {
  2896. ::google::protobuf::Arena* submessage_arena =
  2897. reinterpret_cast<::google::protobuf::MessageLite*>(top_level_empty_listvalue)->GetArena();
  2898. if (message_arena != submessage_arena) {
  2899. top_level_empty_listvalue = ::google::protobuf::internal::GetOwnedMessage(
  2900. message_arena, top_level_empty_listvalue, submessage_arena);
  2901. }
  2902. } else {
  2903. }
  2904. top_level_empty_listvalue_ = top_level_empty_listvalue;
  2905. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.top_level_empty_listvalue)
  2906. }
  2907. // .google.protobuf.ListValue top_level_listvalue_with_empty_struct = 31;
  2908. inline bool StructTestCases::has_top_level_listvalue_with_empty_struct() const {
  2909. return this != internal_default_instance() && top_level_listvalue_with_empty_struct_ != NULL;
  2910. }
  2911. inline const ::google::protobuf::ListValue& StructTestCases::_internal_top_level_listvalue_with_empty_struct() const {
  2912. return *top_level_listvalue_with_empty_struct_;
  2913. }
  2914. inline const ::google::protobuf::ListValue& StructTestCases::top_level_listvalue_with_empty_struct() const {
  2915. const ::google::protobuf::ListValue* p = top_level_listvalue_with_empty_struct_;
  2916. // @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.top_level_listvalue_with_empty_struct)
  2917. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::ListValue*>(
  2918. &::google::protobuf::_ListValue_default_instance_);
  2919. }
  2920. inline ::google::protobuf::ListValue* StructTestCases::release_top_level_listvalue_with_empty_struct() {
  2921. // @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.top_level_listvalue_with_empty_struct)
  2922. ::google::protobuf::ListValue* temp = top_level_listvalue_with_empty_struct_;
  2923. top_level_listvalue_with_empty_struct_ = NULL;
  2924. return temp;
  2925. }
  2926. inline ::google::protobuf::ListValue* StructTestCases::mutable_top_level_listvalue_with_empty_struct() {
  2927. if (top_level_listvalue_with_empty_struct_ == NULL) {
  2928. auto* p = CreateMaybeMessage<::google::protobuf::ListValue>(GetArenaNoVirtual());
  2929. top_level_listvalue_with_empty_struct_ = p;
  2930. }
  2931. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.top_level_listvalue_with_empty_struct)
  2932. return top_level_listvalue_with_empty_struct_;
  2933. }
  2934. inline void StructTestCases::set_allocated_top_level_listvalue_with_empty_struct(::google::protobuf::ListValue* top_level_listvalue_with_empty_struct) {
  2935. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2936. if (message_arena == NULL) {
  2937. delete reinterpret_cast< ::google::protobuf::MessageLite*>(top_level_listvalue_with_empty_struct_);
  2938. }
  2939. if (top_level_listvalue_with_empty_struct) {
  2940. ::google::protobuf::Arena* submessage_arena =
  2941. reinterpret_cast<::google::protobuf::MessageLite*>(top_level_listvalue_with_empty_struct)->GetArena();
  2942. if (message_arena != submessage_arena) {
  2943. top_level_listvalue_with_empty_struct = ::google::protobuf::internal::GetOwnedMessage(
  2944. message_arena, top_level_listvalue_with_empty_struct, submessage_arena);
  2945. }
  2946. } else {
  2947. }
  2948. top_level_listvalue_with_empty_struct_ = top_level_listvalue_with_empty_struct;
  2949. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.top_level_listvalue_with_empty_struct)
  2950. }
  2951. // .google.protobuf.testing.RepeatedValueWrapper repeated_value = 32;
  2952. inline bool StructTestCases::has_repeated_value() const {
  2953. return this != internal_default_instance() && repeated_value_ != NULL;
  2954. }
  2955. inline void StructTestCases::clear_repeated_value() {
  2956. if (GetArenaNoVirtual() == NULL && repeated_value_ != NULL) {
  2957. delete repeated_value_;
  2958. }
  2959. repeated_value_ = NULL;
  2960. }
  2961. inline const ::google::protobuf::testing::RepeatedValueWrapper& StructTestCases::_internal_repeated_value() const {
  2962. return *repeated_value_;
  2963. }
  2964. inline const ::google::protobuf::testing::RepeatedValueWrapper& StructTestCases::repeated_value() const {
  2965. const ::google::protobuf::testing::RepeatedValueWrapper* p = repeated_value_;
  2966. // @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.repeated_value)
  2967. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::RepeatedValueWrapper*>(
  2968. &::google::protobuf::testing::_RepeatedValueWrapper_default_instance_);
  2969. }
  2970. inline ::google::protobuf::testing::RepeatedValueWrapper* StructTestCases::release_repeated_value() {
  2971. // @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.repeated_value)
  2972. ::google::protobuf::testing::RepeatedValueWrapper* temp = repeated_value_;
  2973. repeated_value_ = NULL;
  2974. return temp;
  2975. }
  2976. inline ::google::protobuf::testing::RepeatedValueWrapper* StructTestCases::mutable_repeated_value() {
  2977. if (repeated_value_ == NULL) {
  2978. auto* p = CreateMaybeMessage<::google::protobuf::testing::RepeatedValueWrapper>(GetArenaNoVirtual());
  2979. repeated_value_ = p;
  2980. }
  2981. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.repeated_value)
  2982. return repeated_value_;
  2983. }
  2984. inline void StructTestCases::set_allocated_repeated_value(::google::protobuf::testing::RepeatedValueWrapper* repeated_value) {
  2985. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2986. if (message_arena == NULL) {
  2987. delete repeated_value_;
  2988. }
  2989. if (repeated_value) {
  2990. ::google::protobuf::Arena* submessage_arena = NULL;
  2991. if (message_arena != submessage_arena) {
  2992. repeated_value = ::google::protobuf::internal::GetOwnedMessage(
  2993. message_arena, repeated_value, submessage_arena);
  2994. }
  2995. } else {
  2996. }
  2997. repeated_value_ = repeated_value;
  2998. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.repeated_value)
  2999. }
  3000. // .google.protobuf.testing.RepeatedValueWrapper repeated_value_nested_list = 33;
  3001. inline bool StructTestCases::has_repeated_value_nested_list() const {
  3002. return this != internal_default_instance() && repeated_value_nested_list_ != NULL;
  3003. }
  3004. inline void StructTestCases::clear_repeated_value_nested_list() {
  3005. if (GetArenaNoVirtual() == NULL && repeated_value_nested_list_ != NULL) {
  3006. delete repeated_value_nested_list_;
  3007. }
  3008. repeated_value_nested_list_ = NULL;
  3009. }
  3010. inline const ::google::protobuf::testing::RepeatedValueWrapper& StructTestCases::_internal_repeated_value_nested_list() const {
  3011. return *repeated_value_nested_list_;
  3012. }
  3013. inline const ::google::protobuf::testing::RepeatedValueWrapper& StructTestCases::repeated_value_nested_list() const {
  3014. const ::google::protobuf::testing::RepeatedValueWrapper* p = repeated_value_nested_list_;
  3015. // @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.repeated_value_nested_list)
  3016. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::RepeatedValueWrapper*>(
  3017. &::google::protobuf::testing::_RepeatedValueWrapper_default_instance_);
  3018. }
  3019. inline ::google::protobuf::testing::RepeatedValueWrapper* StructTestCases::release_repeated_value_nested_list() {
  3020. // @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.repeated_value_nested_list)
  3021. ::google::protobuf::testing::RepeatedValueWrapper* temp = repeated_value_nested_list_;
  3022. repeated_value_nested_list_ = NULL;
  3023. return temp;
  3024. }
  3025. inline ::google::protobuf::testing::RepeatedValueWrapper* StructTestCases::mutable_repeated_value_nested_list() {
  3026. if (repeated_value_nested_list_ == NULL) {
  3027. auto* p = CreateMaybeMessage<::google::protobuf::testing::RepeatedValueWrapper>(GetArenaNoVirtual());
  3028. repeated_value_nested_list_ = p;
  3029. }
  3030. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.repeated_value_nested_list)
  3031. return repeated_value_nested_list_;
  3032. }
  3033. inline void StructTestCases::set_allocated_repeated_value_nested_list(::google::protobuf::testing::RepeatedValueWrapper* repeated_value_nested_list) {
  3034. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  3035. if (message_arena == NULL) {
  3036. delete repeated_value_nested_list_;
  3037. }
  3038. if (repeated_value_nested_list) {
  3039. ::google::protobuf::Arena* submessage_arena = NULL;
  3040. if (message_arena != submessage_arena) {
  3041. repeated_value_nested_list = ::google::protobuf::internal::GetOwnedMessage(
  3042. message_arena, repeated_value_nested_list, submessage_arena);
  3043. }
  3044. } else {
  3045. }
  3046. repeated_value_nested_list_ = repeated_value_nested_list;
  3047. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.repeated_value_nested_list)
  3048. }
  3049. // .google.protobuf.testing.RepeatedValueWrapper repeated_value_nested_list2 = 34;
  3050. inline bool StructTestCases::has_repeated_value_nested_list2() const {
  3051. return this != internal_default_instance() && repeated_value_nested_list2_ != NULL;
  3052. }
  3053. inline void StructTestCases::clear_repeated_value_nested_list2() {
  3054. if (GetArenaNoVirtual() == NULL && repeated_value_nested_list2_ != NULL) {
  3055. delete repeated_value_nested_list2_;
  3056. }
  3057. repeated_value_nested_list2_ = NULL;
  3058. }
  3059. inline const ::google::protobuf::testing::RepeatedValueWrapper& StructTestCases::_internal_repeated_value_nested_list2() const {
  3060. return *repeated_value_nested_list2_;
  3061. }
  3062. inline const ::google::protobuf::testing::RepeatedValueWrapper& StructTestCases::repeated_value_nested_list2() const {
  3063. const ::google::protobuf::testing::RepeatedValueWrapper* p = repeated_value_nested_list2_;
  3064. // @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.repeated_value_nested_list2)
  3065. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::RepeatedValueWrapper*>(
  3066. &::google::protobuf::testing::_RepeatedValueWrapper_default_instance_);
  3067. }
  3068. inline ::google::protobuf::testing::RepeatedValueWrapper* StructTestCases::release_repeated_value_nested_list2() {
  3069. // @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.repeated_value_nested_list2)
  3070. ::google::protobuf::testing::RepeatedValueWrapper* temp = repeated_value_nested_list2_;
  3071. repeated_value_nested_list2_ = NULL;
  3072. return temp;
  3073. }
  3074. inline ::google::protobuf::testing::RepeatedValueWrapper* StructTestCases::mutable_repeated_value_nested_list2() {
  3075. if (repeated_value_nested_list2_ == NULL) {
  3076. auto* p = CreateMaybeMessage<::google::protobuf::testing::RepeatedValueWrapper>(GetArenaNoVirtual());
  3077. repeated_value_nested_list2_ = p;
  3078. }
  3079. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.repeated_value_nested_list2)
  3080. return repeated_value_nested_list2_;
  3081. }
  3082. inline void StructTestCases::set_allocated_repeated_value_nested_list2(::google::protobuf::testing::RepeatedValueWrapper* repeated_value_nested_list2) {
  3083. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  3084. if (message_arena == NULL) {
  3085. delete repeated_value_nested_list2_;
  3086. }
  3087. if (repeated_value_nested_list2) {
  3088. ::google::protobuf::Arena* submessage_arena = NULL;
  3089. if (message_arena != submessage_arena) {
  3090. repeated_value_nested_list2 = ::google::protobuf::internal::GetOwnedMessage(
  3091. message_arena, repeated_value_nested_list2, submessage_arena);
  3092. }
  3093. } else {
  3094. }
  3095. repeated_value_nested_list2_ = repeated_value_nested_list2;
  3096. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.repeated_value_nested_list2)
  3097. }
  3098. // .google.protobuf.testing.RepeatedValueWrapper repeated_value_nested_list3 = 35;
  3099. inline bool StructTestCases::has_repeated_value_nested_list3() const {
  3100. return this != internal_default_instance() && repeated_value_nested_list3_ != NULL;
  3101. }
  3102. inline void StructTestCases::clear_repeated_value_nested_list3() {
  3103. if (GetArenaNoVirtual() == NULL && repeated_value_nested_list3_ != NULL) {
  3104. delete repeated_value_nested_list3_;
  3105. }
  3106. repeated_value_nested_list3_ = NULL;
  3107. }
  3108. inline const ::google::protobuf::testing::RepeatedValueWrapper& StructTestCases::_internal_repeated_value_nested_list3() const {
  3109. return *repeated_value_nested_list3_;
  3110. }
  3111. inline const ::google::protobuf::testing::RepeatedValueWrapper& StructTestCases::repeated_value_nested_list3() const {
  3112. const ::google::protobuf::testing::RepeatedValueWrapper* p = repeated_value_nested_list3_;
  3113. // @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.repeated_value_nested_list3)
  3114. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::RepeatedValueWrapper*>(
  3115. &::google::protobuf::testing::_RepeatedValueWrapper_default_instance_);
  3116. }
  3117. inline ::google::protobuf::testing::RepeatedValueWrapper* StructTestCases::release_repeated_value_nested_list3() {
  3118. // @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.repeated_value_nested_list3)
  3119. ::google::protobuf::testing::RepeatedValueWrapper* temp = repeated_value_nested_list3_;
  3120. repeated_value_nested_list3_ = NULL;
  3121. return temp;
  3122. }
  3123. inline ::google::protobuf::testing::RepeatedValueWrapper* StructTestCases::mutable_repeated_value_nested_list3() {
  3124. if (repeated_value_nested_list3_ == NULL) {
  3125. auto* p = CreateMaybeMessage<::google::protobuf::testing::RepeatedValueWrapper>(GetArenaNoVirtual());
  3126. repeated_value_nested_list3_ = p;
  3127. }
  3128. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.repeated_value_nested_list3)
  3129. return repeated_value_nested_list3_;
  3130. }
  3131. inline void StructTestCases::set_allocated_repeated_value_nested_list3(::google::protobuf::testing::RepeatedValueWrapper* repeated_value_nested_list3) {
  3132. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  3133. if (message_arena == NULL) {
  3134. delete repeated_value_nested_list3_;
  3135. }
  3136. if (repeated_value_nested_list3) {
  3137. ::google::protobuf::Arena* submessage_arena = NULL;
  3138. if (message_arena != submessage_arena) {
  3139. repeated_value_nested_list3 = ::google::protobuf::internal::GetOwnedMessage(
  3140. message_arena, repeated_value_nested_list3, submessage_arena);
  3141. }
  3142. } else {
  3143. }
  3144. repeated_value_nested_list3_ = repeated_value_nested_list3;
  3145. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.repeated_value_nested_list3)
  3146. }
  3147. // .google.protobuf.testing.RepeatedListValueWrapper repeated_listvalue = 36;
  3148. inline bool StructTestCases::has_repeated_listvalue() const {
  3149. return this != internal_default_instance() && repeated_listvalue_ != NULL;
  3150. }
  3151. inline void StructTestCases::clear_repeated_listvalue() {
  3152. if (GetArenaNoVirtual() == NULL && repeated_listvalue_ != NULL) {
  3153. delete repeated_listvalue_;
  3154. }
  3155. repeated_listvalue_ = NULL;
  3156. }
  3157. inline const ::google::protobuf::testing::RepeatedListValueWrapper& StructTestCases::_internal_repeated_listvalue() const {
  3158. return *repeated_listvalue_;
  3159. }
  3160. inline const ::google::protobuf::testing::RepeatedListValueWrapper& StructTestCases::repeated_listvalue() const {
  3161. const ::google::protobuf::testing::RepeatedListValueWrapper* p = repeated_listvalue_;
  3162. // @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.repeated_listvalue)
  3163. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::RepeatedListValueWrapper*>(
  3164. &::google::protobuf::testing::_RepeatedListValueWrapper_default_instance_);
  3165. }
  3166. inline ::google::protobuf::testing::RepeatedListValueWrapper* StructTestCases::release_repeated_listvalue() {
  3167. // @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.repeated_listvalue)
  3168. ::google::protobuf::testing::RepeatedListValueWrapper* temp = repeated_listvalue_;
  3169. repeated_listvalue_ = NULL;
  3170. return temp;
  3171. }
  3172. inline ::google::protobuf::testing::RepeatedListValueWrapper* StructTestCases::mutable_repeated_listvalue() {
  3173. if (repeated_listvalue_ == NULL) {
  3174. auto* p = CreateMaybeMessage<::google::protobuf::testing::RepeatedListValueWrapper>(GetArenaNoVirtual());
  3175. repeated_listvalue_ = p;
  3176. }
  3177. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.repeated_listvalue)
  3178. return repeated_listvalue_;
  3179. }
  3180. inline void StructTestCases::set_allocated_repeated_listvalue(::google::protobuf::testing::RepeatedListValueWrapper* repeated_listvalue) {
  3181. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  3182. if (message_arena == NULL) {
  3183. delete repeated_listvalue_;
  3184. }
  3185. if (repeated_listvalue) {
  3186. ::google::protobuf::Arena* submessage_arena = NULL;
  3187. if (message_arena != submessage_arena) {
  3188. repeated_listvalue = ::google::protobuf::internal::GetOwnedMessage(
  3189. message_arena, repeated_listvalue, submessage_arena);
  3190. }
  3191. } else {
  3192. }
  3193. repeated_listvalue_ = repeated_listvalue;
  3194. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.repeated_listvalue)
  3195. }
  3196. // .google.protobuf.testing.MapOfStruct map_of_struct = 37;
  3197. inline bool StructTestCases::has_map_of_struct() const {
  3198. return this != internal_default_instance() && map_of_struct_ != NULL;
  3199. }
  3200. inline void StructTestCases::clear_map_of_struct() {
  3201. if (GetArenaNoVirtual() == NULL && map_of_struct_ != NULL) {
  3202. delete map_of_struct_;
  3203. }
  3204. map_of_struct_ = NULL;
  3205. }
  3206. inline const ::google::protobuf::testing::MapOfStruct& StructTestCases::_internal_map_of_struct() const {
  3207. return *map_of_struct_;
  3208. }
  3209. inline const ::google::protobuf::testing::MapOfStruct& StructTestCases::map_of_struct() const {
  3210. const ::google::protobuf::testing::MapOfStruct* p = map_of_struct_;
  3211. // @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.map_of_struct)
  3212. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::MapOfStruct*>(
  3213. &::google::protobuf::testing::_MapOfStruct_default_instance_);
  3214. }
  3215. inline ::google::protobuf::testing::MapOfStruct* StructTestCases::release_map_of_struct() {
  3216. // @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.map_of_struct)
  3217. ::google::protobuf::testing::MapOfStruct* temp = map_of_struct_;
  3218. map_of_struct_ = NULL;
  3219. return temp;
  3220. }
  3221. inline ::google::protobuf::testing::MapOfStruct* StructTestCases::mutable_map_of_struct() {
  3222. if (map_of_struct_ == NULL) {
  3223. auto* p = CreateMaybeMessage<::google::protobuf::testing::MapOfStruct>(GetArenaNoVirtual());
  3224. map_of_struct_ = p;
  3225. }
  3226. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.map_of_struct)
  3227. return map_of_struct_;
  3228. }
  3229. inline void StructTestCases::set_allocated_map_of_struct(::google::protobuf::testing::MapOfStruct* map_of_struct) {
  3230. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  3231. if (message_arena == NULL) {
  3232. delete map_of_struct_;
  3233. }
  3234. if (map_of_struct) {
  3235. ::google::protobuf::Arena* submessage_arena = NULL;
  3236. if (message_arena != submessage_arena) {
  3237. map_of_struct = ::google::protobuf::internal::GetOwnedMessage(
  3238. message_arena, map_of_struct, submessage_arena);
  3239. }
  3240. } else {
  3241. }
  3242. map_of_struct_ = map_of_struct;
  3243. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.map_of_struct)
  3244. }
  3245. // .google.protobuf.testing.MapOfStruct map_of_struct_value = 38;
  3246. inline bool StructTestCases::has_map_of_struct_value() const {
  3247. return this != internal_default_instance() && map_of_struct_value_ != NULL;
  3248. }
  3249. inline void StructTestCases::clear_map_of_struct_value() {
  3250. if (GetArenaNoVirtual() == NULL && map_of_struct_value_ != NULL) {
  3251. delete map_of_struct_value_;
  3252. }
  3253. map_of_struct_value_ = NULL;
  3254. }
  3255. inline const ::google::protobuf::testing::MapOfStruct& StructTestCases::_internal_map_of_struct_value() const {
  3256. return *map_of_struct_value_;
  3257. }
  3258. inline const ::google::protobuf::testing::MapOfStruct& StructTestCases::map_of_struct_value() const {
  3259. const ::google::protobuf::testing::MapOfStruct* p = map_of_struct_value_;
  3260. // @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.map_of_struct_value)
  3261. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::MapOfStruct*>(
  3262. &::google::protobuf::testing::_MapOfStruct_default_instance_);
  3263. }
  3264. inline ::google::protobuf::testing::MapOfStruct* StructTestCases::release_map_of_struct_value() {
  3265. // @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.map_of_struct_value)
  3266. ::google::protobuf::testing::MapOfStruct* temp = map_of_struct_value_;
  3267. map_of_struct_value_ = NULL;
  3268. return temp;
  3269. }
  3270. inline ::google::protobuf::testing::MapOfStruct* StructTestCases::mutable_map_of_struct_value() {
  3271. if (map_of_struct_value_ == NULL) {
  3272. auto* p = CreateMaybeMessage<::google::protobuf::testing::MapOfStruct>(GetArenaNoVirtual());
  3273. map_of_struct_value_ = p;
  3274. }
  3275. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.map_of_struct_value)
  3276. return map_of_struct_value_;
  3277. }
  3278. inline void StructTestCases::set_allocated_map_of_struct_value(::google::protobuf::testing::MapOfStruct* map_of_struct_value) {
  3279. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  3280. if (message_arena == NULL) {
  3281. delete map_of_struct_value_;
  3282. }
  3283. if (map_of_struct_value) {
  3284. ::google::protobuf::Arena* submessage_arena = NULL;
  3285. if (message_arena != submessage_arena) {
  3286. map_of_struct_value = ::google::protobuf::internal::GetOwnedMessage(
  3287. message_arena, map_of_struct_value, submessage_arena);
  3288. }
  3289. } else {
  3290. }
  3291. map_of_struct_value_ = map_of_struct_value;
  3292. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.map_of_struct_value)
  3293. }
  3294. // .google.protobuf.testing.MapOfStruct map_of_listvalue = 39;
  3295. inline bool StructTestCases::has_map_of_listvalue() const {
  3296. return this != internal_default_instance() && map_of_listvalue_ != NULL;
  3297. }
  3298. inline void StructTestCases::clear_map_of_listvalue() {
  3299. if (GetArenaNoVirtual() == NULL && map_of_listvalue_ != NULL) {
  3300. delete map_of_listvalue_;
  3301. }
  3302. map_of_listvalue_ = NULL;
  3303. }
  3304. inline const ::google::protobuf::testing::MapOfStruct& StructTestCases::_internal_map_of_listvalue() const {
  3305. return *map_of_listvalue_;
  3306. }
  3307. inline const ::google::protobuf::testing::MapOfStruct& StructTestCases::map_of_listvalue() const {
  3308. const ::google::protobuf::testing::MapOfStruct* p = map_of_listvalue_;
  3309. // @@protoc_insertion_point(field_get:google.protobuf.testing.StructTestCases.map_of_listvalue)
  3310. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::MapOfStruct*>(
  3311. &::google::protobuf::testing::_MapOfStruct_default_instance_);
  3312. }
  3313. inline ::google::protobuf::testing::MapOfStruct* StructTestCases::release_map_of_listvalue() {
  3314. // @@protoc_insertion_point(field_release:google.protobuf.testing.StructTestCases.map_of_listvalue)
  3315. ::google::protobuf::testing::MapOfStruct* temp = map_of_listvalue_;
  3316. map_of_listvalue_ = NULL;
  3317. return temp;
  3318. }
  3319. inline ::google::protobuf::testing::MapOfStruct* StructTestCases::mutable_map_of_listvalue() {
  3320. if (map_of_listvalue_ == NULL) {
  3321. auto* p = CreateMaybeMessage<::google::protobuf::testing::MapOfStruct>(GetArenaNoVirtual());
  3322. map_of_listvalue_ = p;
  3323. }
  3324. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructTestCases.map_of_listvalue)
  3325. return map_of_listvalue_;
  3326. }
  3327. inline void StructTestCases::set_allocated_map_of_listvalue(::google::protobuf::testing::MapOfStruct* map_of_listvalue) {
  3328. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  3329. if (message_arena == NULL) {
  3330. delete map_of_listvalue_;
  3331. }
  3332. if (map_of_listvalue) {
  3333. ::google::protobuf::Arena* submessage_arena = NULL;
  3334. if (message_arena != submessage_arena) {
  3335. map_of_listvalue = ::google::protobuf::internal::GetOwnedMessage(
  3336. message_arena, map_of_listvalue, submessage_arena);
  3337. }
  3338. } else {
  3339. }
  3340. map_of_listvalue_ = map_of_listvalue;
  3341. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructTestCases.map_of_listvalue)
  3342. }
  3343. // -------------------------------------------------------------------
  3344. // StructWrapper
  3345. // .google.protobuf.Struct struct = 1;
  3346. inline bool StructWrapper::has_struct_() const {
  3347. return this != internal_default_instance() && struct__ != NULL;
  3348. }
  3349. inline const ::google::protobuf::Struct& StructWrapper::_internal_struct_() const {
  3350. return *struct__;
  3351. }
  3352. inline const ::google::protobuf::Struct& StructWrapper::struct_() const {
  3353. const ::google::protobuf::Struct* p = struct__;
  3354. // @@protoc_insertion_point(field_get:google.protobuf.testing.StructWrapper.struct)
  3355. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Struct*>(
  3356. &::google::protobuf::_Struct_default_instance_);
  3357. }
  3358. inline ::google::protobuf::Struct* StructWrapper::release_struct_() {
  3359. // @@protoc_insertion_point(field_release:google.protobuf.testing.StructWrapper.struct)
  3360. ::google::protobuf::Struct* temp = struct__;
  3361. struct__ = NULL;
  3362. return temp;
  3363. }
  3364. inline ::google::protobuf::Struct* StructWrapper::mutable_struct_() {
  3365. if (struct__ == NULL) {
  3366. auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArenaNoVirtual());
  3367. struct__ = p;
  3368. }
  3369. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructWrapper.struct)
  3370. return struct__;
  3371. }
  3372. inline void StructWrapper::set_allocated_struct_(::google::protobuf::Struct* struct_) {
  3373. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  3374. if (message_arena == NULL) {
  3375. delete reinterpret_cast< ::google::protobuf::MessageLite*>(struct__);
  3376. }
  3377. if (struct_) {
  3378. ::google::protobuf::Arena* submessage_arena =
  3379. reinterpret_cast<::google::protobuf::MessageLite*>(struct_)->GetArena();
  3380. if (message_arena != submessage_arena) {
  3381. struct_ = ::google::protobuf::internal::GetOwnedMessage(
  3382. message_arena, struct_, submessage_arena);
  3383. }
  3384. } else {
  3385. }
  3386. struct__ = struct_;
  3387. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructWrapper.struct)
  3388. }
  3389. // -------------------------------------------------------------------
  3390. // ValueWrapper
  3391. // .google.protobuf.Value value = 1;
  3392. inline bool ValueWrapper::has_value() const {
  3393. return this != internal_default_instance() && value_ != NULL;
  3394. }
  3395. inline const ::google::protobuf::Value& ValueWrapper::_internal_value() const {
  3396. return *value_;
  3397. }
  3398. inline const ::google::protobuf::Value& ValueWrapper::value() const {
  3399. const ::google::protobuf::Value* p = value_;
  3400. // @@protoc_insertion_point(field_get:google.protobuf.testing.ValueWrapper.value)
  3401. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Value*>(
  3402. &::google::protobuf::_Value_default_instance_);
  3403. }
  3404. inline ::google::protobuf::Value* ValueWrapper::release_value() {
  3405. // @@protoc_insertion_point(field_release:google.protobuf.testing.ValueWrapper.value)
  3406. ::google::protobuf::Value* temp = value_;
  3407. value_ = NULL;
  3408. return temp;
  3409. }
  3410. inline ::google::protobuf::Value* ValueWrapper::mutable_value() {
  3411. if (value_ == NULL) {
  3412. auto* p = CreateMaybeMessage<::google::protobuf::Value>(GetArenaNoVirtual());
  3413. value_ = p;
  3414. }
  3415. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.ValueWrapper.value)
  3416. return value_;
  3417. }
  3418. inline void ValueWrapper::set_allocated_value(::google::protobuf::Value* value) {
  3419. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  3420. if (message_arena == NULL) {
  3421. delete reinterpret_cast< ::google::protobuf::MessageLite*>(value_);
  3422. }
  3423. if (value) {
  3424. ::google::protobuf::Arena* submessage_arena =
  3425. reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena();
  3426. if (message_arena != submessage_arena) {
  3427. value = ::google::protobuf::internal::GetOwnedMessage(
  3428. message_arena, value, submessage_arena);
  3429. }
  3430. } else {
  3431. }
  3432. value_ = value;
  3433. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.ValueWrapper.value)
  3434. }
  3435. // -------------------------------------------------------------------
  3436. // RepeatedValueWrapper
  3437. // repeated .google.protobuf.Value values = 1;
  3438. inline int RepeatedValueWrapper::values_size() const {
  3439. return values_.size();
  3440. }
  3441. inline ::google::protobuf::Value* RepeatedValueWrapper::mutable_values(int index) {
  3442. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.RepeatedValueWrapper.values)
  3443. return values_.Mutable(index);
  3444. }
  3445. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::Value >*
  3446. RepeatedValueWrapper::mutable_values() {
  3447. // @@protoc_insertion_point(field_mutable_list:google.protobuf.testing.RepeatedValueWrapper.values)
  3448. return &values_;
  3449. }
  3450. inline const ::google::protobuf::Value& RepeatedValueWrapper::values(int index) const {
  3451. // @@protoc_insertion_point(field_get:google.protobuf.testing.RepeatedValueWrapper.values)
  3452. return values_.Get(index);
  3453. }
  3454. inline ::google::protobuf::Value* RepeatedValueWrapper::add_values() {
  3455. // @@protoc_insertion_point(field_add:google.protobuf.testing.RepeatedValueWrapper.values)
  3456. return values_.Add();
  3457. }
  3458. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Value >&
  3459. RepeatedValueWrapper::values() const {
  3460. // @@protoc_insertion_point(field_list:google.protobuf.testing.RepeatedValueWrapper.values)
  3461. return values_;
  3462. }
  3463. // -------------------------------------------------------------------
  3464. // ListValueWrapper
  3465. // .google.protobuf.ListValue shopping_list = 1;
  3466. inline bool ListValueWrapper::has_shopping_list() const {
  3467. return this != internal_default_instance() && shopping_list_ != NULL;
  3468. }
  3469. inline const ::google::protobuf::ListValue& ListValueWrapper::_internal_shopping_list() const {
  3470. return *shopping_list_;
  3471. }
  3472. inline const ::google::protobuf::ListValue& ListValueWrapper::shopping_list() const {
  3473. const ::google::protobuf::ListValue* p = shopping_list_;
  3474. // @@protoc_insertion_point(field_get:google.protobuf.testing.ListValueWrapper.shopping_list)
  3475. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::ListValue*>(
  3476. &::google::protobuf::_ListValue_default_instance_);
  3477. }
  3478. inline ::google::protobuf::ListValue* ListValueWrapper::release_shopping_list() {
  3479. // @@protoc_insertion_point(field_release:google.protobuf.testing.ListValueWrapper.shopping_list)
  3480. ::google::protobuf::ListValue* temp = shopping_list_;
  3481. shopping_list_ = NULL;
  3482. return temp;
  3483. }
  3484. inline ::google::protobuf::ListValue* ListValueWrapper::mutable_shopping_list() {
  3485. if (shopping_list_ == NULL) {
  3486. auto* p = CreateMaybeMessage<::google::protobuf::ListValue>(GetArenaNoVirtual());
  3487. shopping_list_ = p;
  3488. }
  3489. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.ListValueWrapper.shopping_list)
  3490. return shopping_list_;
  3491. }
  3492. inline void ListValueWrapper::set_allocated_shopping_list(::google::protobuf::ListValue* shopping_list) {
  3493. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  3494. if (message_arena == NULL) {
  3495. delete reinterpret_cast< ::google::protobuf::MessageLite*>(shopping_list_);
  3496. }
  3497. if (shopping_list) {
  3498. ::google::protobuf::Arena* submessage_arena =
  3499. reinterpret_cast<::google::protobuf::MessageLite*>(shopping_list)->GetArena();
  3500. if (message_arena != submessage_arena) {
  3501. shopping_list = ::google::protobuf::internal::GetOwnedMessage(
  3502. message_arena, shopping_list, submessage_arena);
  3503. }
  3504. } else {
  3505. }
  3506. shopping_list_ = shopping_list;
  3507. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.ListValueWrapper.shopping_list)
  3508. }
  3509. // -------------------------------------------------------------------
  3510. // RepeatedListValueWrapper
  3511. // repeated .google.protobuf.ListValue dimensions = 1;
  3512. inline int RepeatedListValueWrapper::dimensions_size() const {
  3513. return dimensions_.size();
  3514. }
  3515. inline ::google::protobuf::ListValue* RepeatedListValueWrapper::mutable_dimensions(int index) {
  3516. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.RepeatedListValueWrapper.dimensions)
  3517. return dimensions_.Mutable(index);
  3518. }
  3519. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::ListValue >*
  3520. RepeatedListValueWrapper::mutable_dimensions() {
  3521. // @@protoc_insertion_point(field_mutable_list:google.protobuf.testing.RepeatedListValueWrapper.dimensions)
  3522. return &dimensions_;
  3523. }
  3524. inline const ::google::protobuf::ListValue& RepeatedListValueWrapper::dimensions(int index) const {
  3525. // @@protoc_insertion_point(field_get:google.protobuf.testing.RepeatedListValueWrapper.dimensions)
  3526. return dimensions_.Get(index);
  3527. }
  3528. inline ::google::protobuf::ListValue* RepeatedListValueWrapper::add_dimensions() {
  3529. // @@protoc_insertion_point(field_add:google.protobuf.testing.RepeatedListValueWrapper.dimensions)
  3530. return dimensions_.Add();
  3531. }
  3532. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::ListValue >&
  3533. RepeatedListValueWrapper::dimensions() const {
  3534. // @@protoc_insertion_point(field_list:google.protobuf.testing.RepeatedListValueWrapper.dimensions)
  3535. return dimensions_;
  3536. }
  3537. // -------------------------------------------------------------------
  3538. // -------------------------------------------------------------------
  3539. // -------------------------------------------------------------------
  3540. // -------------------------------------------------------------------
  3541. // MapOfStruct
  3542. // map<string, .google.protobuf.Struct> struct_map = 1;
  3543. inline int MapOfStruct::struct_map_size() const {
  3544. return struct_map_.size();
  3545. }
  3546. inline const ::google::protobuf::Map< ::std::string, ::google::protobuf::Struct >&
  3547. MapOfStruct::struct_map() const {
  3548. // @@protoc_insertion_point(field_map:google.protobuf.testing.MapOfStruct.struct_map)
  3549. return struct_map_.GetMap();
  3550. }
  3551. inline ::google::protobuf::Map< ::std::string, ::google::protobuf::Struct >*
  3552. MapOfStruct::mutable_struct_map() {
  3553. // @@protoc_insertion_point(field_mutable_map:google.protobuf.testing.MapOfStruct.struct_map)
  3554. return struct_map_.MutableMap();
  3555. }
  3556. // map<string, .google.protobuf.Value> value_map = 2;
  3557. inline int MapOfStruct::value_map_size() const {
  3558. return value_map_.size();
  3559. }
  3560. inline const ::google::protobuf::Map< ::std::string, ::google::protobuf::Value >&
  3561. MapOfStruct::value_map() const {
  3562. // @@protoc_insertion_point(field_map:google.protobuf.testing.MapOfStruct.value_map)
  3563. return value_map_.GetMap();
  3564. }
  3565. inline ::google::protobuf::Map< ::std::string, ::google::protobuf::Value >*
  3566. MapOfStruct::mutable_value_map() {
  3567. // @@protoc_insertion_point(field_mutable_map:google.protobuf.testing.MapOfStruct.value_map)
  3568. return value_map_.MutableMap();
  3569. }
  3570. // map<string, .google.protobuf.ListValue> listvalue_map = 3;
  3571. inline int MapOfStruct::listvalue_map_size() const {
  3572. return listvalue_map_.size();
  3573. }
  3574. inline const ::google::protobuf::Map< ::std::string, ::google::protobuf::ListValue >&
  3575. MapOfStruct::listvalue_map() const {
  3576. // @@protoc_insertion_point(field_map:google.protobuf.testing.MapOfStruct.listvalue_map)
  3577. return listvalue_map_.GetMap();
  3578. }
  3579. inline ::google::protobuf::Map< ::std::string, ::google::protobuf::ListValue >*
  3580. MapOfStruct::mutable_listvalue_map() {
  3581. // @@protoc_insertion_point(field_mutable_map:google.protobuf.testing.MapOfStruct.listvalue_map)
  3582. return listvalue_map_.MutableMap();
  3583. }
  3584. // -------------------------------------------------------------------
  3585. // Dummy
  3586. // string text = 1;
  3587. inline void Dummy::clear_text() {
  3588. text_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3589. }
  3590. inline const ::std::string& Dummy::text() const {
  3591. // @@protoc_insertion_point(field_get:google.protobuf.testing.Dummy.text)
  3592. return text_.GetNoArena();
  3593. }
  3594. inline void Dummy::set_text(const ::std::string& value) {
  3595. text_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  3596. // @@protoc_insertion_point(field_set:google.protobuf.testing.Dummy.text)
  3597. }
  3598. #if LANG_CXX11
  3599. inline void Dummy::set_text(::std::string&& value) {
  3600. text_.SetNoArena(
  3601. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  3602. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.testing.Dummy.text)
  3603. }
  3604. #endif
  3605. inline void Dummy::set_text(const char* value) {
  3606. GOOGLE_DCHECK(value != NULL);
  3607. text_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  3608. // @@protoc_insertion_point(field_set_char:google.protobuf.testing.Dummy.text)
  3609. }
  3610. inline void Dummy::set_text(const char* value, size_t size) {
  3611. text_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  3612. ::std::string(reinterpret_cast<const char*>(value), size));
  3613. // @@protoc_insertion_point(field_set_pointer:google.protobuf.testing.Dummy.text)
  3614. }
  3615. inline ::std::string* Dummy::mutable_text() {
  3616. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.Dummy.text)
  3617. return text_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3618. }
  3619. inline ::std::string* Dummy::release_text() {
  3620. // @@protoc_insertion_point(field_release:google.protobuf.testing.Dummy.text)
  3621. return text_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3622. }
  3623. inline void Dummy::set_allocated_text(::std::string* text) {
  3624. if (text != NULL) {
  3625. } else {
  3626. }
  3627. text_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), text);
  3628. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.Dummy.text)
  3629. }
  3630. // -------------------------------------------------------------------
  3631. // StructType
  3632. // .google.protobuf.Struct object = 1;
  3633. inline bool StructType::has_object() const {
  3634. return this != internal_default_instance() && object_ != NULL;
  3635. }
  3636. inline const ::google::protobuf::Struct& StructType::_internal_object() const {
  3637. return *object_;
  3638. }
  3639. inline const ::google::protobuf::Struct& StructType::object() const {
  3640. const ::google::protobuf::Struct* p = object_;
  3641. // @@protoc_insertion_point(field_get:google.protobuf.testing.StructType.object)
  3642. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Struct*>(
  3643. &::google::protobuf::_Struct_default_instance_);
  3644. }
  3645. inline ::google::protobuf::Struct* StructType::release_object() {
  3646. // @@protoc_insertion_point(field_release:google.protobuf.testing.StructType.object)
  3647. ::google::protobuf::Struct* temp = object_;
  3648. object_ = NULL;
  3649. return temp;
  3650. }
  3651. inline ::google::protobuf::Struct* StructType::mutable_object() {
  3652. if (object_ == NULL) {
  3653. auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArenaNoVirtual());
  3654. object_ = p;
  3655. }
  3656. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.StructType.object)
  3657. return object_;
  3658. }
  3659. inline void StructType::set_allocated_object(::google::protobuf::Struct* object) {
  3660. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  3661. if (message_arena == NULL) {
  3662. delete reinterpret_cast< ::google::protobuf::MessageLite*>(object_);
  3663. }
  3664. if (object) {
  3665. ::google::protobuf::Arena* submessage_arena =
  3666. reinterpret_cast<::google::protobuf::MessageLite*>(object)->GetArena();
  3667. if (message_arena != submessage_arena) {
  3668. object = ::google::protobuf::internal::GetOwnedMessage(
  3669. message_arena, object, submessage_arena);
  3670. }
  3671. } else {
  3672. }
  3673. object_ = object;
  3674. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.StructType.object)
  3675. }
  3676. #ifdef __GNUC__
  3677. #pragma GCC diagnostic pop
  3678. #endif // __GNUC__
  3679. // -------------------------------------------------------------------
  3680. // -------------------------------------------------------------------
  3681. // -------------------------------------------------------------------
  3682. // -------------------------------------------------------------------
  3683. // -------------------------------------------------------------------
  3684. // -------------------------------------------------------------------
  3685. // -------------------------------------------------------------------
  3686. // -------------------------------------------------------------------
  3687. // -------------------------------------------------------------------
  3688. // -------------------------------------------------------------------
  3689. // -------------------------------------------------------------------
  3690. // @@protoc_insertion_point(namespace_scope)
  3691. } // namespace testing
  3692. } // namespace protobuf
  3693. } // namespace google
  3694. // @@protoc_insertion_point(global_scope)
  3695. #endif // PROTOBUF_INCLUDED_google_2fprotobuf_2futil_2finternal_2ftestdata_2fstruct_2eproto